	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_cryp_hw_write_key
_stm32_cryp_hw_write_key:               ## @stm32_cryp_hw_write_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_is_des
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	_CRYP_K1LR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_stm32_cryp_write
	movq	_CRYP_K1RR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %edi
	callq	_cpu_to_be32
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stm32_cryp_write               ## TAILCALL
LBB0_1:
	movq	(%r14), %rax
	movl	(%rax), %r15d
	cmpl	$4, %r15d
	jb	LBB0_5
## %bb.2:
	sarl	$2, %r15d
	movq	_CRYP_K3RR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	8(%rax), %rax
	leal	-1(%r15), %r12d
	movl	(%rax,%r12,4), %edi
	callq	_cpu_to_be32
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_stm32_cryp_write
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:
	addl	$-2, %r15d
	addl	$-4, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	(%rax,%r15,4), %edi
	callq	_cpu_to_be32
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_stm32_cryp_write
	decq	%r15
	addl	$-4, %ebx
	decl	%r12d
	jne	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYP_K1LR,4,2                  ## @CRYP_K1LR
	.comm	_CRYP_K1RR,4,2                  ## @CRYP_K1RR
	.comm	_CRYP_K3RR,4,2                  ## @CRYP_K3RR
	.no_dead_strip	_stm32_cryp_hw_write_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_cryp_hw_write_key
_stm32_cryp_hw_write_key:               ; @stm32_cryp_hw_write_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_is_des
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CRYP_K1LR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYP_K1LR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_stm32_cryp_write
Lloh3:
	adrp	x8, _CRYP_K1RR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYP_K1RR@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	w0, [x8, #4]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_stm32_cryp_write
LBB0_2:
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #4
	b.lo	LBB0_6
; %bb.3:
Lloh6:
	adrp	x10, _CRYP_K3RR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CRYP_K3RR@GOTPAGEOFF]
	asr	w22, w9, #2
Lloh8:
	ldr	w20, [x10]
	ldr	x8, [x8, #8]
	sub	w21, w22, #1
	ldr	w0, [x8, w21, uxtw #2]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_stm32_cryp_write
	cbz	w21, LBB0_6
; %bb.4:
	sub	w8, w22, #2
	lsl	x22, x8, #2
	sub	w20, w20, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	sub	w21, w21, #1
	ldr	w0, [x8, x22]
	bl	_cpu_to_be32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_stm32_cryp_write
	sub	x22, x22, #4
	sub	w20, w20, #4
	cbnz	w21, LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYP_K1LR,4,2                  ; @CRYP_K1LR
	.comm	_CRYP_K1RR,4,2                  ; @CRYP_K1RR
	.comm	_CRYP_K3RR,4,2                  ; @CRYP_K3RR
	.no_dead_strip	_stm32_cryp_hw_write_key
.subsections_via_symbols
