	.file	"extr_aes-ce-glue.c_cts_cbc_decrypt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cts_cbc_decrypt, @function
cts_cbc_decrypt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	lea	r12, 32[rsp]
	call	crypto_skcipher_reqtfm@PLT
	mov	rdi, rax
	mov	r14, rax
	call	crypto_skcipher_ctx@PLT
	mov	esi, DWORD PTR AES_BLOCK_SIZE[rip]
	mov	edi, DWORD PTR [rbx]
	mov	QWORD PTR 8[rsp], rax
	call	DIV_ROUND_UP@PLT
	mov	rsi, r14
	mov	rdi, r12
	mov	r15, QWORD PTR 16[rbx]
	mov	r13, QWORD PTR 8[rbx]
	mov	ebp, eax
	call	skcipher_request_set_tfm@PLT
	mov	rdi, rbx
	call	skcipher_request_flags@PLT
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, r12
	mov	esi, eax
	call	skcipher_request_set_callback@PLT
	mov	eax, DWORD PTR [rbx]
	mov	ecx, DWORD PTR AES_BLOCK_SIZE[rip]
	cmp	eax, ecx
	jg	.L2
	mov	ebp, 1
	jl	.L12
.L3:
	mov	rdx, QWORD PTR 8[rbx]
	mov	rsi, QWORD PTR 16[rbx]
	mov	rdi, r12
	lea	r14, 16[rsp]
	mov	r8d, DWORD PTR 4[rbx]
	call	skcipher_request_set_crypt@PLT
	xor	edx, edx
	mov	rsi, r12
	mov	rdi, r14
	call	skcipher_walk_virt@PLT
	test	eax, eax
	je	.L13
.L1:
	mov	rdx, QWORD PTR 72[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 88
	.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
.L13:
	.cfi_restore_state
	mov	rsi, r14
	mov	rdi, r12
	call	cbc_decrypt_walk@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR AES_BLOCK_SIZE[rip]
	cmp	DWORD PTR [rbx], edx
	je	.L1
	mov	rsi, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR 32[rsp]
	lea	rdi, 56[rsp]
	call	scatterwalk_ffwd@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	r15, rax
	cmp	rsi, QWORD PTR 16[rbx]
	je	.L15
	mov	edx, DWORD PTR 32[rsp]
	lea	rdi, 64[rsp]
	call	scatterwalk_ffwd@PLT
	mov	ecx, DWORD PTR AES_BLOCK_SIZE[rip]
	mov	r13, rax
	mov	eax, DWORD PTR [rbx]
	imul	ecx, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	sub	ebp, 2
	lea	r14, 16[rsp]
	imul	ecx, ebp
	test	ebp, ebp
	jg	.L3
.L5:
	sub	eax, ecx
	mov	r8d, DWORD PTR 4[rbx]
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, r12
	mov	ecx, eax
	call	skcipher_request_set_crypt@PLT
	xor	edx, edx
	mov	rsi, r12
	mov	rdi, r14
	call	skcipher_walk_virt@PLT
	test	eax, eax
	jne	.L1
	call	kernel_neon_begin@PLT
	mov	r15, QWORD PTR 8[rsp]
	mov	ebp, DWORD PTR 16[rsp]
	mov	ebx, DWORD PTR 20[rsp]
	mov	rdi, r15
	call	num_rounds@PLT
	mov	esi, DWORD PTR 24[rsp]
	mov	edi, DWORD PTR 28[rsp]
	mov	r9d, ebp
	mov	edx, DWORD PTR [r15]
	mov	ecx, eax
	mov	r8d, ebx
	call	ce_aes_cbc_cts_decrypt@PLT
	xor	eax, eax
	call	kernel_neon_end@PLT
	xor	esi, esi
	mov	rdi, r14
	call	skcipher_walk_done@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	ecx, DWORD PTR AES_BLOCK_SIZE[rip]
	mov	eax, DWORD PTR [rbx]
	mov	r13, r15
	imul	ecx, ebp
	jmp	.L5
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cts_cbc_decrypt, .-cts_cbc_decrypt
	.comm	EINVAL,4,4
	.comm	AES_BLOCK_SIZE,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_aes-ce-glue.c_cts_cbc_decrypt.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cts_cbc_decrypt, %function
cts_cbc_decrypt:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L16
	sub	sp, sp, #64
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	mov	r4, r0
	bl	crypto_skcipher_reqtfm
	mov	r5, r0
	bl	crypto_skcipher_ctx
	ldr	r7, .L16+4
	mov	r8, r0
	ldr	r1, [r7]
	ldr	r0, [r4]
	bl	DIV_ROUND_UP
	mov	r1, r5
	mov	r6, r0
	add	r0, sp, #12
	ldr	r5, [r4, #12]
	ldr	r10, [r4, #8]
	bl	skcipher_request_set_tfm
	mov	r0, r4
	bl	skcipher_request_flags
	mov	r3, #0
	mov	r1, r0
	mov	r2, r3
	add	r0, sp, #12
	bl	skcipher_request_set_callback
	ldr	r1, [r4]
	ldr	r3, [r7]
	cmp	r1, r3
	bgt	.L2
	movge	r6, #1
	blt	.L12
.L3:
	ldr	r2, [r4, #4]
	add	r0, sp, #12
	str	r2, [sp]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	add	r9, sp, #28
	bl	skcipher_request_set_crypt
	mov	r0, r9
	mov	r2, #0
	add	r1, sp, #12
	bl	skcipher_walk_virt
	subs	r5, r0, #0
	beq	.L13
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r5
	add	sp, sp, #64
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mov	r1, r9
	add	r0, sp, #12
	bl	cbc_decrypt_walk
	subs	r5, r0, #0
	bne	.L1
	ldr	r2, [r4]
	ldr	r3, [r7]
	cmp	r2, r3
	beq	.L1
	ldr	r1, [r4, #12]
	ldr	r2, [sp, #12]
	add	r0, sp, #44
	bl	scatterwalk_ffwd
	ldr	r1, [r4, #8]
	ldr	r3, [r4, #12]
	mov	r5, r0
	cmp	r1, r3
	beq	.L15
	ldr	r2, [sp, #12]
	add	r0, sp, #52
	bl	scatterwalk_ffwd
	ldr	r2, [r7]
	mov	r10, r0
	mul	r3, r2, r6
	ldr	r1, [r4]
	b	.L5
.L2:
	sub	r6, r6, #2
	cmp	r6, #0
	mul	r3, r6, r3
	addle	r9, sp, #28
	bgt	.L3
.L5:
	ldr	r2, [r4, #4]
	sub	r3, r1, r3
	str	r2, [sp]
	mov	r1, r5
	mov	r2, r10
	add	r0, sp, #12
	bl	skcipher_request_set_crypt
	mov	r2, #0
	mov	r0, r9
	add	r1, sp, #12
	bl	skcipher_walk_virt
	subs	r5, r0, #0
	bne	.L1
	bl	kernel_neon_begin
	mov	r0, r8
	ldr	r7, [r8]
	ldr	r4, [sp, #40]
	ldr	r6, [sp, #36]
	bl	num_rounds
	ldr	lr, [sp, #28]
	ldr	ip, [sp, #32]
	mov	r3, r0
	mov	r2, r7
	mov	r1, r6
	stm	sp, {ip, lr}
	mov	r0, r4
	bl	ce_aes_cbc_cts_decrypt
	bl	kernel_neon_end
	mov	r1, r5
	mov	r0, r9
	bl	skcipher_walk_done
	mov	r5, r0
	b	.L1
.L12:
	ldr	r3, .L16+8
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L15:
	ldr	r2, [r7]
	mov	r10, r0
	mul	r3, r2, r6
	ldr	r1, [r4]
	b	.L5
.L14:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	AES_BLOCK_SIZE
	.word	EINVAL
	.size	cts_cbc_decrypt, .-cts_cbc_decrypt
	.comm	EINVAL,4,4
	.comm	AES_BLOCK_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
