// File: /workspace/github_c_makefile_star2_O0/pipde[P]deos-songlib/utils/lowpass2/lowpass2.c
// Function: computeCoefficients
static void
computeCoefficients(void)
    {
    double theta,d,beta,delta;
    theta = 2 * M_PI * Freq / SampleRate;
    d = 1 / (double) Quality;
    beta = 0.5 * (1 - (d / 2) * sin(theta)) / (1 + (d / 2) * sin(theta));
    delta = (0.5 + beta) * cos(theta);
    b1 = -2 * delta;
    b2 = 2 * beta;
    if (Style == LOWPASS)
        {
        a0 = (0.5 + beta - delta) / 2;
        a1 = (0.5 + beta - delta);
        a2 = (0.5 + beta - delta) / 2;
        }
    else if (Style == HIGHPASS)
        {
        a0 =  (0.5 + beta + delta) / 2;
        a1 = -(0.5 + beta + delta);
        a2 =  (0.5 + beta + delta) / 2;
        }
    else if (Style == NOTCH)
        {
        a0 =  (0.5 + beta + delta) / 2;
        a1 = -(0.5 + beta + delta);
        a2 =  (0.5 + beta + delta) / 2;
        b1 = a1;
        }
    /*
    double theta,alpha,A0,A1,A2,B0,B1,B2;
    theta = 2 * M_PI * Freq / SampleRate;
    alpha = sin(theta) / (2 * Quality);
    A0 = 1 + alpha;
    A1 = -2 * cos(theta);
    A2 = 1 - alpha;
    if (Style == LOWPASS)
        {
        B0 = (1 - cos(theta)) / 2;
        B1 = 1 - cos(theta);
        B2 = (1 - cos(theta)) / 2;
        }
    else if (Style == HIGHPASS)
        {
        B0 = (1 + cos(theta)) / 2;
        B1 = 1 + cos(theta);
        B2 = (1 + cos(theta)) / 2;
        }
    a0 = B0/A0;
    a1 = B1/A0;
    a2 = B2/A0;
    b1 = A1/A0;
    b2 = A2/A0;
    */
    fprintf(stderr,"a0 = %f\n",a0);
    fprintf(stderr,"a1 = %f\n",a1);
    fprintf(stderr,"a2 = %f\n",a2);
    fprintf(stderr,"b1 = %f\n",b1);
    fprintf(stderr,"b2 = %f\n",b2);
    //a0 = 0.2513790015131591;
    //a1 = 0.5027580030263182;
    //a2 = 0.2513790015131591;
    //b1 = -0.17124071441396285;
    //b2 = 0.1767567204665992;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movsd 0xb5b8(%rip), %xmm0     # 0xe088
mulsd 0x106b8(%rip), %xmm0    # 0x13190
leaq 0x108b1(%rip), %rax     # 0x13390
cvtsi2sdl (%rax), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x8(%rbp)
movsd 0xb574(%rip), %xmm0     # 0xe068
divsd 0x106a4(%rip), %xmm0    # 0x131a0
movsd %xmm0, -0x10(%rbp)
movsd -0x10(%rbp), %xmm0
movsd 0xb54a(%rip), %xmm1     # 0xe058
divsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x8(%rbp), %xmm0
callq 0x2250
movsd -0x40(%rbp), %xmm1
movq %xmm1, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm1
mulsd %xmm0, %xmm1
movsd 0xb51f(%rip), %xmm0     # 0xe068
addsd %xmm0, %xmm1
movsd 0xb52b(%rip), %xmm0     # 0xe080
mulsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x10(%rbp), %xmm0
movsd 0xb4ed(%rip), %xmm1     # 0xe058
divsd %xmm1, %xmm0
movsd %xmm0, -0x38(%rbp)
movsd -0x8(%rbp), %xmm0
callq 0x2250
movsd -0x38(%rbp), %xmm1
movaps %xmm0, %xmm2
movsd -0x30(%rbp), %xmm0
mulsd %xmm2, %xmm1
movsd 0xb4d1(%rip), %xmm2     # 0xe068
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x18(%rbp)
movsd 0xb4d4(%rip), %xmm0     # 0xe080
addsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x28(%rbp)
movsd -0x8(%rbp), %xmm0
callq 0x2140
movaps %xmm0, %xmm1
movsd -0x28(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x20(%rbp)
movsd 0xb49f(%rip), %xmm0     # 0xe078
mulsd -0x20(%rbp), %xmm0
movsd %xmm0, 0x10872(%rip)    # 0x13458
movsd 0xb46a(%rip), %xmm0     # 0xe058
mulsd -0x18(%rbp), %xmm0
movsd %xmm0, 0x10865(%rip)    # 0x13460
movsd 0x10835(%rip), %xmm0    # 0x13438
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x2c79
jp 0x2c79
movsd 0xb46a(%rip), %xmm0     # 0xe080
addsd -0x18(%rbp), %xmm0
subsd -0x20(%rbp), %xmm0
movsd 0xb430(%rip), %xmm1     # 0xe058
divsd %xmm1, %xmm0
movsd %xmm0, 0x1080c(%rip)    # 0x13440
movsd 0xb444(%rip), %xmm0     # 0xe080
addsd -0x18(%rbp), %xmm0
subsd -0x20(%rbp), %xmm0
movsd %xmm0, 0x107fa(%rip)    # 0x13448
movsd 0xb42a(%rip), %xmm0     # 0xe080
addsd -0x18(%rbp), %xmm0
subsd -0x20(%rbp), %xmm0
movsd 0xb3f0(%rip), %xmm1     # 0xe058
divsd %xmm1, %xmm0
movsd %xmm0, 0x107dc(%rip)    # 0x13450
jmp 0x2dcc
movsd 0x107b7(%rip), %xmm0    # 0x13438
movsd 0xb3df(%rip), %xmm1     # 0xe068
ucomisd %xmm1, %xmm0
jne 0x2d1b
jp 0x2d1b
movsd 0xb3df(%rip), %xmm0     # 0xe080
addsd -0x18(%rbp), %xmm0
addsd -0x20(%rbp), %xmm0
movsd 0xb3a5(%rip), %xmm1     # 0xe058
divsd %xmm1, %xmm0
movsd %xmm0, 0x10781(%rip)    # 0x13440
movsd 0xb3b9(%rip), %xmm0     # 0xe080
addsd -0x18(%rbp), %xmm0
addsd -0x20(%rbp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x10758(%rip)    # 0x13448
movsd 0xb388(%rip), %xmm0     # 0xe080
addsd -0x18(%rbp), %xmm0
addsd -0x20(%rbp), %xmm0
movsd 0xb34e(%rip), %xmm1     # 0xe058
divsd %xmm1, %xmm0
movsd %xmm0, 0x1073a(%rip)    # 0x13450
jmp 0x2dca
movsd 0x10715(%rip), %xmm0    # 0x13438
movsd 0xb315(%rip), %xmm1     # 0xe040
ucomisd %xmm1, %xmm0
jne 0x2dc8
jp 0x2dc8
movsd 0xb33d(%rip), %xmm0     # 0xe080
addsd -0x18(%rbp), %xmm0
addsd -0x20(%rbp), %xmm0
movsd 0xb303(%rip), %xmm1     # 0xe058
divsd %xmm1, %xmm0
movsd %xmm0, 0x106df(%rip)    # 0x13440
movsd 0xb317(%rip), %xmm0     # 0xe080
addsd -0x18(%rbp), %xmm0
addsd -0x20(%rbp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, 0x106b6(%rip)    # 0x13448
movsd 0xb2e6(%rip), %xmm0     # 0xe080
addsd -0x18(%rbp), %xmm0
addsd -0x20(%rbp), %xmm0
movsd 0xb2ac(%rip), %xmm1     # 0xe058
divsd %xmm1, %xmm0
movsd %xmm0, 0x10698(%rip)    # 0x13450
movsd 0x10688(%rip), %xmm0    # 0x13448
movsd %xmm0, 0x10690(%rip)    # 0x13458
jmp 0x2dca
jmp 0x2dcc
movq 0x10225(%rip), %rax     # 0x12ff8
movq (%rax), %rdi
movsd 0x10662(%rip), %xmm0    # 0x13440
leaq 0xb43a(%rip), %rsi      # 0xe21f
movb $0x1, %al
callq 0x2190
movq 0x10205(%rip), %rax     # 0x12ff8
movq (%rax), %rdi
movsd 0x1064a(%rip), %xmm0    # 0x13448
leaq 0xb423(%rip), %rsi      # 0xe228
movb $0x1, %al
callq 0x2190
movq 0x101e5(%rip), %rax     # 0x12ff8
movq (%rax), %rdi
movsd 0x10632(%rip), %xmm0    # 0x13450
leaq 0xb40c(%rip), %rsi      # 0xe231
movb $0x1, %al
callq 0x2190
movq 0x101c5(%rip), %rax     # 0x12ff8
movq (%rax), %rdi
movsd 0x1061a(%rip), %xmm0    # 0x13458
leaq 0xb3f5(%rip), %rsi      # 0xe23a
movb $0x1, %al
callq 0x2190
movq 0x101a5(%rip), %rax     # 0x12ff8
movq (%rax), %rdi
movsd 0x10602(%rip), %xmm0    # 0x13460
leaq 0xb3de(%rip), %rsi      # 0xe243
movb $0x1, %al
callq 0x2190
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)