	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_filter_readcb
_be_filter_readcb:                      ## @be_filter_readcb
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_downcast
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_BEV_UPCAST
	movq	%rax, %rbx
	movl	$0, -28(%rbp)
	movq	%r15, %rdi
	callq	_BEV_LOCK
	movq	(%rbx), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_EVUTIL_ASSERT
	cmpq	$0, (%rbx)
	jle	LBB0_6
## %bb.1:
	cmpq	$0, (%r14)
	jne	LBB0_2
## %bb.3:
	movq	_BEV_NORMAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_BEV_FINISHED@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_be_filter_process_input
	cmpl	$0, -28(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_bufferevent_trigger_nolock_
LBB0_6:
	movq	%r15, %rdi
	callq	_BEV_UNLOCK
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_FINISHED,4,2               ## @BEV_FINISHED
	.comm	_BEV_NORMAL,4,2                 ## @BEV_NORMAL
	.comm	_EV_READ,4,2                    ## @EV_READ
	.no_dead_strip	_be_filter_readcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_filter_readcb
_be_filter_readcb:                      ; @be_filter_readcb
	.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
	mov	x20, x1
	mov	x0, x1
	bl	_downcast
	mov	x19, x0
	bl	_BEV_UPCAST
	mov	x21, x0
	str	wzr, [sp, #12]
	mov	x0, x19
	bl	_BEV_LOCK
	ldr	x8, [x21]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_EVUTIL_ASSERT
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _BEV_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BEV_NORMAL@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	adrp	x10, _BEV_FINISHED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BEV_FINISHED@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_be_filter_process_input
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _EV_READ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bufferevent_trigger_nolock_
LBB0_3:
	mov	x0, x19
	bl	_BEV_UNLOCK
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_FINISHED,4,2               ; @BEV_FINISHED
	.comm	_BEV_NORMAL,4,2                 ; @BEV_NORMAL
	.comm	_EV_READ,4,2                    ; @EV_READ
	.no_dead_strip	_be_filter_readcb
.subsections_via_symbols
