	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_simpletimeout
_test_simpletimeout:                    ## @test_simpletimeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	callq	_setup_test
	movl	$200000, -40(%rbp)              ## imm = 0x30D40
	movq	$0, -32(%rbp)
	movq	_tcalled@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_evutil_timerclear
	movq	_timeout_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_evtimer_set
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_evtimer_add
	movq	_tset@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_evutil_gettimeofday
	xorl	%eax, %eax
	callq	_event_dispatch
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$200, %edx
	callq	_test_timeval_diff_eq
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_cleanup_test
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Simple timeout: "

	.comm	_tcalled,4,2                    ## @tcalled
	.comm	_timeout_cb,4,2                 ## @timeout_cb
	.comm	_tset,4,2                       ## @tset
	.comm	_test_ok,4,2                    ## @test_ok
	.no_dead_strip	_test_simpletimeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_simpletimeout
_test_simpletimeout:                    ; @test_simpletimeout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_setup_test
	mov	w8, #3392
	movk	w8, #3, lsl #16
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
Lloh2:
	adrp	x19, _tcalled@GOTPAGE
Lloh3:
	ldr	x19, [x19, _tcalled@GOTPAGEOFF]
	mov	x0, x19
	bl	_evutil_timerclear
Lloh4:
	adrp	x8, _timeout_cb@GOTPAGE
Lloh5:
	ldr	x8, [x8, _timeout_cb@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, #0
	bl	_evtimer_set
	add	x0, sp, #8
	add	x1, sp, #16
	bl	_evtimer_add
Lloh7:
	adrp	x20, _tset@GOTPAGE
Lloh8:
	ldr	x20, [x20, _tset@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, #0
	bl	_evutil_gettimeofday
	bl	_event_dispatch
	mov	x0, x20
	mov	x1, x19
	mov	w2, #200
	bl	_test_timeval_diff_eq
Lloh9:
	adrp	x8, _test_ok@GOTPAGE
Lloh10:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	mov	w9, #1
Lloh11:
	str	w9, [x8]
	bl	_cleanup_test
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Simple timeout: "

	.comm	_tcalled,4,2                    ; @tcalled
	.comm	_timeout_cb,4,2                 ; @timeout_cb
	.comm	_tset,4,2                       ; @tset
	.comm	_test_ok,4,2                    ; @test_ok
	.no_dead_strip	_test_simpletimeout
.subsections_via_symbols
