	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function find_best_pitch
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0xbf800000                      ## float -1
LCPI0_2:
	.long	0x2b8cbccc                      ## float 9.99999996E-13
LCPI0_3:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_find_best_pitch:                       ## @find_best_pitch
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rax, (%r8)
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %esi
	leaq	-1(%rsi), %rdi
	movl	%esi, %eax
	andl	$3, %eax
	cmpq	$3, %rdi
	jae	LBB0_11
## %bb.3:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorl	%edi, %edi
	jmp	LBB0_4
LBB0_1:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_7
LBB0_11:
	andl	$-4, %esi
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movss	(%rbx,%rdi,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	4(%rbx,%rdi,4), %xmm2           ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	addss	%xmm0, %xmm1
	mulss	%xmm2, %xmm2
	addss	%xmm1, %xmm2
	movss	8(%rbx,%rdi,4), %xmm1           ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	addss	%xmm2, %xmm1
	movss	12(%rbx,%rdi,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm0
	addss	%xmm1, %xmm0
	addq	$4, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_12
LBB0_4:
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	(%rbx,%rdi,4), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%rsi,%rdi,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm1
	addss	%xmm1, %xmm0
	incq	%rdi
	cmpq	%rdi, %rax
	jne	LBB0_6
LBB0_7:
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	%edx, %rax
	movl	%ecx, %r13d
	leaq	(%rbx,%rax,4), %r12
	movss	LCPI0_1(%rip), %xmm5            ## xmm5 = mem[0],zero,zero,zero
	xorl	%r14d, %r14d
	movss	%xmm5, -56(%rbp)                ## 4-byte Spill
	xorps	%xmm4, %xmm4
	xorps	%xmm6, %xmm6
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movss	%xmm6, -44(%rbp)                ## 4-byte Spill
	movss	%xmm5, -52(%rbp)                ## 4-byte Spill
	movss	%xmm4, -48(%rbp)                ## 4-byte Spill
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	movss	(%r12,%r14,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movss	(%rbx,%r14,4), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm2
	mulss	%xmm1, %xmm1
	subss	%xmm2, %xmm1
	addss	%xmm1, %xmm0
	movl	$1, %edi
	callq	_FFMAX
	incq	%r14
	cmpq	%r14, %r13
	movss	-48(%rbp), %xmm4                ## 4-byte Reload
                                        ## xmm4 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm6                ## 4-byte Reload
                                        ## xmm6 = mem[0],zero,zero,zero
	je	LBB0_19
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movss	(%r15,%r14,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	LCPI0_3(%rip), %xmm1
	jbe	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	mulss	LCPI0_2(%rip), %xmm1
	mulss	%xmm1, %xmm1
	movaps	%xmm6, %xmm2
	mulss	%xmm1, %xmm2
	movaps	%xmm0, %xmm3
	mulss	%xmm5, %xmm3
	ucomiss	%xmm3, %xmm2
	jbe	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movaps	%xmm4, %xmm2
	mulss	%xmm1, %xmm2
	movaps	%xmm0, %xmm3
	movss	-56(%rbp), %xmm5                ## 4-byte Reload
                                        ## xmm5 = mem[0],zero,zero,zero
	mulss	%xmm5, %xmm3
	ucomiss	%xmm3, %xmm2
	jbe	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	movl	%eax, 4(%rcx)
	movq	%rcx, %rax
	movss	%xmm4, -44(%rbp)                ## 4-byte Spill
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movaps	%xmm1, %xmm2
	movaps	%xmm5, %xmm1
	jmp	LBB0_17
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movss	%xmm4, -48(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movaps	%xmm5, %xmm2
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, (%rax)
	movss	%xmm2, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_18
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_best_pitch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function find_best_pitch
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_find_best_pitch:                       ; @find_best_pitch
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-112]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -88
	.cfi_offset b9, -96
	.cfi_offset b10, -104
	.cfi_offset b11, -112
	mov	x19, x4
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	x22, x4
	str	d0, [x22], #4
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, w2
	cmp	w2, #4
	b.hs	LBB0_4
; %bb.2:
	mov	x9, #0
	fmov	s0, #1.00000000
	b	LBB0_7
LBB0_3:
	fmov	s0, #1.00000000
	b	LBB0_9
LBB0_4:
	and	x9, x8, #0xfffffffc
	add	x10, x20, #8
	fmov	s0, #1.00000000
	mov	x11, x9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	s1, s2, [x10, #-8]
	ldp	s3, s4, [x10], #16
	fmul	s1, s1, s1
	fmul	s2, s2, s2
	fmul	s3, s3, s3
	fmul	s4, s4, s4
	fadd	s0, s0, s1
	fadd	s0, s0, s2
	fadd	s0, s0, s3
	fadd	s0, s0, s4
	subs	x11, x11, #4
	b.ne	LBB0_5
; %bb.6:
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_7:
	add	x10, x20, x9, lsl #2
	sub	x8, x8, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x10], #4
	fmadd	s0, s1, s1, s0
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	cmp	w3, #1
	b.lt	LBB0_17
; %bb.10:
	mov	x23, #0
	mov	w24, w3
	movi	d8, #0000000000000000
	fmov	s10, #-1.00000000
	mov	w25, #48332
	movk	w25, #11148, lsl #16
	fmov	s9, #-1.00000000
	movi	d11, #0000000000000000
	add	x26, x20, w2, sxtw #2
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x19]
	str	w8, [x19, #4]
	mov	x8, x19
	fmov	s11, s8
	fmov	s8, s0
	fmov	s2, s1
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	fmov	s10, s9
	str	w23, [x8]
	fmov	s9, s2
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	lsl	x8, x23, #2
	ldr	s1, [x26, x8]
	ldr	s2, [x20, x8]
	fneg	s3, s2
	fmul	s2, s2, s3
	fmadd	s1, s1, s1, s2
	fadd	s0, s0, s1
	mov	w0, #1
	bl	_FFMAX
	add	x23, x23, #1
	cmp	x24, x23
	b.eq	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x21, x23, lsl #2]
	fcmp	s1, #0.0
	fmov	s2, w25
	fmul	s1, s1, s2
	fmul	s1, s1, s1
	fmul	s2, s11, s1
	fmul	s3, s0, s10
	fccmp	s2, s3, #4, gt
	b.le	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	fmul	s2, s8, s1
	fmul	s3, s0, s9
	fcmp	s2, s3
	b.gt	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x8, x22
	fmov	s11, s0
	fmov	s2, s9
	fmov	s9, s1
	b	LBB0_12
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #112            ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_best_pitch
.subsections_via_symbols
