	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_loopexit_multiple
_test_loopexit_multiple:                ## @test_loopexit_multiple
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_setup_test
	xorl	%eax, %eax
	callq	_event_base_new
	movq	%rax, %rbx
	movq	$200000, -32(%rbp)              ## imm = 0x30D40
	leaq	-32(%rbp), %r14
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_event_base_loopexit
	movabsq	$12884901888, %rax              ## imm = 0x300000000
	movq	%rax, -32(%rbp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_event_base_loopexit
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_evutil_gettimeofday
	movq	%rbx, %rdi
	callq	_event_base_dispatch
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_evutil_gettimeofday
	movq	%rbx, %rdi
	callq	_event_base_got_exit
	movl	%eax, %edi
	callq	_tt_assert
	movq	%rbx, %rdi
	callq	_event_base_got_break
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_tt_assert
	movq	%rbx, %rdi
	callq	_event_base_free
	movq	%r14, %rdi
	movq	%r15, %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	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Loop Multiple exit: "

	.comm	_test_ok,4,2                    ## @test_ok
	.no_dead_strip	_test_loopexit_multiple
.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_multiple
lCPI0_0:
	.long	200000                          ; 0x30d40
	.long	0                               ; 0x0
lCPI0_1:
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_test_loopexit_multiple:                ; @test_loopexit_multiple
	.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
	bl	_event_base_new
	mov	x19, x0
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
	add	x1, sp, #24
	bl	_event_base_loopexit
Lloh4:
	adrp	x8, lCPI0_1@PAGE
Lloh5:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #24]
	add	x1, sp, #24
	mov	x0, x19
	bl	_event_base_loopexit
	add	x0, sp, #16
	mov	x1, #0
	bl	_evutil_gettimeofday
	mov	x0, x19
	bl	_event_base_dispatch
	add	x0, sp, #8
	mov	x1, #0
	bl	_evutil_gettimeofday
	mov	x0, x19
	bl	_event_base_got_exit
	bl	_tt_assert
	mov	x0, x19
	bl	_event_base_got_break
	cmp	w0, #0
	cset	w0, eq
	bl	_tt_assert
	mov	x0, x19
	bl	_event_base_free
	add	x0, sp, #16
	add	x1, sp, #8
	mov	w2, #200
	bl	_test_timeval_diff_eq
Lloh6:
	adrp	x8, _test_ok@GOTPAGE
Lloh7:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	mov	w9, #1
Lloh8:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Loop Multiple exit: "

	.comm	_test_ok,4,2                    ; @test_ok
	.no_dead_strip	_test_loopexit_multiple
.subsections_via_symbols
