	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_sk_deep_copy           ## -- Begin function OPENSSL_sk_deep_copy
	.p2align	4, 0x90
_OPENSSL_sk_deep_copy:                  ## @OPENSSL_sk_deep_copy
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$24, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	16(%r12), %rax
	movq	%rax, 16(%r13)
	movups	(%r12), %xmm0
	movups	%xmm0, (%r13)
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_min_nodes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, %rax
	cmovgq	%rax, %rdi
	movl	%edi, 8(%r13)
	shll	$3, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_OPENSSL_zalloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:
	movq	(%r13), %rax
	testq	%rax, %rax
	jle	LBB0_18
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jle	LBB0_18
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	callq	*%r15
	movq	16(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rax
	jmp	LBB0_10
LBB0_1:
	movq	_CRYPTO_F_OPENSSL_SK_DEEP_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CRYPTOerr
	jmp	LBB0_17
LBB0_3:
	movq	$0, 16(%r13)
	movl	$0, 8(%r13)
	jmp	LBB0_18
LBB0_19:
	movq	%r13, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_17
LBB0_11:
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.12:
	movl	%ebx, %ebx
	decq	%rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	decq	%rbx
	leal	2(%rbx), %eax
	cmpl	$1, %eax
	jle	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	callq	*%r14
	jmp	LBB0_15
LBB0_16:
	movq	%r13, %rdi
	callq	_OPENSSL_sk_free
LBB0_17:
	xorl	%r13d, %r13d
LBB0_18:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_F_OPENSSL_SK_DEEP_COPY,4,2 ## @CRYPTO_F_OPENSSL_SK_DEEP_COPY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_min_nodes,8,3                  ## @min_nodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_sk_deep_copy           ; -- Begin function OPENSSL_sk_deep_copy
	.p2align	2
_OPENSSL_sk_deep_copy:                  ; @OPENSSL_sk_deep_copy
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w0, #24
	bl	_OPENSSL_malloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	ldr	q0, [x22]
	ldr	x8, [x22, #16]
	str	x8, [x19, #16]
	str	q0, [x19]
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.2:
Lloh0:
	adrp	x9, _min_nodes@GOTPAGE
Lloh1:
	ldr	x9, [x9, _min_nodes@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x8, x9, gt
	str	w8, [x19, #8]
	lsl	w0, w8, #3
	bl	_OPENSSL_zalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_11
; %bb.3:
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_19
; %bb.4:
	mov	x23, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	cmp	x8, x23
	b.le	LBB0_19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #16]
	ldr	x0, [x9, x23, lsl #3]
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	blr	x21
	ldr	x8, [x19, #16]
	str	x0, [x8, x23, lsl #3]
	cbz	x0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	b	LBB0_5
LBB0_9:
Lloh3:
	adrp	x8, _CRYPTO_F_OPENSSL_SK_DEEP_COPY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPTO_F_OPENSSL_SK_DEEP_COPY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_CRYPTOerr
	b	LBB0_19
LBB0_10:
	str	xzr, [x19, #16]
	str	wzr, [x19, #8]
	b	LBB0_19
LBB0_11:
	mov	x0, x19
	bl	_OPENSSL_free
	b	LBB0_18
LBB0_12:
	cbz	w23, LBB0_17
; %bb.13:
	and	x8, x23, #0xffffffff
	sub	x21, x8, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	sub	x21, x21, #1
	add	w8, w21, #2
	cmp	w8, #1
	b.le	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, w21, uxtw #3]
	cbz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	blr	x20
	b	LBB0_14
LBB0_17:
	mov	x0, x19
	bl	_OPENSSL_sk_free
LBB0_18:
	mov	x19, #0
LBB0_19:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_F_OPENSSL_SK_DEEP_COPY,4,2 ; @CRYPTO_F_OPENSSL_SK_DEEP_COPY
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_min_nodes,8,3                  ; @min_nodes
.subsections_via_symbols
