static void set_alarm (m48t59_t *NVRAM, struct tm *tm)

{

    NVRAM->alarm = mktime(tm);

    if (NVRAM->alrm_timer != NULL) {

        qemu_del_timer(NVRAM->alrm_timer);

	NVRAM->alrm_timer = NULL;

    }

    if (NVRAM->alarm - time(NULL) > 0)

	qemu_mod_timer(NVRAM->alrm_timer, NVRAM->alarm * 1000);

}

static void set_alarm (m48t59_t *NVRAM, struct tm *tm)

{

    NVRAM->alarm = mktime(tm);

    if (NVRAM->alrm_timer != NULL) {

        qemu_del_timer(NVRAM->alrm_timer);

	NVRAM->alrm_timer = NULL;

    }

    if (NVRAM->alarm - time(NULL) > 0)

	qemu_mod_timer(NVRAM->alrm_timer, NVRAM->alarm * 1000);

}

	NVRAM->alrm_timer = NULL;     if (NVRAM->alarm - time(NULL) > 0) 	qemu_mod_timer(NVRAM->alrm_timer, NVRAM->alarm * 1000);
static void FUNC_0 (m48t59_t *VAR_0, struct VAR_1 *VAR_1)

{

    VAR_0->alarm = mktime(VAR_1);

    if (VAR_0->alrm_timer != NULL) {

        qemu_del_timer(VAR_0->alrm_timer);

	VAR_0->alrm_timer = NULL;

    }

    if (VAR_0->alarm - time(NULL) > 0)

	qemu_mod_timer(VAR_0->alrm_timer, VAR_0->alarm * 1000);

}

static void FUNC_0 (m48t59_t *VAR_0, struct VAR_1 *VAR_1)
{ VAR_0->alarm = mktime(VAR_1); if (VAR_0->alrm_timer != NULL) { qemu_del_timer(VAR_0->alrm_timer); VAR_0->alrm_timer = NULL; } if (VAR_0->alarm - time(NULL) > 0)
qemu_mod_timer(VAR_0->alrm_timer, VAR_0->alarm * 1000); }