	.file	"extr_pdf-crypt.c_pdf_authenticate_user_password.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pdf_authenticate_user_password, @function
pdf_authenticate_user_password:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	mov	r8, rbp
	call	pdf_compute_user_password@PLT
	mov	eax, DWORD PTR [rbx]
	lea	edx, -5[rax]
	cmp	edx, 1
	jbe	.L7
	cmp	eax, 2
	je	.L7
	sub	eax, 3
	xor	r8d, r8d
	cmp	eax, 1
	jbe	.L11
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, 32
.L9:
	mov	rdi, rbp
	call	memcmp@PLT
	xor	r8d, r8d
	test	rax, rax
	sete	r8b
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR 4[rbx]
	mov	edx, 16
	jmp	.L9
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pdf_authenticate_user_password, .-pdf_authenticate_user_password
	.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_pdf-crypt.c_pdf_authenticate_user_password.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pdf_authenticate_user_password, %function
pdf_authenticate_user_password:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r1
	sub	sp, sp, #52
	ldr	ip, .L11
	add	r5, sp, #12
	str	r5, [sp]
	ldr	ip, [ip]
	str	ip, [sp, #44]
	mov	ip,#0
	bl	pdf_compute_user_password
	ldr	r3, [r4]
	sub	r0, r3, #5
	cmp	r3, #2
	cmpne	r0, #1
	movls	r0, #1
	movhi	r0, #0
	bls	.L8
	sub	r3, r3, #3
	cmp	r3, #1
	bls	.L9
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	mov	r0, r5
	mov	r2, #32
	ldr	r1, [r4, #4]
	bl	memcmp
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L1
.L9:
	mov	r0, r5
	mov	r2, #16
	ldr	r1, [r4, #4]
	bl	memcmp
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	pdf_authenticate_user_password, .-pdf_authenticate_user_password
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
