	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_dup_chain                  ## -- Begin function BIO_dup_chain
	.p2align	4, 0x90
_BIO_dup_chain:                         ## @BIO_dup_chain
	.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
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	xorl	%r15d, %r15d
	movq	_CRYPTO_EX_INDEX_BIO@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r12), %r12
	movq	%rbx, %r15
	movq	%rax, %r14
	testq	%r12, %r12
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r12), %edi
	callq	_BIO_new
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movl	28(%r12), %eax
	movl	%eax, 28(%rbx)
	movl	24(%r12), %eax
	movl	%eax, 24(%rbx)
	movl	20(%r12), %eax
	movl	%eax, 20(%rbx)
	movups	4(%r12), %xmm0
	movups	%xmm0, 4(%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_BIO_dup_state
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_CRYPTO_dup_ex_data
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_BIO_push
	movq	%r14, %rax
	jmp	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_BIO_free
LBB0_9:
	movq	%r14, %rdi
	callq	_BIO_free_all
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_dup_chain                  ; -- Begin function BIO_dup_chain
	.p2align	2
_BIO_dup_chain:                         ; @BIO_dup_chain
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	mov	x20, #0
Lloh0:
	adrp	x23, _CRYPTO_EX_INDEX_BIO@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CRYPTO_EX_INDEX_BIO@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [x19, #40]
	mov	x21, x22
	mov	x20, x0
	cbz	x19, LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #32]
	bl	_BIO_new
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	w8, [x19, #28]
	str	w8, [x0, #28]
	ldur	d0, [x19, #20]
	stur	d0, [x0, #20]
	ldur	q0, [x19, #4]
	stur	q0, [x0, #4]
	mov	x0, x19
	mov	x1, x22
	bl	_BIO_dup_state
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23]
	mov	x1, x22
	mov	x2, x19
	bl	_CRYPTO_dup_ex_data
	cbz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	cbz	x20, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_BIO_push
	mov	x0, x20
	b	LBB0_2
LBB0_8:
	mov	x0, x22
	bl	_BIO_free
LBB0_9:
	mov	x0, x20
	bl	_BIO_free_all
	mov	x0, #0
LBB0_10:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_EX_INDEX_BIO,4,2        ; @CRYPTO_EX_INDEX_BIO
.subsections_via_symbols
