	.file	"extr_camellia.c_generate_round_keys.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	generate_round_keys, @function
generate_round_keys:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	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
	xor	ebx, ebx
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR 8[rdi]
	mov	QWORD PTR 8[rsp], r8
	lea	r14, 16[rsp]
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rcx
	xor	ecx, ecx
	mov	QWORD PTR 40[rsp], rdx
	mov	rdx, QWORD PTR [rsi]
	cmp	DWORD PTR [rdi], 128
	mov	QWORD PTR 32[rsp], rsi
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR 8[rdi]
	mov	rdx, QWORD PTR 8[rsi]
	mov	QWORD PTR 48[rsp], r13
	mov	QWORD PTR 56[rsp], r8
	mov	QWORD PTR 8[rax], rdx
	je	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR shifts[rip]
	mov	rdi, r14
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rax+rbx]
	mov	rax, QWORD PTR vars[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax+rbx*2]
	mov	rsi, QWORD PTR 32[rsp+rax*8]
	call	LR128@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	QWORD PTR [rax+rbx*4], rdx
	mov	rax, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rax+rbx*4], rdx
	add	rbx, 4
	cmp	rbx, 48
	jne	.L2
	mov	edx, 30
	mov	rsi, r15
	mov	rdi, r14
	call	LR128@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, r12
	mov	rdi, r14
	mov	rdx, QWORD PTR 16[rsp]
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	edx, 60
	call	LR128@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, r13
	mov	rdi, r14
	mov	rdx, QWORD PTR 16[rsp]
	mov	QWORD PTR 16[rax], rdx
	mov	rdx, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	edx, 77
	call	LR128@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	mov	QWORD PTR 32[rax], rdx
	mov	rdx, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	edx, 111
.L11:
	mov	rdi, r14
	call	LR128@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 24[rsp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	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
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR shifts[rip]
	mov	rdi, r14
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax+rbx]
	mov	rax, QWORD PTR vars[rip]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax+rbx*2]
	mov	rsi, QWORD PTR 32[rsp+rax*8]
	call	LR128@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	QWORD PTR [rax+rbx*4], rdx
	mov	rax, QWORD PTR 24[rbp]
	mov	rdx, QWORD PTR 24[rsp]
	mov	QWORD PTR 8[rax+rbx*4], rdx
	add	rbx, 4
	cmp	rbx, 36
	jne	.L3
	mov	edx, 60
	mov	rsi, r12
	mov	rdi, r14
	call	LR128@PLT
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, r13
	mov	rdi, r14
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 72[rax], rdx
	mov	edx, 30
	call	LR128@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, r12
	mov	rdi, r14
	mov	rdx, QWORD PTR 16[rsp]
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	edx, 77
	call	LR128@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, r13
	mov	QWORD PTR 16[rax], rdx
	mov	rdx, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	edx, 111
	jmp	.L11
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	generate_round_keys, .-generate_round_keys
	.comm	vars,8,8
	.comm	shifts,8,8
	.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_camellia.c_generate_round_keys.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	generate_round_keys, %function
generate_round_keys:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r9, r1
	mov	r0, r2
	mov	r10, r3
	mov	r6, #0
	sub	sp, sp, #44
	ldr	r3, [r5, #4]
	str	r2, [sp]
	ldr	r2, [r1]
	ldr	r1, .L13
	mov	r4, r6
	ldr	r1, [r1]
	str	r1, [sp, #36]
	mov	r1,#0
	str	r2, [r3]
	ldm	r5, {r1, r3}
	ldr	r2, [r9, #4]
	cmp	r1, #128
	ldr	r1, [sp, #80]
	ldr	fp, .L13+4
	ldr	r8, .L13+8
	add	r7, sp, #12
	str	r1, [sp, #4]
	str	r9, [sp, #20]
	str	r0, [sp, #24]
	str	r10, [sp, #28]
	str	r2, [r3, #4]
	str	r1, [sp, #32]
	beq	.L3
.L2:
	ldr	r3, [r8]
	ldr	r2, [fp]
	ldr	r3, [r3, #4]
	ldr	r2, [r2, #4]
	ldr	r3, [r3, r4]
	add	r1, sp, #40
	add	r3, r1, r3, lsl #2
	ldr	r2, [r2, r4]
	ldr	r1, [r3, #-20]
	mov	r0, r7
	bl	LR128
	ldr	r2, [sp, #12]
	ldr	r3, [r5, #12]
	add	r4, r4, #4
	str	r2, [r3, r6]
	ldr	r3, [r5, #12]
	ldr	r2, [sp, #16]
	add	r3, r3, r6
	cmp	r4, #48
	str	r2, [r3, #4]
	add	r6, r6, #8
	bne	.L2
	mov	r2, #30
	ldr	r1, [sp]
	mov	r0, r7
	bl	LR128
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #12]
	mov	r1, r9
	str	r2, [r3]
	ldr	r3, [r5, #8]
	ldr	r0, [sp, #16]
	mov	r2, #60
	str	r0, [r3, #4]
	mov	r0, r7
	bl	LR128
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #12]
	mov	r1, r10
	str	r2, [r3, #8]
	ldr	r3, [r5, #8]
	ldr	r0, [sp, #16]
	mov	r2, #77
	str	r0, [r3, #12]
	mov	r0, r7
	bl	LR128
	mov	r0, r7
	ldr	r3, [r5, #8]
	ldr	r1, [sp, #12]
	ldr	r2, [sp, #16]
	str	r1, [r3, #16]
	ldr	r3, [r5, #8]
	ldr	r1, [sp, #4]
	str	r2, [r3, #20]
.L10:
	mov	r2, #111
	bl	LR128
	ldr	r3, [r5, #4]
	ldr	r2, [sp, #12]
	str	r2, [r3, #8]
	ldr	r3, [r5, #4]
	ldr	r2, [sp, #16]
	str	r2, [r3, #12]
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, [r8]
	ldr	r2, [fp]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r3, [r3, r4]
	add	r1, sp, #40
	add	r3, r1, r3, lsl #2
	ldr	r2, [r2, r4]
	ldr	r1, [r3, #-20]
	mov	r0, r7
	bl	LR128
	ldr	r2, [sp, #12]
	ldr	r3, [r5, #12]
	add	r4, r4, #4
	str	r2, [r3, r6]
	ldr	r3, [r5, #12]
	ldr	r2, [sp, #16]
	add	r3, r3, r6
	cmp	r4, #36
	str	r2, [r3, #4]
	add	r6, r6, #8
	bne	.L3
	mov	r2, #60
	mov	r1, r9
	mov	r0, r7
	bl	LR128
	ldr	r3, [r5, #12]
	ldr	r1, [sp, #16]
	mov	r2, #30
	str	r1, [r3, #36]
	mov	r0, r7
	mov	r1, r10
	bl	LR128
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #12]
	mov	r1, r9
	str	r2, [r3]
	ldr	r3, [r5, #8]
	ldr	r0, [sp, #16]
	mov	r2, #77
	str	r0, [r3, #4]
	mov	r0, r7
	bl	LR128
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #12]
	mov	r1, r10
	str	r2, [r3, #8]
	ldr	r3, [r5, #8]
	ldr	r2, [sp, #16]
	mov	r0, r7
	str	r2, [r3, #12]
	b	.L10
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	shifts
	.word	vars
	.size	generate_round_keys, .-generate_round_keys
	.comm	vars,4,4
	.comm	shifts,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
