	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d2i_AutoPrivateKey             ## -- Begin function d2i_AutoPrivateKey
	.p2align	4, 0x90
_d2i_AutoPrivateKey:                    ## @d2i_AutoPrivateKey
	.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, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_ASN1_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STACK_OF
	movq	(%r12), %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	xorl	%edi, %edi
	movq	%r15, %rdx
	callq	_d2i_ASN1_SEQUENCE_ANY
	movq	_inkey@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	movq	(%r12), %rcx
	movq	%rcx, -48(%rbp)
	movl	%eax, %edi
	callq	_sk_ASN1_TYPE_num
	cmpl	$6, %eax
	jne	LBB0_2
## %bb.1:
	movq	_EVP_PKEY_DSA@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movl	(%r13), %edi
	callq	_sk_ASN1_TYPE_num
	cmpl	$4, %eax
	jne	LBB0_4
## %bb.3:
	movq	_EVP_PKEY_EC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movl	(%r13), %edi
	callq	_sk_ASN1_TYPE_num
	cmpl	$3, %eax
	jne	LBB0_9
## %bb.5:
	leaq	-48(%rbp), %rsi
	xorl	%edi, %edi
	movq	%r15, %rdx
	callq	_d2i_PKCS8_PRIV_KEY_INFO
	movq	%rax, %r15
	movl	(%r13), %edi
	movq	_ASN1_TYPE_free@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sk_ASN1_TYPE_pop_free
	testq	%r15, %r15
	je	LBB0_12
## %bb.6:
	movq	%r15, %rdi
	callq	_EVP_PKCS82PKEY
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_PKCS8_PRIV_KEY_INFO_free
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.7:
	movq	-48(%rbp), %rax
	movq	%rax, (%r12)
	testq	%r14, %r14
	je	LBB0_11
## %bb.8:
	movq	%rbx, (%r14)
	jmp	LBB0_11
LBB0_9:
	movq	_EVP_PKEY_RSA@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
	movl	(%r13), %edi
	movq	_ASN1_TYPE_free@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sk_ASN1_TYPE_pop_free
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_d2i_PrivateKey
	movq	%rax, %rbx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ASN1_F_D2I_AUTOPRIVATEKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ASN1err
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_TYPE,4,2                  ## @ASN1_TYPE
	.comm	_inkey,4,2                      ## @inkey
	.comm	_EVP_PKEY_DSA,4,2               ## @EVP_PKEY_DSA
	.comm	_EVP_PKEY_EC,4,2                ## @EVP_PKEY_EC
	.comm	_ASN1_TYPE_free,4,2             ## @ASN1_TYPE_free
	.comm	_ASN1_F_D2I_AUTOPRIVATEKEY,4,2  ## @ASN1_F_D2I_AUTOPRIVATEKEY
	.comm	_ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE,4,2 ## @ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE
	.comm	_EVP_PKEY_RSA,4,2               ## @EVP_PKEY_RSA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d2i_AutoPrivateKey             ; -- Begin function d2i_AutoPrivateKey
	.p2align	2
_d2i_AutoPrivateKey:                    ; @d2i_AutoPrivateKey
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ASN1_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_STACK_OF
	ldr	x8, [x20]
	str	x8, [sp, #8]
	add	x1, sp, #8
	mov	x0, #0
	mov	x2, x21
	bl	_d2i_ASN1_SEQUENCE_ANY
Lloh3:
	adrp	x23, _inkey@GOTPAGE
Lloh4:
	ldr	x23, [x23, _inkey@GOTPAGEOFF]
	str	w0, [x23]
	ldr	x8, [x20]
	str	x8, [sp, #8]
	bl	_sk_ASN1_TYPE_num
	cmp	w0, #6
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EVP_PKEY_DSA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVP_PKEY_DSA@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	ldr	w0, [x23]
	bl	_sk_ASN1_TYPE_num
	cmp	w0, #4
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _EVP_PKEY_EC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EVP_PKEY_EC@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	w0, [x23]
	bl	_sk_ASN1_TYPE_num
	cmp	w0, #3
	b.ne	LBB0_9
; %bb.5:
	add	x1, sp, #8
	mov	x0, #0
	mov	x2, x21
	bl	_d2i_PKCS8_PRIV_KEY_INFO
	mov	x22, x0
	ldr	w0, [x23]
Lloh9:
	adrp	x8, _ASN1_TYPE_free@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ASN1_TYPE_free@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_sk_ASN1_TYPE_pop_free
	cbz	x22, LBB0_12
; %bb.6:
	mov	x0, x22
	bl	_EVP_PKCS82PKEY
	mov	x21, x0
	mov	x0, x22
	bl	_PKCS8_PRIV_KEY_INFO_free
	cbz	x21, LBB0_11
; %bb.7:
	ldr	x8, [sp, #8]
	str	x8, [x20]
	cbz	x19, LBB0_11
; %bb.8:
	str	x21, [x19]
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x8, _EVP_PKEY_RSA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVP_PKEY_RSA@GOTPAGEOFF]
LBB0_10:
	ldr	w22, [x8]
	ldr	w0, [x23]
Lloh14:
	adrp	x8, _ASN1_TYPE_free@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ASN1_TYPE_free@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_sk_ASN1_TYPE_pop_free
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_d2i_PrivateKey
	mov	x21, x0
LBB0_11:
	mov	x0, x21
	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
LBB0_12:
Lloh17:
	adrp	x8, _ASN1_F_D2I_AUTOPRIVATEKEY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ASN1_F_D2I_AUTOPRIVATEKEY@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_ASN1err
	mov	x21, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_TYPE,4,2                  ; @ASN1_TYPE
	.comm	_inkey,4,2                      ; @inkey
	.comm	_EVP_PKEY_DSA,4,2               ; @EVP_PKEY_DSA
	.comm	_EVP_PKEY_EC,4,2                ; @EVP_PKEY_EC
	.comm	_ASN1_TYPE_free,4,2             ; @ASN1_TYPE_free
	.comm	_ASN1_F_D2I_AUTOPRIVATEKEY,4,2  ; @ASN1_F_D2I_AUTOPRIVATEKEY
	.comm	_ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE,4,2 ; @ASN1_R_UNSUPPORTED_PUBLIC_KEY_TYPE
	.comm	_EVP_PKEY_RSA,4,2               ; @EVP_PKEY_RSA
.subsections_via_symbols
