	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_loopexit
_test_loopexit:                         ## @test_loopexit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_setup_test
	movabsq	$371085174374400, %rax          ## imm = 0x1518000000000
	movq	%rax, -40(%rbp)
	movq	_timeout_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_evtimer_set
	leaq	-40(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_evtimer_add
	movq	$300000, -40(%rbp)              ## imm = 0x493E0
	movq	%rbx, %rdi
	callq	_event_loopexit
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_evutil_gettimeofday
	xorl	%eax, %eax
	callq	_event_dispatch
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_evutil_gettimeofday
	movq	%r12, %rdi
	callq	_evtimer_del
	movq	_global_base@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_event_base_got_exit
	movl	%eax, %edi
	callq	_tt_assert
	movl	(%rbx), %edi
	callq	_event_base_got_break
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_tt_assert
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$300, %edx                      ## imm = 0x12C
	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	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Loop exit: "

	.comm	_timeout_cb,4,2                 ## @timeout_cb
	.comm	_global_base,4,2                ## @global_base
	.comm	_test_ok,4,2                    ## @test_ok
	.no_dead_strip	_test_loopexit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function test_loopexit
lCPI0_0:
	.long	0                               ; 0x0
	.long	86400                           ; 0x15180
lCPI0_1:
	.long	300000                          ; 0x493e0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_test_loopexit:                         ; @test_loopexit
	.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
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
Lloh4:
	adrp	x8, _timeout_cb@GOTPAGE
Lloh5:
	ldr	x8, [x8, _timeout_cb@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, sp
	mov	x2, #0
	bl	_evtimer_set
	mov	x0, sp
	add	x1, sp, #24
	bl	_evtimer_add
Lloh7:
	adrp	x8, lCPI0_1@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #24]
	add	x0, sp, #24
	bl	_event_loopexit
	add	x0, sp, #16
	mov	x1, #0
	bl	_evutil_gettimeofday
	bl	_event_dispatch
	add	x0, sp, #8
	mov	x1, #0
	bl	_evutil_gettimeofday
	mov	x0, sp
	bl	_evtimer_del
Lloh9:
	adrp	x19, _global_base@GOTPAGE
Lloh10:
	ldr	x19, [x19, _global_base@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_event_base_got_exit
	bl	_tt_assert
	ldr	w0, [x19]
	bl	_event_base_got_break
	cmp	w0, #0
	cset	w0, eq
	bl	_tt_assert
	add	x0, sp, #16
	add	x1, sp, #8
	mov	w2, #300
	bl	_test_timeval_diff_eq
Lloh11:
	adrp	x8, _test_ok@GOTPAGE
Lloh12:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	mov	w9, #1
Lloh13:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Loop exit: "

	.comm	_timeout_cb,4,2                 ; @timeout_cb
	.comm	_global_base,4,2                ; @global_base
	.comm	_test_ok,4,2                    ; @test_ok
	.no_dead_strip	_test_loopexit
.subsections_via_symbols
