	.file	"extr_rsa_pss_sig_unpad.c_br_rsa_pss_sig_unpad.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	br_rsa_pss_sig_unpad
	.type	br_rsa_pss_sig_unpad, @function
br_rsa_pss_sig_unpad:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 136
	.cfi_def_cfa_offset 192
	mov	QWORD PTR [rsp], rsi
	mov	QWORD PTR 8[rsp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	call	br_digest_size@PLT
	mov	r14, rax
	mov	rax, QWORD PTR [r15]
	test	rax, rax
	je	.L6
	mov	rdx, QWORD PTR 8[r15]
	xor	r13d, r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	add	r13, 1
	cmp	r13, rax
	je	.L6
.L5:
	mov	rdi, QWORD PTR [rdx+r13*8]
	test	rdi, rdi
	je	.L25
	call	BIT_LENGTH@PLT
	not	r13d
	add	r13d, DWORD PTR [r15]
	lea	eax, [rax+r13*8]
	lea	r9d, -1[rax]
	and	r9d, 7
	je	.L26
	movzx	r13d, BYTE PTR [rbx]
	mov	edx, 255
	mov	ecx, r9d
	mov	r10, rbx
	sal	edx, cl
	and	r13d, edx
.L8:
	add	eax, 6
	mov	DWORD PTR 16[rsp], r9d
	sar	eax, 3
	cmp	r14, rbp
	movsx	rbx, eax
	mov	rax, rbp
	cmovnb	rax, r14
	cmp	rax, rbx
	ja	.L6
	lea	rax, 2[r14+rbp]
	cmp	rax, rbx
	ja	.L6
	movzx	eax, BYTE PTR -1[r10+rbx]
	mov	r11, rbx
	mov	rdx, QWORD PTR [rsp]
	mov	rdi, r10
	sub	r11, r14
	mov	r8, r14
	mov	QWORD PTR [rsp], r10
	lea	rsi, -1[r11]
	xor	eax, -68
	mov	QWORD PTR 24[rsp], r11
	movzx	eax, al
	lea	rcx, [r10+rsi]
	or	r13d, eax
	call	br_mgf1_xor@PLT
	mov	r9d, DWORD PTR 16[rsp]
	mov	r10, QWORD PTR [rsp]
	mov	r11, QWORD PTR 24[rsp]
	test	r9d, r9d
	jne	.L9
	movzx	eax, BYTE PTR [r10]
.L10:
	sub	r11, rbp
	mov	rcx, r11
	sub	rcx, 2
	je	.L17
	lea	rdx, 1[r10]
	add	rcx, r10
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	movzx	eax, BYTE PTR [rdx]
	add	rdx, 1
.L13:
	movzx	eax, al
	or	r13d, eax
	cmp	rcx, rdx
	jne	.L12
	movzx	eax, BYTE PTR -2[r10+r11]
	sub	r11, 1
.L11:
	xor	eax, 1
	add	r11, r10
	lea	r9, 44[rsp]
	mov	QWORD PTR 24[rsp], r10
	lea	r15, 48[rsp]
	movzx	eax, al
	mov	QWORD PTR 16[rsp], r11
	mov	rdi, r9
	mov	QWORD PTR [rsp], r9
	or	r13d, eax
	call	[QWORD PTR 16[r12]]
	xor	esi, esi
	mov	edx, 8
	mov	rdi, r15
	call	memset@PLT
	mov	r9, QWORD PTR [rsp]
	mov	edx, 8
	mov	rsi, r15
	mov	rdi, r9
	call	[QWORD PTR 8[r12]]
	mov	r9, QWORD PTR [rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdx, r14
	mov	rdi, r9
	call	[QWORD PTR 8[r12]]
	mov	r9, QWORD PTR [rsp]
	mov	r11, QWORD PTR 16[rsp]
	mov	rdx, rbp
	mov	rdi, r9
	mov	rsi, r11
	call	[QWORD PTR 8[r12]]
	mov	r9, QWORD PTR [rsp]
	mov	rsi, r15
	mov	rdi, r9
	call	[QWORD PTR [r12]]
	test	r14, r14
	je	.L14
	mov	r10, QWORD PTR 24[rsp]
	not	rbp
	xor	edx, edx
	add	rbx, rbp
	lea	rcx, [r10+rbx]
	.p2align 4,,10
	.p2align 3
.L15:
	movzx	eax, BYTE PTR [rcx+rdx]
	xor	al, BYTE PTR [r15+rdx]
	add	rdx, 1
	movzx	eax, al
	or	r13d, eax
	cmp	r14, rdx
	jne	.L15
.L14:
	mov	edi, r13d
	call	EQ0@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
.L1:
	mov	rsi, QWORD PTR 120[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L27
	add	rsp, 136
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	movzx	r13d, BYTE PTR [rbx]
	lea	r10, 1[rbx]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, 8
	mov	eax, 255
	sub	ecx, r9d
	sar	eax, cl
	and	al, BYTE PTR [r10]
	mov	BYTE PTR [r10], al
	jmp	.L10
.L17:
	mov	r11d, 1
	jmp	.L11
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	br_rsa_pss_sig_unpad, .-br_rsa_pss_sig_unpad
	.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_rsa_pss_sig_unpad.c_br_rsa_pss_sig_unpad.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	br_rsa_pss_sig_unpad
	.syntax unified
	.arm
	.fpu softvfp
	.type	br_rsa_pss_sig_unpad, %function
br_rsa_pss_sig_unpad:
	@ args = 8, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #92
	ldr	r10, [sp, #128]
	mov	r7, r3
	ldr	r3, .L27
	mov	fp, r2
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #84]
	mov	r3,#0
	mov	r9, r0
	ldr	r6, [sp, #132]
	bl	br_digest_size
	ldr	r2, [r10]
	cmp	r2, #0
	beq	.L6
	ldr	r3, [r10, #4]
	mov	r5, r0
	mov	r4, #0
	sub	r3, r3, #4
	b	.L5
.L25:
	add	r4, r4, #1
	cmp	r4, r2
	beq	.L6
.L5:
	ldr	r0, [r3, #4]!
	cmp	r0, #0
	beq	.L25
	bl	BIT_LENGTH
	ldr	r3, [r10]
	sub	r3, r3, #1
	sub	r4, r3, r4
	add	r0, r0, r4, lsl #3
	sub	r10, r0, #1
	ands	r10, r10, #7
	movne	r3, #255
	moveq	r4, r6
	ldrbne	ip, [r6]	@ zero_extendqisi2
	movne	r4, r6
	andne	ip, ip, r3, lsl r10
	ldrbeq	ip, [r4], #1	@ zero_extendqisi2
	cmp	r5, r7
	movcs	r3, r5
	movcc	r3, r7
	add	r6, r0, #6
	cmp	r3, r6, asr #3
	asr	r6, r6, #3
	bhi	.L6
	add	r3, r7, #2
	add	r3, r3, r5
	cmp	r3, r6
	bhi	.L6
	add	r3, r4, r6
	ldrb	r3, [r3, #-1]	@ zero_extendqisi2
	sub	r2, r6, r5
	sub	r1, r2, #1
	str	r2, [sp, #12]
	mov	r0, r4
	mov	r2, r8
	str	r5, [sp]
	eor	r8, r3, #188
	add	r3, r4, r1
	orr	r8, r8, ip
	bl	br_mgf1_xor
	cmp	r10, #0
	movne	r3, #255
	ldrbne	r2, [r4]	@ zero_extendqisi2
	rsbne	r10, r10, #8
	andne	r2, r2, r3, asr r10
	ldr	r3, [sp, #12]
	ldrbeq	r2, [r4]	@ zero_extendqisi2
	sub	r0, r3, r7
	strbne	r2, [r4]
	subs	ip, r0, #2
	beq	.L17
	sub	r1, r0, #3
	mov	r3, r4
	add	r1, r1, r4
	b	.L13
.L12:
	ldrb	r2, [r3, #1]!	@ zero_extendqisi2
.L13:
	cmp	r1, r3
	orr	r8, r8, r2
	bne	.L12
	ldrb	r2, [r4, ip]	@ zero_extendqisi2
	sub	r10, r0, #1
.L11:
	eor	r2, r2, #1
	ldr	r3, [r9, #8]
	add	r0, sp, #16
	orr	r8, r2, r8
	blx	r3
	mov	r3, #0
	mov	r2, #8
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	add	r1, sp, #20
	ldr	r3, [r9, #4]
	add	r0, sp, #16
	blx	r3
	add	r10, r4, r10
	mov	r1, fp
	mov	r2, r5
	ldr	r3, [r9, #4]
	add	r0, sp, #16
	blx	r3
	mov	r1, r10
	mov	r2, r7
	ldr	r3, [r9, #4]
	add	r0, sp, #16
	blx	r3
	ldr	r3, [r9]
	add	r1, sp, #20
	add	r0, sp, #16
	blx	r3
	cmp	r5, #0
	beq	.L14
	mvn	r7, r7
	add	r6, r7, r6
	add	r5, r5, r6
	add	r5, r4, r5
	add	r2, sp, #19
	add	r4, r4, r6
.L15:
	ldrb	r3, [r4], #1	@ zero_extendqisi2
	ldrb	r1, [r2, #1]!	@ zero_extendqisi2
	cmp	r5, r4
	eor	r3, r3, r1
	orr	r8, r8, r3
	bne	.L15
.L14:
	mov	r0, r8
	bl	EQ0
	b	.L1
.L6:
	mov	r0, #0
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	mov	r10, #1
	b	.L11
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC0
	.size	br_rsa_pss_sig_unpad, .-br_rsa_pss_sig_unpad
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
