	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ms_sensors_tp_crc_valid
_ms_sensors_tp_crc_valid:               ## @ms_sensors_tp_crc_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movl	(%rdi), %r8d
	leal	-1(%rsi), %eax
	cltq
	movl	$0, (%rdi,%rax,4)
	andl	$4095, (%rdi)                   ## imm = 0xFFF
	xorl	%ecx, %ecx
	cmpl	$1, %esi
	jb	LBB0_4
## %bb.1:
	addl	%esi, %esi
	cmpl	$2, %esi
	movl	$1, %r9d
	cmovael	%esi, %r9d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %esi
	shrl	%esi
	movl	(%rdi,%rsi,4), %esi
	movzbl	%sil, %eax
	sarl	$8, %esi
	testb	$1, %dl
	cmovel	%esi, %eax
	xorl	%ecx, %eax
	leal	(%rax,%rax), %ecx
	movl	%ecx, %esi
	xorl	$12288, %esi                    ## imm = 0x3000
	testl	$32768, %eax                    ## imm = 0x8000
	cmovel	%ecx, %esi
	leal	(%rsi,%rsi), %eax
	movl	%eax, %ecx
	xorl	$12288, %ecx                    ## imm = 0x3000
	testl	$32768, %esi                    ## imm = 0x8000
	cmovel	%eax, %ecx
	leal	(%rcx,%rcx), %eax
	movl	%eax, %esi
	xorl	$12288, %esi                    ## imm = 0x3000
	testl	$32768, %ecx                    ## imm = 0x8000
	cmovel	%eax, %esi
	leal	(%rsi,%rsi), %eax
	movl	%eax, %ecx
	xorl	$12288, %ecx                    ## imm = 0x3000
	testl	$32768, %esi                    ## imm = 0x8000
	cmovel	%eax, %ecx
	leal	(%rcx,%rcx), %eax
	movl	%eax, %esi
	xorl	$12288, %esi                    ## imm = 0x3000
	testl	$32768, %ecx                    ## imm = 0x8000
	cmovel	%eax, %esi
	leal	(%rsi,%rsi), %eax
	movl	%eax, %ecx
	xorl	$12288, %ecx                    ## imm = 0x3000
	testl	$32768, %esi                    ## imm = 0x8000
	cmovel	%eax, %ecx
	leal	(%rcx,%rcx), %eax
	movl	%eax, %esi
	xorl	$12288, %esi                    ## imm = 0x3000
	testl	$32768, %ecx                    ## imm = 0x8000
	cmovel	%eax, %esi
	leal	(%rsi,%rsi), %eax
	movl	%eax, %ecx
	xorl	$12288, %ecx                    ## imm = 0x3000
	testl	$32768, %esi                    ## imm = 0x8000
	cmovel	%eax, %ecx
	incl	%edx
	cmpl	%edx, %r9d
	jne	LBB0_2
## %bb.3:
	sarl	$12, %ecx
LBB0_4:
	movl	%r8d, %edx
	shrl	$12, %edx
	andl	$15, %edx
	movl	%r8d, (%rdi)
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	sete	%al
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ms_sensors_tp_crc_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ms_sensors_tp_crc_valid
_ms_sensors_tp_crc_valid:               ; @ms_sensors_tp_crc_valid
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sub	w9, w1, #1
	str	wzr, [x0, w9, sxtw #2]
	ldr	w9, [x0]
	and	w9, w9, #0xfff
	str	w9, [x0]
	mov	w9, #0
	cbz	w1, LBB0_4
; %bb.1:
	mov	w11, #0
	lsl	w10, w1, #1
	cmp	w10, #1
	csinc	w10, w10, wzr, hi
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w12, w9, #1
	ldr	w12, [x0, w12, uxtw #2]
	and	w13, w12, #0xff
	asr	w12, w12, #8
	tst	w9, #0x1
	csel	w12, w12, w13, eq
	eor	w11, w12, w11
	lsl	w12, w11, #1
	eor	w13, w12, #0x3000
	tst	w11, #0x8000
	csel	w11, w12, w13, eq
	lsl	w12, w11, #1
	eor	w13, w12, #0x3000
	tst	w11, #0x8000
	csel	w11, w12, w13, eq
	lsl	w12, w11, #1
	eor	w13, w12, #0x3000
	tst	w11, #0x8000
	csel	w11, w12, w13, eq
	lsl	w12, w11, #1
	eor	w13, w12, #0x3000
	tst	w11, #0x8000
	csel	w11, w12, w13, eq
	lsl	w12, w11, #1
	eor	w13, w12, #0x3000
	tst	w11, #0x8000
	csel	w11, w12, w13, eq
	lsl	w12, w11, #1
	eor	w13, w12, #0x3000
	tst	w11, #0x8000
	csel	w11, w12, w13, eq
	lsl	w12, w11, #1
	eor	w13, w12, #0x3000
	tst	w11, #0x8000
	csel	w11, w12, w13, eq
	lsl	w12, w11, #1
	eor	w13, w12, #0x3000
	tst	w11, #0x8000
	csel	w11, w12, w13, eq
	add	w9, w9, #1
	cmp	w10, w9
	b.ne	LBB0_2
; %bb.3:
	asr	w9, w11, #12
LBB0_4:
	ubfx	w10, w8, #12, #4
	str	w8, [x0]
	cmp	w9, w10
	cset	w0, eq
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ms_sensors_tp_crc_valid
.subsections_via_symbols
