	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function wahwah_process
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_2:
	.quad	0xbff0000000000000              ## double -1
LCPI0_3:
	.quad	0x4018000000000000              ## double 6
LCPI0_4:
	.quad	0xc000000000000000              ## double -2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wahwah_process:                        ## @wahwah_process
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r15
	movq	(%rdx), %rax
	movq	%rax, (%rsi)
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	8(%rdx), %ecx
	movl	%ecx, 8(%rsi)
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	movq	_WAHWAH_LFO_SKIP_SAMPLES@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	imull	4(%rbx), %esi
	xorps	%xmm0, %xmm0
	cvtsi2ss	%esi, %xmm0
	addss	8(%rbx), %xmm0
	movss	%xmm13, -56(%rbp)               ## 4-byte Spill
	movss	%xmm14, -52(%rbp)               ## 4-byte Spill
	callq	_cos
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	addsd	%xmm2, %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm1, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	mulss	12(%rbx), %xmm0
	cvtss2sd	%xmm0, %xmm0
	movsd	16(%rbx), %xmm1                 ## xmm1 = mem[0],zero
	subsd	%xmm1, %xmm2
	mulsd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	xorps	%xmm0, %xmm0
	cvtsd2ss	%xmm2, %xmm0
	cvtss2sd	%xmm0, %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	mulsd	LCPI0_3(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	callq	_exp
	movq	_M_PI@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	callq	_sin
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_cos
	movss	-52(%rbp), %xmm14               ## 4-byte Reload
                                        ## xmm14 = mem[0],zero,zero,zero
	movss	-56(%rbp), %xmm13               ## 4-byte Reload
                                        ## xmm13 = mem[0],zero,zero,zero
	cvtsd2ss	%xmm0, %xmm0
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	movsd	24(%rbx), %xmm2                 ## xmm2 = mem[0],zero
	addsd	%xmm2, %xmm2
	divsd	%xmm2, %xmm1
	xorps	%xmm2, %xmm2
	cvtsd2ss	%xmm1, %xmm2
	cvtss2sd	%xmm0, %xmm12
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movapd	%xmm0, %xmm4
	subsd	%xmm12, %xmm4
	movapd	%xmm4, %xmm3
	mulsd	LCPI0_1(%rip), %xmm3
	movsd	%xmm3, 32(%rbx)
	movsd	%xmm4, 40(%rbx)
	movsd	%xmm3, 48(%rbx)
	cvtss2sd	%xmm2, %xmm11
	movapd	%xmm0, %xmm10
	subsd	%xmm11, %xmm10
	addsd	%xmm0, %xmm11
	movsd	%xmm11, 56(%rbx)
	mulsd	LCPI0_4(%rip), %xmm12
	movsd	%xmm12, 64(%rbx)
	movsd	%xmm10, 72(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	movapd	%xmm3, %xmm8
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorps	%xmm5, %xmm5
	cvtss2sd	%xmm14, %xmm5
	movss	96(%rbx), %xmm9                 ## xmm9 = mem[0],zero,zero,zero
	xorps	%xmm6, %xmm6
	cvtss2sd	%xmm9, %xmm6
	mulsd	%xmm4, %xmm6
	mulsd	%xmm8, %xmm5
	addsd	%xmm6, %xmm5
	movss	100(%rbx), %xmm6                ## xmm6 = mem[0],zero,zero,zero
	cvtss2sd	%xmm6, %xmm6
	mulsd	%xmm3, %xmm6
	addsd	%xmm5, %xmm6
	movss	104(%rbx), %xmm7                ## xmm7 = mem[0],zero,zero,zero
	xorps	%xmm5, %xmm5
	cvtss2sd	%xmm7, %xmm5
	mulsd	%xmm12, %xmm5
	subsd	%xmm5, %xmm6
	movss	108(%rbx), %xmm5                ## xmm5 = mem[0],zero,zero,zero
	cvtss2sd	%xmm5, %xmm5
	mulsd	%xmm10, %xmm5
	subsd	%xmm5, %xmm6
	divsd	%xmm11, %xmm6
	xorps	%xmm5, %xmm5
	cvtsd2ss	%xmm6, %xmm5
	xorps	%xmm2, %xmm2
	cvtss2sd	%xmm13, %xmm2
	movss	80(%rbx), %xmm6                 ## xmm6 = mem[0],zero,zero,zero
	movss	84(%rbx), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	cvtss2sd	%xmm6, %xmm1
	mulsd	%xmm4, %xmm1
	mulsd	%xmm8, %xmm2
	addsd	%xmm1, %xmm2
	cvtss2sd	%xmm0, %xmm0
	mulsd	%xmm3, %xmm0
	addsd	%xmm2, %xmm0
	movss	88(%rbx), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	xorps	%xmm2, %xmm2
	cvtss2sd	%xmm1, %xmm2
	mulsd	%xmm12, %xmm2
	subsd	%xmm2, %xmm0
	movss	92(%rbx), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	cvtss2sd	%xmm2, %xmm2
	mulsd	%xmm10, %xmm2
	subsd	%xmm2, %xmm0
	divsd	%xmm11, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm9, 100(%rbx)
	movss	%xmm14, 96(%rbx)
	movss	%xmm7, 108(%rbx)
	movss	%xmm5, 104(%rbx)
	movss	%xmm6, 84(%rbx)
	movss	%xmm13, 80(%rbx)
	movss	%xmm1, 92(%rbx)
	movss	%xmm0, 88(%rbx)
	movss	%xmm5, (%r15,%r14,4)
	movss	%xmm0, 4(%r15,%r14,4)
	incq	%r12
	cmpl	%ecx, %r12d
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r12), %r14
	movss	(%r15,%r12,8), %xmm14           ## xmm14 = mem[0],zero,zero,zero
	movss	4(%r15,%r12,8), %xmm13          ## xmm13 = mem[0],zero,zero,zero
	movl	(%rbx), %eax
	leal	1(%rax), %esi
	movl	%esi, (%rbx)
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%r13)
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movsd	32(%rbx), %xmm8                 ## xmm8 = mem[0],zero
	movsd	40(%rbx), %xmm4                 ## xmm4 = mem[0],zero
	movsd	48(%rbx), %xmm3                 ## xmm3 = mem[0],zero
	movsd	64(%rbx), %xmm12                ## xmm12 = mem[0],zero
	movsd	72(%rbx), %xmm10                ## xmm10 = mem[0],zero
	movsd	56(%rbx), %xmm11                ## xmm11 = mem[0],zero
	jmp	LBB0_5
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAHWAH_LFO_SKIP_SAMPLES,4,2    ## @WAHWAH_LFO_SKIP_SAMPLES
	.comm	_M_PI,4,2                       ## @M_PI
	.no_dead_strip	_wahwah_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wahwah_process
_wahwah_process:                        ; @wahwah_process
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	.cfi_offset b12, -104
	.cfi_offset b13, -112
	.cfi_offset b14, -120
	.cfi_offset b15, -128
	ldr	x21, [x1]
	ldr	x8, [x2]
	str	x8, [x1]
	ldr	w8, [x2, #8]
	str	w8, [x1, #8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	w22, #0
Lloh0:
	adrp	x23, _WAHWAH_LFO_SKIP_SAMPLES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WAHWAH_LFO_SKIP_SAMPLES@GOTPAGEOFF]
	fmov	d10, #1.00000000
	fmov	d11, #0.50000000
	fmov	d13, #6.00000000
Lloh2:
	adrp	x24, _M_PI@GOTPAGE
Lloh3:
	ldr	x24, [x24, _M_PI@GOTPAGEOFF]
	fmov	d14, #-2.00000000
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #4]
	mul	w8, w8, w9
	scvtf	s0, w8
	ldr	s1, [x20, #8]
	fadd	s0, s1, s0
	bl	_cos
	fadd	d0, d0, d10
	fmul	d0, d0, d11
	fcvt	s0, d0
	ldr	s1, [x20, #12]
	fmul	s0, s1, s0
	fcvt	d0, s0
	ldr	d1, [x20, #16]
	fsub	d2, d10, d1
	fmadd	d0, d0, d2, d1
	fcvt	s0, d0
	fcvt	d0, s0
	fmov	d1, #-1.00000000
	fadd	d0, d0, d1
	fmul	d0, d0, d13
	fcvt	s0, d0
	bl	_exp
	ldr	s1, [x24]
	fmul	s8, s0, s1
	fmov	s0, s8
	bl	_sin
	fmov	s9, s0
	fmov	s0, s8
	bl	_cos
	fcvt	s0, d0
	fcvt	d1, s9
	ldr	d2, [x20, #24]
	fadd	d2, d2, d2
	fdiv	d1, d1, d2
	fcvt	s1, d1
	fcvt	d3, s0
	fsub	d0, d10, d3
	fmul	d2, d0, d11
	stp	d2, d0, [x20, #32]
	fcvt	d4, s1
	fadd	d1, d4, d10
	stp	d2, d1, [x20, #48]
	fmul	d3, d3, d14
	fsub	d4, d10, d4
	stp	d3, d4, [x20, #64]
	ldr	w8, [x19, #8]
	fmov	d5, d2
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	fcvt	d6, s12
	ldp	s7, s16, [x20, #96]
	fcvt	d17, s7
	fmul	d17, d0, d17
	fmadd	d6, d5, d6, d17
	fcvt	d16, s16
	fmadd	d6, d2, d16, d6
	ldp	s16, s17, [x20, #104]
	fcvt	d18, s16
	fmsub	d6, d3, d18, d6
	fcvt	d17, s17
	fmsub	d6, d4, d17, d6
	fdiv	d6, d6, d1
	fcvt	s6, d6
	ldp	s17, s18, [x20, #80]
	fcvt	d19, s17
	fmul	d0, d0, d19
	fcvt	d19, s15
	fmadd	d0, d5, d19, d0
	fcvt	d5, s18
	fmadd	d0, d2, d5, d0
	ldp	s2, s5, [x20, #88]
	fcvt	d18, s2
	fmsub	d0, d3, d18, d0
	fcvt	d3, s5
	fmsub	d0, d4, d3, d0
	fdiv	d0, d0, d1
	stp	s12, s7, [x20, #96]
	stp	s6, s16, [x20, #104]
	stp	s15, s17, [x20, #80]
	fcvt	s0, d0
	stp	s0, s2, [x20, #88]
	stp	s6, s0, [x21], #8
	add	w22, w22, #1
	cmp	w22, w8
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	s12, s15, [x21]
	ldr	w10, [x20]
	add	w9, w10, #1
	str	w9, [x20]
	ldr	w11, [x23]
	sdiv	w12, w10, w11
	msub	w10, w12, w11, w10
	cbz	w10, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	d5, d0, [x20, #32]
	ldp	d3, d4, [x20, #64]
	ldp	d2, d1, [x20, #48]
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #128            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WAHWAH_LFO_SKIP_SAMPLES,4,2    ; @WAHWAH_LFO_SKIP_SAMPLES
	.comm	_M_PI,4,2                       ; @M_PI
	.no_dead_strip	_wahwah_process
.subsections_via_symbols
