	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_range_idx
_find_range_idx:                        ## @find_range_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_n_ranges@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.1:
	movq	_Q_range@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rsi)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	addq	$12, %rsi
	cmpq	%rax, %rdx
	jne	LBB0_2
LBB0_4:
	movq	_MAX_RATES@GOTPCREL(%rip), %rsi
	movl	$-1, %eax
	cmpl	(%rsi), %edx
	jge	LBB0_6
## %bb.5:
	movq	_INT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_Q_range@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movslq	%edx, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, 8(%rsi,%rdx,4)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	(%rcx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%eax, 4(%rsi,%rdx,4)
	movslq	(%rcx), %rax
	leaq	(%rax,%rax,2), %rax
	movl	%edi, (%rsi,%rax,4)
	movl	(%rcx), %eax
	leal	1(%rax), %edx
	movl	%edx, (%rcx)
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_n_ranges,4,2                   ## @n_ranges
	.comm	_Q_range,8,3                    ## @Q_range
	.comm	_MAX_RATES,4,2                  ## @MAX_RATES
	.comm	_INT_MIN,4,2                    ## @INT_MIN
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_find_range_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_range_idx
_find_range_idx:                        ; @find_range_idx
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _n_ranges@GOTPAGE
Lloh1:
	ldr	x9, [x9, _n_ranges@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, #0
Lloh2:
	adrp	x11, _Q_range@GOTPAGE
Lloh3:
	ldr	x11, [x11, _Q_range@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	cmp	w12, w0
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	add	x11, x11, #12
	cmp	x10, x8
	b.ne	LBB0_2
LBB0_4:
Lloh5:
	adrp	x8, _MAX_RATES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_RATES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w10, w8
	b.ge	LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _INT_MIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INT_MIN@GOTPAGEOFF]
Lloh10:
	adrp	x11, _Q_range@GOTPAGE
Lloh11:
	ldr	x11, [x11, _Q_range@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	x11, [x11]
	mov	w12, #12
	smaddl	x10, w10, w12, x11
Lloh14:
	adrp	x13, _INT_MAX@GOTPAGE
Lloh15:
	ldr	x13, [x13, _INT_MAX@GOTPAGEOFF]
	str	w8, [x10, #8]
Lloh16:
	ldr	w8, [x13]
	ldrsw	x10, [x9]
	madd	x10, x10, x12, x11
	str	w8, [x10, #4]
	ldrsw	x8, [x9]
	mul	x8, x8, x12
	str	w0, [x11, x8]
	ldr	w8, [x9]
	add	w10, w8, #1
	str	w10, [x9]
LBB0_6:
	mov	x0, x8
	ret
LBB0_7:
	mov	w8, #-1
	mov	x0, x8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_n_ranges,4,2                   ; @n_ranges
	.comm	_Q_range,8,3                    ; @Q_range
	.comm	_MAX_RATES,4,2                  ; @MAX_RATES
	.comm	_INT_MIN,4,2                    ; @INT_MIN
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_find_range_idx
.subsections_via_symbols
