void memory_region_init(MemoryRegion *mr,

                        const char *name,

                        uint64_t size)

{

    mr->ops = NULL;

    mr->parent = NULL;

    mr->size = int128_make64(size);

    if (size == UINT64_MAX) {

        mr->size = int128_2_64();

    }

    mr->addr = 0;

    mr->subpage = false;

    mr->enabled = true;

    mr->terminates = false;

    mr->ram = false;

    mr->romd_mode = true;

    mr->readonly = false;

    mr->rom_device = false;

    mr->destructor = memory_region_destructor_none;

    mr->priority = 0;

    mr->may_overlap = false;

    mr->alias = NULL;

    QTAILQ_INIT(&mr->subregions);

    memset(&mr->subregions_link, 0, sizeof mr->subregions_link);

    QTAILQ_INIT(&mr->coalesced);

    mr->name = g_strdup(name);

    mr->dirty_log_mask = 0;

    mr->ioeventfd_nb = 0;

    mr->ioeventfds = NULL;

    mr->flush_coalesced_mmio = false;

}

void memory_region_init(MemoryRegion *mr,

                        const char *name,

                        uint64_t size)

{

    mr->ops = NULL;

    mr->parent = NULL;

    mr->size = int128_make64(size);

    if (size == UINT64_MAX) {

        mr->size = int128_2_64();

    }

    mr->addr = 0;

    mr->subpage = false;

    mr->enabled = true;

    mr->terminates = false;

    mr->ram = false;

    mr->romd_mode = true;

    mr->readonly = false;

    mr->rom_device = false;

    mr->destructor = memory_region_destructor_none;

    mr->priority = 0;

    mr->may_overlap = false;

    mr->alias = NULL;

    QTAILQ_INIT(&mr->subregions);

    memset(&mr->subregions_link, 0, sizeof mr->subregions_link);

    QTAILQ_INIT(&mr->coalesced);

    mr->name = g_strdup(name);

    mr->dirty_log_mask = 0;

    mr->ioeventfd_nb = 0;

    mr->ioeventfds = NULL;

    mr->flush_coalesced_mmio = false;

}

void FUNC_0(MemoryRegion *VAR_0,

                        const char *VAR_1,

                        uint64_t VAR_2)

{

    VAR_0->ops = NULL;

    VAR_0->parent = NULL;

    VAR_0->VAR_2 = int128_make64(VAR_2);

    if (VAR_2 == UINT64_MAX) {

        VAR_0->VAR_2 = int128_2_64();

    }

    VAR_0->addr = 0;

    VAR_0->subpage = false;

    VAR_0->enabled = true;

    VAR_0->terminates = false;

    VAR_0->ram = false;

    VAR_0->romd_mode = true;

    VAR_0->readonly = false;

    VAR_0->rom_device = false;

    VAR_0->destructor = memory_region_destructor_none;

    VAR_0->priority = 0;

    VAR_0->may_overlap = false;

    VAR_0->alias = NULL;

    QTAILQ_INIT(&VAR_0->subregions);

    memset(&VAR_0->subregions_link, 0, sizeof VAR_0->subregions_link);

    QTAILQ_INIT(&VAR_0->coalesced);

    VAR_0->VAR_1 = g_strdup(VAR_1);

    VAR_0->dirty_log_mask = 0;

    VAR_0->ioeventfd_nb = 0;

    VAR_0->ioeventfds = NULL;

    VAR_0->flush_coalesced_mmio = false;

}

void FUNC_0(MemoryRegion *VAR_0,
const char *VAR_1,
uint64_t VAR_2)
{ VAR_0->ops = NULL; VAR_0->parent = NULL; VAR_0->VAR_2 = int128_make64(VAR_2); if (VAR_2 == UINT64_MAX) { VAR_0->VAR_2 = int128_2_64(); } VAR_0->addr = 0; VAR_0->subpage = false; VAR_0->enabled = true; VAR_0->terminates = false; VAR_0->ram = false; VAR_0->romd_mode = true; VAR_0->readonly = false; VAR_0->rom_device = false; VAR_0->destructor = memory_region_destructor_none; VAR_0->priority = 0; VAR_0->may_overlap = false; VAR_0->alias = NULL; QTAILQ_INIT(&VAR_0->subregions); memset(&VAR_0->subregions_link, 0, sizeof VAR_0->subregions_link); QTAILQ_INIT(&VAR_0->coalesced); VAR_0->VAR_1 = g_strdup(VAR_1); VAR_0->dirty_log_mask = 0; VAR_0->ioeventfd_nb = 0; VAR_0->ioeventfds = NULL; VAR_0->flush_coalesced_mmio = false; }