	.file	"extr_xform_aes_xts.c_aes_xts_setkey.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aes_xts_setkey, @function
aes_xts_setkey:
.LFB0:
	.cfi_startproc
	endbr64
	lea	eax, -32[rdx]
	and	eax, -33
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	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
	mov	esi, DWORD PTR M_CRYPTO_DATA[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	edi, 8
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	mov	edx, DWORD PTR M_NOWAIT[rip]
	or	edx, DWORD PTR M_ZERO[rip]
	call	KMALLOC@PLT
	mov	r12, rax
	mov	QWORD PTR 0[rbp], rax
	mov	eax, DWORD PTR ENOMEM[rip]
	test	r12, r12
	je	.L1
	lea	r14d, 0[0+rbx*4]
	lea	rdi, 4[r12]
	mov	rsi, r13
	mov	edx, r14d
	call	rijndael_set_key@PLT
	mov	edx, ebx
	mov	rdi, r12
	shr	edx, 31
	add	ebx, edx
	mov	edx, r14d
	sar	ebx
	movsx	rbx, ebx
	lea	rsi, 0[r13+rbx*4]
	call	rijndael_set_key@PLT
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	aes_xts_setkey, .-aes_xts_setkey
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_CRYPTO_DATA,4,4
	.comm	ENOMEM,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_xform_aes_xts.c_aes_xts_setkey.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aes_xts_setkey, %function
aes_xts_setkey:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	r3, r2, #32
	push	{r4, r5, r6, r7, r8, lr}
	bics	r6, r3, #32
	beq	.L2
	ldr	r3, .L8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L8+4
	mov	r4, r2
	ldr	r2, .L8+8
	mov	r7, r1
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L8+12
	mov	r8, r0
	orr	r2, r1, r2
	mov	r0, #8
	ldr	r1, [r3]
	bl	KMALLOC
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r8]
	beq	.L7
	lsl	r8, r4, #2
	add	r4, r4, r4, lsr #31
	mov	r2, r8
	mov	r1, r7
	asr	r4, r4, #1
	add	r0, r0, #4
	bl	rijndael_set_key
	mov	r2, r8
	mov	r0, r5
	add	r1, r7, r4, lsl #2
	bl	rijndael_set_key
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L8+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	EINVAL
	.word	M_ZERO
	.word	M_NOWAIT
	.word	M_CRYPTO_DATA
	.word	ENOMEM
	.size	aes_xts_setkey, .-aes_xts_setkey
	.comm	M_ZERO,4,4
	.comm	M_NOWAIT,4,4
	.comm	M_CRYPTO_DATA,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
