	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_cryp_irq_write_block
_stm32_cryp_irq_write_block:            ## @stm32_cryp_irq_write_block
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_is_decrypt
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_is_gcm
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_is_ccm
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	(%r15), %r12
	jmp	LBB0_5
LBB0_4:
	xorl	%r12d, %r12d
LBB0_5:
	movl	24(%r15), %edi
	callq	_sg_virt
	cmpl	$4, 8(%r15)
	jae	LBB0_8
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	__walked_in@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rbx
	xorl	%r13d, %r13d
	movq	_CRYP_DIN@GOTPCREL(%rip), %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_stm32_cryp_write
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_stm32_cryp_next_in
	movq	%rax, %rbx
	addq	$-4, 16(%r15)
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r13d
	movslq	8(%r15), %rax
	shrq	$2, %rax
	cmpq	%r13, %rax
	jbe	LBB0_6
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	16(%r15), %rax
	subq	%r12, %rax
	xorl	%edi, %edi
	cmpq	$4, %rax
	setae	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r12, 16(%r15)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r14), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_stm32_cryp_write
	jmp	LBB0_10
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	cmpq	%r12, 16(%r15)
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp,%r14,4)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_stm32_cryp_next_in
	movq	%rax, %rbx
	incl	%r14d
	movq	16(%r15), %rax
	subq	%r12, %rax
	cmpq	%r14, %rax
	ja	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_CRYP_DIN@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	-64(%rbp), %edx
	movq	%r15, %rdi
	callq	_stm32_cryp_write
	movq	%r12, 16(%r15)
	jmp	LBB0_10
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__walked_in,4,2                 ## @_walked_in
	.comm	_CRYP_DIN,4,2                   ## @CRYP_DIN
	.no_dead_strip	_stm32_cryp_irq_write_block
.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_block
_stm32_cryp_irq_write_block:            ; @stm32_cryp_irq_write_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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]
	bl	_is_decrypt
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_is_gcm
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_is_ccm
	cbz	x0, LBB0_4
LBB0_3:
	ldr	x21, [x19]
	b	LBB0_5
LBB0_4:
	mov	x21, #0
LBB0_5:
	ldr	w0, [x19, #24]
	bl	_sg_virt
	ldr	w8, [x19, #8]
	cmp	w8, #4
	b.hs	LBB0_8
LBB0_6:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	mov	w22, #0
Lloh6:
	adrp	x8, __walked_in@GOTPAGE
Lloh7:
	ldr	x8, [x8, __walked_in@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	add	x20, x0, x8, lsl #2
Lloh9:
	adrp	x23, _CRYP_DIN@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CRYP_DIN@GOTPAGEOFF]
	add	x24, sp, #8
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x23]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_stm32_cryp_write
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_stm32_cryp_next_in
	mov	x20, x0
	ldr	x8, [x19, #16]
	sub	x8, x8, #4
	str	x8, [x19, #16]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	ldrsw	x8, [x19, #8]
	cmp	x22, x8, lsr #2
	b.hs	LBB0_6
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x8, [x19, #16]
	sub	x8, x8, x21
	cmp	x8, #3
	cset	w0, hi
	bl	_likely
	cbnz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #16]
	cmp	x8, x21
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_stm32_cryp_write
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19, #16]
	cmp	x8, x21
	b.eq	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x25, #0
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x20]
	str	w8, [x24, x25, lsl #2]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_stm32_cryp_next_in
	mov	x20, x0
	add	w25, w25, #1
	ldr	x8, [x19, #16]
	sub	x8, x8, x21
	cmp	x8, x25
	b.hi	LBB0_16
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x23]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_stm32_cryp_write
	str	x21, [x19, #16]
	b	LBB0_10
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	__walked_in,4,2                 ; @_walked_in
	.comm	_CRYP_DIN,4,2                   ; @CRYP_DIN
	.no_dead_strip	_stm32_cryp_irq_write_block
.subsections_via_symbols
