	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_sk_dup                 ## -- Begin function OPENSSL_sk_dup
	.p2align	4, 0x90
_OPENSSL_sk_dup:                        ## @OPENSSL_sk_dup
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$16, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movups	(%r14), %xmm0
	movups	%xmm0, (%rax)
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.4:
	movl	4(%r14), %edi
	shll	$2, %edi
	callq	_OPENSSL_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	shll	$3, %edx
	movq	%rax, %rdi
	callq	_memcpy
	jmp	LBB0_8
LBB0_1:
	movq	_CRYPTO_F_OPENSSL_SK_DUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CRYPTOerr
	jmp	LBB0_7
LBB0_3:
	movq	$0, 8(%rbx)
	movl	$0, 4(%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_OPENSSL_sk_free
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_F_OPENSSL_SK_DUP,4,2    ## @CRYPTO_F_OPENSSL_SK_DUP
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OPENSSL_sk_dup                 ; -- Begin function OPENSSL_sk_dup
	.p2align	2
_OPENSSL_sk_dup:                        ; @OPENSSL_sk_dup
	.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
	mov	x20, x0
	mov	w0, #16
	bl	_OPENSSL_malloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	q0, [x20]
	str	q0, [x19]
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w8, [x20, #4]
	lsl	w0, w8, #2
	bl	_OPENSSL_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x1, [x20, #8]
	ldr	w8, [x20]
	lsl	w2, w8, #3
	bl	_memcpy
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _CRYPTO_F_OPENSSL_SK_DUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTO_F_OPENSSL_SK_DUP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_CRYPTOerr
	b	LBB0_7
LBB0_5:
	str	xzr, [x19, #8]
	str	wzr, [x19, #4]
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_OPENSSL_sk_free
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_F_OPENSSL_SK_DUP,4,2    ; @CRYPTO_F_OPENSSL_SK_DUP
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
.subsections_via_symbols
