	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_combined
_test_combined:                         ## @test_combined
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_setup_test
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	$4096, -48(%rbp)                ## imm = 0x1000
	movl	$8192, -56(%rbp)                ## imm = 0x2000
	leaq	-68(%rbp), %rdi
	movq	_pair@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	_EV_READ@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_combined_read_cb@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r15, %r8
	callq	_event_set
	leaq	-44(%rbp), %rdi
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	_EV_WRITE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_combined_write_cb@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	-48(%rbp), %r8
	callq	_event_set
	leaq	-60(%rbp), %rdi
	movq	(%r14), %rax
	movl	4(%rax), %esi
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	%rdi, %r13
	leaq	-64(%rbp), %r8
	callq	_event_set
	leaq	-52(%rbp), %r12
	movq	(%r14), %rax
	movl	4(%rax), %esi
	movl	(%r15), %edx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	leaq	-56(%rbp), %r8
	callq	_event_set
	leaq	-68(%rbp), %rdi
	xorl	%esi, %esi
	callq	_event_add
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_tt_assert
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	callq	_event_add
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_tt_assert
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_event_add
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_tt_assert
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_event_add
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_tt_assert
	xorl	%eax, %eax
	callq	_event_dispatch
	cmpl	$8192, -72(%rbp)                ## imm = 0x2000
	jne	LBB0_3
## %bb.1:
	cmpl	$4096, -64(%rbp)                ## imm = 0x1000
	jne	LBB0_3
## %bb.2:
	movq	_test_ok@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_3:
	xorl	%eax, %eax
	callq	_cleanup_test
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Combined read/write: "

	.comm	_pair,8,3                       ## @pair
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_combined_read_cb,4,2           ## @combined_read_cb
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_combined_write_cb,4,2          ## @combined_write_cb
	.comm	_test_ok,4,2                    ## @test_ok
	.no_dead_strip	_test_combined
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_combined
_test_combined:                         ; @test_combined
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_setup_test
	add	x19, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x21, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x22, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	w8, #4096
	str	w8, [sp, #8]
	mov	w8, #8192
	str	w8, [sp]
	orr	x19, x19, #0x4
Lloh2:
	adrp	x23, _pair@GOTPAGE
Lloh3:
	ldr	x23, [x23, _pair@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w1, [x8]
Lloh4:
	adrp	x24, _EV_READ@GOTPAGE
Lloh5:
	ldr	x24, [x24, _EV_READ@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh6:
	adrp	x25, _combined_read_cb@GOTPAGE
Lloh7:
	ldr	x25, [x25, _combined_read_cb@GOTPAGEOFF]
	ldr	w3, [x25]
	add	x4, sp, #24
	mov	x0, x19
	bl	_event_set
	orr	x20, x20, #0x4
	ldr	x8, [x23]
	ldr	w1, [x8]
Lloh8:
	adrp	x26, _EV_WRITE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _EV_WRITE@GOTPAGEOFF]
	ldr	w2, [x26]
Lloh10:
	adrp	x27, _combined_write_cb@GOTPAGE
Lloh11:
	ldr	x27, [x27, _combined_write_cb@GOTPAGEOFF]
	ldr	w3, [x27]
	add	x4, sp, #8
	mov	x0, x20
	bl	_event_set
	orr	x21, x21, #0x4
	ldr	x8, [x23]
	ldr	w1, [x8, #4]
	ldr	w2, [x24]
	ldr	w3, [x25]
	add	x4, sp, #16
	mov	x0, x21
	bl	_event_set
	orr	x22, x22, #0x4
	ldr	x8, [x23]
	ldr	w1, [x8, #4]
	ldr	w2, [x26]
	ldr	w3, [x27]
	mov	x4, sp
	mov	x0, x22
	bl	_event_set
	mov	x0, x19
	mov	x1, #0
	bl	_event_add
	cmn	w0, #1
	cset	w0, ne
	bl	_tt_assert
	mov	x0, x20
	mov	x1, #0
	bl	_event_add
	cmp	w0, #0
	cset	w0, eq
	bl	_tt_assert
	mov	x0, x21
	mov	x1, #0
	bl	_event_add
	cmp	w0, #0
	cset	w0, eq
	bl	_tt_assert
	mov	x0, x22
	mov	x1, #0
	bl	_event_add
	cmp	w0, #0
	cset	w0, eq
	bl	_tt_assert
	bl	_event_dispatch
	ldr	w8, [sp, #24]
	cmp	w8, #2, lsl #12                 ; =8192
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [sp, #16]
	cmp	w8, #1, lsl #12                 ; =4096
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _test_ok@GOTPAGE
Lloh13:
	ldr	x8, [x8, _test_ok@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
LBB0_3:
	bl	_cleanup_test
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Combined read/write: "

	.comm	_pair,8,3                       ; @pair
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_combined_read_cb,4,2           ; @combined_read_cb
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_combined_write_cb,4,2          ; @combined_write_cb
	.comm	_test_ok,4,2                    ; @test_ok
	.no_dead_strip	_test_combined
.subsections_via_symbols
