	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq24190_find_idx
_bq24190_find_idx:                      ## @bq24190_find_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$1, %eax
	cmpl	$2, %esi
	jl	LBB0_5
## %bb.1:
	movl	%esi, %ecx
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rdi,%rax,4)
	jg	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_2
## %bb.4:
	movl	%ecx, %eax
LBB0_5:
	decl	%eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bq24190_find_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq24190_find_idx
_bq24190_find_idx:                      ; @bq24190_find_idx
	.cfi_startproc
; %bb.0:
	cmp	w1, #2
	b.lt	LBB0_6
; %bb.1:
	mov	w9, w1
	mov	w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0, x8, lsl #2]
	cmp	w10, w2
	b.gt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.4:
	mov	x8, x9
LBB0_5:
	sub	w0, w8, #1
	ret
LBB0_6:
	mov	w8, #1
	sub	w0, w8, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bq24190_find_idx
.subsections_via_symbols
