	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eckey_priv_decode
_eckey_priv_decode:                     ## @eckey_priv_decode
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r8
	movq	%rdi, %r14
	movq	$0, -40(%rbp)
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	xorl	%edi, %edi
	callq	_PKCS8_pkey_get0
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	-48(%rbp), %rcx
	leaq	-32(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	xorl	%edi, %edi
	callq	_X509_ALGOR_get0
	movl	-32(%rbp), %edi
	movq	-56(%rbp), %rsi
	callq	_eckey_type2param
	movq	%rax, -24(%rbp)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	-28(%rbp), %edx
	leaq	-24(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_d2i_ECPrivateKey
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_EVP_PKEY_assign_EC_KEY
	movl	$1, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_EC_F_ECKEY_PRIV_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EC_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%edi, %edi
	jmp	LBB0_6
LBB0_3:
	movq	_EC_F_ECKEY_PRIV_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_DECODE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	movq	-24(%rbp), %rdi
LBB0_6:
	callq	_EC_KEY_free
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_ECKEY_PRIV_DECODE,4,2     ## @EC_F_ECKEY_PRIV_DECODE
	.comm	_EC_R_DECODE_ERROR,4,2          ## @EC_R_DECODE_ERROR
	.comm	_ERR_R_EC_LIB,4,2               ## @ERR_R_EC_LIB
	.no_dead_strip	_eckey_priv_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eckey_priv_decode
_eckey_priv_decode:                     ; @eckey_priv_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x4, x1
	mov	x19, x0
	stur	xzr, [x29, #-24]
	sub	x1, x29, #24
	add	x2, sp, #24
	add	x3, sp, #8
	mov	x0, #0
	bl	_PKCS8_pkey_get0
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x3, [sp, #8]
	add	x1, sp, #28
	add	x2, sp, #32
	mov	x0, #0
	bl	_X509_ALGOR_get0
	ldr	w0, [sp, #28]
	ldr	x1, [sp, #32]
	bl	_eckey_type2param
	str	x0, [sp, #16]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w2, [sp, #24]
	add	x0, sp, #16
	sub	x1, x29, #24
	bl	_d2i_ECPrivateKey
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x1, [sp, #16]
	mov	x0, x19
	bl	_EVP_PKEY_assign_EC_KEY
	mov	w0, #1
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EC_F_ECKEY_PRIV_DECODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_F_ECKEY_PRIV_DECODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_EC_LIB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_EC_LIB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ECerr
	mov	x0, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EC_F_ECKEY_PRIV_DECODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EC_F_ECKEY_PRIV_DECODE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _EC_R_DECODE_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EC_R_DECODE_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ECerr
	ldr	x0, [sp, #16]
LBB0_6:
	bl	_EC_KEY_free
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_ECKEY_PRIV_DECODE,4,2     ; @EC_F_ECKEY_PRIV_DECODE
	.comm	_EC_R_DECODE_ERROR,4,2          ; @EC_R_DECODE_ERROR
	.comm	_ERR_R_EC_LIB,4,2               ; @ERR_R_EC_LIB
	.no_dead_strip	_eckey_priv_decode
.subsections_via_symbols
