	.file	"extr_d2i_pr.c_d2i_PrivateKey.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	d2i_PrivateKey
	.type	d2i_PrivateKey, @function
d2i_PrivateKey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdx]
	mov	QWORD PTR [rsp], rax
	test	rsi, rsi
	je	.L2
	mov	r12, QWORD PTR [rsi]
	test	r12, r12
	je	.L2
	mov	rdi, QWORD PTR 8[r12]
	call	ENGINE_finish@PLT
	mov	esi, r14d
	mov	rdi, r12
	mov	QWORD PTR 8[r12], 0
	call	EVP_PKEY_set_type@PLT
	test	eax, eax
	jne	.L6
.L36:
	mov	esi, DWORD PTR ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE[rip]
	mov	edi, DWORD PTR ASN1_F_D2I_PRIVATEKEY[rip]
	call	ASN1err@PLT
.L7:
	test	rbx, rbx
	je	.L12
	cmp	QWORD PTR [rbx], r12
	je	.L14
.L12:
	mov	rdi, r12
	xor	r12d, r12d
	call	EVP_PKEY_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	xor	eax, eax
	call	EVP_PKEY_new@PLT
	mov	r12, rax
	test	rax, rax
	je	.L35
	mov	esi, r14d
	mov	rdi, r12
	call	EVP_PKEY_set_type@PLT
	test	eax, eax
	je	.L36
.L6:
	mov	rax, QWORD PTR [r12]
	mov	rcx, QWORD PTR 8[rax]
	test	rcx, rcx
	je	.L8
	mov	rsi, rsp
	mov	rdx, r13
	mov	rdi, r12
	call	rcx
	test	eax, eax
	je	.L37
.L9:
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp], rax
	test	rbx, rbx
	je	.L1
	mov	QWORD PTR [rbx], r12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L38
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L37:
	.cfi_restore_state
	mov	rax, QWORD PTR [r12]
.L8:
	cmp	QWORD PTR [rax], 0
	je	.L10
	mov	rdx, r13
	mov	rsi, rsp
	xor	edi, edi
	call	d2i_PKCS8_PRIV_KEY_INFO@PLT
	mov	r13, rax
	test	rax, rax
	je	.L7
	mov	rdi, rax
	call	EVP_PKCS82PKEY@PLT
	mov	rdi, r13
	mov	r14, rax
	call	PKCS8_PRIV_KEY_INFO_free@PLT
	test	r14, r14
	je	.L7
	mov	rdi, r12
	mov	r12, r14
	call	EVP_PKEY_free@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR ERR_R_ASN1_LIB[rip]
	mov	edi, DWORD PTR ASN1_F_D2I_PRIVATEKEY[rip]
	call	ASN1err@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L35:
	mov	esi, DWORD PTR ERR_R_EVP_LIB[rip]
	mov	edi, DWORD PTR ASN1_F_D2I_PRIVATEKEY[rip]
	call	ASN1err@PLT
	jmp	.L1
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	d2i_PrivateKey, .-d2i_PrivateKey
	.comm	ERR_R_EVP_LIB,4,4
	.comm	ERR_R_ASN1_LIB,4,4
	.comm	ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE,4,4
	.comm	ASN1_F_D2I_PRIVATEKEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_d2i_pr.c_d2i_PrivateKey.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	d2i_PrivateKey
	.syntax unified
	.arm
	.fpu softvfp
	.type	d2i_PrivateKey, %function
d2i_PrivateKey:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, [r2]
	mov	r8, r3
	ldr	r3, .L39
	sub	sp, sp, #8
	subs	r5, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r2
	mov	r6, r0
	str	ip, [sp]
	beq	.L2
	ldr	r4, [r5]
	cmp	r4, #0
	beq	.L2
	ldr	r0, [r4, #4]
	bl	ENGINE_finish
	mov	r3, #0
	str	r3, [r4, #4]
	b	.L4
.L2:
	bl	EVP_PKEY_new
	subs	r4, r0, #0
	beq	.L35
.L4:
	mov	r1, r6
	mov	r0, r4
	bl	EVP_PKEY_set_type
	cmp	r0, #0
	beq	.L36
	ldr	r2, [r4]
	ldr	r6, [r2, #4]
	cmp	r6, #0
	beq	.L8
	mov	r2, r8
	mov	r1, sp
	mov	r0, r4
	blx	r6
	cmp	r0, #0
	beq	.L37
.L9:
	ldr	r3, [sp]
	cmp	r5, #0
	str	r3, [r7]
	strne	r4, [r5]
.L1:
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L38
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L37:
	ldr	r2, [r4]
.L8:
	ldr	r3, [r2]
	cmp	r3, #0
	beq	.L10
	mov	r2, r8
	mov	r1, sp
	mov	r0, #0
	bl	d2i_PKCS8_PRIV_KEY_INFO
	subs	r6, r0, #0
	beq	.L7
	bl	EVP_PKCS82PKEY
	mov	r8, r0
	mov	r0, r6
	bl	PKCS8_PRIV_KEY_INFO_free
	cmp	r8, #0
	beq	.L7
	mov	r0, r4
	bl	EVP_PKEY_free
	mov	r4, r8
	b	.L9
.L36:
	ldr	r2, .L39+4
	ldr	r3, .L39+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ASN1err
.L7:
	cmp	r5, #0
	beq	.L12
	ldr	r3, [r5]
	cmp	r3, r4
	moveq	r4, #0
	beq	.L1
.L12:
	mov	r0, r4
	bl	EVP_PKEY_free
	mov	r4, #0
	b	.L1
.L10:
	ldr	r2, .L39+12
	ldr	r3, .L39+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ASN1err
	b	.L7
.L35:
	ldr	r2, .L39+16
	ldr	r3, .L39+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ASN1err
	b	.L1
.L38:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE
	.word	ASN1_F_D2I_PRIVATEKEY
	.word	ERR_R_ASN1_LIB
	.word	ERR_R_EVP_LIB
	.size	d2i_PrivateKey, .-d2i_PrivateKey
	.comm	ERR_R_EVP_LIB,4,4
	.comm	ERR_R_ASN1_LIB,4,4
	.comm	ASN1_R_UNKNOWN_PUBLIC_KEY_TYPE,4,4
	.comm	ASN1_F_D2I_PRIVATEKEY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
