	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_simpleread_multiple
_test_simpleread_multiple:              ## @test_simpleread_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	%r12
	pushq	%rbx
	subq	$16, %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
	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:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_SHUT_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_shutdown
	movq	(%r15), %rax
	movl	4(%rax), %esi
	movq	_EV_READ@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_simpleread_multiple_cb@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_event_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_event_add
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.3:
	movq	(%r15), %rax
	movl	4(%rax), %esi
	movl	(%r14), %edx
	movl	(%r12), %ecx
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_event_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_event_add
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_event_dispatch
	xorl	%eax, %eax
	callq	_cleanup_test
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Simple read to multiple evens: "

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

	.comm	_SHUT_WR,4,2                    ## @SHUT_WR
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_simpleread_multiple_cb,4,2     ## @simpleread_multiple_cb
	.no_dead_strip	_test_simpleread_multiple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_simpleread_multiple
_test_simpleread_multiple:              ; @test_simpleread_multiple
	.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:
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SHUT_WR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SHUT_WR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_shutdown
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
Lloh12:
	adrp	x19, _EV_READ@GOTPAGE
Lloh13:
	ldr	x19, [x19, _EV_READ@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh14:
	adrp	x20, _simpleread_multiple_cb@GOTPAGE
Lloh15:
	ldr	x20, [x20, _simpleread_multiple_cb@GOTPAGEOFF]
	ldr	w3, [x20]
	add	x0, sp, #8
	mov	x4, #0
	bl	_event_set
	add	x0, sp, #8
	mov	x1, #0
	bl	_event_add
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	ldr	x8, [x21]
	ldr	w1, [x8, #4]
	ldr	w2, [x19]
	ldr	w3, [x20]
	mov	x0, sp
	mov	x4, #0
	bl	_event_set
	mov	x0, sp
	mov	x1, #0
	bl	_event_add
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:
	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_5:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Simple read to multiple evens: "

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

	.comm	_SHUT_WR,4,2                    ; @SHUT_WR
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_simpleread_multiple_cb,4,2     ; @simpleread_multiple_cb
	.no_dead_strip	_test_simpleread_multiple
.subsections_via_symbols
