void memory_region_init_rom_device(MemoryRegion *mr,

                                   const MemoryRegionOps *ops,

                                   void *opaque,

                                   const char *name,

                                   uint64_t size)

{

    memory_region_init(mr, name, size);

    mr->ops = ops;

    mr->opaque = opaque;

    mr->terminates = true;

    mr->destructor = memory_region_destructor_rom_device;

    mr->ram_addr = qemu_ram_alloc(size, mr);

    mr->ram_addr |= cpu_register_io_memory(memory_region_read_thunk,

                                           memory_region_write_thunk,

                                           mr);

    mr->ram_addr |= IO_MEM_ROMD;

    mr->backend_registered = true;

}

void memory_region_init_rom_device(MemoryRegion *mr,

                                   const MemoryRegionOps *ops,

                                   void *opaque,

                                   const char *name,

                                   uint64_t size)

{

    memory_region_init(mr, name, size);

    mr->ops = ops;

    mr->opaque = opaque;

    mr->terminates = true;

    mr->destructor = memory_region_destructor_rom_device;

    mr->ram_addr = qemu_ram_alloc(size, mr);

    mr->ram_addr |= cpu_register_io_memory(memory_region_read_thunk,

                                           memory_region_write_thunk,

                                           mr);

    mr->ram_addr |= IO_MEM_ROMD;

    mr->backend_registered = true;

}

void FUNC_0(MemoryRegion *VAR_0,

                                   const MemoryRegionOps *VAR_1,

                                   void *VAR_2,

                                   const char *VAR_3,

                                   uint64_t VAR_4)

{

    memory_region_init(VAR_0, VAR_3, VAR_4);

    VAR_0->VAR_1 = VAR_1;

    VAR_0->VAR_2 = VAR_2;

    VAR_0->terminates = true;

    VAR_0->destructor = memory_region_destructor_rom_device;

    VAR_0->ram_addr = qemu_ram_alloc(VAR_4, VAR_0);

    VAR_0->ram_addr |= cpu_register_io_memory(memory_region_read_thunk,

                                           memory_region_write_thunk,

                                           VAR_0);

    VAR_0->ram_addr |= IO_MEM_ROMD;

    VAR_0->backend_registered = true;

}

void FUNC_0(MemoryRegion *VAR_0,
const MemoryRegionOps *VAR_1,
void *VAR_2,
const char *VAR_3,
uint64_t VAR_4)
{ memory_region_init(VAR_0, VAR_3, VAR_4); VAR_0->VAR_1 = VAR_1; VAR_0->VAR_2 = VAR_2; VAR_0->terminates = true; VAR_0->destructor = memory_region_destructor_rom_device; VAR_0->ram_addr = qemu_ram_alloc(VAR_4, VAR_0); VAR_0->ram_addr |= cpu_register_io_memory(memory_region_read_thunk,
memory_region_write_thunk,
VAR_0); VAR_0->ram_addr |= IO_MEM_ROMD; VAR_0->backend_registered = true; }