	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_pair_transfer
_be_pair_transfer:                      ## @be_pair_transfer
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movl	$1, %esi
	callq	_evbuffer_unfreeze
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_evbuffer_unfreeze
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.1:
	movl	(%r15), %edi
	callq	_evbuffer_get_length
	movq	8(%r15), %rbx
	subq	%rax, %rbx
	jbe	LBB0_3
## %bb.2:
	movl	4(%r14), %edi
	movl	(%r15), %esi
	movq	%rbx, %rdx
	callq	_evbuffer_remove_buffer
	testq	%rbx, %rbx
	jne	LBB0_6
	jmp	LBB0_9
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_10
LBB0_4:
	movl	4(%r14), %edi
	callq	_evbuffer_get_length
	movq	%rax, %rbx
	movl	(%r15), %edi
	movl	4(%r14), %esi
	callq	_evbuffer_add_buffer
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	callq	_BEV_RESET_GENERIC_READ_TIMEOUT
	movl	4(%r15), %edi
	callq	_evbuffer_get_length
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	callq	_BEV_RESET_GENERIC_WRITE_TIMEOUT
	jmp	LBB0_9
LBB0_8:
	callq	_BEV_DEL_GENERIC_WRITE_TIMEOUT
LBB0_9:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_bufferevent_trigger_nolock_
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_bufferevent_trigger_nolock_
LBB0_10:
	movl	4(%r14), %edi
	movl	$1, %esi
	callq	_evbuffer_freeze
	movl	(%r15), %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_evbuffer_freeze                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.no_dead_strip	_be_pair_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_pair_transfer
_be_pair_transfer:                      ; @be_pair_transfer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	mov	w1, #1
	bl	_evbuffer_unfreeze
	ldr	w0, [x19]
	mov	w1, #0
	bl	_evbuffer_unfreeze
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w0, [x19]
	bl	_evbuffer_get_length
	ldr	x8, [x19, #8]
	subs	x21, x8, x0
	b.ls	LBB0_3
; %bb.2:
	ldr	w0, [x20, #4]
	ldr	w1, [x19]
	mov	x2, x21
	bl	_evbuffer_remove_buffer
	cbnz	x21, LBB0_5
	b	LBB0_8
LBB0_3:
	cbz	w22, LBB0_9
LBB0_4:
	ldr	w0, [x20, #4]
	bl	_evbuffer_get_length
	mov	x21, x0
	ldr	w0, [x19]
	ldr	w1, [x20, #4]
	bl	_evbuffer_add_buffer
	cbz	x21, LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_BEV_RESET_GENERIC_READ_TIMEOUT
	ldr	w0, [x19, #4]
	bl	_evbuffer_get_length
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_BEV_RESET_GENERIC_WRITE_TIMEOUT
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_BEV_DEL_GENERIC_WRITE_TIMEOUT
LBB0_8:
Lloh0:
	adrp	x8, _EV_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bufferevent_trigger_nolock_
Lloh3:
	adrp	x8, _EV_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EV_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_bufferevent_trigger_nolock_
LBB0_9:
	ldr	w0, [x20, #4]
	mov	w1, #1
	bl	_evbuffer_freeze
	ldr	w0, [x19]
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_evbuffer_freeze
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.no_dead_strip	_be_pair_transfer
.subsections_via_symbols
