	.file	"extr_cast6_generic.c___cast6_setkey.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__cast6_setkey
	.type	__cast6_setkey, @function
__cast6_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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 80
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	test	dl, 3
	je	.L2
	mov	eax, DWORD PTR CRYPTO_TFM_RES_BAD_KEY_LEN[rip]
	or	DWORD PTR [rcx], eax
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	r14, 32[rsp]
	mov	r12d, edx
	mov	rbp, rsi
	mov	edx, 32
	xor	esi, esi
	mov	r13, rdi
	mov	rdi, r14
	xor	ebx, ebx
	call	memset@PLT
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r14
	call	memcpy@PLT
	mov	edi, DWORD PTR 32[rsp]
	mov	r12, rsp
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 36[rsp]
	mov	DWORD PTR [rsp], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 40[rsp]
	mov	DWORD PTR 4[rsp], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 44[rsp]
	mov	DWORD PTR 8[rsp], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 48[rsp]
	mov	DWORD PTR 12[rsp], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 52[rsp]
	mov	DWORD PTR 16[rsp], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 56[rsp]
	mov	DWORD PTR 20[rsp], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 60[rsp]
	mov	DWORD PTR 24[rsp], eax
	call	be32_to_cpu@PLT
	mov	DWORD PTR 28[rsp], eax
	.p2align 4,,10
	.p2align 3
.L4:
	lea	ebp, [rbx+rbx]
	mov	rdi, r12
	mov	esi, ebp
	call	W@PLT
	lea	esi, 1[rbp]
	mov	rdi, r12
	call	W@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	edx, DWORD PTR [rsp]
	mov	rax, QWORD PTR [rax+rbx*8]
	and	edx, 31
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR 8[rsp]
	and	edx, 31
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR 16[rsp]
	and	edx, 31
	mov	DWORD PTR 8[rax], edx
	mov	edx, DWORD PTR 24[rsp]
	and	edx, 31
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR 8[r13]
	mov	edx, DWORD PTR 28[rsp]
	mov	rax, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR 20[rsp]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR 12[rsp]
	mov	DWORD PTR 8[rax], edx
	mov	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR 12[rax], edx
	cmp	rbx, 12
	jne	.L4
	xor	eax, eax
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__cast6_setkey, .-__cast6_setkey
	.comm	EINVAL,4,4
	.comm	CRYPTO_TFM_RES_BAD_KEY_LEN,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_cast6_generic.c___cast6_setkey.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__cast6_setkey
	.syntax unified
	.arm
	.fpu softvfp
	.type	__cast6_setkey, %function
__cast6_setkey:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r2
	ands	r4, r2, #3
	ldr	r2, .L10
	sub	sp, sp, #76
	ldr	r2, [r2]
	str	r2, [sp, #68]
	mov	r2,#0
	beq	.L2
	ldr	r1, .L10+4
	ldr	r2, [r3]
	ldr	r0, [r1]
	ldr	r1, .L10+8
	orr	r2, r2, r0
	str	r2, [r3]
	ldr	r0, [r1]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r7, r1
	mov	r2, #32
	mov	r1, r4
	mov	r5, r0
	add	r0, sp, #36
	bl	memset
	mov	r2, r6
	mov	r1, r7
	add	r0, sp, #36
	bl	memcpy
	ldr	r0, [sp, #36]
	bl	be32_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #40]
	str	r3, [sp, #4]
	bl	be32_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #44]
	str	r3, [sp, #8]
	bl	be32_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #48]
	str	r3, [sp, #12]
	bl	be32_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #52]
	str	r3, [sp, #16]
	bl	be32_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #56]
	str	r3, [sp, #20]
	bl	be32_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #60]
	str	r3, [sp, #24]
	bl	be32_to_cpu
	mov	r3, r0
	ldr	r0, [sp, #64]
	str	r3, [sp, #28]
	bl	be32_to_cpu
	str	r0, [sp, #32]
.L4:
	mov	r1, r4
	add	r0, sp, #4
	bl	W
	add	r1, r4, #1
	add	r0, sp, #4
	bl	W
	ldr	r2, [r5]
	ldr	r3, [sp, #4]
	ldr	r2, [r2, r4, lsl #1]
	and	r3, r3, #31
	str	r3, [r2]
	ldr	r3, [sp, #12]
	ldr	r0, [r5, #4]
	and	r3, r3, #31
	str	r3, [r2, #4]
	ldr	r1, [sp, #20]
	ldr	r3, [r0, r4, lsl #1]
	and	r1, r1, #31
	str	r1, [r2, #8]
	ldr	r1, [sp, #28]
	add	r4, r4, #2
	and	r1, r1, #31
	str	r1, [r2, #12]
	ldr	r2, [sp, #32]
	cmp	r4, #24
	str	r2, [r3]
	ldr	r2, [sp, #24]
	str	r2, [r3, #4]
	ldr	r2, [sp, #16]
	str	r2, [r3, #8]
	ldr	r2, [sp, #8]
	str	r2, [r3, #12]
	bne	.L4
	mov	r0, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	CRYPTO_TFM_RES_BAD_KEY_LEN
	.word	EINVAL
	.size	__cast6_setkey, .-__cast6_setkey
	.comm	EINVAL,4,4
	.comm	CRYPTO_TFM_RES_BAD_KEY_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
