	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rix_to_ndx
_rix_to_ndx:                            ## @rix_to_ndx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	testl	%esi, %esi
	js	LBB0_6
## %bb.1:
	movq	(%rdi), %rcx
	movl	%eax, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %esi
	cmpl	%eax, (%rcx,%rsi,4)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rdx), %esi
	testl	%edx, %edx
	movl	%esi, %edx
	jg	LBB0_2
## %bb.5:
	movl	$-1, %eax
LBB0_6:
	popq	%rbp
	retq
LBB0_3:
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rix_to_ndx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rix_to_ndx
_rix_to_ndx:                            ; @rix_to_ndx
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_5
; %bb.1:
	ldr	x8, [x0]
	mov	x9, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8, w9, uxtw #2]
	cmp	w10, w1
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w10, w9, #1
	cmp	w9, #0
	mov	x9, x10
	b.gt	LBB0_2
; %bb.4:
	mov	w1, #-1
LBB0_5:
	mov	x0, x1
	ret
LBB0_6:
	mov	x0, x9
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rix_to_ndx
.subsections_via_symbols
