// 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 Class31_Sub3_Sub3_Sub3 extends Class31_Sub3_Sub3
{

    public Class31_Sub3_Sub3_Sub3(int i, int j, int k, int l, int i1, int j1, boolean flag, 
            int k1, int l1, boolean flag1)
    {
        aBoolean1616 = false;
        anInt1618 = 8;
        anInt1620 = k1;
        anInt1621 = j1;
        anInt1622 = l;
        anInt1612 = i1;
        if(flag1)
            anInt1618 = 278;
        anInt1613 = i;
        anInt1614 = l1;
        anInt1615 = k;
        if(j != -1)
        {
            aClass8_1611 = Class8.aClass8Array140[j];
            anInt1619 = 0;
            anInt1617 = client.anInt935;
            if(flag && aClass8_1611.anInt145 != -1)
            {
                anInt1619 = (int)(Math.random() * (double)aClass8_1611.anInt141);
                anInt1617 -= (int)(Math.random() * (double)aClass8_1611.method179(anInt1619, -26977));
            }
        }
        Class22 class22 = Class22.method273(anInt1620);
        anInt1623 = class22.anInt325;
        anInt1624 = class22.anInt303;
        anIntArray1625 = class22.anIntArray320;
    }

    public Class22 method493(int i)
    {
        i = 24 / i;
        int j = -1;
        if(anInt1623 != -1)
        {
            Class13 class13 = Class13.aClass13Array218[anInt1623];
            int k = class13.anInt220;
            int l = class13.anInt221;
            int i1 = class13.anInt222;
            int j1 = client.anIntArray1305[i1 - l];
            j = aClient1610.anIntArray1111[k] >> l & j1;
        } else
        if(anInt1624 != -1)
            j = aClient1610.anIntArray1111[anInt1624];
        if(j < 0 || j >= anIntArray1625.length || anIntArray1625[j] == -1)
            return null;
        else
            return Class22.method273(anIntArray1625[j]);
    }

    public Class31_Sub3_Sub3_Sub2 method461(byte byte0)
    {
        int i = -1;
        if(byte0 != -99)
            anInt1618 = -268;
        if(aClass8_1611 != null)
        {
            int j = client.anInt935 - anInt1617;
            if(j > 100 && aClass8_1611.anInt145 > 0)
                j = 100;
            while(j > aClass8_1611.method179(anInt1619, -26977)) 
            {
                j -= aClass8_1611.method179(anInt1619, -26977);
                anInt1619++;
                if(anInt1619 < aClass8_1611.anInt141)
                    continue;
                anInt1619 -= aClass8_1611.anInt145;
                if(anInt1619 >= 0 && anInt1619 < aClass8_1611.anInt141)
                    continue;
                aClass8_1611 = null;
                break;
            }
            anInt1617 = client.anInt935 - j;
            if(aClass8_1611 != null)
                i = aClass8_1611.anIntArray142[anInt1619];
        }
        Class22 class22;
        if(anIntArray1625 != null)
            class22 = method493(453);
        else
            class22 = Class22.method273(anInt1620);
        if(class22 == null)
        {
            return null;
        } else
        {
            Class31_Sub3_Sub3_Sub2 class31_sub3_sub3_sub2 = class22.method283(anInt1621, anInt1622, anInt1612, anInt1613, anInt1614, anInt1615, i);
            return class31_sub3_sub3_sub2;
        }
    }

    public static client aClient1610;
    public Class8 aClass8_1611;
    public int anInt1612;
    public int anInt1613;
    public int anInt1614;
    public int anInt1615;
    public boolean aBoolean1616;
    public int anInt1617;
    public int anInt1618;
    public int anInt1619;
    public int anInt1620;
    public int anInt1621;
    public int anInt1622;
    public int anInt1623;
    public int anInt1624;
    public int anIntArray1625[];
}
