	.file	"extr_block.c_unpadblock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	unpadblock
	.type	unpadblock, @function
unpadblock:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	cmp	QWORD PTR [rsi], rdx
	jne	.L13
	movzx	r8d, BYTE PTR -1[rdi+rdx]
	lea	rax, -1[rdx]
	mov	r9, r8
	test	r8, r8
	je	.L6
	cmp	rdx, r8
	jb	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rcx, rdx
	sub	rcx, rax
	cmp	rcx, r8
	jnb	.L14
	sub	rax, 1
	cmp	r9b, BYTE PTR [rdi+rax]
	je	.L4
.L6:
	mov	esi, DWORD PTR PROV_R_BAD_DECRYPT[rip]
	mov	edi, DWORD PTR ERR_LIB_PROV[rip]
	call	ERR_raise@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	esi, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	edi, DWORD PTR ERR_LIB_PROV[rip]
	call	ERR_raise@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	QWORD PTR [rsi], rax
	mov	eax, 1
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	unpadblock, .-unpadblock
	.comm	PROV_R_BAD_DECRYPT,4,4
	.comm	ERR_R_INTERNAL_ERROR,4,4
	.comm	ERR_LIB_PROV,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_block.c_unpadblock.c"
	.text
	.align	2
	.global	unpadblock
	.syntax unified
	.arm
	.fpu softvfp
	.type	unpadblock, %function
unpadblock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, lr}
	cmp	r3, r2
	ldrne	r2, .L11
	bne	.L8
	add	lr, r0, r3
	ldrb	r2, [lr, #-1]	@ zero_extendqisi2
	cmp	r3, r2
	movcs	ip, #0
	movcc	ip, #1
	cmp	r2, #0
	moveq	ip, #1
	cmp	ip, #0
	bne	.L4
	sub	r3, r3, #2
	add	r3, r0, r3
	sub	lr, lr, #1
	rsb	r0, r0, #1
.L5:
	sub	ip, lr, r3
	cmp	ip, r2
	add	ip, r0, r3
	bcs	.L10
	ldrb	ip, [r3], #-1	@ zero_extendqisi2
	cmp	r2, ip
	beq	.L5
.L4:
	ldr	r2, .L11+4
.L8:
	ldr	r3, .L11+8
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	ERR_raise
	mov	r0, #0
	pop	{r4, pc}
.L10:
	mov	r0, #1
	str	ip, [r1]
	pop	{r4, pc}
.L12:
	.align	2
.L11:
	.word	ERR_R_INTERNAL_ERROR
	.word	PROV_R_BAD_DECRYPT
	.word	ERR_LIB_PROV
	.size	unpadblock, .-unpadblock
	.comm	PROV_R_BAD_DECRYPT,4,4
	.comm	ERR_R_INTERNAL_ERROR,4,4
	.comm	ERR_LIB_PROV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
