	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_cryp_gcm_init
_stm32_cryp_gcm_init:                   ## @stm32_cryp_gcm_init
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$12, %edx
	callq	_memcpy
	movq	_GCM_CTR_INIT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_cpu_to_be32
	movl	%eax, -52(%rbp)
	movl	(%r12), %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_stm32_cryp_hw_write_iv
	movq	_CRYP_CR@GOTPCREL(%rip), %rax
	movq	_CR_PH_INIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	(%rax), %esi
	movq	_CR_CRYPEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_stm32_cryp_write
	movq	%r14, %rdi
	callq	_stm32_cryp_wait_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GCM_CTR_INIT,4,2               ## @GCM_CTR_INIT
	.comm	_CRYP_CR,4,2                    ## @CRYP_CR
	.comm	_CR_PH_INIT,4,2                 ## @CR_PH_INIT
	.comm	_CR_CRYPEN,4,2                  ## @CR_CRYPEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout (gcm init)\n"

	.no_dead_strip	_stm32_cryp_gcm_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_cryp_gcm_init
_stm32_cryp_gcm_init:                   ; @stm32_cryp_gcm_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0, #8]
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #12
	bl	_memcpy
Lloh3:
	adrp	x21, _GCM_CTR_INIT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GCM_CTR_INIT@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_cpu_to_be32
	str	w0, [sp, #20]
	ldr	w8, [x21]
	str	w8, [x19, #4]
	add	x1, sp, #8
	mov	x0, x19
	bl	_stm32_cryp_hw_write_iv
Lloh5:
	adrp	x8, _CRYP_CR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CRYP_CR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _CR_PH_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CR_PH_INIT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w8, w8, w20
Lloh11:
	adrp	x9, _CR_CRYPEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CR_CRYPEN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_stm32_cryp_write
	mov	x0, x19
	bl	_stm32_cryp_wait_enable
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	ldr	x8, [sp, #24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GCM_CTR_INIT,4,2               ; @GCM_CTR_INIT
	.comm	_CRYP_CR,4,2                    ; @CRYP_CR
	.comm	_CR_PH_INIT,4,2                 ; @CR_PH_INIT
	.comm	_CR_CRYPEN,4,2                  ; @CR_CRYPEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout (gcm init)\n"

	.no_dead_strip	_stm32_cryp_gcm_init
.subsections_via_symbols
