// 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 Class8
{

    public static void method178(Class11 class11, int i)
    {
        Class31_Sub3_Sub2 class31_sub3_sub2 = new Class31_Sub3_Sub2((byte)114, class11.method204("seq.dat", null));
        anInt139 = class31_sub3_sub2.method424();
        if(i != 5)
            return;
        if(aClass8Array140 == null)
            aClass8Array140 = new Class8[anInt139];
        for(int j = 0; j < anInt139; j++)
        {
            if(aClass8Array140[j] == null)
                aClass8Array140[j] = new Class8();
            aClass8Array140[j].method180(class31_sub3_sub2, (byte)59);
        }

    }

    public int method179(int i, int j)
    {
        int k = anIntArray144[i];
        if(j != -26977)
            return 4;
        if(k == 0)
        {
            Class32 class32 = Class32.method508(anIntArray142[i]);
            if(class32 != null)
                k = anIntArray144[i] = class32.anInt475;
        }
        if(k == 0)
            k = 1;
        return k;
    }

    public void method180(Class31_Sub3_Sub2 class31_sub3_sub2, byte byte0)
    {
        if(byte0 != 59)
            throw new NullPointerException();
        do
        {
            int i = class31_sub3_sub2.method422();
            if(i == 0)
                break;
            if(i == 1)
            {
                anInt141 = class31_sub3_sub2.method422();
                anIntArray142 = new int[anInt141];
                anIntArray143 = new int[anInt141];
                anIntArray144 = new int[anInt141];
                for(int j = 0; j < anInt141; j++)
                {
                    anIntArray142[j] = class31_sub3_sub2.method424();
                    anIntArray143[j] = class31_sub3_sub2.method424();
                    if(anIntArray143[j] == 65535)
                        anIntArray143[j] = -1;
                    anIntArray144[j] = class31_sub3_sub2.method424();
                }

            } else
            if(i == 2)
                anInt145 = class31_sub3_sub2.method424();
            else
            if(i == 3)
            {
                int k = class31_sub3_sub2.method422();
                anIntArray146 = new int[k + 1];
                for(int l = 0; l < k; l++)
                    anIntArray146[l] = class31_sub3_sub2.method422();

                anIntArray146[k] = 0x98967f;
            } else
            if(i == 4)
                aBoolean147 = true;
            else
            if(i == 5)
                anInt148 = class31_sub3_sub2.method422();
            else
            if(i == 6)
                anInt149 = class31_sub3_sub2.method424();
            else
            if(i == 7)
                anInt150 = class31_sub3_sub2.method424();
            else
            if(i == 8)
                anInt151 = class31_sub3_sub2.method422();
            else
            if(i == 9)
                anInt152 = class31_sub3_sub2.method422();
            else
            if(i == 10)
                anInt153 = class31_sub3_sub2.method422();
            else
            if(i == 11)
                anInt154 = class31_sub3_sub2.method422();
            else
            if(i == 12)
                anInt155 = class31_sub3_sub2.method427();
            else
                System.out.println("Error unrecognised seq config code: " + i);
        } while(true);
        if(anInt141 == 0)
        {
            anInt141 = 1;
            anIntArray142 = new int[1];
            anIntArray142[0] = -1;
            anIntArray143 = new int[1];
            anIntArray143[0] = -1;
            anIntArray144 = new int[1];
            anIntArray144[0] = -1;
        }
        if(anInt152 == -1)
            if(anIntArray146 != null)
                anInt152 = 2;
            else
                anInt152 = 0;
        if(anInt153 == -1)
        {
            if(anIntArray146 != null)
            {
                anInt153 = 2;
                return;
            }
            anInt153 = 0;
        }
    }

    public Class8()
    {
        anInt145 = -1;
        aBoolean147 = false;
        anInt148 = 5;
        anInt149 = -1;
        anInt150 = -1;
        anInt151 = 99;
        anInt152 = -1;
        anInt153 = -1;
        anInt154 = 2;
    }

    public static int anInt139;
    public static Class8 aClass8Array140[];
    public int anInt141;
    public int anIntArray142[];
    public int anIntArray143[];
    public int anIntArray144[];
    public int anInt145;
    public int anIntArray146[];
    public boolean aBoolean147;
    public int anInt148;
    public int anInt149;
    public int anInt150;
    public int anInt151;
    public int anInt152;
    public int anInt153;
    public int anInt154;
    public int anInt155;
    public static int anInt156;
}
