	.file	"extr_stm32-cryp.c_stm32_cryp_hw_write_key.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	stm32_cryp_hw_write_key, @function
stm32_cryp_hw_write_key:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	is_des@PLT
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR CRYP_K3RR[rip]
	movsx	rdx, DWORD PTR [rax]
	shr	rdx, 2
	test	edx, edx
	je	.L1
	lea	ebx, -1[rdx]
	sal	edx, 2
	sub	ecx, edx
	sal	rbx, 2
	lea	r12d, 4[rcx]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 0[rbp]
.L4:
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR [rax+rbx]
	call	cpu_to_be32@PLT
	lea	esi, [r12+rbx]
	mov	rdi, rbp
	sub	rbx, 4
	mov	edx, eax
	call	stm32_cryp_write@PLT
	cmp	rbx, -4
	jne	.L11
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR [rax]
	call	cpu_to_be32@PLT
	mov	esi, DWORD PTR CRYP_K1LR[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	stm32_cryp_write@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR 4[rax]
	call	cpu_to_be32@PLT
	mov	esi, DWORD PTR CRYP_K1RR[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	edx, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	stm32_cryp_write@PLT
	.cfi_endproc
.LFE0:
	.size	stm32_cryp_hw_write_key, .-stm32_cryp_hw_write_key
	.comm	CRYP_K3RR,4,4
	.comm	CRYP_K1RR,4,4
	.comm	CRYP_K1LR,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_stm32-cryp.c_stm32_cryp_hw_write_key.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stm32_cryp_hw_write_key, %function
stm32_cryp_hw_write_key:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	is_des
	cmp	r0, #0
	ldr	r3, [r5]
	bne	.L13
	ldr	r4, [r3]
	ldr	r2, .L14
	lsrs	r4, r4, #2
	ldr	r6, [r2]
	popeq	{r4, r5, r6, pc}
	sub	r4, r4, #-1073741823
	sub	r6, r6, r4, lsl #2
	lsl	r4, r4, #2
.L4:
	ldr	r3, [r3, #4]
	ldr	r0, [r3, r4]
	bl	cpu_to_be32
	add	r1, r6, r4
	mov	r2, r0
	sub	r4, r4, #4
	mov	r0, r5
	bl	stm32_cryp_write
	cmn	r4, #4
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r5]
	b	.L4
.L13:
	ldr	r3, [r3, #4]
	ldr	r2, .L14+4
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	cpu_to_be32
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	stm32_cryp_write
	ldr	r3, [r5]
	ldr	r2, .L14+8
	ldr	r3, [r3, #4]
	ldr	r4, [r2]
	ldr	r0, [r3, #4]
	bl	cpu_to_be32
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	stm32_cryp_write
.L15:
	.align	2
.L14:
	.word	CRYP_K3RR
	.word	CRYP_K1LR
	.word	CRYP_K1RR
	.size	stm32_cryp_hw_write_key, .-stm32_cryp_hw_write_key
	.comm	CRYP_K3RR,4,4
	.comm	CRYP_K1RR,4,4
	.comm	CRYP_K1LR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
