	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bufferevent_run_deferred_callbacks_locked
_bufferevent_run_deferred_callbacks_locked: ## @bufferevent_run_deferred_callbacks_locked
	.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, %rbx
	leaq	24(%rsi), %r14
	movq	%r14, %rdi
	callq	_BEV_LOCK
	movl	(%rbx), %edx
	movq	_BEV_EVENT_CONNECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%edx, %esi
	je	LBB0_3
## %bb.1:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	notl	%esi
	andl	%esi, %edx
	movl	%edx, (%rbx)
	movswl	(%rcx), %esi
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	callq	*%rax
LBB0_3:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.4:
	movq	48(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	$0, 16(%rbx)
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	*%rax
LBB0_6:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.7:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	$0, 8(%rbx)
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	*%rax
LBB0_9:
	movl	(%rbx), %r15d
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.10:
	cmpq	$0, 32(%rbx)
	je	LBB0_12
## %bb.11:
	movl	4(%rbx), %edi
	movq	$0, (%rbx)
	callq	_EVUTIL_SET_SOCKET_ERROR
	movl	24(%rbx), %edx
	movswl	%r15w, %esi
	movq	%r14, %rdi
	callq	*32(%rbx)
LBB0_12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bufferevent_decref_and_unlock_ ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_EVENT_CONNECTED,4,2        ## @BEV_EVENT_CONNECTED
	.no_dead_strip	_bufferevent_run_deferred_callbacks_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bufferevent_run_deferred_callbacks_locked
_bufferevent_run_deferred_callbacks_locked: ; @bufferevent_run_deferred_callbacks_locked
	.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	x20, x1
	add	x19, x1, #24
	mov	x0, x19
	bl	_BEV_LOCK
	ldr	w10, [x20]
Lloh0:
	adrp	x9, _BEV_EVENT_CONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BEV_EVENT_CONNECTED@GOTPAGEOFF]
	ldr	w11, [x9]
	tst	w11, w10
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_3
; %bb.2:
	bic	w10, w10, w11
	str	w10, [x20]
	ldrsh	w1, [x9]
	ldr	w2, [x20, #24]
	mov	x0, x19
	blr	x8
LBB0_3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_6
; %bb.5:
	str	xzr, [x20, #16]
	ldr	w1, [x20, #24]
	mov	x0, x19
	blr	x8
LBB0_6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_9
; %bb.8:
	str	xzr, [x20, #8]
	ldr	w1, [x20, #24]
	mov	x0, x19
	blr	x8
LBB0_9:
	ldr	w21, [x20]
	cbz	w21, LBB0_12
; %bb.10:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w0, [x20, #4]
	str	xzr, [x20]
	bl	_EVUTIL_SET_SOCKET_ERROR
	ldr	x8, [x20, #32]
	ldr	w2, [x20, #24]
	sxth	w1, w21
	mov	x0, x19
	blr	x8
LBB0_12:
	mov	x0, x19
	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	_bufferevent_decref_and_unlock_
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_EVENT_CONNECTED,4,2        ; @BEV_EVENT_CONNECTED
	.no_dead_strip	_bufferevent_run_deferred_callbacks_locked
.subsections_via_symbols
