	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_index
_find_index:                            ## @find_index
	.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 $edx killed $edx def $rdx
	movl	$1, %eax
	cmpl	%esi, (%rdi)
	jle	LBB0_1
LBB0_7:
	popq	%rbp
	retq
LBB0_1:
	movslq	%edx, %rcx
	cmpl	%esi, -4(%rdi,%rcx,4)
	jl	LBB0_7
## %bb.2:
	testl	%edx, %edx
	jle	LBB0_7
## %bb.3:
	decl	%edx
	xorl	%r8d, %r8d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%r8), %r9d
	movl	%r9d, %r10d
	shrl	$31, %r10d
	addl	%r9d, %r10d
	sarl	%r10d
	movslq	%r10d, %rcx
	movl	(%rdi,%rcx,4), %r9d
	cmpl	%esi, %r9d
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%r10), %ecx
	incl	%r10d
	cmpl	%esi, %r9d
	cmovgl	%ecx, %edx
	cmovll	%r10d, %r8d
	cmpl	%edx, %r8d
	jle	LBB0_4
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_index
_find_index:                            ; @find_index
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, w1
	b.gt	LBB0_5
; %bb.1:
	sub	w8, w2, #1
	ldr	w9, [x0, w8, sxtw #2]
	cmp	w9, w1
	ccmp	w2, #1, #8, ge
	b.lt	LBB0_5
; %bb.2:
	mov	w9, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w10, w8, w9
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	ldr	w11, [x0, w10, sxtw #2]
	cmp	w11, w1
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w12, w10, #1
	cmp	w11, w1
	csel	w8, w12, w8, gt
	csinc	w9, w9, w10, ge
	cmp	w9, w8
	b.le	LBB0_3
LBB0_5:
	mov	w0, #1
	ret
LBB0_6:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_index
.subsections_via_symbols
