void memory_region_init_ram_ptr(MemoryRegion *mr,

                                const char *name,

                                uint64_t size,

                                void *ptr)

{

    memory_region_init(mr, name, size);

    mr->ram = true;

    mr->terminates = true;

    mr->destructor = memory_region_destructor_ram_from_ptr;

    mr->ram_addr = qemu_ram_alloc_from_ptr(size, ptr, mr);

    mr->backend_registered = true;

}

void memory_region_init_ram_ptr(MemoryRegion *mr,

                                const char *name,

                                uint64_t size,

                                void *ptr)

{

    memory_region_init(mr, name, size);

    mr->ram = true;

    mr->terminates = true;

    mr->destructor = memory_region_destructor_ram_from_ptr;

    mr->ram_addr = qemu_ram_alloc_from_ptr(size, ptr, mr);

    mr->backend_registered = true;

}

void FUNC_0(MemoryRegion *VAR_0,

                                const char *VAR_1,

                                uint64_t VAR_2,

                                void *VAR_3)

{

    memory_region_init(VAR_0, VAR_1, VAR_2);

    VAR_0->ram = true;

    VAR_0->terminates = true;

    VAR_0->destructor = memory_region_destructor_ram_from_ptr;

    VAR_0->ram_addr = qemu_ram_alloc_from_ptr(VAR_2, VAR_3, VAR_0);

    VAR_0->backend_registered = true;

}

void FUNC_0(MemoryRegion *VAR_0,
const char *VAR_1,
uint64_t VAR_2,
void *VAR_3)
{ memory_region_init(VAR_0, VAR_1, VAR_2); VAR_0->ram = true; VAR_0->terminates = true; VAR_0->destructor = memory_region_destructor_ram_from_ptr; VAR_0->ram_addr = qemu_ram_alloc_from_ptr(VAR_2, VAR_3, VAR_0); VAR_0->backend_registered = true; }