	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_KEY_copy                    ## -- Begin function EC_KEY_copy
	.p2align	4, 0x90
_EC_KEY_copy:                           ## @EC_KEY_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpq	%rax, (%r14)
	je	LBB0_11
## %bb.4:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	(%rax), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_9:
	movq	8(%rbx), %rdi
	callq	_ENGINE_finish
	testq	%rax, %rax
	je	LBB0_33
## %bb.10:
	movq	$0, 8(%rbx)
LBB0_11:
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.12:
	callq	_EC_GROUP_method_of
	movq	%rax, %r15
	movq	40(%rbx), %rdi
	callq	_EC_GROUP_free
	movq	%r15, %rdi
	callq	_EC_GROUP_new
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_33
## %bb.13:
	movq	40(%r14), %rsi
	movq	%rax, %rdi
	callq	_EC_GROUP_copy
	testl	%eax, %eax
	je	LBB0_33
## %bb.14:
	cmpq	$0, 56(%r14)
	je	LBB0_17
## %bb.15:
	movq	56(%rbx), %rdi
	callq	_EC_POINT_free
	movq	40(%r14), %rdi
	callq	_EC_POINT_new
	movq	%rax, 56(%rbx)
	testq	%rax, %rax
	je	LBB0_33
## %bb.16:
	movq	56(%r14), %rsi
	movq	%rax, %rdi
	callq	_EC_POINT_copy
	testl	%eax, %eax
	je	LBB0_33
LBB0_17:
	movq	48(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.18:
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_21
## %bb.19:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_33
## %bb.20:
	movq	%rax, %rdi
	movq	48(%r14), %rsi
LBB0_21:
	callq	_BN_copy
	testl	%eax, %eax
	je	LBB0_33
## %bb.22:
	movq	40(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_33
LBB0_24:
	movups	20(%r14), %xmm0
	movups	%xmm0, 20(%rbx)
	movq	_CRYPTO_EX_INDEX_EC_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	leaq	16(%r14), %rdx
	callq	_CRYPTO_dup_ex_data
	testl	%eax, %eax
	je	LBB0_33
## %bb.25:
	movq	(%r14), %rax
	cmpq	(%rbx), %rax
	je	LBB0_31
## %bb.26:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.28:
	callq	_ENGINE_init
	testq	%rax, %rax
	je	LBB0_33
## %bb.29:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	jmp	LBB0_30
LBB0_2:
	movq	_EC_F_EC_KEY_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_PASSED_NULL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
LBB0_33:
	xorl	%ebx, %ebx
LBB0_34:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	xorl	%ecx, %ecx
LBB0_30:
	movq	%rcx, 8(%rbx)
	movq	%rax, (%rbx)
	movq	(%r14), %rax
LBB0_31:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.32:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%rax
	testq	%rax, %rax
	jne	LBB0_34
	jmp	LBB0_33
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_EC_KEY_COPY,4,2           ## @EC_F_EC_KEY_COPY
	.comm	_ERR_R_PASSED_NULL_PARAMETER,4,2 ## @ERR_R_PASSED_NULL_PARAMETER
	.comm	_CRYPTO_EX_INDEX_EC_KEY,4,2     ## @CRYPTO_EX_INDEX_EC_KEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_KEY_copy                    ; -- Begin function EC_KEY_copy
	.p2align	2
_EC_KEY_copy:                           ; @EC_KEY_copy
	.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
	cbz	x0, LBB0_28
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_28
; %bb.2:
	mov	x19, x0
	ldr	x9, [x20]
	ldr	x8, [x0]
	cmp	x9, x8
	b.eq	LBB0_10
; %bb.3:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
LBB0_5:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	blr	x8
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_ENGINE_finish
	cbz	x0, LBB0_29
; %bb.9:
	str	xzr, [x19, #8]
LBB0_10:
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_23
; %bb.11:
	bl	_EC_GROUP_method_of
	mov	x21, x0
	ldr	x0, [x19, #40]
	bl	_EC_GROUP_free
	mov	x0, x21
	bl	_EC_GROUP_new
	str	x0, [x19, #40]
	cbz	x0, LBB0_29
; %bb.12:
	ldr	x1, [x20, #40]
	bl	_EC_GROUP_copy
	cbz	w0, LBB0_29
; %bb.13:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	x0, [x19, #56]
	bl	_EC_POINT_free
	ldr	x0, [x20, #40]
	bl	_EC_POINT_new
	str	x0, [x19, #56]
	cbz	x0, LBB0_29
; %bb.15:
	ldr	x1, [x20, #56]
	bl	_EC_POINT_copy
	cbz	w0, LBB0_29
LBB0_16:
	ldr	x1, [x20, #48]
	cbz	x1, LBB0_23
; %bb.17:
	ldr	x0, [x19, #48]
	cbnz	x0, LBB0_20
; %bb.18:
	bl	_BN_new
	str	x0, [x19, #48]
	cbz	x0, LBB0_29
; %bb.19:
	ldr	x1, [x20, #48]
LBB0_20:
	bl	_BN_copy
	cbz	w0, LBB0_29
; %bb.21:
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_23
; %bb.22:
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_29
LBB0_23:
	ldur	q0, [x20, #20]
	stur	q0, [x19, #20]
Lloh0:
	adrp	x8, _CRYPTO_EX_INDEX_EC_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTO_EX_INDEX_EC_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #16
	add	x2, x20, #16
	bl	_CRYPTO_dup_ex_data
	cbz	w0, LBB0_29
; %bb.24:
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_33
; %bb.25:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_31
; %bb.26:
	bl	_ENGINE_init
	cbz	x0, LBB0_29
; %bb.27:
	ldp	x8, x9, [x20]
	b	LBB0_32
LBB0_28:
Lloh3:
	adrp	x8, _EC_F_EC_KEY_COPY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_F_EC_KEY_COPY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ERR_R_PASSED_NULL_PARAMETER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_R_PASSED_NULL_PARAMETER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_29:
	mov	x19, #0
LBB0_30:
	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
LBB0_31:
	mov	x9, #0
LBB0_32:
	stp	x8, x9, [x19]
	ldr	x8, [x20]
LBB0_33:
	ldr	x8, [x8]
	cbz	x8, LBB0_30
; %bb.34:
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbnz	x0, LBB0_30
	b	LBB0_29
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_EC_KEY_COPY,4,2           ; @EC_F_EC_KEY_COPY
	.comm	_ERR_R_PASSED_NULL_PARAMETER,4,2 ; @ERR_R_PASSED_NULL_PARAMETER
	.comm	_CRYPTO_EX_INDEX_EC_KEY,4,2     ; @CRYPTO_EX_INDEX_EC_KEY
.subsections_via_symbols
