	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_socket_setfd
_be_socket_setfd:                       ## @be_socket_setfd
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_BEV_LOCK
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpq	_bufferevent_ops_socket@GOTPCREL(%rip), %rax
	sete	%dil
	callq	_EVUTIL_ASSERT
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	callq	_event_del
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_event_del
	movl	4(%rbx), %esi
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_PERSIST@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	movq	_EV_FINALIZE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_bufferevent_readcb@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	%r14d, %edx
	movq	%rbx, %r9
	callq	_event_assign
	movl	4(%rbx), %esi
	movq	_EV_WRITE@GOTPCREL(%rip), %rax
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	movq	_EV_FINALIZE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_bufferevent_writecb@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	%r14d, %edx
	movq	%rbx, %r9
	callq	_event_assign
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.1:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_bufferevent_enable
LBB0_2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BEV_UNLOCK                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bufferevent_ops_socket,4,2     ## @bufferevent_ops_socket
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_PERSIST,4,2                 ## @EV_PERSIST
	.comm	_EV_FINALIZE,4,2                ## @EV_FINALIZE
	.comm	_bufferevent_readcb,4,2         ## @bufferevent_readcb
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_bufferevent_writecb,4,2        ## @bufferevent_writecb
	.no_dead_strip	_be_socket_setfd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_socket_setfd
_be_socket_setfd:                       ; @be_socket_setfd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_BEV_LOCK
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _bufferevent_ops_socket@GOTPAGE
Lloh1:
	ldr	x9, [x9, _bufferevent_ops_socket@GOTPAGEOFF]
	cmp	x8, x9
	cset	w0, eq
	bl	_EVUTIL_ASSERT
	add	x21, x19, #12
	mov	x0, x21
	bl	_event_del
	add	x22, x19, #8
	mov	x0, x22
	bl	_event_del
	ldr	w1, [x19, #4]
Lloh2:
	adrp	x8, _EV_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x23, _EV_PERSIST@GOTPAGE
Lloh6:
	ldr	x23, [x23, _EV_PERSIST@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh7:
	adrp	x24, _EV_FINALIZE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _EV_FINALIZE@GOTPAGEOFF]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w3, w8, w9
Lloh9:
	adrp	x8, _bufferevent_readcb@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bufferevent_readcb@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x2, x20
	mov	x5, x19
	bl	_event_assign
	ldr	w1, [x19, #4]
Lloh12:
	adrp	x8, _EV_WRITE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EV_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w3, w8, w9
Lloh15:
	adrp	x8, _bufferevent_writecb@GOTPAGE
Lloh16:
	ldr	x8, [x8, _bufferevent_writecb@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x2, x20
	mov	x5, x19
	bl	_event_assign
	tbnz	w20, #31, LBB0_2
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_bufferevent_enable
LBB0_2:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_BEV_UNLOCK
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bufferevent_ops_socket,4,2     ; @bufferevent_ops_socket
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_PERSIST,4,2                 ; @EV_PERSIST
	.comm	_EV_FINALIZE,4,2                ; @EV_FINALIZE
	.comm	_bufferevent_readcb,4,2         ; @bufferevent_readcb
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_bufferevent_writecb,4,2        ; @bufferevent_writecb
	.no_dead_strip	_be_socket_setfd
.subsections_via_symbols
