	.file	"679527.c"
	.intel_syntax noprefix
	.text
	.globl	lasttime
	.bss
	.align 16
	.type	lasttime, @object
	.size	lasttime, 16
lasttime:
	.zero	16
	.globl	event_is_persistent
	.align 4
	.type	event_is_persistent, @object
	.size	event_is_persistent, 4
event_is_persistent:
	.zero	4
	.section	.rodata
	.align 8
.LC1:
	.string	"timeout_cb called at %d: %.3f seconds elapsed.\n"
	.text
	.type	timeout_cb, @function
timeout_cb:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	eax, esi
	mov	QWORD PTR -96[rbp], rdx
	mov	WORD PTR -88[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR lasttime[rip]
	sub	rax, rdx
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR lasttime[rip+8]
	sub	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	jns	.L2
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 1
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1000000
	mov	QWORD PTR -40[rbp], rax
.L2:
	mov	rax, QWORD PTR -48[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -40[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR -72[rbp], xmm0
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	movq	xmm0, rax
	mov	esi, edx
	lea	rdi, .LC1[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR lasttime[rip], rax
	mov	QWORD PTR lasttime[rip+8], rdx
	mov	eax, DWORD PTR event_is_persistent[rip]
	test	eax, eax
	jne	.L5
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -32[rbp], 2
	lea	rdx, -32[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	event_add@PLT
.L5:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	timeout_cb, .-timeout_cb
	.section	.rodata
.LC2:
	.string	"-p"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -180[rbp], 2
	jne	.L7
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L7
	mov	DWORD PTR event_is_persistent[rip], 1
	mov	DWORD PTR -172[rbp], 16
	jmp	.L8
.L7:
	mov	DWORD PTR event_is_persistent[rip], 0
	mov	DWORD PTR -172[rbp], 0
.L8:
	call	event_base_new@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	eax, DWORD PTR -172[rbp]
	movsx	edx, ax
	lea	rcx, -144[rbp]
	mov	rsi, QWORD PTR -168[rbp]
	lea	rax, -144[rbp]
	mov	r9, rcx
	lea	r8, timeout_cb[rip]
	mov	ecx, edx
	mov	edx, -1
	mov	rdi, rax
	call	event_assign@PLT
	mov	QWORD PTR -152[rbp], 0
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -160[rbp], rax
	mov	QWORD PTR -160[rbp], 20
	lea	rdx, -160[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	event_add@PLT
	mov	esi, 0
	lea	rdi, lasttime[rip]
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	event_base_dispatch@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"679527.c"
	.text
	.comm	lasttime,8,4
	.comm	event_is_persistent,4,4
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.section	.rodata
	.align	2
.LC0:
	.ascii	"timeout_cb called at %d: %.3f seconds elapsed.\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	timeout_cb, %function
timeout_cb:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	mov	r3, r1
	str	r2, [fp, #-72]
	strh	r3, [fp, #-66]	@ movhi
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-56]
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-40]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	ldr	r3, .L6+4
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L2
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r3, #999424
	add	r3, r3, #576
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L6+8
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r1, [fp, #-40]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, .L6+12
	bl	printf
	ldr	r3, .L6+4
	mov	r2, r3
	sub	r3, fp, #40
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, .L6+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	mov	r3, #2
	str	r3, [fp, #-24]
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	event_add
.L5:
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	lasttime
	.word	1093567616
	.word	.LC0
	.word	event_is_persistent
	.size	timeout_cb, .-timeout_cb
	.section	.rodata
	.align	2
.LC2:
	.ascii	"-p\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-96]
	cmp	r3, #2
	bne	.L9
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L13+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L13+8
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #16
	str	r3, [fp, #-88]
	b	.L10
.L9:
	ldr	r3, .L13+8
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-88]
.L10:
	bl	event_base_new
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #16
	asr	r2, r3, #16
	sub	r0, fp, #72
	sub	r3, fp, #72
	str	r3, [sp, #4]
	ldr	r3, .L13+12
	str	r3, [sp]
	mov	r3, r2
	mvn	r2, #0
	ldr	r1, [fp, #-84]
	bl	event_assign
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-80]
	mov	r3, #20
	str	r3, [fp, #-80]
	sub	r2, fp, #80
	sub	r3, fp, #72
	mov	r1, r2
	mov	r0, r3
	bl	event_add
	mov	r1, #0
	ldr	r0, .L13+16
	bl	gettimeofday
	ldr	r0, [fp, #-84]
	bl	event_base_dispatch
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	.LC2
	.word	event_is_persistent
	.word	timeout_cb
	.word	lasttime
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
