	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_check_sanity
_rmi_check_sanity:                      ## @rmi_check_sanity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	%edx, %rcx
	leal	1(%rcx), %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	decl	%eax
	cmpl	$255, -4(%rsi,%rcx,4)
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%rcx), %rdx
	testq	%rcx, %rcx
	movq	%rdx, %rcx
	jg	LBB0_1
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rmi_check_sanity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_check_sanity
_rmi_check_sanity:                      ; @rmi_check_sanity
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	sxtw	x8, w2
	add	w0, w2, #1
	sub	x9, x1, #4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x8, lsl #2]
	cmp	w10, #255
	ccmp	x8, #0, #4, eq
	sub	x8, x8, #1
	sub	w0, w0, #1
	b.gt	LBB0_1
; %bb.2:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rmi_check_sanity
.subsections_via_symbols
