	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_cryp_irq_thread
_stm32_cryp_irq_thread:                 ## @stm32_cryp_irq_thread
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rsi), %eax
	movq	_MISR_OUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_stm32_cryp_irq_read_data
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.13:
	movq	_CRYP_IMSCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stm32_cryp_write
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_stm32_cryp_finish_req
	jmp	LBB0_12
LBB0_2:
	movl	(%rbx), %eax
LBB0_3:
	movq	_MISR_IN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.4:
	movq	%rbx, %rdi
	callq	_is_gcm
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_CRYP_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stm32_cryp_read
	movq	_CR_PH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CR_PH_HEADER@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_unlikely
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	_stm32_cryp_irq_write_gcm_header
	incl	4(%rbx)
	jmp	LBB0_12
LBB0_8:
	movq	%rbx, %rdi
	callq	_is_ccm
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_CRYP_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stm32_cryp_read
	movq	_CR_PH_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_CR_PH_HEADER@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_stm32_cryp_irq_write_ccm_header
	jmp	LBB0_12
LBB0_7:
	callq	_stm32_cryp_irq_write_data
	incl	4(%rbx)
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	callq	_stm32_cryp_irq_write_data
LBB0_12:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MISR_OUT,4,2                   ## @MISR_OUT
	.comm	_CRYP_IMSCR,4,2                 ## @CRYP_IMSCR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_MISR_IN,4,2                    ## @MISR_IN
	.comm	_CRYP_CR,4,2                    ## @CRYP_CR
	.comm	_CR_PH_MASK,4,2                 ## @CR_PH_MASK
	.comm	_CR_PH_HEADER,4,2               ## @CR_PH_HEADER
	.no_dead_strip	_stm32_cryp_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_cryp_irq_thread
_stm32_cryp_irq_thread:                 ; @stm32_cryp_irq_thread
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _MISR_OUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MISR_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_stm32_cryp_irq_read_data
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _CRYP_IMSCR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYP_IMSCR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stm32_cryp_write
	mov	x0, x19
	mov	w1, #0
	bl	_stm32_cryp_finish_req
	b	LBB0_14
LBB0_3:
	ldr	w8, [x19]
LBB0_4:
Lloh6:
	adrp	x9, _MISR_IN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MISR_IN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.5:
	mov	x0, x19
	bl	_is_gcm
	cbz	x0, LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _CRYP_CR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CRYP_CR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stm32_cryp_read
Lloh12:
	adrp	x8, _CR_PH_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CR_PH_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh15:
	adrp	x9, _CR_PH_HEADER@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CR_PH_HEADER@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_stm32_cryp_irq_write_gcm_header
	b	LBB0_12
LBB0_8:
	mov	x0, x19
	bl	_is_ccm
	cbz	x0, LBB0_13
; %bb.9:
Lloh18:
	adrp	x8, _CRYP_CR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CRYP_CR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stm32_cryp_read
Lloh21:
	adrp	x8, _CR_PH_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CR_PH_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh24:
	adrp	x9, _CR_PH_HEADER@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CR_PH_HEADER@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_stm32_cryp_irq_write_ccm_header
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_stm32_cryp_irq_write_data
LBB0_12:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_stm32_cryp_irq_write_data
LBB0_14:
Lloh27:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MISR_OUT,4,2                   ; @MISR_OUT
	.comm	_CRYP_IMSCR,4,2                 ; @CRYP_IMSCR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_MISR_IN,4,2                    ; @MISR_IN
	.comm	_CRYP_CR,4,2                    ; @CRYP_CR
	.comm	_CR_PH_MASK,4,2                 ; @CR_PH_MASK
	.comm	_CR_PH_HEADER,4,2               ; @CR_PH_HEADER
	.no_dead_strip	_stm32_cryp_irq_thread
.subsections_via_symbols
