	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_new                        ## -- Begin function BIO_new
	.p2align	4, 0x90
_BIO_new:                               ## @BIO_new
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$40, %edi
	callq	_OPENSSL_zalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, 32(%rax)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	movq	_CRYPTO_EX_INDEX_BIO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rbx, %r14
	addq	$24, %r14
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_CRYPTO_new_ex_data
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	xorl	%eax, %eax
	callq	_CRYPTO_THREAD_lock_new
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	cmpq	$0, (%r15)
	jne	LBB0_12
LBB0_6:
	movl	$1, 8(%rbx)
	jmp	LBB0_12
LBB0_7:
	movq	_BIO_F_BIO_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	jmp	LBB0_11
LBB0_8:
	movq	_BIO_F_BIO_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_CRYPTO_free_ex_data
	jmp	LBB0_10
LBB0_9:
	movq	_BIO_F_BIO_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_INIT_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	movl	(%r12), %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_CRYPTO_free_ex_data
	movq	16(%rbx), %rdi
	callq	_CRYPTO_THREAD_lock_free
LBB0_10:
	movq	%rbx, %rdi
	callq	_OPENSSL_free
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_F_BIO_NEW,4,2              ## @BIO_F_BIO_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_CRYPTO_EX_INDEX_BIO,4,2        ## @CRYPTO_EX_INDEX_BIO
	.comm	_ERR_R_INIT_FAIL,4,2            ## @ERR_R_INIT_FAIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_new                        ; -- Begin function BIO_new
	.p2align	2
_BIO_new:                               ; @BIO_new
	.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	x21, x0
	mov	w0, #40
	bl	_OPENSSL_zalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	str	x21, [x19, #32]
	movi.2s	v0, #1
	str	d0, [x19]
Lloh0:
	adrp	x22, _CRYPTO_EX_INDEX_BIO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CRYPTO_EX_INDEX_BIO@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x20, x19, #24
	mov	x1, x19
	mov	x2, x20
	bl	_CRYPTO_new_ex_data
	cbz	w0, LBB0_10
; %bb.2:
	bl	_CRYPTO_THREAD_lock_new
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_9
; %bb.5:
	ldr	x8, [x21]
	cbnz	x8, LBB0_11
LBB0_6:
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_7:
Lloh2:
	adrp	x8, _BIO_F_BIO_NEW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIO_F_BIO_NEW@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_BIOerr
	b	LBB0_11
LBB0_8:
Lloh8:
	adrp	x8, _BIO_F_BIO_NEW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIO_F_BIO_NEW@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_BIOerr
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x20
	bl	_CRYPTO_free_ex_data
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _BIO_F_BIO_NEW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BIO_F_BIO_NEW@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _ERR_R_INIT_FAIL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_R_INIT_FAIL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_BIOerr
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x20
	bl	_CRYPTO_free_ex_data
	ldr	x0, [x19, #16]
	bl	_CRYPTO_THREAD_lock_free
LBB0_10:
	mov	x0, x19
	bl	_OPENSSL_free
	mov	x19, #0
LBB0_11:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_F_BIO_NEW,4,2              ; @BIO_F_BIO_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_CRYPTO_EX_INDEX_BIO,4,2        ; @CRYPTO_EX_INDEX_BIO
	.comm	_ERR_R_INIT_FAIL,4,2            ; @ERR_R_INIT_FAIL
.subsections_via_symbols
