	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_filter_unlink
_be_filter_unlink:                      ## @be_filter_unlink
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_upcast
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_EVUTIL_ASSERT
	movq	_BEV_OPT_CLOSE_ON_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rdi
	testl	%eax, 8(%rbx)
	je	LBB0_3
## %bb.1:
	callq	_BEV_UPCAST
	cmpl	$1, (%rax)
	jg	LBB0_2
## %bb.8:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_event_warnx                    ## TAILCALL
LBB0_3:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:
	movq	(%rdi), %rax
	movq	_be_filter_eventcb@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_bufferevent_setcb
	movq	(%rbx), %rdi
LBB0_6:
	movq	_BEV_SUSPEND_FILT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bufferevent_unsuspend_read_    ## TAILCALL
LBB0_2:
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bufferevent_free               ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ## @BEV_OPT_CLOSE_ON_FREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BEV_OPT_CLOSE_ON_FREE set on an bufferevent with too few references"

	.comm	_be_filter_eventcb,8,3          ## @be_filter_eventcb
	.comm	_BEV_SUSPEND_FILT_READ,4,2      ## @BEV_SUSPEND_FILT_READ
	.no_dead_strip	_be_filter_unlink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_filter_unlink
_be_filter_unlink:                      ; @be_filter_unlink
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_upcast
	mov	x19, x0
	bl	_EVUTIL_ASSERT
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _BEV_OPT_CLOSE_ON_FREE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BEV_OPT_CLOSE_ON_FREE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	x0, [x19]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	bl	_BEV_UPCAST
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_7
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_event_warnx
LBB0_3:
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _be_filter_eventcb@GOTPAGE
Lloh6:
	ldr	x9, [x9, _be_filter_eventcb@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_bufferevent_setcb
	ldr	x0, [x19]
LBB0_6:
Lloh8:
	adrp	x8, _BEV_SUSPEND_FILT_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BEV_SUSPEND_FILT_READ@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bufferevent_unsuspend_read_
LBB0_7:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bufferevent_free
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ; @BEV_OPT_CLOSE_ON_FREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BEV_OPT_CLOSE_ON_FREE set on an bufferevent with too few references"

	.comm	_be_filter_eventcb,8,3          ; @be_filter_eventcb
	.comm	_BEV_SUSPEND_FILT_READ,4,2      ; @BEV_SUSPEND_FILT_READ
	.no_dead_strip	_be_filter_unlink
.subsections_via_symbols
