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

import java.io.PrintStream;
import sign.signlink;

public class Class5
{

    public static void method172(Class11 class11, int i)
    {
        Class31_Sub3_Sub2 class31_sub3_sub2 = new Class31_Sub3_Sub2((byte)114, class11.method204("idk.dat", null));
        anInt103 = class31_sub3_sub2.method424();
        if(i != 5)
            aBoolean102 = !aBoolean102;
        if(aClass5Array104 == null)
            aClass5Array104 = new Class5[anInt103];
        for(int j = 0; j < anInt103; j++)
        {
            if(aClass5Array104[j] == null)
                aClass5Array104[j] = new Class5();
            aClass5Array104[j].method173(class31_sub3_sub2, (byte)59);
        }

    }

    public void method173(Class31_Sub3_Sub2 class31_sub3_sub2, byte byte0)
    {
        if(byte0 != 59)
            throw new NullPointerException();
        do
        {
            int i = class31_sub3_sub2.method422();
            if(i == 0)
                return;
            if(i == 1)
                anInt105 = class31_sub3_sub2.method422();
            else
            if(i == 2)
            {
                int j = class31_sub3_sub2.method422();
                anIntArray106 = new int[j];
                for(int k = 0; k < j; k++)
                    anIntArray106[k] = class31_sub3_sub2.method424();

            } else
            if(i == 3)
                aBoolean110 = true;
            else
            if(i >= 40 && i < 50)
                anIntArray107[i - 40] = class31_sub3_sub2.method424();
            else
            if(i >= 50 && i < 60)
                anIntArray108[i - 50] = class31_sub3_sub2.method424();
            else
            if(i >= 60 && i < 70)
                anIntArray109[i - 60] = class31_sub3_sub2.method424();
            else
                System.out.println("Error unrecognised config code: " + i);
        } while(true);
    }

    public boolean method174(int i)
    {
        if(i != 0)
            throw new NullPointerException();
        if(anIntArray106 == null)
            return true;
        boolean flag = true;
        for(int j = 0; j < anIntArray106.length; j++)
            if(!Class31_Sub3_Sub3_Sub2.method468(anIntArray106[j]))
                flag = false;

        return flag;
    }

    public Class31_Sub3_Sub3_Sub2 method175(int i)
    {
        if(i != 18390)
            throw new NullPointerException();
        if(anIntArray106 == null)
            return null;
        Class31_Sub3_Sub3_Sub2 aclass31_sub3_sub3_sub2[] = new Class31_Sub3_Sub3_Sub2[anIntArray106.length];
        for(int j = 0; j < anIntArray106.length; j++)
            aclass31_sub3_sub3_sub2[j] = Class31_Sub3_Sub3_Sub2.method467(anIntArray106[j]);

        Class31_Sub3_Sub3_Sub2 class31_sub3_sub3_sub2;
        if(aclass31_sub3_sub3_sub2.length == 1)
            class31_sub3_sub3_sub2 = aclass31_sub3_sub3_sub2[0];
        else
            class31_sub3_sub3_sub2 = new Class31_Sub3_Sub3_Sub2(aclass31_sub3_sub3_sub2, 3, aclass31_sub3_sub3_sub2.length);
        for(int k = 0; k < 6; k++)
        {
            if(anIntArray107[k] == 0)
                break;
            class31_sub3_sub3_sub2.method481(anIntArray107[k], anIntArray108[k]);
        }

        return class31_sub3_sub3_sub2;
    }

    public boolean method176(int i)
    {
        if(i != 2)
        {
            for(int j = 1; j > 0; j++);
        }
        boolean flag = true;
        for(int k = 0; k < 5; k++)
            if(anIntArray109[k] != -1 && !Class31_Sub3_Sub3_Sub2.method468(anIntArray109[k]))
                flag = false;

        return flag;
    }

    public Class31_Sub3_Sub3_Sub2 method177(int i)
    {
        Class31_Sub3_Sub3_Sub2 aclass31_sub3_sub3_sub2[] = new Class31_Sub3_Sub3_Sub2[5];
        i = 64 / i;
        int j = 0;
        for(int k = 0; k < 5; k++)
            if(anIntArray109[k] != -1)
                aclass31_sub3_sub3_sub2[j++] = Class31_Sub3_Sub3_Sub2.method467(anIntArray109[k]);

        Class31_Sub3_Sub3_Sub2 class31_sub3_sub3_sub2 = new Class31_Sub3_Sub3_Sub2(aclass31_sub3_sub3_sub2, 3, j);
        for(int l = 0; l < 6; l++)
        {
            if(anIntArray107[l] == 0)
                break;
            class31_sub3_sub3_sub2.method481(anIntArray107[l], anIntArray108[l]);
        }

        return class31_sub3_sub3_sub2;
    }

    public Class5()
    {
        anInt101 = 709;
        anInt105 = -1;
        anIntArray107 = new int[6];
        anIntArray108 = new int[6];
        aBoolean110 = false;
    }

    public int anInt101;
    public static boolean aBoolean102;
    public static int anInt103;
    public static Class5 aClass5Array104[];
    public int anInt105;
    public int anIntArray106[];
    public int anIntArray107[];
    public int anIntArray108[];
    public int anIntArray109[] = {
        -1, -1, -1, -1, -1
    };
    public boolean aBoolean110;
}
