	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_bufferevent_pair_flush
_test_bufferevent_pair_flush:           ## @test_bufferevent_pair_flush
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$0, -68(%rbp)
	movl	(%rdi), %edi
	leaq	-64(%rbp), %rdx
	xorl	%esi, %esi
	callq	_bufferevent_pair_new
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_tt_assert
	movq	-64(%rbp), %rbx
	movq	-56(%rbp), %r14
	movq	_EV_WRITE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_bufferevent_enable
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_tt_assert
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bufferevent_enable
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_tt_assert
	movq	_pair_flush_eventcb@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-68(%rbp), %r8
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_bufferevent_setcb
	movl	(%r12), %esi
	movq	_BEV_FINISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bufferevent_flush
	movl	(%r15), %edi
	movq	_EVLOOP_ONCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_event_base_loop
	movq	_BEV_EVENT_READING@GOTPCREL(%rip), %rax
	movq	_BEV_EVENT_EOF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	cmpl	%ecx, -68(%rbp)
	sete	%dil
	callq	_tt_assert
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_bufferevent_free
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_bufferevent_free
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_pair_flush_eventcb,4,2         ## @pair_flush_eventcb
	.comm	_BEV_FINISHED,4,2               ## @BEV_FINISHED
	.comm	_EVLOOP_ONCE,4,2                ## @EVLOOP_ONCE
	.comm	_BEV_EVENT_READING,4,2          ## @BEV_EVENT_READING
	.comm	_BEV_EVENT_EOF,4,2              ## @BEV_EVENT_EOF
	.no_dead_strip	_test_bufferevent_pair_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_bufferevent_pair_flush
_test_bufferevent_pair_flush:           ; @test_bufferevent_pair_flush
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	wzr, [sp, #4]
	ldr	w0, [x0]
	add	x2, sp, #8
	mov	w1, #0
	bl	_bufferevent_pair_new
	cmp	x0, #0
	cset	w0, eq
	bl	_tt_assert
	ldp	x20, x19, [sp, #8]
Lloh3:
	adrp	x22, _EV_WRITE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EV_WRITE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_bufferevent_enable
	cmp	x0, #0
	cset	w0, eq
	bl	_tt_assert
Lloh5:
	adrp	x8, _EV_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bufferevent_enable
	cmp	x0, #0
	cset	w0, eq
	bl	_tt_assert
Lloh8:
	adrp	x8, _pair_flush_eventcb@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pair_flush_eventcb@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x4, sp, #4
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_bufferevent_setcb
	ldr	w1, [x22]
Lloh11:
	adrp	x8, _BEV_FINISHED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BEV_FINISHED@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_bufferevent_flush
	ldr	w0, [x21]
Lloh14:
	adrp	x8, _EVLOOP_ONCE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EVLOOP_ONCE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_event_base_loop
	ldr	w8, [sp, #4]
Lloh17:
	adrp	x9, _BEV_EVENT_READING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BEV_EVENT_READING@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _BEV_EVENT_EOF@GOTPAGE
Lloh21:
	ldr	x10, [x10, _BEV_EVENT_EOF@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w8, w9
	cset	w0, eq
	bl	_tt_assert
	cbz	x20, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_bufferevent_free
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_bufferevent_free
LBB0_4:
	ldr	x8, [sp, #24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_pair_flush_eventcb,4,2         ; @pair_flush_eventcb
	.comm	_BEV_FINISHED,4,2               ; @BEV_FINISHED
	.comm	_EVLOOP_ONCE,4,2                ; @EVLOOP_ONCE
	.comm	_BEV_EVENT_READING,4,2          ; @BEV_EVENT_READING
	.comm	_BEV_EVENT_EOF,4,2              ; @BEV_EVENT_EOF
	.no_dead_strip	_test_bufferevent_pair_flush
.subsections_via_symbols
