	.file	"extr_caamalg_qi.c_xts_skcipher_setkey.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"key size mismatch\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"driver enc context update failed\n"
	.align 8
.LC2:
	.string	"driver dec context update failed\n"
	.text
	.p2align 4
	.type	xts_skcipher_setkey, @function
xts_skcipher_setkey:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	crypto_skcipher_ctx@PLT
	mov	r14, QWORD PTR 40[rax]
	mov	rbx, rax
	mov	eax, DWORD PTR AES_MIN_KEY_SIZE[rip]
	add	eax, eax
	cmp	eax, ebp
	je	.L2
	mov	eax, DWORD PTR AES_MAX_KEY_SIZE[rip]
	add	eax, eax
	cmp	eax, ebp
	jne	.L17
.L2:
	mov	DWORD PTR 24[rbx], ebp
	mov	edi, DWORD PTR 16[rbx]
	lea	rbp, 24[rbx]
	mov	QWORD PTR 32[rbx], r13
	mov	rsi, rbp
	mov	DWORD PTR 28[rbx], 1
	call	cnstr_shdsc_xts_skcipher_encap@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbp
	call	cnstr_shdsc_xts_skcipher_decap@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR ENCRYPT[rip]
	mov	rdi, QWORD PTR [rax+rdx*8]
	test	rdi, rdi
	jne	.L18
	mov	rdx, QWORD PTR DECRYPT[rip]
	mov	rdi, QWORD PTR [rax+rdx*8]
	test	rdi, rdi
	jne	.L6
.L8:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rbx]
	call	caam_drv_ctx_update@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR DECRYPT[rip]
	mov	rdi, QWORD PTR [rax+rdx*8]
	test	rdi, rdi
	je	.L8
.L6:
	mov	esi, DWORD PTR [rbx]
	call	caam_drv_ctx_update@PLT
	test	eax, eax
	je	.L8
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	call	dev_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	dev_err@PLT
.L3:
	mov	esi, DWORD PTR CRYPTO_TFM_RES_BAD_KEY_LEN[rip]
	mov	rdi, r12
	call	crypto_skcipher_set_flags@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	dev_err@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	xts_skcipher_setkey, .-xts_skcipher_setkey
	.comm	ENCRYPT,8,8
	.comm	EINVAL,4,4
	.comm	DECRYPT,8,8
	.comm	CRYPTO_TFM_RES_BAD_KEY_LEN,4,4
	.comm	AES_MIN_KEY_SIZE,4,4
	.comm	AES_MAX_KEY_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_caamalg_qi.c_xts_skcipher_setkey.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"key size mismatch\012\000"
	.align	2
.LC1:
	.ascii	"driver enc context update failed\012\000"
	.align	2
.LC2:
	.ascii	"driver dec context update failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xts_skcipher_setkey, %function
xts_skcipher_setkey:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r6, r1
	mov	r7, r0
	bl	crypto_skcipher_ctx
	ldr	r3, .L19
	mov	r4, r0
	ldr	r3, [r3]
	ldr	r8, [r0, #24]
	cmp	r5, r3, lsl #1
	beq	.L2
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r5, r3, lsl #1
	bne	.L17
.L2:
	mov	r3, #1
	add	r1, r4, #12
	str	r5, [r4, #12]
	mov	r5, r1
	str	r3, [r4, #16]
	ldr	r0, [r4, #8]
	str	r6, [r4, #20]
	bl	cnstr_shdsc_xts_skcipher_encap
	mov	r1, r5
	ldr	r0, [r4]
	bl	cnstr_shdsc_xts_skcipher_decap
	ldr	r2, .L19+8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r0, [r3, r2, lsl #2]
	cmp	r0, #0
	bne	.L18
.L4:
	ldr	r2, .L19+12
	ldr	r2, [r2]
	ldr	r0, [r3, r2, lsl #2]
	cmp	r0, #0
	bne	.L6
.L8:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r1, [r4, #8]
	bl	caam_drv_ctx_update
	cmp	r0, #0
	bne	.L5
	ldr	r3, [r4, #4]
	b	.L4
.L6:
	ldr	r1, [r4]
	bl	caam_drv_ctx_update
	cmp	r0, #0
	beq	.L8
	mov	r0, r8
	ldr	r1, .L19+16
	bl	dev_err
	b	.L3
.L17:
	mov	r0, r8
	ldr	r1, .L19+20
	bl	dev_err
.L3:
	ldr	r3, .L19+24
	mov	r0, r7
	ldr	r1, [r3]
	bl	crypto_skcipher_set_flags
	ldr	r3, .L19+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r8
	ldr	r1, .L19+32
	bl	dev_err
	b	.L3
.L20:
	.align	2
.L19:
	.word	AES_MIN_KEY_SIZE
	.word	AES_MAX_KEY_SIZE
	.word	ENCRYPT
	.word	DECRYPT
	.word	.LC2
	.word	.LC0
	.word	CRYPTO_TFM_RES_BAD_KEY_LEN
	.word	EINVAL
	.word	.LC1
	.size	xts_skcipher_setkey, .-xts_skcipher_setkey
	.comm	ENCRYPT,4,4
	.comm	EINVAL,4,4
	.comm	DECRYPT,4,4
	.comm	CRYPTO_TFM_RES_BAD_KEY_LEN,4,4
	.comm	AES_MIN_KEY_SIZE,4,4
	.comm	AES_MAX_KEY_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
