	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_calculate_crc
_mxt_calculate_crc:                     ## @mxt_calculate_crc
	.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
	movl	$0, -28(%rbp)
	cmpl	%esi, %edx
	jge	LBB0_1
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_1:
	movslq	%edx, %rax
	leaq	(%rdi,%rax,4), %r15
	addq	$-4, %r15
	movslq	%esi, %rax
	leaq	(%rdi,%rax,4), %rbx
	cmpq	%r15, %rbx
	jae	LBB0_4
## %bb.2:
	leaq	-28(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_mxt_calc_crc24
	addq	$8, %rbx
	cmpq	%r15, %rbx
	jb	LBB0_3
LBB0_4:
	cmpq	%r15, %rbx
	jne	LBB0_6
## %bb.5:
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdi
	xorl	%edx, %edx
	callq	_mxt_calc_crc24
LBB0_6:
	movl	$16777215, %eax                 ## imm = 0xFFFFFF
	andl	-28(%rbp), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mxt_calculate_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_calculate_crc
_mxt_calculate_crc:                     ; @mxt_calculate_crc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	wzr, [sp, #12]
	cmp	w2, w1
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	add	x8, x0, w2, sxtw #2
	sub	x19, x8, #4
	add	x20, x0, w1, sxtw #2
	cmp	x20, x19
	b.hs	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w2, [x20], #8
	add	x0, sp, #12
	bl	_mxt_calc_crc24
	cmp	x20, x19
	b.lo	LBB0_3
LBB0_4:
	cmp	x20, x19
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x19]
	add	x0, sp, #12
	mov	w2, #0
	bl	_mxt_calc_crc24
LBB0_6:
	ldr	w8, [sp, #12]
	and	w0, w8, #0xffffff
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mxt_calculate_crc
.subsections_via_symbols
