	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_filter_process_output
_be_filter_process_output:              ## @be_filter_process_output
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_downcast
	movq	%rax, %r15
	movq	_BEV_NORMAL@GOTPCREL(%rip), %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_be_underlying_writebuf_full
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	4(%r15), %edi
	callq	_evbuffer_get_length
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movl	4(%r15), %edi
	movl	8(%r13), %esi
	movq	_EVBUFFER_CB_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_evbuffer_cb_clear_flags
	xorl	%r14d, %r14d
	movq	_BEV_OK@GOTPCREL(%rip), %rbx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r15
	movl	$-1, %r12d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	_BEV_NORMAL@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r13), %rax
	movl	4(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %edi
	callq	_evbuffer_get_length
	subl	%eax, %ebx
	movl	%ebx, %r12d
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rbx
	movq	%r13, %rdi
	callq	_downcast
	movl	4(%rax), %edi
	movq	16(%r13), %rax
	movl	(%rax), %esi
	movl	12(%r13), %r8d
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	*%rbx
	movl	%eax, %r12d
	movq	%r15, %rbx
	movl	(%r15), %eax
	cmpl	%eax, %r12d
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%rbx), %eax
	movl	$1, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %r12d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r15), %edi
	callq	_evbuffer_get_length
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_be_underlying_writebuf_full
	testq	%rax, %rax
	je	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_bufferevent_trigger_nolock_
	cmpl	(%rbx), %r12d
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r15), %edi
	callq	_evbuffer_get_length
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_be_underlying_writebuf_full
	movl	$0, %r14d
	testq	%rax, %rax
	je	LBB0_6
LBB0_20:
	movl	4(%r15), %edi
	movl	8(%r13), %esi
	movq	_EVBUFFER_CB_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_evbuffer_cb_set_flags
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_22
## %bb.21:
	movq	%r15, %rdi
	callq	_BEV_RESET_GENERIC_WRITE_TIMEOUT
	jmp	LBB0_22
LBB0_4:
	movq	_BEV_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_22:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_OK,4,2                     ## @BEV_OK
	.comm	_BEV_NORMAL,4,2                 ## @BEV_NORMAL
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_EVBUFFER_CB_ENABLED,4,2        ## @EVBUFFER_CB_ENABLED
	.no_dead_strip	_be_filter_process_output
.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_output
_be_filter_process_output:              ; @be_filter_process_output
	.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	x22, x1
	mov	x21, 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_WRITE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _EV_WRITE@GOTPAGEOFF]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x20]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	bl	_be_underlying_writebuf_full
	cbnz	x0, LBB0_22
; %bb.3:
	ldr	w0, [x20, #4]
	bl	_evbuffer_get_length
	cbz	w0, LBB0_22
LBB0_4:
	ldr	w0, [x20, #4]
	ldr	w1, [x21, #8]
Lloh4:
	adrp	x8, _EVBUFFER_CB_ENABLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EVBUFFER_CB_ENABLED@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_evbuffer_cb_clear_flags
	mov	w28, #0
Lloh7:
	adrp	x27, _BEV_OK@GOTPAGE
Lloh8:
	ldr	x27, [x27, _BEV_OK@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	w8, w22
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #16]
	ldr	w23, [x8, #4]
	cbz	w23, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x8]
	bl	_evbuffer_get_length
	sub	w23, w23, w0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w23, #-1
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x26, [x21]
	mov	x0, x21
	bl	_downcast
	ldr	w0, [x0, #4]
	ldr	x8, [x21, #16]
	ldr	w1, [x8]
	ldr	w4, [x21, #12]
	mov	x2, x23
	mov	x3, x22
	blr	x26
	mov	x23, x0
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w28, #1
	str	w28, [x19]
	ldr	w8, [x27]
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	w0, [x20, #4]
	bl	_evbuffer_get_length
	cbz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_be_underlying_writebuf_full
	cbz	x0, LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w28, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	mov	w2, #0
	bl	_bufferevent_trigger_nolock_
	ldr	w8, [x27]
	cmp	w23, w8
	b.ne	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20, #4]
	bl	_evbuffer_get_length
	cbz	w0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_be_underlying_writebuf_full
	mov	w28, #0
	cbz	x0, LBB0_5
LBB0_20:
	ldr	w0, [x20, #4]
	ldr	w1, [x21, #8]
Lloh9:
	adrp	x8, _EVBUFFER_CB_ENABLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EVBUFFER_CB_ENABLED@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_evbuffer_cb_set_flags
	ldr	w8, [x19]
	cbz	w8, LBB0_23
; %bb.21:
	mov	x0, x20
	bl	_BEV_RESET_GENERIC_WRITE_TIMEOUT
	b	LBB0_23
LBB0_22:
Lloh12:
	adrp	x8, _BEV_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BEV_OK@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
LBB0_23:
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_OK,4,2                     ; @BEV_OK
	.comm	_BEV_NORMAL,4,2                 ; @BEV_NORMAL
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_EVBUFFER_CB_ENABLED,4,2        ; @EVBUFFER_CB_ENABLED
	.no_dead_strip	_be_filter_process_output
.subsections_via_symbols
