	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_free                       ## -- Begin function BIO_free
	.p2align	4, 0x90
_BIO_free:                              ## @BIO_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	addq	$32, %rdi
	movl	(%r14), %edx
	leaq	-20(%rbp), %rsi
	callq	_CRYPTO_DOWN_REF
	testq	%rax, %rax
	jle	LBB0_10
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_REF_PRINT_COUNT
	movl	$1, %ebx
	cmpl	$0, -20(%rbp)
	jg	LBB0_10
## %bb.3:
	setne	%al
	movzbl	%al, %edi
	callq	_REF_ASSERT_ISNT
	cmpq	$0, 24(%r14)
	jne	LBB0_5
## %bb.4:
	cmpq	$0, 16(%r14)
	je	LBB0_6
LBB0_5:
	movq	_BIO_CB_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$1
	callq	_bio_call_callback
	addq	$16, %rsp
	movq	%rax, %rbx
	movl	%ebx, -20(%rbp)
	testl	%ebx, %ebx
	jle	LBB0_10
LBB0_6:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	*%rax
LBB0_9:
	movq	_CRYPTO_EX_INDEX_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %rdx
	movq	%r14, %rsi
	callq	_CRYPTO_free_ex_data
	movl	(%r14), %edi
	callq	_CRYPTO_THREAD_lock_free
	movq	%r14, %rdi
	callq	_OPENSSL_free
	movl	$1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BIO"

	.comm	_BIO_CB_FREE,4,2                ## @BIO_CB_FREE
	.comm	_CRYPTO_EX_INDEX_BIO,4,2        ## @CRYPTO_EX_INDEX_BIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_free                       ; -- Begin function BIO_free
	.p2align	2
_BIO_free:                              ; @BIO_free
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	w2, [x0], #32
	add	x1, sp, #12
	bl	_CRYPTO_DOWN_REF
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_REF_PRINT_COUNT
	ldr	w8, [sp, #12]
	cmp	w8, #0
	b.gt	LBB0_10
; %bb.3:
	cset	w0, ne
	bl	_REF_ASSERT_ISNT
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _BIO_CB_FREE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIO_CB_FREE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #1
	mov	x7, #0
	bl	_bio_call_callback
	str	w0, [sp, #12]
	cmp	w0, #1
	b.lt	LBB0_12
LBB0_6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	blr	x8
LBB0_9:
Lloh5:
	adrp	x8, _CRYPTO_EX_INDEX_BIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CRYPTO_EX_INDEX_BIO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x2, x19, #4
	mov	x1, x19
	bl	_CRYPTO_free_ex_data
	ldr	w0, [x19]
	bl	_CRYPTO_THREAD_lock_free
	mov	x0, x19
	bl	_OPENSSL_free
LBB0_10:
	mov	w0, #1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BIO"

	.comm	_BIO_CB_FREE,4,2                ; @BIO_CB_FREE
	.comm	_CRYPTO_EX_INDEX_BIO,4,2        ; @CRYPTO_EX_INDEX_BIO
.subsections_via_symbols
