	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_cryp_irq_write_data
_stm32_cryp_irq_write_data:             ## @stm32_cryp_irq_write_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.17:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_1:
	movq	(%rbx), %rax
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	cmpq	(%r15), %rax
	jge	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_stm32_cryp_get_hw_mode
	movq	_CR_AES_GCM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_is_encrypt
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_4:
	movl	%r14d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.18:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stm32_cryp_irq_write_gcm_padded_data ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	callq	_stm32_cryp_irq_set_npblb
LBB0_7:
	movq	(%rbx), %rax
	subq	8(%rbx), %rax
	xorl	%r14d, %r14d
	cmpq	(%r15), %rax
	jge	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	callq	_stm32_cryp_get_hw_mode
	movq	_CR_AES_CCM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_is_decrypt
	xorl	%r14d, %r14d
	testq	%rax, %rax
	setne	%r14b
LBB0_10:
	movl	%r14d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.19:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stm32_cryp_irq_write_ccm_padded_data ## TAILCALL
LBB0_12:
	movq	%rbx, %rdi
	callq	_stm32_cryp_irq_set_npblb
LBB0_13:
	movq	%rbx, %rdi
	callq	_is_aes
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%rbx, %rdi
	callq	_is_ctr
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_stm32_cryp_check_ctr_counter
LBB0_16:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stm32_cryp_irq_write_block     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No more data to process\n"

	.comm	_AES_BLOCK_SIZE,8,3             ## @AES_BLOCK_SIZE
	.comm	_CR_AES_GCM,8,3                 ## @CR_AES_GCM
	.comm	_CR_AES_CCM,8,3                 ## @CR_AES_CCM
	.no_dead_strip	_stm32_cryp_irq_write_data
.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_write_data
_stm32_cryp_irq_write_data:             ; @stm32_cryp_irq_write_data
	.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, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn
LBB0_2:
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _AES_BLOCK_SIZE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_stm32_cryp_get_hw_mode
Lloh4:
	adrp	x8, _CR_AES_GCM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CR_AES_GCM@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_is_encrypt
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_6
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_9
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stm32_cryp_irq_write_gcm_padded_data
LBB0_8:
	mov	x0, x19
	bl	_stm32_cryp_irq_set_npblb
LBB0_9:
	ldp	x8, x9, [x19]
	ldr	x10, [x20]
	sub	x8, x8, x9
	cmp	x8, x10
	b.ge	LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_stm32_cryp_get_hw_mode
Lloh7:
	adrp	x8, _CR_AES_CCM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CR_AES_CCM@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_is_decrypt
	cmp	x0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_13
	b	LBB0_16
LBB0_12:
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_16
LBB0_13:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stm32_cryp_irq_write_ccm_padded_data
LBB0_15:
	mov	x0, x19
	bl	_stm32_cryp_irq_set_npblb
LBB0_16:
	mov	x0, x19
	bl	_is_aes
	cbz	x0, LBB0_19
; %bb.17:
	mov	x0, x19
	bl	_is_ctr
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_stm32_cryp_check_ctr_counter
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_stm32_cryp_irq_write_block
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No more data to process\n"

	.comm	_AES_BLOCK_SIZE,8,3             ; @AES_BLOCK_SIZE
	.comm	_CR_AES_GCM,8,3                 ; @CR_AES_GCM
	.comm	_CR_AES_CCM,8,3                 ; @CR_AES_CCM
	.no_dead_strip	_stm32_cryp_irq_write_data
.subsections_via_symbols
