void acpi_pm1_evt_write_sts(ACPIREGS *ar, uint16_t val)

{

    uint16_t pm1_sts = acpi_pm1_evt_get_sts(ar, ar->tmr.overflow_time);

    if (pm1_sts & val & ACPI_BITMASK_TIMER_STATUS) {

        /* if TMRSTS is reset, then compute the new overflow time */

        acpi_pm_tmr_calc_overflow_time(ar);

    }

    ar->pm1.evt.sts &= ~val;

}

void acpi_pm1_evt_write_sts(ACPIREGS *ar, uint16_t val)

{

    uint16_t pm1_sts = acpi_pm1_evt_get_sts(ar, ar->tmr.overflow_time);

    if (pm1_sts & val & ACPI_BITMASK_TIMER_STATUS) {

        

        acpi_pm_tmr_calc_overflow_time(ar);

    }

    ar->pm1.evt.sts &= ~val;

}

    uint16_t pm1_sts = acpi_pm1_evt_get_sts(ar, ar->tmr.overflow_time);
void FUNC_0(ACPIREGS *VAR_0, uint16_t VAR_1)

{

    uint16_t pm1_sts = acpi_pm1_evt_get_sts(VAR_0, VAR_0->tmr.overflow_time);

    if (pm1_sts & VAR_1 & ACPI_BITMASK_TIMER_STATUS) {

        

        acpi_pm_tmr_calc_overflow_time(VAR_0);

    }

    VAR_0->pm1.evt.sts &= ~VAR_1;

}

void FUNC_0(ACPIREGS *VAR_0, uint16_t VAR_1)
{ uint16_t pm1_sts = acpi_pm1_evt_get_sts(VAR_0, VAR_0->tmr.overflow_time); if (pm1_sts & VAR_1 & ACPI_BITMASK_TIMER_STATUS) { acpi_pm_tmr_calc_overflow_time(VAR_0); } VAR_0->pm1.evt.sts &= ~VAR_1; }