	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_openssl_destruct
_be_openssl_destruct:                   ## @be_openssl_destruct
	.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	_BEV_OPT_CLOSE_ON_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_6
## %bb.1:
	cmpl	$0, 4(%rbx)
	jne	LBB0_5
## %bb.2:
	movl	(%rbx), %edi
	callq	_SSL_get_wbio
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_BIO_get_fd
	testq	%rax, %rax
	js	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_evutil_closesocket
LBB0_5:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_SSL_free                       ## TAILCALL
LBB0_6:
	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
	.no_dead_strip	_be_openssl_destruct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_openssl_destruct
_be_openssl_destruct:                   ; @be_openssl_destruct
	.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
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _BEV_OPT_CLOSE_ON_FREE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BEV_OPT_CLOSE_ON_FREE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_5
; %bb.2:
	ldr	w0, [x19]
	bl	_SSL_get_wbio
	cbz	x0, LBB0_5
; %bb.3:
	mov	x1, #0
	bl	_BIO_get_fd
	tbnz	x0, #63, LBB0_5
; %bb.4:
	bl	_evutil_closesocket
LBB0_5:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SSL_free
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BEV_OPT_CLOSE_ON_FREE,4,2      ; @BEV_OPT_CLOSE_ON_FREE
	.no_dead_strip	_be_openssl_destruct
.subsections_via_symbols
