static void subpage_ram_write(void *opaque, target_phys_addr_t addr,

                              uint64_t value, unsigned size)

{

    ram_addr_t raddr = addr;

    void *ptr = qemu_get_ram_ptr(raddr);

    switch (size) {

    case 1: return stb_p(ptr, value);

    case 2: return stw_p(ptr, value);

    case 4: return stl_p(ptr, value);

    default: abort();

    }

}

static void subpage_ram_write(void *opaque, target_phys_addr_t addr,

                              uint64_t value, unsigned size)

{

    ram_addr_t raddr = addr;

    void *ptr = qemu_get_ram_ptr(raddr);

    switch (size) {

    case 1: return stb_p(ptr, value);

    case 2: return stw_p(ptr, value);

    case 4: return stl_p(ptr, value);

    default: abort();

    }

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,

                              uint64_t VAR_2, unsigned VAR_3)

{

    ram_addr_t raddr = VAR_1;

    void *VAR_4 = qemu_get_ram_ptr(raddr);

    switch (VAR_3) {

    case 1: return stb_p(VAR_4, VAR_2);

    case 2: return stw_p(VAR_4, VAR_2);

    case 4: return stl_p(VAR_4, VAR_2);

    default: abort();

    }

}

static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{ ram_addr_t raddr = VAR_1; void *VAR_4 = qemu_get_ram_ptr(raddr); switch (VAR_3) { case 1: return stb_p(VAR_4, VAR_2); case 2: return stw_p(VAR_4, VAR_2); case 4: return stl_p(VAR_4, VAR_2); default: abort(); } }