	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_cryp_check_ctr_counter
_stm32_cryp_check_ctr_counter:          ## @stm32_cryp_check_ctr_counter
	.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
	movq	(%rdi), %rax
	xorl	%edi, %edi
	cmpl	$-1, 12(%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movl	$0, 12(%rax)
	incl	8(%rax)
	jne	LBB0_4
## %bb.2:
	incl	4(%rax)
	jne	LBB0_4
## %bb.3:
	incl	(%rax)
LBB0_4:
	movq	_CRYP_CR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_stm32_cryp_read
	movq	%rax, %r14
	movl	(%r15), %esi
	movq	_CR_CRYPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%r14d, %edx
	movq	%rbx, %rdi
	callq	_stm32_cryp_write
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_stm32_cryp_hw_write_iv
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_stm32_cryp_write
LBB0_5:
	movq	_CRYP_IV0LR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stm32_cryp_read
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_CRYP_IV0RR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stm32_cryp_read
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	_CRYP_IV1LR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stm32_cryp_read
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	_CRYP_IV1RR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stm32_cryp_read
	movq	(%rbx), %rcx
	movl	%eax, 12(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYP_CR,4,2                    ## @CRYP_CR
	.comm	_CR_CRYPEN,4,2                  ## @CR_CRYPEN
	.comm	_CRYP_IV0LR,4,2                 ## @CRYP_IV0LR
	.comm	_CRYP_IV0RR,4,2                 ## @CRYP_IV0RR
	.comm	_CRYP_IV1LR,4,2                 ## @CRYP_IV1LR
	.comm	_CRYP_IV1RR,4,2                 ## @CRYP_IV1RR
	.no_dead_strip	_stm32_cryp_check_ctr_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_cryp_check_ctr_counter
_stm32_cryp_check_ctr_counter:          ; @stm32_cryp_check_ctr_counter
	.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
	ldr	x8, [x0]
	ldr	w8, [x8, #12]
	cmn	w8, #1
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
	ldr	w9, [x8, #8]
	adds	w9, w9, #1
	stp	w9, wzr, [x8, #8]
	b.lo	LBB0_4
; %bb.2:
	ldr	w9, [x8, #4]
	adds	w9, w9, #1
	str	w9, [x8, #4]
	b.lo	LBB0_4
; %bb.3:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_4:
Lloh0:
	adrp	x21, _CRYP_CR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CRYP_CR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stm32_cryp_read
	mov	x20, x0
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _CR_CRYPEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CR_CRYPEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w2, w20, w8
	mov	x0, x19
	bl	_stm32_cryp_write
	ldr	x1, [x19]
	mov	x0, x19
	bl	_stm32_cryp_hw_write_iv
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_stm32_cryp_write
LBB0_5:
Lloh5:
	adrp	x8, _CRYP_IV0LR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CRYP_IV0LR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stm32_cryp_read
	ldr	x8, [x19]
	str	w0, [x8]
Lloh8:
	adrp	x8, _CRYP_IV0RR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CRYP_IV0RR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stm32_cryp_read
	ldr	x8, [x19]
	str	w0, [x8, #4]
Lloh11:
	adrp	x8, _CRYP_IV1LR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CRYP_IV1LR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stm32_cryp_read
	ldr	x8, [x19]
	str	w0, [x8, #8]
Lloh14:
	adrp	x8, _CRYP_IV1RR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CRYP_IV1RR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stm32_cryp_read
	ldr	x8, [x19]
	str	w0, [x8, #12]
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYP_CR,4,2                    ; @CRYP_CR
	.comm	_CR_CRYPEN,4,2                  ; @CR_CRYPEN
	.comm	_CRYP_IV0LR,4,2                 ; @CRYP_IV0LR
	.comm	_CRYP_IV0RR,4,2                 ; @CRYP_IV0RR
	.comm	_CRYP_IV1LR,4,2                 ; @CRYP_IV1LR
	.comm	_CRYP_IV1RR,4,2                 ; @CRYP_IV1RR
	.no_dead_strip	_stm32_cryp_check_ctr_counter
.subsections_via_symbols
