	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_simplewrite
_test_simplewrite:                      ## @test_simplewrite
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	callq	_setup_test
	movq	_pair@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_simple_write_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-16(%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_2
## %bb.1:
	xorl	%eax, %eax
	callq	_event_dispatch
	xorl	%eax, %eax
	callq	_cleanup_test
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Simple write: "

	.comm	_pair,8,3                       ## @pair
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_simple_write_cb,4,2            ## @simple_write_cb
	.no_dead_strip	_test_simplewrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_simplewrite
_test_simplewrite:                      ; @test_simplewrite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_setup_test
Lloh2:
	adrp	x8, _pair@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pair@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _EV_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EV_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _simple_write_cb@GOTPAGE
Lloh9:
	ldr	x8, [x8, _simple_write_cb@GOTPAGEOFF]
Lloh10:
	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_2
; %bb.1:
	bl	_event_dispatch
	bl	_cleanup_test
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_2:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Simple write: "

	.comm	_pair,8,3                       ; @pair
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_simple_write_cb,4,2            ; @simple_write_cb
	.no_dead_strip	_test_simplewrite
.subsections_via_symbols
