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

public class VarBit {

    public static void method533(StreamLoader streamLoader)
    {
        Stream stream = new Stream(streamLoader.getDataForName("varbit.dat"));
        int cacheSize = stream.readUnsignedWord();
        if(cache == null)
            cache = new VarBit[cacheSize];
        for(int j = 0; j < cacheSize; j++)
        {
            if(cache[j] == null)
                cache[j] = new VarBit();
            cache[j].readValues(stream);
            if(cache[j].aBoolean651)
                Varp.cache[cache[j].anInt648].aBoolean713 = true;
        }

        if(stream.currentOffset != stream.buffer.length)
            System.out.println("varbit load mismatch");
    }

    private void readValues(Stream stream)
    {
        do
        {
            int j = stream.readUnsignedByte();
            if(j == 0)
                return;
            String aString647;
            int anInt653;
            if(j == 1)
            {
                anInt648 = stream.readUnsignedWord();
                anInt649 = stream.readUnsignedByte();
                anInt650 = stream.readUnsignedByte();
            } else
            if(j == 10)
                aString647 = stream.readString();
            else
            if(j == 2)
                aBoolean651 = true;
            else
            if(j == 3)
                anInt652 = stream.readDWord();
            else
            if(j == 4)
                anInt653 = stream.readDWord();
            else
                System.out.println("Error unrecognised config code: " + j);
        } while(true);
    }

    public VarBit()
    {
        aBoolean651 = false;
        anInt652 = -1;
    }

    private static int anInt644;
    public static VarBit cache[];
    public int anInt648;
    public int anInt649;
    public int anInt650;
    private boolean aBoolean651;
    private int anInt652;
}
