	.file	"extr_cts.c_crypto_cts_decrypt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	crypto_cts_decrypt, @function
crypto_cts_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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	crypto_skcipher_reqtfm@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	skcipher_request_ctx@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	crypto_skcipher_ctx@PLT
	mov	rdi, r12
	lea	r14, 8[rbx]
	mov	r13, rax
	call	crypto_skcipher_blocksize@PLT
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, r14
	mov	r15d, DWORD PTR 0[rbp]
	mov	r12d, eax
	call	skcipher_request_set_tfm@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	r12d, r15d
	ja	.L1
	mov	esi, DWORD PTR 16[rbp]
	je	.L9
	mov	edx, DWORD PTR crypto_cts_decrypt_done[rip]
	mov	rcx, rbp
	mov	rdi, r14
	call	skcipher_request_set_callback@PLT
	mov	rdi, rbp
	call	crypto_cts_reqctx_space@PLT
	lea	edi, -1[r15]
	mov	esi, r12d
	mov	QWORD PTR 8[rsp], rax
	call	rounddown@PLT
	mov	r9, QWORD PTR 8[rsp]
	cmp	r12d, eax
	mov	DWORD PTR [rbx], eax
	mov	r13d, eax
	jnb	.L10
	lea	eax, [r12+r12]
	mov	edx, r13d
	mov	esi, DWORD PTR 12[rbp]
	xor	r8d, r8d
	sub	edx, eax
	mov	ecx, r12d
	mov	rdi, r9
	call	scatterwalk_map_and_copy@PLT
.L6:
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 12[rbp]
	mov	rdi, r14
	mov	ecx, r13d
	mov	r8d, DWORD PTR 4[rbp]
	call	skcipher_request_set_crypt@PLT
	mov	rdi, r14
	call	crypto_skcipher_decrypt@PLT
	test	eax, eax
	je	.L11
.L1:
	add	rsp, 24
	.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
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, r12d
	mov	rdi, r9
	call	memcpy@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	cts_cbc_decrypt@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rcx, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR 32[rbp]
	mov	rdi, r14
	call	skcipher_request_set_callback@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR 12[rbp]
	mov	rdi, r14
	mov	r8d, DWORD PTR 4[rbp]
	mov	ecx, r12d
	call	skcipher_request_set_crypt@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	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
	jmp	crypto_skcipher_decrypt@PLT
	.cfi_endproc
.LFE0:
	.size	crypto_cts_decrypt, .-crypto_cts_decrypt
	.comm	crypto_cts_decrypt_done,4,4
	.comm	EINVAL,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_cts.c_crypto_cts_decrypt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	crypto_cts_decrypt, %function
crypto_cts_decrypt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r4, r0
	bl	crypto_skcipher_reqtfm
	mov	r5, r0
	mov	r0, r4
	bl	skcipher_request_ctx
	mov	r6, r0
	mov	r0, r5
	bl	crypto_skcipher_ctx
	mov	r7, r0
	mov	r0, r5
	bl	crypto_skcipher_blocksize
	mov	r5, r0
	ldr	r9, [r4]
	add	r8, r6, #4
	mov	r0, r8
	ldr	r1, [r7]
	bl	skcipher_request_set_tfm
	cmp	r5, r9
	bhi	.L9
	ldr	r1, [r4, #16]
	beq	.L10
	ldr	r3, .L13
	mov	r0, r8
	ldr	r2, [r3]
	mov	r3, r4
	bl	skcipher_request_set_callback
	mov	r0, r4
	bl	crypto_cts_reqctx_space
	mov	r3, r0
	mov	r1, r5
	sub	r0, r9, #1
	mov	r9, r3
	bl	rounddown
	cmp	r5, r0
	mov	r7, r0
	str	r0, [r6]
	bcs	.L11
	mov	r3, #0
	str	r3, [sp]
	mov	r0, r9
	mov	r3, r5
	ldr	r1, [r4, #12]
	sub	r2, r7, r5, lsl #1
	bl	scatterwalk_map_and_copy
.L6:
	ldr	r2, [r4, #4]
	mov	r3, r7
	str	r2, [sp]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	mov	r0, r8
	bl	skcipher_request_set_crypt
	mov	r0, r8
	bl	crypto_skcipher_decrypt
	cmp	r0, #0
	beq	.L12
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	mov	r2, r5
	mov	r0, r9
	ldr	r1, [r4, #4]
	bl	memcpy
	b	.L6
.L9:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	cts_cbc_decrypt
.L10:
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #24]
	mov	r0, r8
	bl	skcipher_request_set_callback
	ldr	r2, [r4, #4]
	mov	r3, r5
	str	r2, [sp]
	mov	r0, r8
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	bl	skcipher_request_set_crypt
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	crypto_skcipher_decrypt
.L14:
	.align	2
.L13:
	.word	crypto_cts_decrypt_done
	.word	EINVAL
	.size	crypto_cts_decrypt, .-crypto_cts_decrypt
	.comm	crypto_cts_decrypt_done,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
