	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_want_only_once
_test_want_only_once:                   ## @test_want_only_once
	.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
	movq	_pair@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %r14d
	movq	_TEST1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	leaq	1(%rax), %rdx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_write
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_tt_fail_perror
LBB0_2:
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_evutil_timerclear
	movl	$300000, -32(%rbp)              ## imm = 0x493E0
	movq	%rbx, %rdi
	callq	_event_loopexit
	movq	(%r15), %rax
	movl	4(%rax), %esi
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_read_once_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rbx, %r8
	callq	_event_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_event_add
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_event_dispatch
	xorl	%eax, %eax
	callq	_cleanup_test
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Want read only once: "

	.comm	_pair,8,3                       ## @pair
	.comm	_TEST1,4,2                      ## @TEST1
L_.str.1:                               ## @.str.1
	.asciz	"write"

	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_read_once_cb,4,2               ## @read_once_cb
	.no_dead_strip	_test_want_only_once
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_want_only_once
_test_want_only_once:                   ; @test_want_only_once
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_setup_test
Lloh2:
	adrp	x21, _pair@GOTPAGE
Lloh3:
	ldr	x21, [x21, _pair@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w19, [x8]
Lloh4:
	adrp	x8, _TEST1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TEST1@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_write
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tt_fail_perror
LBB0_2:
	mov	x0, sp
	bl	_evutil_timerclear
	mov	w8, #37856
	movk	w8, #4, lsl #16
	str	w8, [sp]
	mov	x0, sp
	bl	_event_loopexit
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
Lloh9:
	adrp	x8, _EV_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _read_once_cb@GOTPAGE
Lloh13:
	ldr	x8, [x8, _read_once_cb@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	add	x0, sp, #8
	add	x4, sp, #8
	bl	_event_set
	add	x0, sp, #8
	mov	x1, #0
	bl	_event_add
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.3:
	bl	_event_dispatch
	bl	_cleanup_test
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Want read only once: "

	.comm	_pair,8,3                       ; @pair
	.comm	_TEST1,4,2                      ; @TEST1
l_.str.1:                               ; @.str.1
	.asciz	"write"

	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_read_once_cb,4,2               ; @read_once_cb
	.no_dead_strip	_test_want_only_once
.subsections_via_symbols
