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

    public Class31_Sub3_Sub3_Sub2 method333(int i, byte byte0, int j, boolean flag)
    {
        anInt398 = 64;
        anInt419 = 768;
        Class31_Sub3_Sub3_Sub2 class31_sub3_sub3_sub2;
        if(flag)
            class31_sub3_sub3_sub2 = method342(anInt396, anInt397);
        else
            class31_sub3_sub3_sub2 = method342(anInt436, anInt437);
        if(class31_sub3_sub3_sub2 == null)
            return null;
        if(j == -1 && i == -1 && class31_sub3_sub3_sub2.anIntArray1558 == null)
            return class31_sub3_sub3_sub2;
        Class31_Sub3_Sub3_Sub2 class31_sub3_sub3_sub2_1 = new Class31_Sub3_Sub3_Sub2(Class32.method509(j, true) & Class32.method509(i, true), class31_sub3_sub3_sub2, false, false, true);
        if(byte0 != 0)
            aBoolean433 = !aBoolean433;
        if(j != -1 || i != -1)
            class31_sub3_sub3_sub2_1.method474(166);
        if(j != -1)
            class31_sub3_sub3_sub2_1.method475(257, j);
        if(i != -1)
            class31_sub3_sub3_sub2_1.method475(257, i);
        class31_sub3_sub3_sub2_1.method484(anInt398, anInt419, -50, -10, -50, true);
        return class31_sub3_sub3_sub2_1;
    }

    public static void method334(boolean flag, Class11 class11, Class11 class11_1, Class31_Sub3_Sub1_Sub4 aclass31_sub3_sub1_sub4[])
    {
        aClass36_412 = new Class36(50000, false);
        aClass11_418 = class11_1;
        aClass31_Sub3_Sub1_Sub4Array444 = aclass31_sub3_sub1_sub4;
        int i = -1;
        Class31_Sub3_Sub2 class31_sub3_sub2 = new Class31_Sub3_Sub2((byte)114, class11.method204("data", null));
        int j = class31_sub3_sub2.method424();
        if(!flag)
            aBoolean433 = !aBoolean433;
        aClass30Array454 = new Class30[j];
        aByteArrayArray416 = new byte[j][];
        while(class31_sub3_sub2.anInt1440 < class31_sub3_sub2.aByteArray1439.length) 
        {
            int k = class31_sub3_sub2.method424();
            if(k == 65535)
            {
                i = class31_sub3_sub2.method424();
                k = class31_sub3_sub2.method424();
            }
            int l = class31_sub3_sub2.anInt1440;
            Class30 class30 = method340(class31_sub3_sub2, 0, i, k);
            byte abyte0[] = aByteArrayArray416[class30.anInt459] = new byte[(class31_sub3_sub2.anInt1440 - l) + 2];
            for(int i1 = l; i1 < class31_sub3_sub2.anInt1440; i1++)
                abyte0[(i1 - l) + 2] = class31_sub3_sub2.aByteArray1439[i1];

            abyte0[0] = (byte)(i >> 8);
            abyte0[1] = (byte)i;
        }
        aClass11_418 = null;
    }

    public static Class31_Sub3_Sub1_Sub2 method335(int i, String s, byte byte0)
    {
        long l = (Class26.method299(s, 0) << 8) + (long)i;
        Class31_Sub3_Sub1_Sub2 class31_sub3_sub1_sub2 = (Class31_Sub3_Sub1_Sub2)aClass36_412.method565(l);
        if(byte0 != -1)
        {
            for(int j = 1; j > 0; j++);
        }
        if(class31_sub3_sub1_sub2 != null)
            return class31_sub3_sub1_sub2;
        if(aClass11_418 == null)
            return null;
        try
        {
            class31_sub3_sub1_sub2 = new Class31_Sub3_Sub1_Sub2(aClass11_418, s, i);
            aClass36_412.method566(l, true, class31_sub3_sub1_sub2);
        }
        catch(Exception _ex)
        {
            return null;
        }
        return class31_sub3_sub1_sub2;
    }

    public static void method336(boolean flag)
    {
        aClass30Array454 = null;
        aClass11_418 = null;
        aClass36_412 = null;
        aClass31_Sub3_Sub1_Sub4Array444 = null;
        if(flag)
        {
            for(int i = 1; i > 0; i++);
        }
        aByteArrayArray416 = null;
    }

    public static void method337(int i, int j)
    {
        if(i != 3)
            aBoolean433 = !aBoolean433;
        if(j == -1)
            return;
        for(int k = 0; k < aClass30Array454.length; k++)
            if(aClass30Array454[k] != null && aClass30Array454[k].anInt432 == j && aClass30Array454[k].anInt435 != 2)
                aClass30Array454[k] = null;

    }

    public void method338(boolean flag, int i, int j)
    {
        int k = anIntArray406[j];
        anIntArray406[j] = anIntArray406[i];
        anIntArray406[i] = k;
        k = anIntArray411[j];
        anIntArray411[j] = anIntArray411[i];
        if(!flag)
        {
            return;
        } else
        {
            anIntArray411[i] = k;
            return;
        }
    }

    public static Class30 method339(int i)
    {
        if(aClass30Array454[i] == null)
        {
            Class31_Sub3_Sub2 class31_sub3_sub2 = new Class31_Sub3_Sub2((byte)114, aByteArrayArray416[i]);
            int j = class31_sub3_sub2.method424();
            aClass30Array454[i] = method340(class31_sub3_sub2, 0, j, i);
        }
        return aClass30Array454[i];
    }

    public static Class30 method340(Class31_Sub3_Sub2 class31_sub3_sub2, int i, int j, int k)
    {
        Class30 class30 = new Class30();
        class30.anInt459 = k;
        class30.anInt432 = j;
        class30.anInt435 = class31_sub3_sub2.method422();
        class30.anInt469 = class31_sub3_sub2.method422();
        class30.anInt399 = class31_sub3_sub2.method424();
        class30.anInt455 = class31_sub3_sub2.method424();
        if(i != 0)
            anInt408 = -218;
        class30.anInt452 = class31_sub3_sub2.method424();
        class30.aByte440 = (byte)class31_sub3_sub2.method422();
        class30.anInt446 = class31_sub3_sub2.method422();
        if(class30.anInt446 != 0)
            class30.anInt446 = (class30.anInt446 - 1 << 8) + class31_sub3_sub2.method422();
        else
            class30.anInt446 = -1;
        if(class30.anInt399 == 600)
            anInt401 = j;
        if(class30.anInt399 == 650)
            anInt423 = j;
        if(class30.anInt399 == 655)
            anInt428 = j;
        int l = class31_sub3_sub2.method422();
        if(l > 0)
        {
            class30.anIntArray424 = new int[l];
            class30.anIntArray404 = new int[l];
            for(int i1 = 0; i1 < l; i1++)
            {
                class30.anIntArray424[i1] = class31_sub3_sub2.method422();
                class30.anIntArray404[i1] = class31_sub3_sub2.method424();
            }

        }
        int j1 = class31_sub3_sub2.method422();
        if(j1 > 0)
        {
            class30.anIntArrayArray451 = new int[j1][];
            for(int k1 = 0; k1 < j1; k1++)
            {
                int l2 = class31_sub3_sub2.method424();
                class30.anIntArrayArray451[k1] = new int[l2];
                for(int k4 = 0; k4 < l2; k4++)
                    class30.anIntArrayArray451[k1][k4] = class31_sub3_sub2.method424();

            }

        }
        if(class30.anInt435 == 0)
        {
            class30.anInt434 = class31_sub3_sub2.method424();
            class30.aBoolean462 = class31_sub3_sub2.method422() == 1;
            int l1 = class31_sub3_sub2.method424();
            class30.anIntArray405 = new int[l1];
            class30.anIntArray453 = new int[l1];
            class30.anIntArray456 = new int[l1];
            for(int i3 = 0; i3 < l1; i3++)
            {
                class30.anIntArray405[i3] = class31_sub3_sub2.method424();
                class30.anIntArray453[i3] = class31_sub3_sub2.method425();
                class30.anIntArray456[i3] = class31_sub3_sub2.method425();
            }

        }
        if(class30.anInt435 == 1)
        {
            class30.anInt421 = class31_sub3_sub2.method424();
            class30.aBoolean429 = class31_sub3_sub2.method422() == 1;
        }
        if(class30.anInt435 == 2)
        {
            class30.anIntArray406 = new int[class30.anInt455 * class30.anInt452];
            class30.anIntArray411 = new int[class30.anInt455 * class30.anInt452];
            class30.aBoolean407 = class31_sub3_sub2.method422() == 1;
            class30.aBoolean438 = class31_sub3_sub2.method422() == 1;
            class30.aBoolean431 = class31_sub3_sub2.method422() == 1;
            class30.aBoolean447 = class31_sub3_sub2.method422() == 1;
            class30.anInt461 = class31_sub3_sub2.method422();
            class30.anInt417 = class31_sub3_sub2.method422();
            class30.anIntArray450 = new int[20];
            class30.anIntArray463 = new int[20];
            class30.aClass31_Sub3_Sub1_Sub2Array430 = new Class31_Sub3_Sub1_Sub2[20];
            for(int i2 = 0; i2 < 20; i2++)
            {
                int j3 = class31_sub3_sub2.method422();
                if(j3 == 1)
                {
                    class30.anIntArray450[i2] = class31_sub3_sub2.method425();
                    class30.anIntArray463[i2] = class31_sub3_sub2.method425();
                    String s1 = class31_sub3_sub2.method429();
                    if(s1.length() > 0)
                    {
                        int l4 = s1.lastIndexOf(",");
                        class30.aClass31_Sub3_Sub1_Sub2Array430[i2] = method335(Integer.parseInt(s1.substring(l4 + 1)), s1.substring(0, l4), (byte)-1);
                    }
                }
            }

            class30.aStringArray400 = new String[5];
            for(int k3 = 0; k3 < 5; k3++)
            {
                class30.aStringArray400[k3] = class31_sub3_sub2.method429();
                if(class30.aStringArray400[k3].length() == 0)
                    class30.aStringArray400[k3] = null;
            }

        }
        if(class30.anInt435 == 3)
            class30.aBoolean415 = class31_sub3_sub2.method422() == 1;
        if(class30.anInt435 == 4 || class30.anInt435 == 1)
        {
            class30.aBoolean402 = class31_sub3_sub2.method422() == 1;
            int j2 = class31_sub3_sub2.method422();
            if(aClass31_Sub3_Sub1_Sub4Array444 != null)
                class30.aClass31_Sub3_Sub1_Sub4_414 = aClass31_Sub3_Sub1_Sub4Array444[j2];
            class30.aBoolean443 = class31_sub3_sub2.method422() == 1;
        }
        if(class30.anInt435 == 4)
        {
            class30.aString441 = class31_sub3_sub2.method429();
            class30.aString426 = class31_sub3_sub2.method429();
        }
        if(class30.anInt435 == 1 || class30.anInt435 == 3 || class30.anInt435 == 4)
            class30.anInt410 = class31_sub3_sub2.method427();
        if(class30.anInt435 == 3 || class30.anInt435 == 4)
        {
            class30.anInt422 = class31_sub3_sub2.method427();
            class30.anInt403 = class31_sub3_sub2.method427();
            class30.anInt427 = class31_sub3_sub2.method427();
        }
        if(class30.anInt435 == 5)
        {
            String s = class31_sub3_sub2.method429();
            if(s.length() > 0)
            {
                int l3 = s.lastIndexOf(",");
                class30.aClass31_Sub3_Sub1_Sub2_448 = method335(Integer.parseInt(s.substring(l3 + 1)), s.substring(0, l3), (byte)-1);
            }
            s = class31_sub3_sub2.method429();
            if(s.length() > 0)
            {
                int i4 = s.lastIndexOf(",");
                class30.aClass31_Sub3_Sub1_Sub2_445 = method335(Integer.parseInt(s.substring(i4 + 1)), s.substring(0, i4), (byte)-1);
            }
        }
        if(class30.anInt435 == 6)
        {
            k = class31_sub3_sub2.method422();
            if(k != 0)
            {
                class30.anInt436 = 1;
                class30.anInt437 = (k - 1 << 8) + class31_sub3_sub2.method422();
            }
            k = class31_sub3_sub2.method422();
            if(k != 0)
            {
                class30.anInt396 = 1;
                class30.anInt397 = (k - 1 << 8) + class31_sub3_sub2.method422();
            }
            k = class31_sub3_sub2.method422();
            if(k != 0)
                class30.anInt464 = (k - 1 << 8) + class31_sub3_sub2.method422();
            else
                class30.anInt464 = -1;
            k = class31_sub3_sub2.method422();
            if(k != 0)
                class30.anInt465 = (k - 1 << 8) + class31_sub3_sub2.method422();
            else
                class30.anInt465 = -1;
            class30.anInt466 = class31_sub3_sub2.method424();
            class30.anInt467 = class31_sub3_sub2.method424();
            class30.anInt468 = class31_sub3_sub2.method424();
        }
        if(class30.anInt435 == 7)
        {
            class30.anIntArray406 = new int[class30.anInt455 * class30.anInt452];
            class30.anIntArray411 = new int[class30.anInt455 * class30.anInt452];
            class30.aBoolean402 = class31_sub3_sub2.method422() == 1;
            int k2 = class31_sub3_sub2.method422();
            if(aClass31_Sub3_Sub1_Sub4Array444 != null)
                class30.aClass31_Sub3_Sub1_Sub4_414 = aClass31_Sub3_Sub1_Sub4Array444[k2];
            class30.aBoolean443 = class31_sub3_sub2.method422() == 1;
            class30.anInt410 = class31_sub3_sub2.method427();
            class30.anInt461 = class31_sub3_sub2.method425();
            class30.anInt417 = class31_sub3_sub2.method425();
            class30.aBoolean438 = class31_sub3_sub2.method422() == 1;
            class30.aStringArray400 = new String[5];
            for(int j4 = 0; j4 < 5; j4++)
            {
                class30.aStringArray400[j4] = class31_sub3_sub2.method429();
                if(class30.aStringArray400[j4].length() == 0)
                    class30.aStringArray400[j4] = null;
            }

        }
        if(class30.anInt435 == 8)
            class30.aString441 = class31_sub3_sub2.method429();
        if(class30.anInt469 == 2 || class30.anInt435 == 2)
        {
            class30.aString413 = class31_sub3_sub2.method429();
            class30.aString395 = class31_sub3_sub2.method429();
            class30.anInt457 = class31_sub3_sub2.method424();
        }
        if(class30.anInt469 == 1 || class30.anInt469 == 4 || class30.anInt469 == 5 || class30.anInt469 == 6)
        {
            class30.aString420 = class31_sub3_sub2.method429();
            if(class30.aString420.length() == 0)
            {
                if(class30.anInt469 == 1)
                    class30.aString420 = "Ok";
                if(class30.anInt469 == 4)
                    class30.aString420 = "Select";
                if(class30.anInt469 == 5)
                    class30.aString420 = "Select";
                if(class30.anInt469 == 6)
                    class30.aString420 = "Continue";
            }
        }
        return class30;
    }

    public static void method341(Class31_Sub3_Sub3_Sub2 class31_sub3_sub3_sub2, int i, int j, int k)
    {
        i = 13 / i;
        aClass36_409.method567();
        if(class31_sub3_sub3_sub2 != null && j != 4)
            aClass36_409.method566((j << 16) + k, true, class31_sub3_sub3_sub2);
    }

    public Class31_Sub3_Sub3_Sub2 method342(int i, int j)
    {
        Class41 class41 = null;
        if(i == 4)
        {
            class41 = Class41.method577(j);
            anInt398 += class41.anInt617;
            anInt419 += class41.anInt637;
        }
        Class31_Sub3_Sub3_Sub2 class31_sub3_sub3_sub2 = (Class31_Sub3_Sub3_Sub2)aClass36_409.method565((i << 16) + j);
        if(class31_sub3_sub3_sub2 != null)
            return class31_sub3_sub3_sub2;
        if(i == 1)
            class31_sub3_sub3_sub2 = Class31_Sub3_Sub3_Sub2.method467(j);
        if(i == 2)
            class31_sub3_sub3_sub2 = Class45.method598(j).method594(-384);
        if(i == 3)
            class31_sub3_sub3_sub2 = client.aClass31_Sub3_Sub3_Sub4_Sub2_885.method502(true);
        if(i == 4)
            class31_sub3_sub3_sub2 = class41.method580(50, (byte)113);
        if(i == 5)
            class31_sub3_sub3_sub2 = null;
        if(class31_sub3_sub3_sub2 != null)
            aClass36_409.method566((i << 16) + j, true, class31_sub3_sub3_sub2);
        return class31_sub3_sub3_sub2;
    }

    public Class30()
    {
    }

    public String aString395;
    public int anInt396;
    public int anInt397;
    public static int anInt398;
    public int anInt399;
    public String aStringArray400[];
    public static int anInt401 = -1;
    public boolean aBoolean402;
    public int anInt403;
    public int anIntArray404[];
    public int anIntArray405[];
    public int anIntArray406[];
    public boolean aBoolean407;
    public static int anInt408;
    public static Class36 aClass36_409 = new Class36(30, false);
    public int anInt410;
    public int anIntArray411[];
    public static Class36 aClass36_412;
    public String aString413;
    public Class31_Sub3_Sub1_Sub4 aClass31_Sub3_Sub1_Sub4_414;
    public boolean aBoolean415;
    public static byte aByteArrayArray416[][];
    public int anInt417;
    public static Class11 aClass11_418;
    public static int anInt419;
    public String aString420;
    public int anInt421;
    public int anInt422;
    public static int anInt423 = -1;
    public int anIntArray424[];
    public int anInt425;
    public String aString426;
    public int anInt427;
    public static int anInt428 = -1;
    public boolean aBoolean429;
    public Class31_Sub3_Sub1_Sub2 aClass31_Sub3_Sub1_Sub2Array430[];
    public boolean aBoolean431;
    public int anInt432;
    public static boolean aBoolean433 = true;
    public int anInt434;
    public int anInt435;
    public int anInt436;
    public int anInt437;
    public boolean aBoolean438;
    public int anInt439;
    public byte aByte440;
    public String aString441;
    public int anInt442;
    public boolean aBoolean443;
    public static Class31_Sub3_Sub1_Sub4 aClass31_Sub3_Sub1_Sub4Array444[];
    public Class31_Sub3_Sub1_Sub2 aClass31_Sub3_Sub1_Sub2_445;
    public int anInt446;
    public boolean aBoolean447;
    public Class31_Sub3_Sub1_Sub2 aClass31_Sub3_Sub1_Sub2_448;
    public int anInt449;
    public int anIntArray450[];
    public int anIntArrayArray451[][];
    public int anInt452;
    public int anIntArray453[];
    public static Class30 aClass30Array454[];
    public int anInt455;
    public int anIntArray456[];
    public int anInt457;
    public int anInt458;
    public int anInt459;
    public int anInt460;
    public int anInt461;
    public boolean aBoolean462;
    public int anIntArray463[];
    public int anInt464;
    public int anInt465;
    public int anInt466;
    public int anInt467;
    public int anInt468;
    public int anInt469;

}
