static uint64_t nand_read(void *opaque, target_phys_addr_t addr, unsigned size)

{

    struct nand_state_t *s = opaque;

    uint32_t r;

    int rdy;



    r = nand_getio(s->nand);

    nand_getpins(s->nand, &rdy);

    s->rdy = rdy;



    DNAND(printf("%s addr=%x r=%x\n", __func__, addr, r));

    return r;

}

static uint64_t nand_read(void *opaque, target_phys_addr_t addr, unsigned size)

{

    struct nand_state_t *s = opaque;

    uint32_t r;

    int rdy;



    r = nand_getio(s->nand);

    nand_getpins(s->nand, &rdy);

    s->rdy = rdy;



    DNAND(printf("%s addr=%x r=%x\n", __func__, addr, r));

    return r;

}

static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size)

{

    struct nand_state_t *VAR_0 = opaque;

    uint32_t r;

    int VAR_1;



    r = nand_getio(VAR_0->nand);

    nand_getpins(VAR_0->nand, &VAR_1);

    VAR_0->VAR_1 = VAR_1;



    DNAND(printf("%VAR_0 addr=%x r=%x\n", __func__, addr, r));

    return r;

}

static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size)
{ struct nand_state_t *VAR_0 = opaque; uint32_t r; int VAR_1; r = nand_getio(VAR_0->nand); nand_getpins(VAR_0->nand, &VAR_1); VAR_0->VAR_1 = VAR_1; DNAND(printf("%VAR_0 addr=%x r=%x\n", __func__, addr, r)); return r; }