void acpi_pm1_cnt_init(ACPIREGS *ar, MemoryRegion *parent)

{

    ar->wakeup.notify = acpi_notify_wakeup;

    qemu_register_wakeup_notifier(&ar->wakeup);

    memory_region_init_io(&ar->pm1.cnt.io, &acpi_pm_cnt_ops, ar, "acpi-cnt", 2);

    memory_region_add_subregion(parent, 4, &ar->pm1.cnt.io);

}

void acpi_pm1_cnt_init(ACPIREGS *ar, MemoryRegion *parent)

{

    ar->wakeup.notify = acpi_notify_wakeup;

    qemu_register_wakeup_notifier(&ar->wakeup);

    memory_region_init_io(&ar->pm1.cnt.io, &acpi_pm_cnt_ops, ar, "acpi-cnt", 2);

    memory_region_add_subregion(parent, 4, &ar->pm1.cnt.io);

}

void FUNC_0(ACPIREGS *VAR_0, MemoryRegion *VAR_1)

{

    VAR_0->wakeup.notify = acpi_notify_wakeup;

    qemu_register_wakeup_notifier(&VAR_0->wakeup);

    memory_region_init_io(&VAR_0->pm1.cnt.io, &acpi_pm_cnt_ops, VAR_0, "acpi-cnt", 2);

    memory_region_add_subregion(VAR_1, 4, &VAR_0->pm1.cnt.io);

}

void FUNC_0(ACPIREGS *VAR_0, MemoryRegion *VAR_1)
{ VAR_0->wakeup.notify = acpi_notify_wakeup; qemu_register_wakeup_notifier(&VAR_0->wakeup); memory_region_init_io(&VAR_0->pm1.cnt.io, &acpi_pm_cnt_ops, VAR_0, "acpi-cnt", 2); memory_region_add_subregion(VAR_1, 4, &VAR_0->pm1.cnt.io); }