	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quant_array_idx
_quant_array_idx:                       ## @quant_array_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movq	_INFINITY@GOTPCREL(%rip), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movl	%esi, %r8d
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movaps	%xmm0, %xmm2
	subss	(%rdi,%rcx,4), %xmm2
	mulss	%xmm2, %xmm2
	ucomiss	%xmm2, %xmm1
	movl	%eax, %edx
	cmoval	%ecx, %edx
	minss	%xmm1, %xmm2
	movaps	%xmm0, %xmm1
	subss	4(%rdi,%rcx,4), %xmm1
	mulss	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm2
	leal	1(%rcx), %eax
	cmovbel	%edx, %eax
	minss	%xmm2, %xmm1
	addq	$2, %rcx
	cmpq	%rsi, %rcx
	jne	LBB0_5
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	subss	(%rdi,%rcx,4), %xmm0
	mulss	%xmm0, %xmm0
	ucomiss	%xmm0, %xmm1
	cmoval	%ecx, %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INFINITY,4,2                   ## @INFINITY
	.no_dead_strip	_quant_array_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quant_array_idx
_quant_array_idx:                       ; @quant_array_idx
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	mov	w8, #0
Lloh0:
	adrp	x10, _INFINITY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _INFINITY@GOTPAGEOFF]
Lloh2:
	ldr	s1, [x10]
	mov	w10, w1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s2, [x0, x9, lsl #2]
	fsub	s2, s0, s2
	fmul	s2, s2, s2
	fcmp	s2, s1
	csel	w8, w9, w8, mi
	fcsel	s1, s2, s1, mi
	add	x9, x9, #1
	cmp	x10, x9
	b.ne	LBB0_2
; %bb.3:
	mov	x0, x8
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INFINITY,4,2                   ; @INFINITY
	.no_dead_strip	_quant_array_idx
.subsections_via_symbols
