	.file	"extr_pkcs1.c_pkcs1_v15_private_key_decrypt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"LibTomCrypt: Too short padding"
	.text
	.p2align 4
	.globl	pkcs1_v15_private_key_decrypt
	.type	pkcs1_v15_private_key_decrypt, @function
pkcs1_v15_private_key_decrypt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r10, rdi
	mov	r9d, 1
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rcx
	mov	rsi, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, r8
	mov	rdx, rbp
	mov	r8, r10
	mov	rcx, rbx
	call	crypto_rsa_exptmod@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR [rbx]
	cmp	rdx, 1
	jbe	.L11
	mov	r12d, DWORD PTR 0[rbp]
	test	r12d, r12d
	jne	.L11
	cmp	DWORD PTR 4[rbp], 2
	jne	.L11
	mov	r8d, DWORD PTR 8[rbp]
	lea	rax, 8[rbp]
	lea	rcx, 0[rbp+rdx*4]
	test	r8d, r8d
	je	.L3
	cmp	rax, rcx
	jb	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	cmp	rcx, rax
	jbe	.L13
.L4:
	mov	rsi, rax
	mov	edi, DWORD PTR 4[rax]
	add	rax, 4
	test	edi, edi
	jne	.L26
.L13:
	cmp	rcx, rax
	je	.L11
	sub	rax, rbp
	cmp	rax, 36
	jle	.L7
	add	rsi, 8
	mov	rdi, rbp
	mov	rax, rsi
	sub	rax, rbp
	sar	rax, 2
	sub	rdx, rax
	mov	QWORD PTR [rbx], rdx
	call	os_memmove@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r12d, -1
	cmp	rax, rcx
	je	.L1
.L7:
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC0[rip]
	mov	r12d, -1
	call	wpa_printf@PLT
	jmp	.L1
.L11:
	mov	r12d, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	pkcs1_v15_private_key_decrypt, .-pkcs1_v15_private_key_decrypt
	.comm	MSG_INFO,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_pkcs1.c_pkcs1_v15_private_key_decrypt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LibTomCrypt: Too short padding\000"
	.text
	.align	2
	.global	pkcs1_v15_private_key_decrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	pkcs1_v15_private_key_decrypt, %function
pkcs1_v15_private_key_decrypt:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r3
	mov	r3, #1
	sub	sp, sp, #12
	ldr	r7, [sp, #32]
	str	r0, [sp]
	str	r3, [sp, #4]
	mov	r0, r1
	mov	r3, r7
	mov	r1, r2
	mov	r2, r4
	bl	crypto_rsa_exptmod
	subs	r6, r0, #0
	bne	.L1
	ldr	r2, [r7]
	cmp	r2, #1
	bls	.L11
	ldr	r6, [r4]
	cmp	r6, #0
	bne	.L11
	ldr	r3, [r4, #4]
	cmp	r3, #2
	bne	.L11
	ldr	r3, [r4, #8]
	add	ip, r4, #8
	add	r5, r4, r2, lsl #2
	cmp	r3, #0
	cmpne	ip, r5
	bcs	.L3
.L4:
	mov	r1, ip
	ldr	lr, [ip, #4]!
	cmp	lr, #0
	cmpne	r5, ip
	bhi	.L4
	cmp	r5, ip
	beq	.L11
	sub	ip, ip, r4
	cmp	ip, #36
	ble	.L6
	add	r1, r1, #8
	sub	r3, r1, r4
	sub	r2, r2, r3, asr #2
	mov	r0, r4
	str	r2, [r7]
	bl	os_memmove
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	cmp	ip, r5
	bne	.L6
.L11:
	mvn	r6, #0
	b	.L1
.L6:
	ldr	r3, .L15
	ldr	r1, .L15+4
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r6, #0
	b	.L1
.L16:
	.align	2
.L15:
	.word	MSG_INFO
	.word	.LC0
	.size	pkcs1_v15_private_key_decrypt, .-pkcs1_v15_private_key_decrypt
	.comm	MSG_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
