int read_targphys(const char *name,

                  int fd, target_phys_addr_t dst_addr, size_t nbytes)

{

    uint8_t *buf;

    size_t did;



    buf = g_malloc(nbytes);

    did = read(fd, buf, nbytes);

    if (did > 0)

        rom_add_blob_fixed("read", buf, did, dst_addr);

    g_free(buf);

    return did;

}

int read_targphys(const char *name,

                  int fd, target_phys_addr_t dst_addr, size_t nbytes)

{

    uint8_t *buf;

    size_t did;



    buf = g_malloc(nbytes);

    did = read(fd, buf, nbytes);

    if (did > 0)

        rom_add_blob_fixed("read", buf, did, dst_addr);

    g_free(buf);

    return did;

}

int read_targphys(const char *name,                   int fd, target_phys_addr_t dst_addr, size_t nbytes)     size_t did; int read_targphys(const char *name,
int FUNC_0(const char *VAR_0,

                  int VAR_1, target_phys_addr_t VAR_2, size_t VAR_3)

{

    uint8_t *buf;

    size_t did;



    buf = g_malloc(VAR_3);

    did = read(VAR_1, buf, VAR_3);

    if (did > 0)

        rom_add_blob_fixed("read", buf, did, VAR_2);

    g_free(buf);

    return did;

}

int FUNC_0(const char *VAR_0,
int VAR_1, target_phys_addr_t VAR_2, size_t VAR_3)
{ uint8_t *buf; size_t did; buf = g_malloc(VAR_3); did = read(VAR_1, buf, VAR_3); if (did > 0)
rom_add_blob_fixed("read", buf, did, VAR_2); g_free(buf); return did; }