	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ms5611_prom_is_valid
_ms5611_prom_is_valid:                  ## @ms5611_prom_is_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	28(%rdi), %r8d
	movl	%r8d, %ecx
	andl	$65280, %ecx                    ## imm = 0xFF00
	movl	%ecx, 28(%rdi)
	addq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r9d, %ecx
	andl	$-2, %ecx
	movl	(%rdi,%rcx,2), %ecx
	movzbl	%cl, %eax
	sarl	$8, %ecx
	testb	$1, %r9b
	cmovel	%ecx, %eax
	xorl	%edx, %eax
	leal	(%rax,%rax), %ecx
	movl	%ecx, %edx
	xorl	$12288, %edx                    ## imm = 0x3000
	testl	$32768, %eax                    ## imm = 0x8000
	cmovel	%ecx, %edx
	leal	(%rdx,%rdx), %eax
	movl	%eax, %ecx
	xorl	$12288, %ecx                    ## imm = 0x3000
	testl	$32768, %edx                    ## imm = 0x8000
	cmovel	%eax, %ecx
	leal	(%rcx,%rcx), %eax
	movl	%eax, %edx
	xorl	$12288, %edx                    ## imm = 0x3000
	testl	$32768, %ecx                    ## imm = 0x8000
	cmovel	%eax, %edx
	leal	(%rdx,%rdx), %eax
	movl	%eax, %ecx
	xorl	$12288, %ecx                    ## imm = 0x3000
	testl	$32768, %edx                    ## imm = 0x8000
	cmovel	%eax, %ecx
	leal	(%rcx,%rcx), %eax
	movl	%eax, %edx
	xorl	$12288, %edx                    ## imm = 0x3000
	testl	$32768, %ecx                    ## imm = 0x8000
	cmovel	%eax, %edx
	leal	(%rdx,%rdx), %eax
	movl	%eax, %ecx
	xorl	$12288, %ecx                    ## imm = 0x3000
	testl	$32768, %edx                    ## imm = 0x8000
	cmovel	%eax, %ecx
	leal	(%rcx,%rcx), %edx
	movl	%edx, %eax
	xorl	$12288, %eax                    ## imm = 0x3000
	testl	$32768, %ecx                    ## imm = 0x8000
	cmovel	%edx, %eax
	leal	(%rax,%rax), %ecx
	movl	%ecx, %edx
	xorl	$12288, %edx                    ## imm = 0x3000
	testl	$32768, %eax                    ## imm = 0x8000
	cmovel	%ecx, %edx
	incq	%r9
	cmpq	%r9, %rsi
	jne	LBB0_3
## %bb.4:
	shrl	$12, %edx
	andl	$15, %edx
	jmp	LBB0_5
LBB0_1:
	xorl	%edx, %edx
LBB0_5:
	andl	$15, %r8d
	setne	%al
	cmpl	%r8d, %edx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ms5611_prom_is_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ms5611_prom_is_valid
_ms5611_prom_is_valid:                  ; @ms5611_prom_is_valid
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #28]
	and	w9, w8, #0xff00
	str	w9, [x0, #28]
	lsl	x9, x1, #1
	cbz	x9, LBB0_4
; %bb.1:
	mov	x10, #0
	mov	w11, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ubfx	x12, x10, #1, #31
	ldr	w12, [x0, x12, lsl #2]
	and	w13, w12, #0xff
	asr	w12, w12, #8
	tst	x10, #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	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.3:
	ubfx	w9, w11, #12, #4
LBB0_4:
	ands	w8, w8, #0xf
	cset	w10, ne
	cmp	w9, w8
	cset	w8, eq
	and	w0, w10, w8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ms5611_prom_is_valid
.subsections_via_symbols
