static int is_dup_page(uint8_t *page, uint8_t ch)

{

    uint32_t val = ch << 24 | ch << 16 | ch << 8 | ch;

    uint32_t *array = (uint32_t *)page;

    int i;



    for (i = 0; i < (TARGET_PAGE_SIZE / 4); i++) {

        if (array[i] != val)

            return 0;

    }



    return 1;

}

static int is_dup_page(uint8_t *page, uint8_t ch)

{

    uint32_t val = ch << 24 | ch << 16 | ch << 8 | ch;

    uint32_t *array = (uint32_t *)page;

    int i;



    for (i = 0; i < (TARGET_PAGE_SIZE / 4); i++) {

        if (array[i] != val)

            return 0;

    }



    return 1;

}

static int FUNC_0(uint8_t *VAR_0, uint8_t VAR_1)

{

    uint32_t val = VAR_1 << 24 | VAR_1 << 16 | VAR_1 << 8 | VAR_1;

    uint32_t *array = (uint32_t *)VAR_0;

    int VAR_2;



    for (VAR_2 = 0; VAR_2 < (TARGET_PAGE_SIZE / 4); VAR_2++) {

        if (array[VAR_2] != val)

            return 0;

    }



    return 1;

}

static int FUNC_0(uint8_t *VAR_0, uint8_t VAR_1)
{ uint32_t val = VAR_1 << 24 | VAR_1 << 16 | VAR_1 << 8 | VAR_1; uint32_t *array = (uint32_t *)VAR_0; int VAR_2; for (VAR_2 = 0; VAR_2 < (TARGET_PAGE_SIZE / 4); VAR_2++) { if (array[VAR_2] != val)
return 0; } return 1; }