	.file	"extr_alerts.c_alerts_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"monitor-silence"
.LC1:
	.string	"@%u alerts timer reset %u"
	.text
	.p2align 4
	.type	alerts_reset, @function
alerts_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	event_initialized@PLT
	test	eax, eax
	je	.L7
.L2:
	mov	eax, DWORD PTR WINDOW_SILENCE[rip]
	mov	rdi, rbp
	mov	r12, rsp
	not	eax
	and	DWORD PTR 12[rbp], eax
	call	event_del@PLT
	mov	rdi, r12
	call	timerclear@PLT
	mov	edi, DWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	call	options_get_number@PLT
	mov	esi, DWORD PTR 4[rbp]
	lea	rdi, .LC1[rip]
	mov	rdx, rax
	mov	QWORD PTR [rsp], rax
	call	log_debug@PLT
	cmp	QWORD PTR [rsp], 0
	jne	.L8
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR alerts_timer[rip]
	mov	rdx, rbp
	mov	rdi, rbp
	call	evtimer_set@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, r12
	mov	rdi, rbp
	call	event_add@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	alerts_reset, .-alerts_reset
	.comm	alerts_timer,4,4
	.comm	WINDOW_SILENCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_alerts.c_alerts_reset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"monitor-silence\000"
	.align	2
.LC1:
	.ascii	"@%u alerts timer reset %u\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alerts_reset, %function
alerts_reset:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L13
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	bl	event_initialized
	cmp	r0, #0
	beq	.L10
.L2:
	ldr	r2, .L13+4
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	mov	r0, r4
	bic	r3, r3, r2
	str	r3, [r4, #12]
	bl	event_del
	mov	r0, sp
	bl	timerclear
	ldr	r1, .L13+8
	ldr	r0, [r4, #8]
	bl	options_get_number
	mov	r2, r0
	ldr	r1, [r4, #4]
	ldr	r0, .L13+12
	str	r2, [sp]
	bl	log_debug
	ldr	r3, [sp]
	cmp	r3, #0
	bne	.L11
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L10:
	ldr	r3, .L13+16
	mov	r2, r4
	mov	r0, r4
	ldr	r1, [r3]
	bl	evtimer_set
	b	.L2
.L11:
	mov	r1, sp
	mov	r0, r4
	bl	event_add
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	WINDOW_SILENCE
	.word	.LC0
	.word	.LC1
	.word	alerts_timer
	.size	alerts_reset, .-alerts_reset
	.comm	alerts_timer,4,4
	.comm	WINDOW_SILENCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
