	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_pair_enable
_be_pair_enable:                        ## @be_pair_enable
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_upcast
	movq	%rax, %r15
	movq	(%rax), %r14
	movq	%r12, %rdi
	callq	_incref_and_lock
	movq	_EV_READ@GOTPCREL(%rip), %r13
	testw	%bx, (%r13)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_BEV_RESET_GENERIC_READ_TIMEOUT
LBB0_2:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_5
## %bb.3:
	movl	(%r12), %edi
	callq	_evbuffer_get_length
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_BEV_RESET_GENERIC_WRITE_TIMEOUT
LBB0_5:
	testw	%bx, (%r13)
	je	LBB0_9
## %bb.6:
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_be_pair_wants_to_talk
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_downcast
	movq	%rax, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_be_pair_transfer
LBB0_9:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	testw	%bx, (%rax)
	je	LBB0_13
## %bb.10:
	testq	%r14, %r14
	je	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_be_pair_wants_to_talk
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_downcast
	movq	%r12, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_be_pair_transfer
LBB0_13:
	movq	%r12, %rdi
	callq	_decref_and_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,2,1                    ## @EV_READ
	.comm	_EV_WRITE,2,1                   ## @EV_WRITE
	.no_dead_strip	_be_pair_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_pair_enable
_be_pair_enable:                        ; @be_pair_enable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x19, x0
	and	w23, w1, #0xffff
	bl	_upcast
	mov	x21, x0
	ldr	x20, [x0]
	mov	x0, x19
	bl	_incref_and_lock
Lloh0:
	adrp	x24, _EV_READ@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EV_READ@GOTPAGEOFF]
	ldrh	w8, [x24]
	and	w8, w8, w22
	tst	w8, #0xffff
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_BEV_RESET_GENERIC_READ_TIMEOUT
LBB0_2:
Lloh2:
	adrp	x22, _EV_WRITE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _EV_WRITE@GOTPAGEOFF]
	ldrh	w8, [x22]
	tst	w8, w23
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x19]
	bl	_evbuffer_get_length
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_BEV_RESET_GENERIC_WRITE_TIMEOUT
LBB0_5:
	ldrh	w8, [x24]
	and	w8, w8, w23
	cmp	w8, #0
	ccmp	x20, #0, #4, ne
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_be_pair_wants_to_talk
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_downcast
	mov	x1, x19
	mov	w2, #0
	bl	_be_pair_transfer
LBB0_8:
	ldrh	w8, [x22]
	and	w8, w8, w23
	cmp	w8, #0
	ccmp	x20, #0, #4, ne
	b.eq	LBB0_11
; %bb.9:
	mov	x0, x21
	mov	x1, x20
	bl	_be_pair_wants_to_talk
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_downcast
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_be_pair_transfer
LBB0_11:
	mov	x0, x19
	bl	_decref_and_unlock
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,2,1                    ; @EV_READ
	.comm	_EV_WRITE,2,1                   ; @EV_WRITE
	.no_dead_strip	_be_pair_enable
.subsections_via_symbols
