	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_openssl_eventcb
_be_openssl_eventcb:                    ## @be_openssl_eventcb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BEV_EVENT_EOF@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	testw	%si, %ax
	je	LBB0_4
## %bb.1:
	cmpq	$0, 8(%rdx)
	jne	LBB0_3
## %bb.2:
	movq	_BEV_EVENT_ERROR@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
LBB0_3:
	movl	%eax, %esi
	jmp	LBB0_6
LBB0_4:
	movq	_BEV_EVENT_TIMEOUT@GOTPCREL(%rip), %rax
	testw	%si, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_BEV_EVENT_ERROR@GOTPCREL(%rip), %rax
	testw	%si, (%rax)
	je	LBB0_7
LBB0_6:
	testw	%si, %si
	je	LBB0_7
## %bb.8:
	movswl	%si, %esi
	movq	%rdx, %rdi
	xorl	%edx, %edx
	popq	%rbp
	jmp	_bufferevent_run_eventcb_       ## TAILCALL
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BEV_EVENT_EOF,2,1              ## @BEV_EVENT_EOF
	.comm	_BEV_EVENT_ERROR,2,1            ## @BEV_EVENT_ERROR
	.comm	_BEV_EVENT_TIMEOUT,2,1          ## @BEV_EVENT_TIMEOUT
	.comm	_BEV_EVENT_CONNECTED,2,1        ## @BEV_EVENT_CONNECTED
	.no_dead_strip	_be_openssl_eventcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_openssl_eventcb
_be_openssl_eventcb:                    ; @be_openssl_eventcb
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BEV_EVENT_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BEV_EVENT_EOF@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x2, #8]
Lloh2:
	adrp	x10, _BEV_EVENT_ERROR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BEV_EVENT_ERROR@GOTPAGEOFF]
	ldrh	w10, [x10]
	cmp	x9, #0
	csel	w1, w10, w8, eq
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x8, _BEV_EVENT_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BEV_EVENT_TIMEOUT@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w1, w8
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _BEV_EVENT_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BEV_EVENT_ERROR@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w1, w8
	b.eq	LBB0_6
LBB0_4:
	tst	w1, #0xffff
	b.eq	LBB0_6
; %bb.5:
	sxth	w1, w1
	mov	x0, x2
	mov	w2, #0
	b	_bufferevent_run_eventcb_
LBB0_6:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_EVENT_EOF,2,1              ; @BEV_EVENT_EOF
	.comm	_BEV_EVENT_ERROR,2,1            ; @BEV_EVENT_ERROR
	.comm	_BEV_EVENT_TIMEOUT,2,1          ; @BEV_EVENT_TIMEOUT
	.comm	_BEV_EVENT_CONNECTED,2,1        ; @BEV_EVENT_CONNECTED
	.no_dead_strip	_be_openssl_eventcb
.subsections_via_symbols
