	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq24257_find_idx
_bq24257_find_idx:                      ## @bq24257_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
	cmpq	$2, %rdx
	jb	LBB0_5
## %bb.1:
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rsi,%rax,8)
	jg	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rax, %rdx
	jne	LBB0_2
## %bb.4:
	movq	%rdx, %rax
LBB0_5:
	decq	%rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bq24257_find_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq24257_find_idx
_bq24257_find_idx:                      ; @bq24257_find_idx
	.cfi_startproc
; %bb.0:
	mov	w8, #1
	cmp	x2, #2
	b.lo	LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x1, x8, lsl #3]
	cmp	x9, x0
	b.gt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x8, #1
	cmp	x2, x8
	b.ne	LBB0_1
; %bb.3:
	mov	x8, x2
LBB0_4:
	sub	x0, x8, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bq24257_find_idx
.subsections_via_symbols
