	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ppp_pvq_search_c
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ppp_pvq_search_c:                      ## @ppp_pvq_search_c
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	%ecx, %r12d
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.6:
	xorps	%xmm1, %xmm1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm1, -48(%rbp)                ## 4-byte Spill
	movss	(%r13,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_FFABS
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	addss	%xmm0, %xmm1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
## %bb.8:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r15d, %xmm0
	movq	_FLT_EPSILON@GOTPCREL(%rip), %rax
	addss	(%rax), %xmm1
	divss	%xmm1, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	xorl	%ebx, %ebx
	xorps	%xmm0, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%r13,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	-48(%rbp), %xmm0                ## 4-byte Folded Reload
	callq	_lrintf
	movl	%eax, (%r12,%rbx,4)
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	imull	%eax, %eax
	addl	%eax, %r14d
	movss	(%r13,%rbx,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	movss	-44(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm2
	movss	%xmm2, -44(%rbp)                ## 4-byte Spill
	callq	_FFABS
	subl	%eax, %r15d
	incq	%rbx
	cmpq	%rbx, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.2:
	testl	%r15d, %r15d
	jne	LBB0_3
	jmp	LBB0_17
LBB0_1:
	xorps	%xmm0, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	je	LBB0_17
LBB0_3:
	movq	%r13, %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	-52(%rbp), %rbx                 ## 4-byte Folded Reload
	movq	%r12, %r14
	movss	(%r12,%rbx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_FFSIGN
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	imull	%edi, %eax
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	(%rsi,%rbx,4), %ecx
	movl	%eax, %edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	imull	%ecx, %edx
	addl	%eax, %ecx
	mulss	(%r12,%rbx,4), %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rdx,2), %r14d
	movl	%ecx, (%rsi,%rbx,4)
	movl	-80(%rbp), %r15d                ## 4-byte Reload
	subl	%edi, %r15d
	je	LBB0_17
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r15d, %xmm0
	callq	_FFSIGN
                                        ## kill: def $eax killed $eax def $rax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r14d, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm1, %xmm0
	cvttss2si	%xmm0, %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	movl	%r15d, -80(%rbp)                ## 4-byte Spill
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	jle	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	xorps	%xmm0, %xmm0
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movss	%xmm1, -56(%rbp)                ## 4-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%r13
	cmpq	%r13, %rax
	je	LBB0_16
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,4), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	andl	%r15d, %ebx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	callq	_FFABS
	movl	%eax, %r14d
	movss	(%r12,%r13,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_FFABS
	cmpl	$1, %ebx
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	imull	-104(%rbp), %eax                ## 4-byte Folded Reload
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	addss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	mulss	%xmm0, %xmm0
	imull	-84(%rbp), %r14d                ## 4-byte Folded Reload
	addl	-96(%rbp), %r14d                ## 4-byte Folded Reload
	movss	-56(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r14d, %xmm1
	mulss	%xmm0, %xmm2
	movss	-48(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm3
	ucomiss	%xmm3, %xmm2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	%r13d, %ecx
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movss	%xmm1, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_15
LBB0_17:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r14d, %xmm0
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLT_EPSILON,4,2                ## @FLT_EPSILON
	.no_dead_strip	_ppp_pvq_search_c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppp_pvq_search_c
_ppp_pvq_search_c:                      ; @ppp_pvq_search_c
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x25, x2
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	mov	x22, x0
	mov	w21, w3
	str	w3, [sp, #8]                    ; 4-byte Folded Spill
	cmp	w3, #1
	b.lt	LBB0_6
; %bb.1:
	movi	d8, #0000000000000000
	mov	x19, x21
	mov	x20, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x20], #4
	bl	_FFABS
	scvtf	s0, w0
	fadd	s8, s8, s0
	subs	x19, x19, #1
	b.ne	LBB0_2
; %bb.3:
	mov	w24, #0
	scvtf	s0, w25
Lloh0:
	adrp	x8, _FLT_EPSILON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLT_EPSILON@GOTPAGEOFF]
Lloh2:
	ldr	s1, [x8]
	fadd	s1, s8, s1
	fdiv	s9, s0, s1
	movi	d8, #0000000000000000
	mov	x19, x21
	mov	x20, x22
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s0, [x20]
	fmul	s0, s9, s0
	bl	_lrintf
	str	w0, [x23], #4
	madd	w24, w0, w0, w24
	scvtf	s0, w0
	ldr	s1, [x20], #4
	fmadd	s8, s0, s1, s8
	bl	_FFABS
	sub	w25, w25, w0
	subs	x19, x19, #1
	b.ne	LBB0_4
; %bb.5:
	cbnz	w25, LBB0_7
	b	LBB0_16
LBB0_6:
	mov	w24, #0
	movi	d8, #0000000000000000
	cbz	w25, LBB0_16
LBB0_7:
	fmov	s9, #1.00000000
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	sub	w25, w25, w23
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	sbfiz	x19, x8, #2, #32
	ldr	s0, [x22, x19]
	bl	_FFSIGN
	mul	w8, w0, w23
	scvtf	s0, w8
	ldr	s1, [x22, x19]
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w9, [x11, x19]
	fmadd	s8, s0, s1, s8
	mul	w10, w8, w9
	add	w24, w26, w10, lsl #1
	add	w8, w9, w8
	str	w8, [x11, x19]
	cbz	w25, LBB0_16
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	scvtf	s0, w25
	bl	_FFSIGN
	mov	x23, x0
	scvtf	s0, w24
	fadd	s0, s0, s9
	fcvtzs	w26, s0
	ldr	w8, [sp, #8]                    ; 4-byte Folded Reload
	cmp	w8, #1
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
	b.lt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x28, #0
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
	lsr	w19, w23, #31
	lsl	w20, w23, #1
	movi	d10, #0000000000000000
	fmov	s11, #1.00000000
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x28, x28, #1
	cmp	x21, x28
	b.eq	LBB0_9
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x27, x28, #2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8, x27]
	cmp	w8, #0
	cset	w9, eq
	and	w25, w19, w9
	scvtf	s0, w8
	bl	_FFABS
	mov	x24, x0
	ldr	s0, [x22, x27]
	bl	_FFABS
	cmp	w25, #1
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mul	w8, w0, w23
	scvtf	s0, w8
	fadd	s0, s8, s0
	fmul	s0, s0, s0
	madd	w8, w20, w24, w26
	fmul	s2, s11, s0
	scvtf	s1, w8
	fmul	s3, s10, s1
	fcmp	s2, s3
	b.le	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x8, x28
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	fmov	s10, s0
	fmov	s11, s1
	b	LBB0_12
LBB0_16:
	scvtf	s0, w24
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FLT_EPSILON,4,2                ; @FLT_EPSILON
	.no_dead_strip	_ppp_pvq_search_c
.subsections_via_symbols
