	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_filter_process_input
_be_filter_process_input:               ## @be_filter_process_input
	.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
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_downcast
	movq	%rax, %r15
	movq	_BEV_NORMAL@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_be_readbuf_full
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_BEV_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, %edx
	movq	_BEV_NORMAL@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %edi
	callq	_evbuffer_get_length
	subl	%eax, %ebx
	movl	%ebx, %edx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	movl	8(%r14), %r8d
	movl	%r12d, %ecx
	callq	*(%r14)
	movl	%eax, %r13d
	movq	_BEV_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	_BEV_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, %r13d
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_evbuffer_get_length
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_be_readbuf_full
	testq	%rax, %rax
	je	LBB0_4
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_BEV_RESET_GENERIC_READ_TIMEOUT
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_NORMAL,4,2                 ## @BEV_NORMAL
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_BEV_OK,4,2                     ## @BEV_OK
	.no_dead_strip	_be_filter_process_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_filter_process_input
_be_filter_process_input:               ; @be_filter_process_input
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_downcast
	mov	x20, x0
Lloh0:
	adrp	x24, _BEV_NORMAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BEV_NORMAL@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _EV_READ@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EV_READ@GOTPAGEOFF]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x20]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	bl	_be_readbuf_full
	cbz	x0, LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _BEV_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BEV_OK@GOTPAGEOFF]
Lloh6:
	ldr	w23, [x8]
	b	LBB0_17
LBB0_4:
Lloh7:
	adrp	x26, _BEV_OK@GOTPAGE
Lloh8:
	ldr	x26, [x26, _BEV_OK@GOTPAGEOFF]
	mov	w27, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w23, [x20, #8]
	cbz	w23, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #4]
	bl	_evbuffer_get_length
	sub	w2, w23, w0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w2, #-1
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x22, #16]
	ldr	w0, [x9]
	ldr	w1, [x20, #4]
	ldr	w4, [x22, #8]
	mov	x3, x21
	blr	x8
	mov	x23, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w27, [x19]
	ldr	w8, [x26]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, w8
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #16]
	ldr	w0, [x8]
	bl	_evbuffer_get_length
	cbz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_be_readbuf_full
	cbz	x0, LBB0_5
LBB0_15:
	ldr	w8, [x19]
	cbz	w8, LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_BEV_RESET_GENERIC_READ_TIMEOUT
LBB0_17:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_NORMAL,4,2                 ; @BEV_NORMAL
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_BEV_OK,4,2                     ; @BEV_OK
	.no_dead_strip	_be_filter_process_input
.subsections_via_symbols
