	.file	"extr_loader_file.c_try_decode_PKCS8Encrypted.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PKCS8 decrypt password"
	.text
	.p2align 4
	.type	try_decode_PKCS8Encrypted, @function
try_decode_PKCS8Encrypted:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rcx
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 72
	mov	r12, QWORD PTR 16[rbp]
	mov	r13, QWORD PTR 24[rbp]
	mov	QWORD PTR -104[rbp], rdx
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PEM_BUFSIZE[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L29:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L29
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L30
.L4:
	mov	QWORD PTR -80[rbp], 0
	mov	r15, rsp
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	test	rdi, rdi
	je	.L5
	mov	esi, DWORD PTR PEM_STRING_PKCS8[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L27
	mov	DWORD PTR [rbx], 1
.L5:
	mov	rdx, r14
	lea	rsi, -104[rbp]
	xor	edi, edi
	call	d2i_X509_SIG@PLT
	mov	r14, rax
	test	rax, rax
	je	.L27
	mov	DWORD PTR [rbx], 1
	xor	eax, eax
	call	BUF_MEM_new@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L26
	mov	edx, DWORD PTR PEM_BUFSIZE[rip]
	mov	rdi, r12
	mov	r8, r13
	mov	rsi, r15
	lea	rcx, .LC0[rip]
	call	file_get_pass@PLT
	mov	r12, rax
	test	rax, rax
	je	.L31
	lea	rdx, -72[rbp]
	lea	rsi, -80[rbp]
	mov	rdi, r14
	call	X509_SIG_get0@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, r12
	mov	r15d, DWORD PTR [rax]
	mov	r13d, DWORD PTR 4[rax]
	call	strlen@PLT
	push	0
	mov	rdi, QWORD PTR -80[rbp]
	lea	r9, -64[rbp]
	mov	edx, eax
	lea	rax, -84[rbp]
	mov	ecx, r13d
	mov	r8d, r15d
	push	rax
	mov	rsi, r12
	call	PKCS12_pbe_crypt@PLT
	pop	rdx
	pop	rcx
	test	eax, eax
	je	.L10
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, r14
	mov	QWORD PTR [rbx], rax
	movsx	rax, DWORD PTR -84[rbp]
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 8[rbx], rax
	call	X509_SIG_free@PLT
	mov	edi, DWORD PTR PEM_STRING_PKCS8INF[rip]
	mov	rsi, rbx
	call	ossl_store_info_new_EMBEDDED@PLT
	test	rax, rax
	je	.L26
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L32
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	esi, DWORD PTR OSSL_STORE_R_BAD_PASSWORD_READ[rip]
	mov	edi, DWORD PTR OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED[rip]
	call	OSSL_STOREerr@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r14
	call	X509_SIG_free@PLT
	mov	rdi, rbx
	call	BUF_MEM_free@PLT
.L27:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, DWORD PTR ERR_R_MALLOC_FAILURE[rip]
	mov	edi, DWORD PTR OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED[rip]
	call	OSSL_STOREerr@PLT
	jmp	.L10
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	try_decode_PKCS8Encrypted, .-try_decode_PKCS8Encrypted
	.comm	PEM_STRING_PKCS8INF,4,4
	.comm	PEM_STRING_PKCS8,4,4
	.comm	PEM_BUFSIZE,4,4
	.comm	OSSL_STORE_R_BAD_PASSWORD_READ,4,4
	.comm	OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED,4,4
	.comm	ERR_R_MALLOC_FAILURE,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_loader_file.c_try_decode_PKCS8Encrypted.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PKCS8 decrypt password\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	try_decode_PKCS8Encrypted, %function
try_decode_PKCS8Encrypted:
	@ args = 16, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #52
	mov	ip, #0
	ldr	r6, .L25
	mov	r4, r3
	ldr	r1, [r6]
	ldr	r3, .L25+4
	add	r1, r1, #7
	bic	r1, r1, #7
	sub	sp, sp, r1
	str	r2, [fp, #-64]
	cmp	r0, ip
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r10, [fp, #8]
	ldr	r7, [fp, #12]
	ldr	r9, [fp, #16]
	add	r8, sp, #16
	str	ip, [fp, #-56]
	str	ip, [fp, #-52]
	str	ip, [fp, #-48]
	beq	.L2
	ldr	r3, .L25+8
	ldr	r1, [r3]
	bl	strcmp
	cmp	r0, #0
	moveq	r3, #1
	streq	r3, [r10]
	bne	.L21
.L2:
	mov	r2, r4
	mov	r0, #0
	sub	r1, fp, #64
	bl	d2i_X509_SIG
	subs	r5, r0, #0
	beq	.L21
	mov	r3, #1
	str	r3, [r10]
	bl	BUF_MEM_new
	subs	r4, r0, #0
	beq	.L20
	str	r9, [sp]
	ldr	r2, [r6]
	mov	r1, r8
	mov	r0, r7
	ldr	r3, .L25+12
	bl	file_get_pass
	subs	r6, r0, #0
	beq	.L23
	sub	r2, fp, #52
	sub	r1, fp, #56
	mov	r0, r5
	bl	X509_SIG_get0
	mov	r0, r6
	bl	strlen
	mov	r2, r0
	mov	r0, #0
	ldr	r1, [fp, #-52]
	sub	ip, fp, #44
	ldr	r3, [r1, #4]
	str	r0, [sp, #12]
	sub	r0, fp, #48
	stmib	sp, {r0, ip}
	ldr	ip, [r1]
	ldr	r0, [fp, #-56]
	mov	r1, r6
	str	ip, [sp]
	bl	PKCS12_pbe_crypt
	cmp	r0, #0
	beq	.L7
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	str	r3, [r4, #8]
	str	r2, [r4]
	str	r3, [r4, #4]
	mov	r0, r5
	bl	X509_SIG_free
	ldr	r3, .L25+16
	mov	r1, r4
	ldr	r0, [r3]
	bl	ossl_store_info_new_EMBEDDED
	cmp	r0, #0
	bne	.L1
.L20:
	ldr	r2, .L25+20
	ldr	r3, .L25+24
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	OSSL_STOREerr
.L7:
	mov	r0, r5
	bl	X509_SIG_free
	mov	r0, r4
	bl	BUF_MEM_free
.L21:
	mov	r0, #0
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r2, .L25+28
	ldr	r3, .L25+24
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	OSSL_STOREerr
	b	.L7
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	PEM_BUFSIZE
	.word	.LC1
	.word	PEM_STRING_PKCS8
	.word	.LC0
	.word	PEM_STRING_PKCS8INF
	.word	ERR_R_MALLOC_FAILURE
	.word	OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED
	.word	OSSL_STORE_R_BAD_PASSWORD_READ
	.size	try_decode_PKCS8Encrypted, .-try_decode_PKCS8Encrypted
	.comm	PEM_STRING_PKCS8INF,4,4
	.comm	PEM_STRING_PKCS8,4,4
	.comm	PEM_BUFSIZE,4,4
	.comm	OSSL_STORE_R_BAD_PASSWORD_READ,4,4
	.comm	OSSL_STORE_F_TRY_DECODE_PKCS8ENCRYPTED,4,4
	.comm	ERR_R_MALLOC_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
