	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function _vp_psy_init
LCPI0_0:
	.long	0x41000000                      ## float 8
LCPI0_1:
	.long	0x40000000                      ## float 2
LCPI0_2:
	.long	0x3e800000                      ## float 0.25
LCPI0_4:
	.long	0x3f000000                      ## float 0.5
LCPI0_7:
	.long	0x42c80000                      ## float 100
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_3:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_5:
	.quad	0x3fc0000000000000              ## double 0.125
LCPI0_6:
	.quad	0xc000000000000000              ## double -2
LCPI0_8:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__vp_psy_init
	.p2align	4, 0x90
__vp_psy_init:                          ## @_vp_psy_init
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%r13)
	mulss	LCPI0_0(%rip), %xmm0
	callq	_log
	movl	%eax, %r15d
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	_log
	movl	%eax, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %edi
	callq	_rint
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r12, %xmm0
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	decl	%eax
	movl	%eax, 4(%r13)
	mulss	LCPI0_2(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	cvtsi2sd	%r12d, %xmm1
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	mulsd	LCPI0_3(%rip), %xmm0
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rdi
	callq	_toOC
	movb	4(%r13), %cl
	incb	%cl
	shll	%cl, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	subss	(%r14), %xmm0
	cvttss2si	%xmm0, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%r12d, %xmm0
	movl	%eax, 8(%r13)
	addss	LCPI0_2(%rip), %xmm0
	mulss	-56(%rbp), %xmm0                ## 4-byte Folded Reload
	cvtss2sd	%xmm0, %xmm0
	mulsd	LCPI0_3(%rip), %xmm0
	divsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %rdi
	callq	_toOC
	movb	4(%r13), %cl
	incb	%cl
	shll	%cl, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	addss	LCPI0_4(%rip), %xmm0
	cvttss2si	%xmm0, %rax
	movslq	8(%r13), %rcx
	subq	%rcx, %rax
	incq	%rax
	movq	%rax, 16(%r13)
	movslq	%r12d, %r14
	leal	(,%r14,4), %r15d
	movl	%r15d, %edi
	callq	__ogg_malloc
	movq	%rax, 24(%r13)
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	__ogg_malloc
	movq	%rax, 32(%r13)
	leal	(,%r14,8), %edi
	callq	__ogg_malloc
	movq	%rax, 40(%r13)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 80(%r13)
	movl	%r14d, 48(%r13)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 56(%r13)
	xorl	%eax, %eax
	cmpq	$38000, %rcx                    ## imm = 0x9470
	setge	%al
	movl	%eax, 64(%r13)
	movq	_MAX_ATH@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jl	LBB0_4
## %bb.1:
	movq	%r12, %rcx
	leal	(%r12,%r12), %r15d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r13
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_ATH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	cmpq	%rax, %r12
	jge	LBB0_4
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	%r13, %r14
	movq	%r12, %r13
	incq	%r12
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12, %xmm0
	mulsd	LCPI0_5(%rip), %xmm0
	addsd	LCPI0_6(%rip), %xmm0
	cvttsd2si	%xmm0, %rdi
	callq	_fromOC
	imull	%r15d, %eax
	movslq	%eax, %rcx
	movq	%rcx, %rdx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rax
	cqto
	idivq	%rsi
	movq	%rax, %rdi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %edi
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_rint
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movss	LCPI0_7(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	jge	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_ATH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movss	(%rcx,%r13,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%rax, %rdx
	subq	%rbx, %rdx
	xorps	%xmm2, %xmm2
	cvtsi2ss	%rdx, %xmm2
	movss	(%rcx,%r12,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	divss	%xmm2, %xmm1
	movq	%r14, %r13
	movq	24(%r14), %rcx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movaps	%xmm0, %xmm2
	addss	%xmm3, %xmm2
	movss	%xmm2, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	addss	%xmm1, %xmm0
	cmpq	%r14, %rbx
	jl	LBB0_16
	jmp	LBB0_18
LBB0_4:
	cmpq	%r14, %rbx
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	jge	LBB0_8
## %bb.5:
	movq	24(%r13), %rax
	movss	-4(%rax,%rbx,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	movl	%r15d, %edx
	subl	%ebx, %edx
	movq	%rbx, %rcx
	notq	%rcx
	addq	%r14, %rcx
	andq	$7, %rdx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, (%rax,%rbx,4)
	incq	%rbx
	decq	%rdx
	jne	LBB0_6
LBB0_7:
	cmpq	$7, %rcx
	jb	LBB0_8
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movss	%xmm0, (%rax,%rbx,4)
	movss	%xmm0, 4(%rax,%rbx,4)
	movss	%xmm0, 8(%rax,%rbx,4)
	movss	%xmm0, 12(%rax,%rbx,4)
	movss	%xmm0, 16(%rax,%rbx,4)
	movss	%xmm0, 20(%rax,%rbx,4)
	movss	%xmm0, 24(%rax,%rbx,4)
	movss	%xmm0, 28(%rax,%rbx,4)
	addq	$8, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_27
LBB0_8:
	testl	%r15d, %r15d
	jle	LBB0_28
## %bb.9:
	leal	(%r15,%r15), %ecx
	movslq	%ecx, %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	je	LBB0_10
## %bb.19:
	cqto
	idivq	%rsi
	movq	%rax, %rbx
	jmp	LBB0_20
LBB0_28:
	xorps	%xmm1, %xmm1
	cvtsi2sdq	-80(%rbp), %xmm1        ## 8-byte Folded Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_20:
	leaq	1(%r14), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	$1, %r15d
	movq	$-99, %r12
	xorl	%r13d, %r13d
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movq	-104(%rbp), %rbx                ## 8-byte Reload
LBB0_35:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%r12, %rax
	shlq	$16, %rax
	addq	%r15, %rax
	addq	$-65537, %rax                   ## imm = 0xFFFEFFFF
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	40(%rcx), %rcx
	movq	%rax, (%rcx,%r13,8)
	incq	%r13
	cmpq	%r14, %r13
	je	LBB0_36
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
                                        ##     Child Loop BB0_30 Depth 2
	movq	%rbx, %rdi
	imulq	%r13, %rdi
	callq	_toBARK
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	addq	%r12, %rax
	cmpq	%r13, %rax
	jge	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	imulq	%r12, %rbx
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_toBARK
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	subss	8(%rcx), %xmm1
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	incq	%r12
	addq	-104(%rbp), %rbx                ## 8-byte Folded Reload
	movq	(%rcx), %rax
	addq	%r12, %rax
	cmpq	%r13, %rax
	jl	LBB0_23
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	cmpq	%r14, %r15
	jg	LBB0_26
## %bb.29:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r14
	imulq	%r15, %r14
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_30 Depth=2
	incq	%r15
	addq	%rbx, %r14
	cmpq	%r15, -120(%rbp)                ## 8-byte Folded Reload
	je	LBB0_33
LBB0_30:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rcx), %rax
	addq	%r13, %rax
	cmpq	%rax, %r15
	jl	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=2
	movq	%r14, %rdi
	callq	_toBARK
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movss	24(%rcx), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	addss	-56(%rbp), %xmm1                ## 4-byte Folded Reload
	ucomiss	%xmm0, %xmm1
	ja	LBB0_32
	jmp	LBB0_34
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-120(%rbp), %r15                ## 8-byte Reload
LBB0_34:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_36:
	xorps	%xmm1, %xmm1
	cvtsi2sdq	-80(%rbp), %xmm1        ## 8-byte Folded Reload
	xorl	%ebx, %ebx
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rbx, %xmm0
	addss	LCPI0_2(%rip), %xmm0
	cvtss2sd	%xmm0, %xmm0
	mulsd	LCPI0_3(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	divsd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %rdi
	callq	_toOC
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movzbl	4(%r13), %ecx
	incb	%cl
	shll	%cl, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	addss	LCPI0_4(%rip), %xmm0
	cvttss2si	%xmm0, %eax
	movq	32(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_37
## %bb.38:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	-84(%rbp), %r12d                ## 4-byte Reload
LBB0_39:
	movl	48(%rax), %edi
	movsd	LCPI0_3(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	mulsd	%xmm1, %xmm0
	divsd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %rsi
	movl	40(%rax), %r8d
	movl	44(%rax), %ecx
	movl	%r15d, %edx
	callq	_setup_tone_curves
	movl	%eax, 88(%r13)
	movq	_P_NOISECURVES@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	shll	$3, %edi
	callq	__ogg_malloc
	movq	%rax, 72(%r13)
	cmpl	$0, (%r14)
	jle	LBB0_42
## %bb.40:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	callq	__ogg_malloc
	movq	72(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_41
LBB0_42:
	testl	%r15d, %r15d
	movsd	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	jle	LBB0_48
## %bb.43:
	addsd	%xmm2, %xmm2
	xorl	%r12d, %r12d
	movq	_P_BANDS@GOTPCREL(%rip), %r15
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_44 Depth=1
	incq	%r12
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	movsd	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	je	LBB0_48
LBB0_44:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_46 Depth 2
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12, %xmm0
	addsd	%xmm1, %xmm0
	mulsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	divsd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %rdi
	callq	_toOC
	cmpl	$0, (%r14)
	jle	LBB0_47
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	%xmm0, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movl	(%r15), %eax
	decl	%eax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	xorpd	%xmm2, %xmm2
	maxss	%xmm0, %xmm2
	movaps	%xmm1, %xmm0
	cmpless	%xmm2, %xmm0
	movaps	%xmm0, %xmm3
	andnps	%xmm2, %xmm3
	andps	%xmm1, %xmm0
	orps	%xmm3, %xmm0
	cvttss2si	%xmm0, %edx
	cvttps2dq	%xmm0, %xmm1
	cvtdq2ps	%xmm1, %xmm1
	subss	%xmm1, %xmm0
	movq	72(%r13), %r8
	movq	80(%r13), %rcx
	movq	32(%rcx), %rcx
	movslq	%edx, %rdx
	xorps	%xmm2, %xmm2
	cvtss2sd	%xmm0, %xmm2
	movsd	LCPI0_8(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm2, %xmm1
	leal	1(%rdx), %esi
	movslq	%esi, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_44 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rdi,8), %rbx
	xorps	%xmm2, %xmm2
	cvtsi2sdl	(%rbx,%rdx,4), %xmm2
	xorps	%xmm3, %xmm3
	cvtsi2ssl	(%rbx,%rsi,4), %xmm3
	mulsd	%xmm1, %xmm2
	mulss	%xmm0, %xmm3
	cvtss2sd	%xmm3, %xmm3
	addsd	%xmm2, %xmm3
	cvttsd2si	%xmm3, %ebx
	movq	(%r8,%rdi,8), %rax
	movl	%ebx, (%rax,%r12,4)
	incq	%rdi
	movslq	(%r14), %rax
	cmpq	%rax, %rdi
	jl	LBB0_46
	jmp	LBB0_47
LBB0_48:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ATH,4,2                    ## @MAX_ATH
	.comm	_ATH,8,3                        ## @ATH
	.comm	_P_NOISECURVES,4,2              ## @P_NOISECURVES
	.comm	_P_BANDS,4,2                    ## @P_BANDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__vp_psy_init                   ; -- Begin function _vp_psy_init
	.p2align	2
__vp_psy_init:                          ; @_vp_psy_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	mov	x26, x4
	mov	x20, x3
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #96
	bl	_memset
	ldr	s0, [x22]
	str	s0, [x19]
	fmov	s1, #8.00000000
	fmul	s0, s0, s1
	bl	_log
	mov	x24, x0
	fmov	s0, #2.00000000
	bl	_log
	sdiv	w0, w24, w0
	bl	_rint
	sub	w8, w0, #1
	str	w8, [x19, #4]
	scvtf	s8, x26
	fmov	s10, #0.25000000
	fmul	s0, s8, s10
	fcvt	d0, s0
	fmov	d11, #0.50000000
	fmul	d0, d0, d11
	scvtf	d9, w20
	fdiv	d0, d0, d9
	fcvtzs	x0, d0
	bl	_toOC
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	lsl	w8, w0, w8
	scvtf	s0, w8
	ldr	s1, [x22]
	fsub	s0, s0, s1
	fcvtzs	w8, s0
	str	w8, [x19, #8]
	scvtf	s0, w20
	fadd	s0, s0, s10
	fmul	s0, s0, s8
	fcvt	d0, s0
	fmul	d0, d0, d11
	fdiv	d0, d0, d9
	fcvtzs	x0, d0
	bl	_toOC
	ldp	w8, w9, [x19, #4]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	w8, w8, #1
	lsl	w8, w0, w8
	scvtf	s0, w8
	fmov	s1, #0.50000000
	fadd	s0, s0, s1
	fcvtzs	x8, s0
	sub	x8, x8, x9
	add	x8, x8, #1
	str	x8, [x19, #16]
	sxtw	x25, w20
	lsl	w23, w20, #2
	mov	x0, x23
	bl	__ogg_malloc
	str	x0, [x19, #24]
	mov	x0, x23
	bl	__ogg_malloc
	str	x0, [x19, #32]
	lsl	w0, w20, #3
	bl	__ogg_malloc
	str	x0, [x19, #40]
	str	x21, [x19, #80]
	str	w20, [x19, #48]
	str	x26, [x19, #56]
	mov	w8, #37999
	str	x26, [sp, #24]                  ; 8-byte Folded Spill
	cmp	x26, x8
	cset	w8, gt
	str	w8, [x19, #64]
Lloh0:
	adrp	x22, _MAX_ATH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_ATH@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w24, w20, #1
	cmp	w8, #2
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	b.lt	LBB0_8
; %bb.1:
	mov	x23, #0
	mov	x20, #0
	fmov	d8, #-2.00000000
	fmov	d10, #0.12500000
Lloh2:
	adrp	x26, _ATH@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ATH@GOTPAGEOFF]
	mov	w27, #1120403456
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x22]
	sub	x8, x8, #1
	cmp	x23, x8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x28, x23
	add	x23, x23, #1
	scvtf	d0, x23
	fmadd	d0, d0, d10, d8
	fcvtzs	x0, d0
	bl	_fromOC
	mul	w8, w24, w0
	sxtw	x8, w8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	sdiv	x0, x8, x9
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_rint
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x20, x8
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x20, x25
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x26]
	ldr	s0, [x9, x28, lsl #2]
	ldr	s1, [x9, x23, lsl #2]
	fsub	s1, s1, s0
	sub	x9, x8, x20
	scvtf	s2, x9
	fdiv	s1, s1, s2
	ldr	x9, [x19, #24]
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	fmov	s2, w27
	fadd	s2, s0, s2
	str	s2, [x9, x20, lsl #2]
	add	x20, x20, #1
	cmp	x20, x8
	b.ge	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	fadd	s0, s1, s0
	cmp	x20, x25
	b.lt	LBB0_6
	b	LBB0_2
LBB0_8:
	mov	x20, #0
LBB0_9:
	cmp	x20, x25
	b.ge	LBB0_12
; %bb.10:
	ldr	x8, [x19, #24]
	add	x8, x8, x20, lsl #2
	ldur	s0, [x8, #-4]
	sub	x9, x25, x20
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	s0, [x8], #4
	subs	x9, x9, #1
	b.ne	LBB0_11
LBB0_12:
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	cmp	w22, #1
	b.lt	LBB0_28
; %bb.13:
	mov	x26, #0
	sxtw	x8, w24
	add	x20, x25, #1
	mov	x28, #-99
	mov	w27, #1
	mov	x23, #-65537
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	sdiv	x22, x9, x8
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x27, x20
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x27, x28, lsl #16
	add	x8, x8, x23
	ldr	x9, [x19, #40]
	str	x8, [x9, x26, lsl #3]
	add	x26, x26, #1
	cmp	x26, x25
	b.eq	LBB0_25
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
	mul	x0, x22, x26
	bl	_toBARK
	fmov	s8, s0
	ldr	x8, [x21]
	add	x8, x8, x28
	cmp	x8, x26
	b.ge	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mul	x24, x22, x28
LBB0_18:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	bl	_toBARK
	ldr	s1, [x21, #8]
	fsub	s1, s8, s1
	fcmp	s0, s1
	b.pl	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	add	x28, x28, #1
	ldr	x8, [x21]
	add	x24, x24, x22
	add	x8, x8, x28
	cmp	x8, x26
	b.lt	LBB0_18
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	x27, x25
	b.gt	LBB0_15
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	mul	x24, x22, x27
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	add	x27, x27, #1
	add	x24, x24, x22
	cmp	x20, x27
	b.eq	LBB0_14
LBB0_23:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #16]
	add	x8, x8, x26
	cmp	x27, x8
	b.lt	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	mov	x0, x24
	bl	_toBARK
	ldr	s1, [x21, #24]
	fadd	s1, s8, s1
	fcmp	s0, s1
	b.mi	LBB0_22
	b	LBB0_15
LBB0_25:
	mov	x20, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	scvtf	d8, x8
	fmov	s10, #0.25000000
	fmov	d11, #0.50000000
	fmov	s12, #0.50000000
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	scvtf	s0, x20
	fadd	s0, s0, s10
	fcvt	d0, s0
	fmul	d0, d0, d11
	fmul	d0, d0, d8
	fdiv	d0, d0, d9
	fcvtzs	x0, d0
	bl	_toOC
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	lsl	w8, w0, w8
	scvtf	s0, w8
	fadd	s0, s0, s12
	fcvtzs	w8, s0
	ldr	x9, [x19, #32]
	str	w8, [x9, x20, lsl #2]
	add	x20, x20, #1
	cmp	x25, x20
	b.ne	LBB0_26
; %bb.27:
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_29
LBB0_28:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	scvtf	d8, x8
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
LBB0_29:
	ldp	w3, w0, [x21, #44]
	fmov	d0, #0.50000000
	fmul	d0, d8, d0
	fdiv	d0, d0, d9
	fcvtzs	x1, d0
	ldr	w4, [x21, #40]
	mov	x2, x22
	bl	_setup_tone_curves
	str	w0, [x19, #88]
Lloh4:
	adrp	x21, _P_NOISECURVES@GOTPAGE
Lloh5:
	ldr	x21, [x21, _P_NOISECURVES@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w0, w8, #3
	bl	__ogg_malloc
	str	x0, [x19, #72]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.30:
	mov	x20, #0
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	__ogg_malloc
	ldr	x8, [x19, #72]
	str	x0, [x8, x20, lsl #3]
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_31
LBB0_32:
	cmp	w22, #1
	b.lt	LBB0_38
; %bb.33:
	mov	x20, #0
	fadd	d9, d9, d9
	fmov	d10, #0.50000000
	movi	d11, #0000000000000000
Lloh6:
	adrp	x22, _P_BANDS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _P_BANDS@GOTPAGEOFF]
	fmov	d12, #1.00000000
	b	LBB0_35
LBB0_34:                                ;   in Loop: Header=BB0_35 Depth=1
	add	x20, x20, #1
	cmp	x20, x25
	b.eq	LBB0_38
LBB0_35:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_37 Depth 2
	scvtf	d0, x20
	fadd	d0, d0, d10
	fmul	d0, d0, d8
	fdiv	d0, d0, d9
	fcvtzs	x0, d0
	bl	_toOC
	scvtf	d0, w0
	fadd	d0, d0, d0
	fcvt	s0, d0
	fmax	s0, s0, s11
	ldr	w8, [x22]
	sub	w8, w8, #1
	scvtf	s1, w8
	fcmp	s0, s1
	fcsel	s0, s1, s0, ge
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_34
; %bb.36:                               ;   in Loop: Header=BB0_35 Depth=1
	mov	x8, #0
	fcvtzs	w11, s0
	fcvtzs	s1, s0
	scvtf	s1, s1
	fsub	s0, s0, s1
	ldp	x9, x10, [x19, #72]
	ldr	x10, [x10, #32]
	sxtw	x11, w11
	fcvt	d1, s0
	fsub	d1, d12, d1
	add	x12, x11, #1
LBB0_37:                                ;   Parent Loop BB0_35 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x13, x8, #3
	ldr	x14, [x10, x13]
	ldr	s2, [x14, x11, lsl #2]
	sshll.2d	v2, v2, #0
	ldr	s3, [x14, x12, lsl #2]
	scvtf	s3, s3
	fmul	s3, s0, s3
	scvtf	d2, d2
	fcvt	d3, s3
	fmadd	d2, d2, d1, d3
	fcvtzs	w14, d2
	ldr	x13, [x9, x13]
	str	w14, [x13, x20, lsl #2]
	add	x8, x8, #1
	ldrsw	x13, [x21]
	cmp	x8, x13
	b.lt	LBB0_37
	b	LBB0_34
LBB0_38:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ATH,4,2                    ; @MAX_ATH
	.comm	_ATH,8,3                        ; @ATH
	.comm	_P_NOISECURVES,4,2              ; @P_NOISECURVES
	.comm	_P_BANDS,4,2                    ; @P_BANDS
.subsections_via_symbols
