	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d2i_PrivateKey                 ## -- Begin function d2i_PrivateKey
	.p2align	4, 0x90
_d2i_PrivateKey:                        ## @d2i_PrivateKey
	.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	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	(%rdx), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rdi
	callq	_ENGINE_finish
	movq	$0, 8(%rbx)
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_EVP_PKEY_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_15
LBB0_4:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_EVP_PKEY_set_type
	testl	%eax, %eax
	je	LBB0_14
## %bb.5:
	movq	(%rbx), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	(%rbx), %rcx
LBB0_8:
	cmpq	$0, (%rcx)
	je	LBB0_16
## %bb.9:
	leaq	-48(%rbp), %rsi
	xorl	%edi, %edi
	movq	%r12, %rdx
	callq	_d2i_PKCS8_PRIV_KEY_INFO
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_EVP_PKCS82PKEY
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_PKCS8_PRIV_KEY_INFO_free
	testq	%r12, %r12
	je	LBB0_18
## %bb.11:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_free
	movq	%r12, %rbx
LBB0_12:
	movq	-48(%rbp), %rax
	movq	%rax, (%r15)
	testq	%r14, %r14
	je	LBB0_22
## %bb.13:
	movq	%rbx, (%r14)
	jmp	LBB0_22
LBB0_14:
	movq	_ASN1_F_D2I_PRIVATEKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_ASN1_F_D2I_PRIVATEKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_EVP_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
	jmp	LBB0_21
LBB0_16:
	movq	_ASN1_F_D2I_PRIVATEKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_ASN1_LIB@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %esi
	callq	_ASN1err
LBB0_18:
	testq	%r14, %r14
	je	LBB0_20
## %bb.19:
	cmpq	%rbx, (%r14)
	je	LBB0_21
LBB0_20:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_free
LBB0_21:
	xorl	%ebx, %ebx
LBB0_22:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_F_D2I_PRIVATEKEY,4,2      ## @ASN1_F_D2I_PRIVATEKEY
	.comm	_ERR_R_EVP_LIB,4,2              ## @ERR_R_EVP_LIB
	.comm	_ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE,4,2 ## @ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE
	.comm	_ERR_R_ASN1_LIB,4,2             ## @ERR_R_ASN1_LIB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d2i_PrivateKey                 ; -- Begin function d2i_PrivateKey
	.p2align	2
_d2i_PrivateKey:                        ; @d2i_PrivateKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x8, [x2]
	str	x8, [sp, #8]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	x19, [x20]
	cbz	x19, LBB0_3
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_ENGINE_finish
	str	xzr, [x19, #8]
	b	LBB0_4
LBB0_3:
	bl	_EVP_PKEY_new
	mov	x19, x0
	cbz	x0, LBB0_15
LBB0_4:
	mov	x0, x19
	mov	x1, x23
	bl	_EVP_PKEY_set_type
	cbz	w0, LBB0_14
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_8
; %bb.6:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	blr	x9
	cbnz	w0, LBB0_12
; %bb.7:
	ldr	x8, [x19]
LBB0_8:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.9:
	add	x1, sp, #8
	mov	x0, #0
	mov	x2, x22
	bl	_d2i_PKCS8_PRIV_KEY_INFO
	cbz	x0, LBB0_18
; %bb.10:
	mov	x23, x0
	bl	_EVP_PKCS82PKEY
	mov	x22, x0
	mov	x0, x23
	bl	_PKCS8_PRIV_KEY_INFO_free
	cbz	x22, LBB0_18
; %bb.11:
	mov	x0, x19
	bl	_EVP_PKEY_free
	mov	x19, x22
LBB0_12:
	ldr	x8, [sp, #8]
	str	x8, [x21]
	cbz	x20, LBB0_22
; %bb.13:
	str	x19, [x20]
	b	LBB0_22
LBB0_14:
Lloh0:
	adrp	x8, _ASN1_F_D2I_PRIVATEKEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_F_D2I_PRIVATEKEY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh5:
	adrp	x8, _ASN1_F_D2I_PRIVATEKEY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ASN1_F_D2I_PRIVATEKEY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _ERR_R_EVP_LIB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_R_EVP_LIB@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_ASN1err
	b	LBB0_22
LBB0_16:
Lloh11:
	adrp	x8, _ASN1_F_D2I_PRIVATEKEY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ASN1_F_D2I_PRIVATEKEY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ERR_R_ASN1_LIB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_ASN1_LIB@GOTPAGEOFF]
LBB0_17:
	ldr	w1, [x8]
	bl	_ASN1err
LBB0_18:
	cbz	x20, LBB0_20
; %bb.19:
	ldr	x8, [x20]
	cmp	x8, x19
	b.eq	LBB0_21
LBB0_20:
	mov	x0, x19
	bl	_EVP_PKEY_free
LBB0_21:
	mov	x19, #0
LBB0_22:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_F_D2I_PRIVATEKEY,4,2      ; @ASN1_F_D2I_PRIVATEKEY
	.comm	_ERR_R_EVP_LIB,4,2              ; @ERR_R_EVP_LIB
	.comm	_ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE,4,2 ; @ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE
	.comm	_ERR_R_ASN1_LIB,4,2             ; @ERR_R_ASN1_LIB
.subsections_via_symbols
