// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

import sign.signlink;

public class Class18
{

    public float method262(float f, byte byte0, int i, int j)
    {
        if(byte0 == 8)
        {
            byte0 = 0;
        } else
        {
            for(int k = 1; k > 0; k++);
        }
        float f1 = (float)anIntArrayArrayArray269[j][0][i] + f * (float)(anIntArrayArrayArray269[j][1][i] - anIntArrayArrayArray269[j][0][i]);
        f1 *= 0.001525879F;
        return 1.0F - (float)Math.pow(10D, -f1 / 20F);
    }

    public float method263(int i, float f)
    {
        if(i < 1 || i > 1)
        {
            throw new NullPointerException();
        } else
        {
            float f1 = 32.7032F * (float)Math.pow(2D, f);
            return (f1 * 3.141593F) / 11025F;
        }
    }

    public float method264(int i, boolean flag, float f, int j)
    {
        if(flag)
            anInt266 = 476;
        float f1 = (float)anIntArrayArrayArray268[i][0][j] + f * (float)(anIntArrayArrayArray268[i][1][j] - anIntArrayArrayArray268[i][0][j]);
        f1 *= 0.0001220703F;
        return method263(anInt265, f1);
    }

    public int method265(float f, int i, boolean flag)
    {
        if(i == 0)
        {
            float f1 = (float)anIntArray270[0] + (float)(anIntArray270[1] - anIntArray270[0]) * f;
            f1 *= 0.003051758F;
            aFloat273 = (float)Math.pow(0.10000000000000001D, f1 / 20F);
            anInt274 = (int)(aFloat273 * 65536F);
        }
        if(anIntArray267[i] == 0)
            return 0;
        float f2 = method262(f, (byte)8, 0, i);
        if(flag)
        {
            for(int j = 1; j > 0; j++);
        }
        aFloatArrayArray271[i][0] = -2F * f2 * (float)Math.cos(method264(i, false, f, 0));
        aFloatArrayArray271[i][1] = f2 * f2;
        for(int k = 1; k < anIntArray267[i]; k++)
        {
            float f3 = method262(f, (byte)8, k, i);
            float f4 = -2F * f3 * (float)Math.cos(method264(i, false, f, k));
            float f5 = f3 * f3;
            aFloatArrayArray271[i][k * 2 + 1] = aFloatArrayArray271[i][k * 2 - 1] * f5;
            aFloatArrayArray271[i][k * 2] = aFloatArrayArray271[i][k * 2 - 1] * f4 + aFloatArrayArray271[i][k * 2 - 2] * f5;
            for(int j1 = k * 2 - 1; j1 >= 2; j1--)
                aFloatArrayArray271[i][j1] += aFloatArrayArray271[i][j1 - 1] * f4 + aFloatArrayArray271[i][j1 - 2] * f5;

            aFloatArrayArray271[i][1] += aFloatArrayArray271[i][0] * f4 + f5;
            aFloatArrayArray271[i][0] += f4;
        }

        if(i == 0)
        {
            for(int l = 0; l < anIntArray267[0] * 2; l++)
                aFloatArrayArray271[0][l] *= aFloat273;

        }
        for(int i1 = 0; i1 < anIntArray267[i] * 2; i1++)
            anIntArrayArray272[i][i1] = (int)(aFloatArrayArray271[i][i1] * 65536F);

        return anIntArray267[i] * 2;
    }

    public void method266(boolean flag, Class31_Sub3_Sub2 class31_sub3_sub2, Class48 class48)
    {
        int i = class31_sub3_sub2.method422();
        anIntArray267[0] = i >> 4;
        anIntArray267[1] = i & 0xf;
        if(flag)
            return;
        if(i != 0)
        {
            anIntArray270[0] = class31_sub3_sub2.method424();
            anIntArray270[1] = class31_sub3_sub2.method424();
            int j = class31_sub3_sub2.method422();
            for(int k = 0; k < 2; k++)
            {
                for(int l = 0; l < anIntArray267[k]; l++)
                {
                    anIntArrayArrayArray268[k][0][l] = class31_sub3_sub2.method424();
                    anIntArrayArrayArray269[k][0][l] = class31_sub3_sub2.method424();
                }

            }

            for(int i1 = 0; i1 < 2; i1++)
            {
                for(int j1 = 0; j1 < anIntArray267[i1]; j1++)
                    if((j & 1 << i1 * 4 << j1) != 0)
                    {
                        anIntArrayArrayArray268[i1][1][j1] = class31_sub3_sub2.method424();
                        anIntArrayArrayArray269[i1][1][j1] = class31_sub3_sub2.method424();
                    } else
                    {
                        anIntArrayArrayArray268[i1][1][j1] = anIntArrayArrayArray268[i1][0][j1];
                        anIntArrayArrayArray269[i1][1][j1] = anIntArrayArrayArray269[i1][0][j1];
                    }

            }

            if(j != 0 || anIntArray270[1] != anIntArray270[0])
                class48.method601(class31_sub3_sub2, anInt264);
            return;
        } else
        {
            anIntArray270[0] = anIntArray270[1] = 0;
            return;
        }
    }

    public Class18()
    {
        anInt265 = 1;
        anInt266 = 105;
        anIntArray267 = new int[2];
        anIntArrayArrayArray268 = new int[2][2][4];
        anIntArrayArrayArray269 = new int[2][2][4];
        anIntArray270 = new int[2];
    }

    public int anInt264;
    public int anInt265;
    public int anInt266;
    public int anIntArray267[];
    public int anIntArrayArrayArray268[][][];
    public int anIntArrayArrayArray269[][][];
    public int anIntArray270[];
    public static float aFloatArrayArray271[][] = new float[2][8];
    public static int anIntArrayArray272[][] = new int[2][8];
    public static float aFloat273;
    public static int anInt274;

}
