Advertisement
Guest User

Untitled

a guest
Mar 10th, 2017
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 165.56 KB | None | 0 0
  1. import com.nokia.mid.ui.FullCanvas;
  2. import java.io.ByteArrayInputStream;
  3. import java.io.ByteArrayOutputStream;
  4. import java.io.DataInputStream;
  5. import java.io.DataOutputStream;
  6. import java.io.InputStream;
  7. import java.util.Random;
  8. import javax.microedition.lcdui.Alert;
  9. import javax.microedition.lcdui.AlertType;
  10. import javax.microedition.lcdui.Canvas;
  11. import javax.microedition.lcdui.Display;
  12. import javax.microedition.lcdui.Graphics;
  13. import javax.microedition.lcdui.Image;
  14. import javax.microedition.media.Controllable;
  15. import javax.microedition.media.Manager;
  16. import javax.microedition.media.Player;
  17. import javax.microedition.media.control.VolumeControl;
  18. import javax.microedition.midlet.MIDlet;
  19. import javax.microedition.rms.RecordStore;
  20.  
  21. public final class a
  22.   extends FullCanvas
  23.   implements Runnable
  24. {
  25.   private int g = 20;
  26.   private int h = 48;
  27.   private int i = 48;
  28.   private int j = 24;
  29.   private int k = 24;
  30.   private int l = 12;
  31.   private int m = 12;
  32.   private int n = 6;
  33.   private int o = 6;
  34.   private int p = 5;
  35.   private int q = 5;
  36.   private int r = 4;
  37.   public String[] a = null;
  38.   public String b = null;
  39.   private Player s = null;
  40.   public byte c;
  41.   private Bobby t;
  42.   private int u;
  43.   private int v;
  44.   private int w;
  45.   private int x;
  46.   private String y = "EN";
  47.   private Random z;
  48.   public boolean d = false;
  49.   public boolean e = false;
  50.   public boolean f;
  51.   private byte[] A = new byte[4];
  52.   private boolean[] B = new boolean[4];
  53.   private boolean C;
  54.   private byte[] D = new byte[7];
  55.   private boolean E;
  56.   private boolean F;
  57.   private boolean G;
  58.   private byte H;
  59.   private short I;
  60.   private short J;
  61.   private long K;
  62.   private int L;
  63.   private String[] M = new String[5];
  64.   private boolean N;
  65.   private boolean O;
  66.   private boolean P;
  67.   private boolean Q;
  68.   private boolean R;
  69.   private boolean S;
  70.   private boolean T;
  71.   private boolean U;
  72.   private int[] V = { 49, 49, 51, 51, 55, 55, 57, 57 };
  73.   private int W = 0;
  74.   private boolean X = false;
  75.   private boolean Y = false;
  76.   private short[] Z = new short[5];
  77.   private short[] aa = new short[5];
  78.   private byte[] ab = new byte[5];
  79.   private int ac;
  80.   private byte ad;
  81.   private String ae;
  82.   private char[] af;
  83.   private int ag;
  84.   private int ah;
  85.   private String ai;
  86.   private String aj;
  87.   private int ak;
  88.   private int al;
  89.   private int am;
  90.   private int an;
  91.   private int ao;
  92.   private int ap;
  93.   private int aq;
  94.   private int ar;
  95.   private int as;
  96.   private int at;
  97.   private int au;
  98.   private int av;
  99.   private int aw;
  100.   private int ax;
  101.   private int ay;
  102.   private int az;
  103.   private int aA;
  104.   private int aB;
  105.   private int aC;
  106.   private int aD;
  107.   private int aE;
  108.   private int aF;
  109.   private int aG;
  110.   private int aH;
  111.   private int aI;
  112.   private int aJ;
  113.   private int aK;
  114.   private int aL;
  115.   private int aM;
  116.   private int aN;
  117.   private int aO;
  118.   private int aP;
  119.   private int aQ;
  120.   private int aR;
  121.   private int aS;
  122.   private int aT;
  123.   private byte aU;
  124.   private byte aV;
  125.   private byte aW;
  126.   private byte aX;
  127.   private byte aY;
  128.   private byte aZ;
  129.   private boolean ba;
  130.   private boolean bb;
  131.   private boolean bc;
  132.   private boolean bd;
  133.   private boolean be;
  134.   private boolean bf;
  135.   private boolean bg;
  136.   private boolean bh;
  137.   private boolean bi;
  138.   private boolean bj;
  139.   private boolean bk;
  140.   private boolean bl;
  141.   private int bm;
  142.   private int bn;
  143.   private int bo;
  144.   private static final byte[] bp = { 94, 95, -112, -111 };
  145.   private byte bq = 3;
  146.   private final byte[] br = { 5, 10, 30, 20, 10, 25, 10 };
  147.   private byte bs;
  148.   private int bt;
  149.   private int bu;
  150.   private int bv;
  151.   private int bw;
  152.   private byte bx;
  153.   private boolean by;
  154.   private int bz;
  155.   private int bA;
  156.   private int bB;
  157.   private int bC;
  158.   private int bD;
  159.   private boolean bE;
  160.   private int bF;
  161.   private int bG;
  162.   private int bH;
  163.   private int bI;
  164.   private int bJ;
  165.   private int bK;
  166.   private int bL;
  167.   private int bM;
  168.   private int bN;
  169.   private int bO;
  170.   private int bP;
  171.   private int bQ;
  172.   private int bR;
  173.   private int bS;
  174.   private int bT;
  175.   private int bU;
  176.   private int bV;
  177.   private long bW;
  178.   private long bX;
  179.   private boolean bY;
  180.   private int bZ;
  181.   private int ca;
  182.   private byte cb;
  183.   private int cc;
  184.   private int[] cd = new int[5];
  185.   private int[] ce = new int[5];
  186.   private Image cf;
  187.   private Image cg;
  188.   private Image ch;
  189.   private Image ci;
  190.   private Image cj;
  191.   private Image ck;
  192.   private Image cl;
  193.   private Image cm;
  194.   private Image cn;
  195.   private Image[] co = new Image[10];
  196.   private Image cp;
  197.   private byte[][] cq;
  198.   private byte[][] cr;
  199.   private String cs;
  200.   private String ct;
  201.   private byte cu;
  202.   private String[] cv = new String[4];
  203.   private byte[] cw = new byte[4];
  204.   private int cx;
  205.   private int cy;
  206.   private int cz;
  207.   private byte[] cA;
  208.   private byte[] cB;
  209.   private byte[] cC;
  210.   private boolean[] cD;
  211.   private short[] cE;
  212.   private short[] cF;
  213.   private short cG;
  214.   private short cH;
  215.   private short cI;
  216.   private short cJ;
  217.   private short cK;
  218.   private short cL;
  219.   private short cM;
  220.   private short cN;
  221.   private short cO;
  222.   private short cP;
  223.   private boolean cQ;
  224.   private boolean cR;
  225.   private boolean cS;
  226.   private boolean cT;
  227.   private boolean cU;
  228.   private boolean cV;
  229.   private boolean cW;
  230.   private boolean cX;
  231.   private boolean cY;
  232.   private boolean cZ;
  233.   private boolean da;
  234.   private boolean db;
  235.   private boolean dc;
  236.   private byte[] dd;
  237.   private byte[] de;
  238.   private byte[] df;
  239.   private byte[] dg;
  240.   private byte[] dh = new byte[5];
  241.   private byte[] di = new byte[5];
  242.   private byte[] dj = new byte[5];
  243.   private int dk;
  244.   private int dl;
  245.   private int dm;
  246.   private int dn;
  247.   private byte jdField_do;
  248.   private byte dp;
  249.   private byte dq;
  250.   private byte dr;
  251.   private int ds;
  252.   private int dt;
  253.   private int du;
  254.   private int dv;
  255.   private int dw;
  256.   private int dx;
  257.   private int dy;
  258.   private int dz;
  259.   private int dA;
  260.   private int dB;
  261.   private boolean dC;
  262.   private byte[][] dD;
  263.   private byte[][] dE;
  264.   private Image dF;
  265.   private Graphics dG;
  266.   private Image dH;
  267.   private Image dI = null;
  268.   private int dJ;
  269.   private boolean dK;
  270.   private int dL;
  271.   private byte dM;
  272.   private byte dN;
  273.   private final short[] dO = { 0, 0, 1, 3, 5, 8, 12, 17, 23, 31, 41, 53, 70, 91, 118, 153, 198, 256, 256 };
  274.   private boolean dP = false;
  275.   private boolean dQ = false;
  276.   private boolean dR = false;
  277.   private boolean dS = false;
  278.   private boolean dT = false;
  279.   private String[] dU;
  280.   private short[] dV;
  281.   private byte dW;
  282.   private byte dX;
  283.   private byte dY;
  284.   private byte dZ;
  285.   private byte ea;
  286.   private byte eb;
  287.   private byte ec;
  288.   private byte ed;
  289.   private String ee;
  290.   private int ef;
  291.   private int eg;
  292.   private int eh;
  293.   private int ei;
  294.   private String ej;
  295.   private int ek;
  296.   private int el;
  297.   private int em;
  298.   private int en;
  299.   private int eo;
  300.   private int ep;
  301.   private int eq;
  302.   private int er;
  303.   private int es;
  304.   private int et;
  305.   private boolean eu;
  306.   private byte ev;
  307.   private String ew;
  308.   private byte ex = 0;
  309.   private short[] ey = { 59, 58, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80 };
  310.   private byte[][] ez = { new byte[0], new byte[0], { -54, -52 }, { -57, -56 }, { -106 }, { -36, -96, -35 }, { -72, -74, -94 }, { -19 }, { -61, -58, -65, -62 }, { -80, -81 }, { -71, -69, -66, -67, -92 }, { 89, 87, -90 }, { -20 }, { -13 }, { -12, -11 }, { -29, -24, -40, -39 }, { -79, -78, -76, -77 }, { -44, -43, -42 }, { -32, -30, -14, -15 }, { -48, -45, -87, -86 }, { -49, -33 }, { -97, 124 }, { -10 } };
  311.   private byte eA;
  312.  
  313.   public final void a(String paramString)
  314.   {
  315.     int i1 = 0;
  316.     DataInputStream localDataInputStream = null;
  317.     this.a = null;
  318.     try
  319.     {
  320.       localDataInputStream = new DataInputStream(getClass().getResourceAsStream(paramString));
  321.       i1 = localDataInputStream.readShort();
  322.       this.a = new String[i1];
  323.       for (int i2 = 0; i2 < i1; i2++) {
  324.         this.a[i2] = localDataInputStream.readUTF();
  325.       }
  326.     }
  327.     catch (Exception localException1)
  328.     {
  329.       c();
  330.     }
  331.     finally
  332.     {
  333.       if (localDataInputStream != null) {
  334.         try
  335.         {
  336.           localDataInputStream.close();
  337.         }
  338.         catch (Exception localException4) {}
  339.       }
  340.     }
  341.   }
  342.  
  343.   public final void a(String paramString, int paramInt, boolean paramBoolean)
  344.   {
  345.     if (paramBoolean)
  346.     {
  347.       if ((this.b == null) || (this.b.compareTo(paramString) != 0)) {}
  348.     }
  349.     else {
  350.       this.b = null;
  351.     }
  352.     a();
  353.     try
  354.     {
  355.       InputStream localInputStream = getClass().getResourceAsStream(paramString);
  356.       this.s = Manager.createPlayer(localInputStream, "audio/midi");
  357.       this.s.setLoopCount(paramBoolean ? -1 : 1);
  358.       this.s.realize();
  359.       try
  360.       {
  361.         VolumeControl localVolumeControl = (VolumeControl)this.s.getControl("VolumeControl");
  362.         if (localVolumeControl != null) {
  363.           localVolumeControl.setLevel(paramInt > 0 ? paramInt * 25 - (5 - paramInt) * 5 : 0);
  364.         }
  365.       }
  366.       catch (Exception localException2) {}
  367.       this.s.prefetch();
  368.       this.s.start();
  369.       this.b = paramString;
  370.       try
  371.       {
  372.         Thread.sleep(250L);
  373.       }
  374.       catch (Exception localException3) {}
  375.     }
  376.     catch (Exception localException1) {}
  377.   }
  378.  
  379.   public final void a()
  380.   {
  381.     if (this.s != null)
  382.     {
  383.       try
  384.       {
  385.         this.s.stop();
  386.         this.s.deallocate();
  387.         this.s.close();
  388.         try
  389.         {
  390.           Thread.sleep(250L);
  391.         }
  392.         catch (Throwable localThrowable1) {}
  393.       }
  394.       catch (Throwable localThrowable2) {}
  395.       this.s = null;
  396.     }
  397.     this.b = null;
  398.   }
  399.  
  400.   public a(Bobby paramBobby)
  401.   {
  402.     this.t = paramBobby;
  403.     a(this.y + ".dat");
  404.     this.z = new Random(System.currentTimeMillis());
  405.     this.c = 1;
  406.     this.u = getWidth();
  407.     this.v = getHeight();
  408.     this.w = (this.v - 2 - 16 - 6);
  409.     b(this.u, this.v, true);
  410.     this.cf = a(this.cf, "/font.png");
  411.     this.dH = a(this.dH, "/logo.png");
  412.     this.bZ = 0;
  413.     this.cb = -1;
  414.     a(true, 0);
  415.     this.x = 10;
  416.   }
  417.  
  418.   private final void c()
  419.   {
  420.     Alert localAlert = new Alert("Error", this.a[51], null, AlertType.ERROR);
  421.     localAlert.setTimeout(-2);
  422.     this.t.a.setCurrent(localAlert, this);
  423.     while (!this.R) {
  424.       try
  425.       {
  426.         Thread.sleep(50L);
  427.       }
  428.       catch (Exception localException) {}
  429.     }
  430.     this.t.destroyApp(true);
  431.   }
  432.  
  433.   public void hideNotify()
  434.   {
  435.     if (this.d)
  436.     {
  437.       this.d = false;
  438.       if ((this.c == 1) && (this.x != 16))
  439.       {
  440.         a();
  441.         this.c = 0;
  442.       }
  443.     }
  444.     if (!this.dQ)
  445.     {
  446.       this.U = false;
  447.       this.dQ = true;
  448.       k();
  449.     }
  450.   }
  451.  
  452.   public void showNotify()
  453.   {
  454.     if ((!this.d) && (this.dU != null)) {
  455.       for (int i1 = 0; i1 < this.dY; i1++) {
  456.         if (this.dV[i1] == 11) {
  457.           this.dU[i1] = (this.a[4] + this.a[3]);
  458.         }
  459.       }
  460.     }
  461.     this.d = true;
  462.   }
  463.  
  464.   public void run()
  465.   {
  466.     boolean bool = true;
  467.     while (!this.e)
  468.     {
  469.       long l1 = System.currentTimeMillis();
  470.       bool |= b();
  471.       if ((this.d) && (bool))
  472.       {
  473.         bool = false;
  474.         repaint();
  475.         serviceRepaints();
  476.       }
  477.       bool |= b();
  478.       long l2 = System.currentTimeMillis() - l1 + 10L;
  479.       if (l2 < 62L) {
  480.         try
  481.         {
  482.           Thread.sleep(62L - l2);
  483.         }
  484.         catch (Exception localException) {}
  485.       }
  486.     }
  487.     if (this.c == 1) {
  488.       a();
  489.     }
  490.     this.t.notifyDestroyed();
  491.   }
  492.  
  493.   private final void d()
  494.   {
  495.     this.dZ = ((byte)((this.w - 26) / 31));
  496.     this.C = false;
  497.     e();
  498.     String str = this.y;
  499.     f();
  500.     if (str.compareTo(this.y) != 0) {
  501.       a(this.y + ".dat");
  502.     }
  503.     aa();
  504.     i();
  505.     this.cg = a(this.cg, "/numbers.png");
  506.     this.ch = a(this.ch, "/arrows.png");
  507.     this.cj = a(this.cj, "/misc.png");
  508.     this.ck = a(this.ck, "/ts.png");
  509.     this.cl = a(this.cl, "/mow.png");
  510.     ac();
  511.     if (!this.f)
  512.     {
  513.       d((byte)2);
  514.     }
  515.     else
  516.     {
  517.       this.S = (this.T = this.R = 0);
  518.       this.x = 11;
  519.       c((byte)2, (byte)-1);
  520.     }
  521.   }
  522.  
  523.   private final void e()
  524.   {
  525.     this.f = false;
  526.     try
  527.     {
  528.       RecordStore localRecordStore = null;
  529.       int i1 = -1;
  530.       try
  531.       {
  532.         localRecordStore = RecordStore.openRecordStore("BC5Data", true);
  533.         i1 = localRecordStore.getNumRecords();
  534.       }
  535.       catch (Exception localException2) {}
  536.       if (i1 != 1)
  537.       {
  538.         this.f = true;
  539.         if (i1 != 0)
  540.         {
  541.           if (localRecordStore != null) {
  542.             localRecordStore.closeRecordStore();
  543.           }
  544.           RecordStore.deleteRecordStore("BC5Data");
  545.           localRecordStore = RecordStore.openRecordStore("BC5Data", true);
  546.         }
  547.         for (int i2 = 0; i2 < 4; i2++)
  548.         {
  549.           this.A[i2] = 0;
  550.           this.B[i2] = false;
  551.         }
  552.         for (i2 = 0; i2 < this.D.length; i2++) {
  553.           this.D[i2] = 0;
  554.         }
  555.         this.E = false;
  556.         this.F = false;
  557.         this.H = 0;
  558.         this.I = 0;
  559.         this.J = 0;
  560.         this.K = 0L;
  561.         this.L = this.z.nextInt();
  562.         for (i2 = 0; i2 < this.M.length; i2++) {
  563.           this.M[i2] = "";
  564.         }
  565.         this.G = false;
  566.         byte[] arrayOfByte = h();
  567.         localRecordStore.addRecord(arrayOfByte, 0, arrayOfByte.length);
  568.       }
  569.       localRecordStore.closeRecordStore();
  570.     }
  571.     catch (Exception localException1)
  572.     {
  573.       c();
  574.     }
  575.   }
  576.  
  577.   private final void f()
  578.   {
  579.     ByteArrayInputStream localByteArrayInputStream = null;
  580.     DataInputStream localDataInputStream = null;
  581.     try
  582.     {
  583.       localByteArrayInputStream = new ByteArrayInputStream(a("BC5Data", 1));
  584.       localDataInputStream = new DataInputStream(localByteArrayInputStream);
  585.       this.y = localDataInputStream.readUTF();
  586.       this.bq = localDataInputStream.readByte();
  587.       for (int i1 = 0; i1 < 4; i1++)
  588.       {
  589.         this.A[i1] = localDataInputStream.readByte();
  590.         this.B[i1] = localDataInputStream.readBoolean();
  591.       }
  592.       for (i1 = 0; i1 < this.D.length; i1++) {
  593.         this.D[i1] = localDataInputStream.readByte();
  594.       }
  595.       this.E = localDataInputStream.readBoolean();
  596.       this.F = localDataInputStream.readBoolean();
  597.       this.H = localDataInputStream.readByte();
  598.       this.I = localDataInputStream.readShort();
  599.       this.J = localDataInputStream.readShort();
  600.       this.K = localDataInputStream.readLong();
  601.       this.L = localDataInputStream.readInt();
  602.       for (i1 = 0; i1 < this.M.length; i1++) {
  603.         this.M[i1] = localDataInputStream.readUTF();
  604.       }
  605.       this.G = localDataInputStream.readBoolean();
  606.     }
  607.     catch (Exception localException1)
  608.     {
  609.       c();
  610.     }
  611.     finally
  612.     {
  613.       if (localDataInputStream != null)
  614.       {
  615.         try
  616.         {
  617.           localDataInputStream.close();
  618.         }
  619.         catch (Exception localException6) {}
  620.         localDataInputStream = null;
  621.       }
  622.       if (localByteArrayInputStream != null)
  623.       {
  624.         try
  625.         {
  626.           localByteArrayInputStream.close();
  627.         }
  628.         catch (Exception localException7) {}
  629.         localByteArrayInputStream = null;
  630.       }
  631.     }
  632.   }
  633.  
  634.   private final void g()
  635.   {
  636.     a("BC5Data", 1, h());
  637.   }
  638.  
  639.   private final byte[] h()
  640.   {
  641.     byte[] arrayOfByte = null;
  642.     ByteArrayOutputStream localByteArrayOutputStream = null;
  643.     DataOutputStream localDataOutputStream = null;
  644.     try
  645.     {
  646.       localByteArrayOutputStream = new ByteArrayOutputStream();
  647.       localDataOutputStream = new DataOutputStream(localByteArrayOutputStream);
  648.       localDataOutputStream.writeUTF(this.y);
  649.       localDataOutputStream.writeByte(this.bq);
  650.       for (int i1 = 0; i1 < 4; i1++)
  651.       {
  652.         localDataOutputStream.writeByte(this.A[i1]);
  653.         localDataOutputStream.writeBoolean(this.B[i1]);
  654.       }
  655.       for (i1 = 0; i1 < this.D.length; i1++) {
  656.         localDataOutputStream.writeByte(this.D[i1]);
  657.       }
  658.       localDataOutputStream.writeBoolean(this.E);
  659.       localDataOutputStream.writeBoolean(this.F);
  660.       localDataOutputStream.writeByte(this.H);
  661.       localDataOutputStream.writeShort(this.I);
  662.       localDataOutputStream.writeShort(this.J);
  663.       localDataOutputStream.writeLong(this.K);
  664.       localDataOutputStream.writeInt(this.L);
  665.       for (i1 = 0; i1 < this.M.length; i1++) {
  666.         localDataOutputStream.writeUTF(this.M[i1]);
  667.       }
  668.       localDataOutputStream.writeBoolean(this.G);
  669.       arrayOfByte = localByteArrayOutputStream.toByteArray();
  670.     }
  671.     catch (Exception localException1)
  672.     {
  673.       c();
  674.     }
  675.     finally
  676.     {
  677.       if (localDataOutputStream != null)
  678.       {
  679.         try
  680.         {
  681.           localDataOutputStream.close();
  682.         }
  683.         catch (Exception localException6) {}
  684.         localDataOutputStream = null;
  685.       }
  686.       if (localByteArrayOutputStream != null)
  687.       {
  688.         try
  689.         {
  690.           localByteArrayOutputStream.close();
  691.         }
  692.         catch (Exception localException7) {}
  693.         localByteArrayOutputStream = null;
  694.       }
  695.     }
  696.     return arrayOfByte;
  697.   }
  698.  
  699.   private final byte[] a(String paramString, int paramInt)
  700.   {
  701.     byte[] arrayOfByte = null;
  702.     try
  703.     {
  704.       RecordStore localRecordStore = RecordStore.openRecordStore(paramString, false);
  705.       arrayOfByte = localRecordStore.getRecord(paramInt);
  706.       localRecordStore.closeRecordStore();
  707.     }
  708.     catch (Exception localException1)
  709.     {
  710.       try
  711.       {
  712.         RecordStore.deleteRecordStore(paramString);
  713.       }
  714.       catch (Exception localException2) {}
  715.       c();
  716.     }
  717.     return arrayOfByte;
  718.   }
  719.  
  720.   private final void a(String paramString, int paramInt, byte[] paramArrayOfByte)
  721.   {
  722.     try
  723.     {
  724.       RecordStore localRecordStore = RecordStore.openRecordStore(paramString, false);
  725.       localRecordStore.setRecord(paramInt, paramArrayOfByte, 0, paramArrayOfByte.length);
  726.       localRecordStore.closeRecordStore();
  727.     }
  728.     catch (Exception localException1)
  729.     {
  730.       try
  731.       {
  732.         RecordStore.deleteRecordStore(paramString);
  733.       }
  734.       catch (Exception localException2) {}
  735.       c();
  736.     }
  737.   }
  738.  
  739.   private final void i()
  740.   {
  741.     this.x = 6;
  742.     repaint();
  743.     serviceRepaints();
  744.   }
  745.  
  746.   public final void keyPressed(int paramInt)
  747.   {
  748.     if (paramInt == 0) {
  749.       return;
  750.     }
  751.     if (!this.X) {
  752.       if (paramInt == this.V[this.W])
  753.       {
  754.         this.W += 1;
  755.         if (this.W >= this.V.length)
  756.         {
  757.           this.W = 0;
  758.           this.X = true;
  759.         }
  760.       }
  761.       else
  762.       {
  763.         this.W = 0;
  764.       }
  765.     }
  766.     if ((this.x == 1) && (this.C)) {
  767.       if (paramInt == 42) {
  768.         this.Y = true;
  769.       } else if (paramInt == 35)
  770.       {
  771.         if (this.Y)
  772.         {
  773.           this.Y = false;
  774.           this.I = ((short)(this.I + 5));
  775.         }
  776.       }
  777.       else {
  778.         this.Y = false;
  779.       }
  780.     }
  781.     this.U = true;
  782.     if (paramInt == -6)
  783.     {
  784.       this.S = true;
  785.       return;
  786.     }
  787.     if (paramInt == -7)
  788.     {
  789.       this.T = true;
  790.       return;
  791.     }
  792.     if (paramInt == 50) {
  793.       this.N = true;
  794.     } else if (paramInt == 56) {
  795.       this.O = true;
  796.     } else if (paramInt == 52) {
  797.       this.P = true;
  798.     } else if (paramInt == 54) {
  799.       this.Q = true;
  800.     } else if (paramInt == 53) {
  801.       this.R = true;
  802.     } else if (paramInt == -1) {
  803.       this.N = true;
  804.     } else if (paramInt == -2) {
  805.       this.O = true;
  806.     } else if (paramInt == -3) {
  807.       this.P = true;
  808.     } else if (paramInt == -4) {
  809.       this.Q = true;
  810.     } else if (paramInt == -5) {
  811.       this.R = true;
  812.     }
  813.   }
  814.  
  815.   public final void keyReleased(int paramInt)
  816.   {
  817.     if (paramInt == 0) {
  818.       return;
  819.     }
  820.     if (paramInt == -6)
  821.     {
  822.       this.S = false;
  823.       return;
  824.     }
  825.     if (paramInt == -7)
  826.     {
  827.       this.T = false;
  828.       return;
  829.     }
  830.     if (paramInt == 50) {
  831.       this.N = false;
  832.     } else if (paramInt == 56) {
  833.       this.O = false;
  834.     } else if (paramInt == 52) {
  835.       this.P = false;
  836.     } else if (paramInt == 54) {
  837.       this.Q = false;
  838.     } else if (paramInt == 53) {
  839.       this.R = false;
  840.     } else if (paramInt == -1) {
  841.       this.N = false;
  842.     } else if (paramInt == -2) {
  843.       this.O = false;
  844.     } else if (paramInt == -3) {
  845.       this.P = false;
  846.     } else if (paramInt == -4) {
  847.       this.Q = false;
  848.     } else if (paramInt == -5) {
  849.       this.R = false;
  850.     }
  851.   }
  852.  
  853.   private final void a(Graphics paramGraphics)
  854.   {
  855.     d(paramGraphics, this.bF, this.bG);
  856.     c(paramGraphics, this.bF, this.bG);
  857.     if ((this.bn != -1) && (this.bm % 8 >= 4)) {
  858.       a(paramGraphics, true, (byte)-8, this.bn - this.bF, this.bo - this.bG);
  859.     }
  860.     b(paramGraphics, this.bF, this.bG);
  861.     int i1;
  862.     if (this.cW) {
  863.       for (i1 = 0; i1 < 3; i1++) {
  864.         a(paramGraphics, false, (byte)(52 + this.bC), this.cG * this.h - this.bF, this.cH * this.i - this.k - this.i * i1 - this.bG);
  865.       }
  866.     }
  867.     if (this.cX) {
  868.       for (i1 = 0; i1 < 3; i1++) {
  869.         a(paramGraphics, false, (byte)(52 + this.bC), this.cI * this.h - this.bF, this.cJ * this.i + this.k + this.i * i1 - this.bG);
  870.       }
  871.     }
  872.     if (this.cY) {
  873.       for (i1 = 0; i1 < 3; i1++) {
  874.         a(paramGraphics, false, (byte)(55 + this.bC), this.cK * this.h - this.j - this.h * i1 - this.bF, this.cL * this.i - this.bG);
  875.       }
  876.     }
  877.     if (this.cZ) {
  878.       for (i1 = 0; i1 < 3; i1++) {
  879.         a(paramGraphics, false, (byte)(55 + this.bC), this.cM * this.h + this.j + this.h * i1 - this.bF, this.cN * this.i - this.bG);
  880.       }
  881.     }
  882.     a(paramGraphics, this.bF, this.bG);
  883.     if (this.jdField_do > 0) {
  884.       b(paramGraphics, this.ci, this.bs < 4 ? 282 : 310, 0, 28, 28, this.dl - 14 - this.bF, this.dm - 14 - this.bG);
  885.     }
  886.     if ((this.ax > 0) && (this.ay >= 4))
  887.     {
  888.       int i3;
  889.       int i4;
  890.       int i5;
  891.       switch (this.aV)
  892.       {
  893.       case 0:
  894.         i3 = 82;
  895.         i4 = 39;
  896.         i5 = 37;
  897.         break;
  898.       case 1:
  899.         i3 = 121;
  900.         i4 = 22;
  901.         i5 = 35;
  902.         break;
  903.       case 2:
  904.         i3 = 143;
  905.         i4 = 36;
  906.         i5 = 36;
  907.         break;
  908.       case 3:
  909.         i3 = 179;
  910.         i4 = 37;
  911.         i5 = 38;
  912.         break;
  913.       default:
  914.         i3 = 247;
  915.         i4 = 35;
  916.         i5 = 36;
  917.       }
  918.       i1 = this.am + (this.h - i4 >> 1);
  919.       int i2 = this.an - 1 + -36 - i5;
  920.       if (i2 - this.bG < 0) {
  921.         i2 += i5 + 72 + 2;
  922.       }
  923.       b(paramGraphics, this.ci, i3, 0, i4, i5, i1 - this.bF, i2 - this.bG);
  924.     }
  925.     if (this.cS) {
  926.       for (i1 = 0; i1 < 5; i1++) {
  927.         b(paramGraphics, this.ci, 338, 0, 12, 8, this.cd[i1] >> this.r, this.ce[i1] >> this.r);
  928.       }
  929.     }
  930.     b(paramGraphics, this.cm, 0, this.bx / 3 * 24, 24, 24, (this.bt >> this.r) - this.bF, (this.bu >> this.r) - this.bG);
  931.     b(paramGraphics);
  932.     if (this.aX != -1) {
  933.       b(paramGraphics, this.cn, this.aX * 48, 0, 48, 48, this.u - 48 >> 1, this.v - 48 >> 1);
  934.     }
  935.     if (this.cb > 0) {
  936.       c(paramGraphics);
  937.     }
  938.     if (!this.dS) {
  939.       if (this.dQ) {
  940.         a(paramGraphics, this.a[37], (byte)1, 0);
  941.       } else if (this.ec > 0) {
  942.         a(paramGraphics, this.ee, this.ed, 0);
  943.       } else if (this.at == 5) {
  944.         a(paramGraphics, this.a[54], (byte)(this.aX == -1 ? 0 : 1), 0);
  945.       }
  946.     }
  947.   }
  948.  
  949.   private final void b(Graphics paramGraphics)
  950.   {
  951.     int i1 = 2;
  952.     int i2 = 2;
  953.     if (this.bS != 0)
  954.     {
  955.       long l1;
  956.       if (!this.bY) {
  957.         l1 = System.currentTimeMillis() - this.bX + this.bW;
  958.       } else {
  959.         l1 = this.bW;
  960.       }
  961.       if (this.cR) {
  962.         if (this.db)
  963.         {
  964.           l1 = 60000L - l1;
  965.           if (l1 < 0L) {
  966.             l1 = 0L;
  967.           }
  968.         }
  969.         else
  970.         {
  971.           l1 = 60000L;
  972.         }
  973.       }
  974.       int i3 = (int)l1 / 60000;
  975.       long l2 = l1 % 60000L;
  976.       a(paramGraphics, i1, i2, i3, 2);
  977.       i1 += 32;
  978.       int i4 = (int)l2 / 1000;
  979.       a(paramGraphics, i1, i2, i4, 2);
  980.       if ((this.bY) || (i4 % 2 == 0))
  981.       {
  982.         i1 -= 6;
  983.         paramGraphics.setClip(i1, i2, 5, 13);
  984.         paramGraphics.drawImage(this.cg, i1 - 120, i2, 20);
  985.       }
  986.       i1 = this.u - (this.cQ ? 40 : 31) - 2;
  987.       paramGraphics.setClip(i1, i2, this.cQ ? 40 : 31, this.cQ ? 38 : 38);
  988.       paramGraphics.drawImage(this.ci, i1 - (this.cQ ? 42 : 216), i2, 20);
  989.       i1 -= 28;
  990.       a(paramGraphics, i1, i2 + ((this.cQ ? 40 : 31) - 13 >> 1), this.cy, 2);
  991.     }
  992.     if (this.dR)
  993.     {
  994.       i1 = this.u - 42 >> 1;
  995.       paramGraphics.setClip(i1, i2, 42, 38);
  996.       paramGraphics.drawImage(this.ci, i1 - 0, i2, 20);
  997.     }
  998.     if (this.bS != 0)
  999.     {
  1000.       i1 = this.u;
  1001.       i2 += (this.cQ ? 38 : 38) + 2;
  1002.       if (this.cT)
  1003.       {
  1004.         i1 -= 41;
  1005.         paramGraphics.setClip(i1, i2, 39, 37);
  1006.         paramGraphics.drawImage(this.ci, i1 - 82, i2, 20);
  1007.       }
  1008.       if (this.cU)
  1009.       {
  1010.         i1 -= 38;
  1011.         paramGraphics.setClip(i1, i2, 36, 36);
  1012.         paramGraphics.drawImage(this.ci, i1 - 143, i2, 20);
  1013.       }
  1014.       if (this.cV)
  1015.       {
  1016.         i1 -= 39;
  1017.         paramGraphics.setClip(i1, i2, 37, 38);
  1018.         paramGraphics.drawImage(this.ci, i1 - 179, i2, 20);
  1019.       }
  1020.       if (this.cz > 0)
  1021.       {
  1022.         i1 -= 37;
  1023.         paramGraphics.setClip(i1, i2, 35, 36);
  1024.         paramGraphics.drawImage(this.ci, i1 - 247, i2, 20);
  1025.       }
  1026.       if ((this.da) || (this.D[2] > 0))
  1027.       {
  1028.         i1 -= 24;
  1029.         paramGraphics.setClip(i1, i2, 22, 35);
  1030.         paramGraphics.drawImage(this.ci, i1 - 121, i2, 20);
  1031.       }
  1032.     }
  1033.   }
  1034.  
  1035.   private final void a(Graphics paramGraphics, Image paramImage, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)
  1036.   {
  1037.     b(paramGraphics, paramImage, paramInt1, paramInt2, paramInt3, paramInt4, paramInt5, paramInt6);
  1038.     if (paramInt3 + paramInt5 < this.u) {
  1039.       b(paramGraphics, paramImage, paramInt1, paramInt2, paramInt3, paramInt4, 384 + paramInt5, paramInt6);
  1040.     }
  1041.   }
  1042.  
  1043.   public final void paint(Graphics paramGraphics)
  1044.   {
  1045.     try
  1046.     {
  1047.       switch (this.x)
  1048.       {
  1049.       case 1:
  1050.         a(paramGraphics);
  1051.         break;
  1052.       case 2:
  1053.         a(paramGraphics);
  1054.         a(paramGraphics, 22935, 10370, true, false, true, true);
  1055.         a(paramGraphics, this.ai, this.aj, true);
  1056.         return;
  1057.       case 4:
  1058.         d(paramGraphics, this.bF, this.bG);
  1059.         c(paramGraphics, 0, 0);
  1060.         a(paramGraphics, 0, 0);
  1061.         paramGraphics.setClip(0, 0, this.u, this.v);
  1062.         paramGraphics.drawImage(this.dH, this.u >> 1, this.w - this.dH.getHeight() - this.i - 72 >> 1, 17);
  1063.         if ((!this.dS) && (this.dK)) {
  1064.           a(paramGraphics, this.a[81], (byte)3, this.v - (this.g + 10) - 5);
  1065.         }
  1066.         if (this.cb > 0) {
  1067.           c(paramGraphics);
  1068.         }
  1069.         break;
  1070.       case 5:
  1071.         a(paramGraphics, 22935, 10370, true, true, true, true);
  1072.         a(paramGraphics, this.ev == 0 ? this.a[31] : null, this.ev != 0 ? this.a[29] : null, true);
  1073.         break;
  1074.       case 6:
  1075.         paramGraphics.setClip(0, 0, this.u, this.v);
  1076.         paramGraphics.setColor(0);
  1077.         paramGraphics.fillRect(0, 0, this.u, this.v);
  1078.         a(paramGraphics, this.a[38], (byte)0, 0);
  1079.         return;
  1080.       case 7:
  1081.         if (this.cb > 0)
  1082.         {
  1083.           a(paramGraphics);
  1084.         }
  1085.         else
  1086.         {
  1087.           paramGraphics.setColor(0);
  1088.           paramGraphics.fillRect(0, 0, this.u, this.v);
  1089.         }
  1090.         if (this.ej != null)
  1091.         {
  1092.           d(paramGraphics);
  1093.           a(paramGraphics, this.a[31], null, true);
  1094.         }
  1095.         break;
  1096.       case 8:
  1097.         e(paramGraphics);
  1098.         break;
  1099.       case 9:
  1100.         a(paramGraphics, 22935, 10370, true, true, true, true);
  1101.         switch (this.eA)
  1102.         {
  1103.         case 0:
  1104.         case 1:
  1105.         case 2:
  1106.           a(paramGraphics, this.a[32], this.a[33], true);
  1107.           break;
  1108.         default:
  1109.           a(paramGraphics, this.a[30], null, true);
  1110.         }
  1111.         break;
  1112.       case 10:
  1113.         paramGraphics.setColor(16777215);
  1114.         paramGraphics.fillRect(0, 0, this.u, this.v);
  1115.         b(paramGraphics, this.dH, 0, this.bZ * 100, 176, 100, (this.u - 176 >> 1) + (this.dM == 1 ? -e(this.u) : e(this.u)), this.v - 100 >> 1);
  1116.         break;
  1117.       case 11:
  1118.         paramGraphics.setColor(0);
  1119.         paramGraphics.fillRect(0, 0, this.u, this.v);
  1120.         break;
  1121.       case 12:
  1122.         paramGraphics.setClip(0, 0, this.u, this.v);
  1123.         paramGraphics.setColor(1259130);
  1124.         paramGraphics.fillRect(0, 0, this.u, this.v);
  1125.         b(paramGraphics, this.dI, 0, 0, 384, 96, 0, 0);
  1126.         a(paramGraphics, this.dI, 0, 96, 384, 37, -(this.ag >> 4), 59);
  1127.         b(paramGraphics, this.dI, 0, 153, 384, 54, 0, 34);
  1128.         a(paramGraphics, this.dI, 0, 133, 384, 20, -(this.ah >> 4), 76);
  1129.         if (this.cb > 0) {
  1130.           c(paramGraphics);
  1131.         }
  1132.         if (this.dY > 0)
  1133.         {
  1134.           a(paramGraphics, true);
  1135.         }
  1136.         else
  1137.         {
  1138.           a(paramGraphics, 22935, 10370, false, false, true, true);
  1139.           a(paramGraphics, null, this.a[29], false);
  1140.         }
  1141.         return;
  1142.       case 13:
  1143.         d(paramGraphics, this.bF, this.bG);
  1144.         c(paramGraphics, 0, 0);
  1145.         paramGraphics.setClip(0, 0, this.u, this.v);
  1146.         paramGraphics.drawImage(this.dH, this.u >> 1, this.v, 33);
  1147.         int i1 = this.u - this.h - ((this.ae.length() - 1) * 12 + 10) >> 1;
  1148.         int i2 = this.i >> 1;
  1149.         a(paramGraphics, true, (byte)-10, i1, i2);
  1150.         a(this.ae, paramGraphics, i1 + this.h, i2 + (this.i - 16 >> 1), false);
  1151.         a(paramGraphics, 22935, 10370, false, false, false, false);
  1152.         if (this.cb > 0) {
  1153.           c(paramGraphics);
  1154.         }
  1155.         return;
  1156.       case 14:
  1157.         d(paramGraphics, this.bF, this.bG);
  1158.         c(paramGraphics, 0, 0);
  1159.         if (this.ao == -1)
  1160.         {
  1161.           a(paramGraphics, 0, 0);
  1162.           a(paramGraphics, 22935, 10370, false, false, false, true);
  1163.         }
  1164.         else
  1165.         {
  1166.           a(paramGraphics, true, (byte)-10, this.ao, this.ap);
  1167.           a(paramGraphics, 0, 0);
  1168.         }
  1169.         if (this.cb > 0) {
  1170.           c(paramGraphics);
  1171.         }
  1172.         return;
  1173.       case 15:
  1174.         paramGraphics.setClip(0, 0, this.u, this.v);
  1175.         paramGraphics.setColor(1259130);
  1176.         paramGraphics.fillRect(0, 0, this.u, this.v);
  1177.         a(paramGraphics, 22935, 10370, false, false, true, true);
  1178.         a(paramGraphics, true, (byte)-10, this.u - this.h >> 1, this.i >> 1);
  1179.         if (this.cb > 0) {
  1180.           c(paramGraphics);
  1181.         }
  1182.         a(paramGraphics, this.a[31], null, false);
  1183.         return;
  1184.       case 16:
  1185.         a(paramGraphics, 22935, 10370, true, true, true, true);
  1186.         a(paramGraphics, this.ai, this.aj, true);
  1187.         return;
  1188.       }
  1189.       if (this.dS) {
  1190.         a(paramGraphics, true);
  1191.       }
  1192.       if ((this.dT) && (this.cb == 0)) {
  1193.         b(paramGraphics, this.ch, 0, 9, 17, 9, 2, this.v - 9 - 2);
  1194.       }
  1195.     }
  1196.     catch (Throwable localThrowable) {}
  1197.   }
  1198.  
  1199.   private final void a(Graphics paramGraphics, boolean paramBoolean, byte paramByte, int paramInt1, int paramInt2)
  1200.   {
  1201.     int i4 = paramBoolean ? 4 : 2;
  1202.     int i1 = (paramByte & 0xFF) >> i4;
  1203.     int i3 = i1 * this.i;
  1204.     int i2 = ((paramByte & 0xFF) - (i1 << i4)) * this.h;
  1205.     b(paramGraphics, paramBoolean ? this.ck : this.cp, i2, i3, this.h, this.i, paramInt1, paramInt2);
  1206.   }
  1207.  
  1208.   private final void c(Graphics paramGraphics)
  1209.   {
  1210.     int i2 = this.bZ;
  1211.     int i3 = this.bZ;
  1212.     int i5 = (this.v + this.i - 1) / this.i;
  1213.     int i7 = (this.u + this.h - 1) / this.h;
  1214.     paramGraphics.setClip(0, 0, this.u, this.v);
  1215.     paramGraphics.setColor(0);
  1216.     int i4;
  1217.     int i6;
  1218.     int i1;
  1219.     switch (this.cb)
  1220.     {
  1221.     case 1:
  1222.       i4 = (i5 - 1) * this.i;
  1223.       i6 = 0;
  1224.       for (i1 = 0; i1 < i7; i1++)
  1225.       {
  1226.         paramGraphics.fillRect(i6, 0, this.h - i3, this.v);
  1227.         i3 -= 3;
  1228.         if (i3 < 0) {
  1229.           i3 = 0;
  1230.         }
  1231.         i6 += this.h;
  1232.       }
  1233.       for (i1 = 0; i1 < i5; i1++)
  1234.       {
  1235.         paramGraphics.fillRect(0, i4, this.u, this.i - i2);
  1236.         i2 -= 3;
  1237.         if (i2 < 0) {
  1238.           i2 = 0;
  1239.         }
  1240.         i4 -= this.i;
  1241.       }
  1242.       if ((i2 >= this.i) && (i3 >= this.h)) {
  1243.         this.cb = 0;
  1244.       }
  1245.       break;
  1246.     case 2:
  1247.       i4 = 0;
  1248.       i6 = (i7 - 1) * this.h;
  1249.       for (i1 = 0; i1 < i7; i1++)
  1250.       {
  1251.         paramGraphics.fillRect(i6, 0, i3, this.v);
  1252.         i3 -= 3;
  1253.         if (i3 < 0) {
  1254.           i3 = 0;
  1255.         }
  1256.         i6 -= this.h;
  1257.       }
  1258.       for (i1 = 0; i1 < i5; i1++)
  1259.       {
  1260.         paramGraphics.fillRect(0, i4, this.u, i2);
  1261.         i2 -= 3;
  1262.         if (i2 < 0) {
  1263.           i2 = 0;
  1264.         }
  1265.         i4 += this.i;
  1266.       }
  1267.       if ((i2 >= this.i) && (i3 >= this.h)) {
  1268.         this.cb = 0;
  1269.       }
  1270.       break;
  1271.     }
  1272.   }
  1273.  
  1274.   private final void j()
  1275.   {
  1276.     this.bZ += 3;
  1277.   }
  1278.  
  1279.   private final void a(Graphics paramGraphics, int paramInt1, int paramInt2)
  1280.   {
  1281.     int i7;
  1282.     int i8;
  1283.     int i3;
  1284.     int i5;
  1285.     int i1;
  1286.     int i4;
  1287.     int i6;
  1288.     if (this.bf)
  1289.     {
  1290.       i7 = 1;
  1291.       i8 = 0;
  1292.       switch (this.at)
  1293.       {
  1294.       case 0:
  1295.         i3 = 60;
  1296.         i5 = -6;
  1297.         i1 = 0;
  1298.         i8 = this.h;
  1299.         break;
  1300.       case 1:
  1301.         i3 = 60;
  1302.         i5 = -6;
  1303.         i1 = i3;
  1304.         i8 = -this.h;
  1305.         break;
  1306.       case 2:
  1307.         i3 = 48;
  1308.         i5 = 0;
  1309.         i1 = 120;
  1310.         i7 = 0;
  1311.         break;
  1312.       default:
  1313.         i3 = 48;
  1314.         i5 = 0;
  1315.         i1 = 120 + i3;
  1316.       }
  1317.       i4 = 83;
  1318.       i6 = -48;
  1319.       if (((this.aK > 0) || (this.bh)) && (i7 != 0)) {
  1320.         a(paramGraphics, i8, paramInt1, paramInt2);
  1321.       }
  1322.       b(paramGraphics, this.co[7], i1, this.as * i4, i3, i4, this.am + i5 - paramInt1, this.an + i6 - paramInt2);
  1323.       if (((this.aK > 0) || (this.bh)) && (i7 == 0)) {
  1324.         a(paramGraphics, i8, paramInt1, paramInt2);
  1325.       }
  1326.     }
  1327.     else if (this.bj)
  1328.     {
  1329.       switch (this.at)
  1330.       {
  1331.       case 0:
  1332.         i1 = 0;
  1333.         break;
  1334.       case 1:
  1335.         i1 = 120;
  1336.         break;
  1337.       case 2:
  1338.         i1 = 240;
  1339.         break;
  1340.       default:
  1341.         i1 = 360;
  1342.       }
  1343.       b(paramGraphics, this.co[9], i1, 0, 120, 72, this.am + -36 - paramInt1, this.an + -36 - this.aT - paramInt2);
  1344.     }
  1345.     else if (this.aZ > 0)
  1346.     {
  1347.       switch (this.at)
  1348.       {
  1349.       case 0:
  1350.         i1 = 0;
  1351.         break;
  1352.       case 1:
  1353.         i1 = 72;
  1354.         break;
  1355.       case 2:
  1356.         i1 = 144;
  1357.         break;
  1358.       default:
  1359.         i1 = 216;
  1360.       }
  1361.       b(paramGraphics, this.co[8], i1, this.as / 3 * 72, 72, 72, this.am + -12 - paramInt1, this.an + -36 - this.aT - paramInt2);
  1362.     }
  1363.     else
  1364.     {
  1365.       i7 = 0;
  1366.       i8 = 0;
  1367.       if (this.at == 5)
  1368.       {
  1369.         i3 = 48;
  1370.         i4 = 72;
  1371.         i5 = 0;
  1372.         i6 = -36;
  1373.       }
  1374.       else
  1375.       {
  1376.         i3 = 48;
  1377.         i4 = 72;
  1378.         i5 = 0;
  1379.         i6 = -36;
  1380.         if (this.aK > 0) {
  1381.           switch (!this.bg ? this.at : 2)
  1382.           {
  1383.           case 0:
  1384.             i8 = this.h - this.l;
  1385.             break;
  1386.           case 1:
  1387.             i8 = -this.h + this.l;
  1388.             break;
  1389.           case 3:
  1390.             i7 = 1;
  1391.           }
  1392.         }
  1393.       }
  1394.       i1 = this.am + i5;
  1395.       int i2 = this.an + i6 - this.aT;
  1396.       if ((this.aK > 0) && (i7 != 0)) {
  1397.         a(paramGraphics, i8, paramInt1, paramInt2);
  1398.       }
  1399.       b(paramGraphics, this.co[2], this.as * i3, 0, i3, i4, i1 - paramInt1, i2 - paramInt2);
  1400.       if ((this.aK > 0) && (i7 == 0)) {
  1401.         a(paramGraphics, i8, paramInt1, paramInt2);
  1402.       }
  1403.     }
  1404.   }
  1405.  
  1406.   private final void a(Graphics paramGraphics, int paramInt1, int paramInt2, int paramInt3)
  1407.   {
  1408.     b(paramGraphics, this.cl, this.aA / 3 * this.h, this.bh ? 0 : this.i, this.h, this.i, this.am + paramInt1 - paramInt2, this.an - this.m - paramInt3);
  1409.   }
  1410.  
  1411.   private final void b(Graphics paramGraphics, int paramInt1, int paramInt2)
  1412.   {
  1413.     for (int i7 = 0; i7 < this.cx; i7++)
  1414.     {
  1415.       int i6 = this.cA[i7] & 0xFF;
  1416.       int i5 = i6 >> 4;
  1417.       int i4 = i5 * this.i;
  1418.       int i3 = (i6 - (i5 << 4)) * this.h;
  1419.       int i1 = this.cE[i7] - paramInt1;
  1420.       int i2 = this.cF[i7] - paramInt2;
  1421.       b(paramGraphics, this.ck, i3, i4, this.h, this.i, i1, i2);
  1422.     }
  1423.   }
  1424.  
  1425.   private final void b(Graphics paramGraphics, Image paramImage, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)
  1426.   {
  1427.     paramGraphics.setClip(paramInt5, paramInt6, paramInt3, paramInt4);
  1428.     paramGraphics.drawImage(paramImage, paramInt5 - paramInt1, paramInt6 - paramInt2, 20);
  1429.   }
  1430.  
  1431.   private final void a(byte paramByte1, byte paramByte2, int paramInt1, int paramInt2)
  1432.   {
  1433.     this.dG.setClip(paramInt1, paramInt2, this.h, this.i);
  1434.     a(paramByte1, paramInt1, paramInt2);
  1435.     if ((paramByte1 == -1) || (paramByte1 == -57)) {
  1436.       return;
  1437.     }
  1438.     a(paramByte2, paramInt1, paramInt2);
  1439.   }
  1440.  
  1441.   private final void a(byte paramByte, int paramInt1, int paramInt2)
  1442.   {
  1443.     int i6 = 0;
  1444.     int i1;
  1445.     if ((this.bB != 0) && (paramByte == -106) && (this.cy == 0))
  1446.     {
  1447.       i1 = 0 + this.bB - 1;
  1448.     }
  1449.     else if ((this.bB != 0) && (paramByte == -8) && (this.bE))
  1450.     {
  1451.       i1 = 15 + this.bB - 1;
  1452.     }
  1453.     else if ((this.bA != 0) && (paramByte == -12))
  1454.     {
  1455.       i1 = 26 + this.bA - 1;
  1456.     }
  1457.     else if ((this.bz != 0) && (paramByte == 86))
  1458.     {
  1459.       i1 = 39 + this.bz - 1;
  1460.     }
  1461.     else if ((this.bC != 0) && ((paramByte == 88) || (paramByte == 87) || (paramByte == 90) || (paramByte == 89) || (paramByte == 91) || (paramByte == 92) || (paramByte == 93)))
  1462.     {
  1463.       switch (paramByte)
  1464.       {
  1465.       case 88:
  1466.         i1 = 31;
  1467.         break;
  1468.       case 87:
  1469.         i1 = 33;
  1470.         break;
  1471.       case 90:
  1472.         i1 = 35;
  1473.         break;
  1474.       case 89:
  1475.         i1 = 37;
  1476.         break;
  1477.       case 91:
  1478.         i1 = 46;
  1479.         break;
  1480.       case 92:
  1481.         i1 = 48;
  1482.         break;
  1483.       default:
  1484.         i1 = 50;
  1485.       }
  1486.       i1 += this.bC - 1;
  1487.     }
  1488.     else if ((this.bB != 0) && ((paramByte == -75) || (paramByte == -74) || (paramByte == -73) || (paramByte == -72)))
  1489.     {
  1490.       switch (paramByte)
  1491.       {
  1492.       case -75:
  1493.         i1 = 3;
  1494.         break;
  1495.       case -74:
  1496.         i1 = 6;
  1497.         break;
  1498.       case -73:
  1499.         i1 = 9;
  1500.         break;
  1501.       default:
  1502.         i1 = 12;
  1503.       }
  1504.       i1 += this.bB - 1;
  1505.     }
  1506.     else if ((this.cW) && (this.bC != 0) && (paramByte == -48))
  1507.     {
  1508.       i1 = 18 + this.bC - 1;
  1509.     }
  1510.     else if ((this.cX) && (this.bC != 0) && (paramByte == -47))
  1511.     {
  1512.       i1 = 20 + this.bC - 1;
  1513.     }
  1514.     else if ((this.cY) && (this.bC != 0) && (paramByte == -46))
  1515.     {
  1516.       i1 = 22 + this.bC - 1;
  1517.     }
  1518.     else if ((this.cZ) && (this.bC != 0) && (paramByte == -45))
  1519.     {
  1520.       i1 = 24 + this.bC - 1;
  1521.     }
  1522.     else
  1523.     {
  1524.       i6 = 1;
  1525.       i1 = paramByte & 0xFF;
  1526.     }
  1527.     int i5 = i6 != 0 ? 4 : 2;
  1528.     int i2 = i1 >> i5;
  1529.     int i4 = i2 * this.i;
  1530.     int i3 = (i1 - (i2 << i5)) * this.h;
  1531.     this.dG.drawImage(i6 != 0 ? this.ck : this.cp, paramInt1 - i3, paramInt2 - i4, 20);
  1532.   }
  1533.  
  1534.   private final void k()
  1535.   {
  1536.     this.bW += System.currentTimeMillis() - this.bX;
  1537.     this.bY = true;
  1538.   }
  1539.  
  1540.   private final void l()
  1541.   {
  1542.     this.bX = System.currentTimeMillis();
  1543.     this.bY = false;
  1544.   }
  1545.  
  1546.   public final boolean b()
  1547.   {
  1548.     try
  1549.     {
  1550.       if (this.cb > 0) {
  1551.         j();
  1552.       }
  1553.       if (this.dS) {
  1554.         return (ag()) || (this.cb > 0);
  1555.       }
  1556.       switch (this.x)
  1557.       {
  1558.       case 0:
  1559.         d();
  1560.         return true;
  1561.       case 1:
  1562.         if ((this.dT) && (this.S) && (this.cb == 0))
  1563.         {
  1564.           this.S = false;
  1565.           c((byte)1, (byte)-1);
  1566.           return true;
  1567.         }
  1568.         if (this.dQ)
  1569.         {
  1570.           if (this.U)
  1571.           {
  1572.             this.S = false;
  1573.             this.T = false;
  1574.             this.R = false;
  1575.             this.P = false;
  1576.             this.Q = false;
  1577.             this.N = false;
  1578.             this.O = false;
  1579.             this.dQ = false;
  1580.             l();
  1581.             return true;
  1582.           }
  1583.           return this.cb > 0;
  1584.         }
  1585.         if (this.ec > 0) {
  1586.           this.ec = ((byte)(this.ec - 1));
  1587.         }
  1588.         if ((!this.ba) && (this.aQ == 0) && (this.at != 5) && (this.R))
  1589.         {
  1590.           this.R = false;
  1591.           this.dR = (!this.dR);
  1592.           if (!this.dR) {
  1593.             T();
  1594.           }
  1595.         }
  1596.         if (this.ax > 0)
  1597.         {
  1598.           this.ay = ((this.ay + 1) % 8);
  1599.           if (this.ay == 0) {
  1600.             this.ax -= 1;
  1601.           }
  1602.         }
  1603.         if (E())
  1604.         {
  1605.           if (this.x != 1) {
  1606.             return true;
  1607.           }
  1608.           if (this.jdField_do > 0) {
  1609.             N();
  1610.           }
  1611.           M();
  1612.           P();
  1613.           S();
  1614.           if (this.cS) {
  1615.             Q();
  1616.           } else {
  1617.             R();
  1618.           }
  1619.           D();
  1620.           if (this.E) {
  1621.             C();
  1622.           } else {
  1623.             this.bn = -1;
  1624.           }
  1625.           if (this.dR)
  1626.           {
  1627.             if (this.P) {
  1628.               this.bL -= 24;
  1629.             } else if (this.Q) {
  1630.               this.bL += 24;
  1631.             } else if (this.N) {
  1632.               this.bM -= 24;
  1633.             } else if (this.O) {
  1634.               this.bM += 24;
  1635.             }
  1636.             U();
  1637.           }
  1638.           if ((this.bL != this.bF) || ((this.bM != this.bG) && (this.aL == 0))) {
  1639.             V();
  1640.           }
  1641.         }
  1642.         return true;
  1643.       case 2:
  1644.         return z();
  1645.       case 3:
  1646.         this.t.destroyApp(true);
  1647.         return false;
  1648.       case 4:
  1649.         return (af()) || (this.cb > 0);
  1650.       case 5:
  1651.         return ak();
  1652.       case 7:
  1653.         return (an()) || (this.cb > 0);
  1654.       case 8:
  1655.         return ap();
  1656.       case 9:
  1657.         return aq();
  1658.       case 10:
  1659.         if (this.cb == -1)
  1660.         {
  1661.           this.dL -= 1;
  1662.           if (this.dL < 0)
  1663.           {
  1664.             this.dM = 0;
  1665.             this.dL = 0;
  1666.             this.cb = -2;
  1667.           }
  1668.         }
  1669.         else if (this.cb == -2)
  1670.         {
  1671.           this.az += 1;
  1672.           if (this.az >= 3)
  1673.           {
  1674.             this.az = 0;
  1675.             this.bZ += 1;
  1676.             if (this.bZ >= 3) {
  1677.               this.cb = -3;
  1678.             }
  1679.           }
  1680.         }
  1681.         else if (this.cb == -3)
  1682.         {
  1683.           this.az += 1;
  1684.           if (this.az >= 40)
  1685.           {
  1686.             a(false, 0);
  1687.             this.cb = -4;
  1688.           }
  1689.         }
  1690.         else
  1691.         {
  1692.           this.dL -= 1;
  1693.           if (this.dL < 0)
  1694.           {
  1695.             this.dM = 0;
  1696.             this.dL = 0;
  1697.             this.cb = 0;
  1698.             this.bZ = 0;
  1699.             this.dH = null;
  1700.             this.x = 0;
  1701.           }
  1702.         }
  1703.         return true;
  1704.       case 12:
  1705.         return y();
  1706.       case 13:
  1707.         return v();
  1708.       case 14:
  1709.         return q();
  1710.       case 15:
  1711.         return s();
  1712.       case 16:
  1713.         return B();
  1714.       }
  1715.     }
  1716.     catch (Throwable localThrowable)
  1717.     {
  1718.       c();
  1719.     }
  1720.     return false;
  1721.   }
  1722.  
  1723.   private final void c(Graphics paramGraphics, int paramInt1, int paramInt2)
  1724.   {
  1725.     for (int i5 = 0; i5 < 5; i5++)
  1726.     {
  1727.       int i4 = this.ab[i5];
  1728.       if (i4 >= 0)
  1729.       {
  1730.         int i1 = i4 / 6;
  1731.         int i3 = i1 * 16;
  1732.         int i2 = (i4 - i1 * 6) * 16;
  1733.         b(paramGraphics, this.cp, 96 + i2, 672 + i3, 16, 16, this.Z[i5] - paramInt1 - 8, this.aa[i5] - paramInt2 - 8);
  1734.       }
  1735.     }
  1736.   }
  1737.  
  1738.   private final void m()
  1739.   {
  1740.     this.cq = ((byte[][])null);
  1741.     this.cr = ((byte[][])null);
  1742.     int i4 = this.u / this.h + 1;
  1743.     this.ds = (i4 * 3);
  1744.     this.dt = (this.v / this.i + 1);
  1745.     this.cq = new byte[this.dt][this.ds];
  1746.     this.cr = new byte[this.dt][this.ds];
  1747.     this.bF = (this.bG = 0);
  1748.     int i1;
  1749.     for (int i2 = 0; i2 < this.dt; i2++) {
  1750.       for (i1 = 0; i1 < i4 * 2; i1++)
  1751.       {
  1752.         int i3 = b(10);
  1753.         int i5;
  1754.         if (i3 == 9) {
  1755.           i5 = 71;
  1756.         } else if (i3 >= 7) {
  1757.           i5 = 72;
  1758.         } else {
  1759.           i5 = 73;
  1760.         }
  1761.         this.cq[i2][i1] = i5;
  1762.         this.cr[i2][i1] = -1;
  1763.         this.cq[i2][(i1 + i4)] = i5;
  1764.         this.cr[i2][(i1 + i4)] = -1;
  1765.       }
  1766.     }
  1767.     for (i2 = 0; i2 < this.dt; i2++) {
  1768.       for (i1 = 0; i1 < i4; i1++)
  1769.       {
  1770.         this.cq[i2][(i1 + i4 * 2)] = this.cq[i2][i1];
  1771.         this.cr[i2][(i1 + i4 * 2)] = this.cr[i2][i1];
  1772.       }
  1773.     }
  1774.     ad();
  1775.     f(this.bF, this.bG);
  1776.     this.aq = (this.ds * this.h - 1);
  1777.     this.ar = (this.dt * this.i - 1);
  1778.     this.bH = ((i4 << 1) * this.h - 1);
  1779.     this.bI = (this.ar - this.dv);
  1780.     if (this.bH < 0) {
  1781.       this.bH = 0;
  1782.     }
  1783.     if (this.bI < 0) {
  1784.       this.bI = 0;
  1785.     }
  1786.     for (int i6 = 0; i6 < 5; i6++)
  1787.     {
  1788.       this.ab[i6] = ((byte)b(8));
  1789.       this.Z[i6] = ((short)(this.h + b(this.u)));
  1790.       this.aa[i6] = -16;
  1791.     }
  1792.   }
  1793.  
  1794.   private final void n()
  1795.   {
  1796.     int i1 = 3;
  1797.     this.bF += i1;
  1798.     if (this.bF > this.bH)
  1799.     {
  1800.       this.bF -= this.bF / this.h * this.h;
  1801.       f(this.bF, this.bG);
  1802.     }
  1803.     g(this.bF, this.bG);
  1804.     for (int i2 = 0; i2 < 5; i2++)
  1805.     {
  1806.       int i4 = this.ab[i2];
  1807.       if (this.bD == 0) {
  1808.         i4 = (byte)(i4 + 1);
  1809.       }
  1810.       int i3 = (short)(this.Z[i2] - i1);
  1811.       if ((i4 >= 8) || (i3 <= -16))
  1812.       {
  1813.         i4 = 0;
  1814.         i3 = (short)(this.h + b(this.u));
  1815.         this.aa[i2] = ((short)b(this.v));
  1816.       }
  1817.       this.ab[i2] = i4;
  1818.       this.Z[i2] = i3;
  1819.     }
  1820.     this.bD += 1;
  1821.     if (this.bD >= 4) {
  1822.       this.bD = 0;
  1823.     }
  1824.   }
  1825.  
  1826.   private final void o()
  1827.   {
  1828.     d(false);
  1829.     this.bf = false;
  1830.     this.bg = false;
  1831.     this.aT = 0;
  1832.     this.aK = 0;
  1833.     this.bj = true;
  1834.     this.as = 0;
  1835.     this.av = 1;
  1836.     this.at = 1;
  1837.     this.am = ((this.u >> 1) - (this.h >> 1));
  1838.     this.an = (this.v / 3);
  1839.     this.ao = -1;
  1840.     this.ap = this.an;
  1841.     d(this.bT);
  1842.     this.ac = 0;
  1843.     p();
  1844.     m();
  1845.     b(true, -1);
  1846.     this.x = 14;
  1847.     b("/fly.mid");
  1848.   }
  1849.  
  1850.   private final void p()
  1851.   {
  1852.     int i1 = this.ct.indexOf('#', this.ac);
  1853.     if (i1 == -1) {
  1854.       i1 = this.ct.length();
  1855.     }
  1856.     String str = this.ct.substring(this.ac, i1);
  1857.     this.ac = (i1 + 1);
  1858.     this.ew = str;
  1859.     this.ep = 0;
  1860.     this.en = (this.an + this.i);
  1861.     this.eo = 0;
  1862.     this.er = this.u;
  1863.     a(null, 0, 0, false, false, false, true);
  1864.     this.aN = 192;
  1865.   }
  1866.  
  1867.   private final boolean q()
  1868.   {
  1869.     if (this.cb == 0)
  1870.     {
  1871.       if (this.ca == 0)
  1872.       {
  1873.         r();
  1874.         return true;
  1875.       }
  1876.       if (this.ao == -1)
  1877.       {
  1878.         this.aN -= 1;
  1879.         if (this.aN < 0) {
  1880.           if (this.ac < this.ct.length()) {
  1881.             p();
  1882.           } else {
  1883.             this.ao = this.u;
  1884.           }
  1885.         }
  1886.       }
  1887.       else if (this.ao > this.am)
  1888.       {
  1889.         this.ao -= 3;
  1890.       }
  1891.       else
  1892.       {
  1893.         this.J = ((short)(this.J + 1));
  1894.         a(true, this.bT, 10);
  1895.         g();
  1896.         b(false, 0);
  1897.       }
  1898.     }
  1899.     if (this.cb != 2)
  1900.     {
  1901.       L();
  1902.       n();
  1903.     }
  1904.     return true;
  1905.   }
  1906.  
  1907.   private final void r()
  1908.   {
  1909.     this.ew = (this.a[120] + this.J + this.a[121]);
  1910.     this.ep = 0;
  1911.     this.en = (this.i << 1);
  1912.     this.eo = 0;
  1913.     this.er = this.u;
  1914.     a(null, 0, 0, false, false, true, true);
  1915.     if (this.c == 1) {
  1916.       a("/cleared.mid", this.bq, false);
  1917.     }
  1918.     b(true, -1);
  1919.     this.x = 15;
  1920.   }
  1921.  
  1922.   private final boolean s()
  1923.   {
  1924.     if (this.cb == 0)
  1925.     {
  1926.       if (this.ca == 0)
  1927.       {
  1928.         if (this.bS == 0) {
  1929.           ae();
  1930.         } else {
  1931.           f(true);
  1932.         }
  1933.       }
  1934.       else
  1935.       {
  1936.         if ((this.S) || (this.R))
  1937.         {
  1938.           this.S = (this.R = 0);
  1939.           b(false, 0);
  1940.           return true;
  1941.         }
  1942.         if (this.N)
  1943.         {
  1944.           this.N = false;
  1945.           if (this.ep > 0)
  1946.           {
  1947.             this.ep -= 2;
  1948.             if (this.ep < 0) {
  1949.               this.ep = 0;
  1950.             }
  1951.             return true;
  1952.           }
  1953.         }
  1954.         else if (this.O)
  1955.         {
  1956.           this.O = false;
  1957.           if (this.ep < this.eq)
  1958.           {
  1959.             this.ep += 2;
  1960.             if (this.ep > this.eq) {
  1961.               this.ep = this.eq;
  1962.             }
  1963.             return true;
  1964.           }
  1965.         }
  1966.       }
  1967.       return false;
  1968.     }
  1969.     return true;
  1970.   }
  1971.  
  1972.   private final void t()
  1973.   {
  1974.     d(false);
  1975.     this.ad = ((byte)(this.J > 100 ? 100 : this.J));
  1976.     this.ae = (" X " + this.ad);
  1977.     this.aN = 256;
  1978.     this.ew = ("0000 0000 0000 0000##" + this.a[105]);
  1979.     this.af = this.ew.toCharArray();
  1980.     this.ep = 0;
  1981.     this.en = (this.i << 1);
  1982.     this.eo = 0;
  1983.     this.er = this.u;
  1984.     u();
  1985.     a(null, 0, 0, false, false, false, false);
  1986.     m();
  1987.     b(true, -1);
  1988.     this.dH = a(null, "/sleep.png");
  1989.     this.x = 13;
  1990.     b("/universe.mid");
  1991.   }
  1992.  
  1993.   private final void u()
  1994.   {
  1995.     int i3 = 0;
  1996.     for (int i1 = 1; i1 <= 16; i1++)
  1997.     {
  1998.       int i2 = b(32);
  1999.       this.af[i3] = ((char)(i2 < 10 ? i2 + 48 : i2 - 10 + 65));
  2000.       i3++;
  2001.       if (i1 % 4 == 0) {
  2002.         i3++;
  2003.       }
  2004.     }
  2005.     this.ew = new String(this.af);
  2006.   }
  2007.  
  2008.   private final boolean v()
  2009.   {
  2010.     if (this.cb == 0) {
  2011.       if (this.ca == 0)
  2012.       {
  2013.         this.dH = null;
  2014.         if (this.M[1].length() > 0) {
  2015.           ae();
  2016.         } else {
  2017.           a(this.a[107] + this.ad + this.a[108], 0, (byte)0);
  2018.         }
  2019.       }
  2020.       else if (this.aN > 0)
  2021.       {
  2022.         this.aN -= 1;
  2023.         if (this.aN == 0)
  2024.         {
  2025.           String str = w();
  2026.           for (int i1 = this.M.length - 1; i1 > 0; i1--) {
  2027.             this.M[i1] = this.M[(i1 - 1)];
  2028.           }
  2029.           this.M[0] = str;
  2030.           this.ew = (str + "##" + this.a[106]);
  2031.           this.af = null;
  2032.           this.ep = 0;
  2033.           this.en = (this.i << 1);
  2034.           this.eo = 0;
  2035.           this.er = this.u;
  2036.           a(null, 0, 0, false, false, false, false);
  2037.           this.J = ((short)(this.J - this.ad));
  2038.           g();
  2039.         }
  2040.         else
  2041.         {
  2042.           u();
  2043.         }
  2044.       }
  2045.       else if ((this.R) || (this.S))
  2046.       {
  2047.         this.R = (this.S = 0);
  2048.         b(false, 0);
  2049.       }
  2050.     }
  2051.     n();
  2052.     return true;
  2053.   }
  2054.  
  2055.   private final String w()
  2056.   {
  2057.     byte[] arrayOfByte = new byte[10];
  2058.     a(arrayOfByte, 0, this.L);
  2059.     arrayOfByte[5] = this.ad;
  2060.     a(arrayOfByte, 6, (int)System.currentTimeMillis());
  2061.     int i2 = 76;
  2062.     for (int i1 = 0; i1 < 10; i1++) {
  2063.       if (i1 != 4) {
  2064.         i2 = (byte)(i2 + ((byte)(arrayOfByte[i1] + i1) ^ 0xFFFFFFFF));
  2065.       }
  2066.     }
  2067.     arrayOfByte[4] = i2;
  2068.     String str = a(arrayOfByte, arrayOfByte.length << 3);
  2069.     str = str.substring(0, 4) + ' ' + str.substring(4, 8) + ' ' + str.substring(8, 12) + ' ' + str.substring(12);
  2070.     return str;
  2071.   }
  2072.  
  2073.   private final void a(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
  2074.   {
  2075.     int i2 = 24;
  2076.     for (int i1 = 0; i1 < 4; i1++)
  2077.     {
  2078.       paramArrayOfByte[(paramInt1 + i1)] = ((byte)(0xFF & paramInt2 >>> i2));
  2079.       i2 -= 8;
  2080.     }
  2081.   }
  2082.  
  2083.   private final String a(byte[] paramArrayOfByte, int paramInt)
  2084.   {
  2085.     StringBuffer localStringBuffer = new StringBuffer(19);
  2086.     String str = "";
  2087.     int i3 = 0;
  2088.     int i4 = 0;
  2089.     int i5 = 0;
  2090.     for (int i1 = 0; i1 < paramInt; i1++)
  2091.     {
  2092.       int i2 = paramArrayOfByte[(i1 >> 3)] >> 7 - i1 % 8 & 0x1;
  2093.       i3 |= i2 << 4 - i5;
  2094.       i5++;
  2095.       if (i5 > 4)
  2096.       {
  2097.         localStringBuffer.append(a(i3));
  2098.         i5 = 0;
  2099.         i3 = 0;
  2100.       }
  2101.     }
  2102.     if (i5 > 0) {
  2103.       localStringBuffer.append(a(i3));
  2104.     }
  2105.     return localStringBuffer.toString();
  2106.   }
  2107.  
  2108.   private final char a(int paramInt)
  2109.   {
  2110.     if (paramInt < 10) {
  2111.       return (char)(paramInt + 48);
  2112.     }
  2113.     return (char)(paramInt - 10 + 65);
  2114.   }
  2115.  
  2116.   private final void x()
  2117.   {
  2118.     c((byte)4, (byte)-1);
  2119.     this.dS = false;
  2120.     if (this.dY == 0)
  2121.     {
  2122.       this.ew = this.a[119];
  2123.       this.ep = 0;
  2124.       this.en = 96;
  2125.       this.eo = 0;
  2126.       this.er = this.u;
  2127.       a(null, 0, 0, false, false, true, true);
  2128.     }
  2129.     this.ag = (this.ah = 0);
  2130.     this.dI = a(this.dI, "/train.png");
  2131.     b(true, -1);
  2132.     a(true, 0);
  2133.     this.x = 12;
  2134.     b("/train.mid");
  2135.   }
  2136.  
  2137.   private final boolean y()
  2138.   {
  2139.     if (this.dM == 0)
  2140.     {
  2141.       if (this.dY > 0)
  2142.       {
  2143.         if (this.N)
  2144.         {
  2145.           this.N = false;
  2146.           if (this.dX > 0) {
  2147.             this.dX = ((byte)(this.dX - 1));
  2148.           } else {
  2149.             this.dX = ((byte)(this.dY - 1));
  2150.           }
  2151.           if (this.dX < this.ea) {
  2152.             this.ea = this.dX;
  2153.           } else if (this.dX >= this.ea + this.dZ) {
  2154.             this.ea = ((byte)(this.dX - this.dZ + 1));
  2155.           }
  2156.         }
  2157.         else if (this.O)
  2158.         {
  2159.           this.Q = (this.O = 0);
  2160.           if (this.dX < this.dY - 1) {
  2161.             this.dX = ((byte)(this.dX + 1));
  2162.           } else {
  2163.             this.dX = 0;
  2164.           }
  2165.           if (this.dX < this.ea) {
  2166.             this.ea = this.dX;
  2167.           } else if (this.dX >= this.ea + this.dZ) {
  2168.             this.ea = ((byte)(this.dX - this.dZ + 1));
  2169.           }
  2170.         }
  2171.         else if ((this.R) || (this.S))
  2172.         {
  2173.           this.R = (this.S = 0);
  2174.           b(false, -1);
  2175.           a(false, 2);
  2176.         }
  2177.       }
  2178.       else if (this.N)
  2179.       {
  2180.         this.N = false;
  2181.         if (this.ep > 0)
  2182.         {
  2183.           this.ep -= 2;
  2184.           if (this.ep < 0) {
  2185.             this.ep = 0;
  2186.           }
  2187.         }
  2188.       }
  2189.       else if (this.O)
  2190.       {
  2191.         this.O = false;
  2192.         if (this.ep < this.eq)
  2193.         {
  2194.           this.ep += 2;
  2195.           if (this.ep > this.eq) {
  2196.             this.ep = this.eq;
  2197.           }
  2198.         }
  2199.       }
  2200.       if (this.T)
  2201.       {
  2202.         this.T = false;
  2203.         b(false, -1);
  2204.         a(false, 1);
  2205.       }
  2206.     }
  2207.     else
  2208.     {
  2209.       this.dL -= 1;
  2210.       if (this.dL < 0)
  2211.       {
  2212.         this.dL = 0;
  2213.         if (this.dM == 2)
  2214.         {
  2215.           this.dM = 0;
  2216.           switch (this.dN)
  2217.           {
  2218.           case 0:
  2219.             break;
  2220.           case 1:
  2221.             ae();
  2222.             this.dI = null;
  2223.             return true;
  2224.           case 2:
  2225.             i();
  2226.             if (this.c == 1) {
  2227.               a();
  2228.             }
  2229.             this.bS = 0;
  2230.             this.bR = (this.dV[this.dX] == 1 ? 3 : 2);
  2231.             X();
  2232.             this.x = 1;
  2233.             d(true);
  2234.             this.dI = null;
  2235.           }
  2236.         }
  2237.         else
  2238.         {
  2239.           this.dM = 0;
  2240.         }
  2241.       }
  2242.     }
  2243.     this.ag += 24;
  2244.     if (this.ag >> 4 >= 384) {
  2245.       this.ag -= 6144;
  2246.     }
  2247.     this.ah += 64;
  2248.     if (this.ah >> 4 >= 384) {
  2249.       this.ah -= 6144;
  2250.     }
  2251.     return true;
  2252.   }
  2253.  
  2254.   private final void a(int paramInt, String paramString1, String paramString2, String paramString3)
  2255.   {
  2256.     this.ak = paramInt;
  2257.     this.ai = paramString2;
  2258.     this.aj = paramString3;
  2259.     this.ew = paramString1;
  2260.     this.ep = 0;
  2261.     this.en = this.k;
  2262.     this.eo = this.k;
  2263.     this.er = (this.u - this.h);
  2264.     a(null, 0, 0, true, false, true, true);
  2265.     if (this.et > this.es)
  2266.     {
  2267.       int i1 = (this.et - this.es) * this.g;
  2268.       this.en += (i1 >> 1);
  2269.       this.eo += (i1 >> 1);
  2270.       this.eq = 0;
  2271.     }
  2272.     this.x = 2;
  2273.     a(true, -1);
  2274.   }
  2275.  
  2276.   private final boolean z()
  2277.   {
  2278.     boolean bool = false;
  2279.     if (this.dM == 0)
  2280.     {
  2281.       if (this.N)
  2282.       {
  2283.         this.N = false;
  2284.         if (this.ep > 0)
  2285.         {
  2286.           this.ep -= 2;
  2287.           if (this.ep < 0) {
  2288.             this.ep = 0;
  2289.           }
  2290.           bool = true;
  2291.         }
  2292.       }
  2293.       else if (this.O)
  2294.       {
  2295.         this.O = false;
  2296.         if (this.ep < this.eq)
  2297.         {
  2298.           this.ep += 2;
  2299.           if (this.ep > this.eq) {
  2300.             this.ep = this.eq;
  2301.           }
  2302.           bool = true;
  2303.         }
  2304.       }
  2305.       else if ((this.ai != null) && (this.S))
  2306.       {
  2307.         this.S = false;
  2308.         a(false, 0);
  2309.       }
  2310.       else if ((this.aj != null) && (this.T))
  2311.       {
  2312.         this.T = false;
  2313.         a(false, 1);
  2314.       }
  2315.     }
  2316.     else
  2317.     {
  2318.       this.dL -= 1;
  2319.       if (this.dL < 0)
  2320.       {
  2321.         this.dL = 0;
  2322.         if (this.dM == 2)
  2323.         {
  2324.           this.dM = 0;
  2325.           switch (this.dN)
  2326.           {
  2327.           case 0:
  2328.             bool = a(true);
  2329.             break;
  2330.           case 1:
  2331.             bool = a(false);
  2332.           }
  2333.         }
  2334.         else
  2335.         {
  2336.           this.dM = 0;
  2337.         }
  2338.       }
  2339.       bool = true;
  2340.     }
  2341.     return bool;
  2342.   }
  2343.  
  2344.   private final boolean a(boolean paramBoolean)
  2345.   {
  2346.     this.x = 1;
  2347.     if (this.ak == -1) {
  2348.       return true;
  2349.     }
  2350.     if (!paramBoolean)
  2351.     {
  2352.       if (this.ak == 10) {
  2353.         ae();
  2354.       }
  2355.       return true;
  2356.     }
  2357.     if (this.ak == 8)
  2358.     {
  2359.       this.C = true;
  2360.     }
  2361.     else if (this.ak == 7)
  2362.     {
  2363.       if (this.I < 3) {
  2364.         this.dc = true;
  2365.       } else {
  2366.         this.I = ((short)(this.I - 3));
  2367.       }
  2368.       this.da = true;
  2369.     }
  2370.     else if (this.ak == 9)
  2371.     {
  2372.       t();
  2373.     }
  2374.     else if (this.ak == 10)
  2375.     {
  2376.       o();
  2377.     }
  2378.     else
  2379.     {
  2380.       this.I = ((short)(this.I - this.br[this.ak]));
  2381.       this.cq[this.ap][this.ao] = -98;
  2382.       f(this.bF, this.bG);
  2383.       int tmp182_179 = this.ak;
  2384.       byte[] tmp182_175 = this.D;
  2385.       tmp182_175[tmp182_179] = ((byte)(tmp182_175[tmp182_179] + 1));
  2386.       if (this.ak == 4) {
  2387.         this.H = this.D[4];
  2388.       }
  2389.       g();
  2390.     }
  2391.     return true;
  2392.   }
  2393.  
  2394.   private final void A()
  2395.   {
  2396.     d(false);
  2397.     this.dH = null;
  2398.     c(false);
  2399.     b(0, this.a[111], this.a[30], null);
  2400.     this.x = 16;
  2401.   }
  2402.  
  2403.   private final void b(int paramInt, String paramString1, String paramString2, String paramString3)
  2404.   {
  2405.     b("/universe.mid");
  2406.     this.ai = paramString2;
  2407.     this.aj = paramString3;
  2408.     this.al = paramInt;
  2409.     this.ew = paramString1;
  2410.     this.ep = 0;
  2411.     this.eo = 0;
  2412.     this.er = this.u;
  2413.     this.en = 0;
  2414.     a(null, 0, 0, true, true, true, true);
  2415.     a(true, -1);
  2416.   }
  2417.  
  2418.   private final boolean B()
  2419.   {
  2420.     boolean bool = false;
  2421.     if (this.dM == 0)
  2422.     {
  2423.       if (this.N)
  2424.       {
  2425.         this.N = false;
  2426.         if ((this.al != 5) && (this.ep > 0))
  2427.         {
  2428.           this.ep -= 2;
  2429.           if (this.ep < 0) {
  2430.             this.ep = 0;
  2431.           }
  2432.           bool = true;
  2433.         }
  2434.       }
  2435.       else if (this.O)
  2436.       {
  2437.         this.O = false;
  2438.         if ((this.al != 5) && (this.ep < this.eq))
  2439.         {
  2440.           this.ep += 2;
  2441.           if (this.ep > this.eq) {
  2442.             this.ep = this.eq;
  2443.           }
  2444.           bool = true;
  2445.         }
  2446.       }
  2447.       else if ((this.ai != null) && (this.S))
  2448.       {
  2449.         this.S = false;
  2450.         a(false, 0);
  2451.       }
  2452.       else if ((this.aj != null) && (this.T))
  2453.       {
  2454.         this.T = false;
  2455.         a(false, 1);
  2456.       }
  2457.     }
  2458.     else
  2459.     {
  2460.       this.dL -= 1;
  2461.       if (this.dL < 0)
  2462.       {
  2463.         this.dL = 0;
  2464.         this.dP = false;
  2465.         if (this.dM == 2)
  2466.         {
  2467.           this.dM = 0;
  2468.           switch (this.dN)
  2469.           {
  2470.           case 0:
  2471.             bool = b(true);
  2472.             break;
  2473.           case 1:
  2474.             bool = b(false);
  2475.           }
  2476.         }
  2477.         else
  2478.         {
  2479.           this.dM = 0;
  2480.         }
  2481.       }
  2482.       bool = true;
  2483.     }
  2484.     return bool;
  2485.   }
  2486.  
  2487.   private final boolean b(boolean paramBoolean)
  2488.   {
  2489.     this.ai = null;
  2490.     this.aj = null;
  2491.     int i1 = 0;
  2492.     switch (this.al)
  2493.     {
  2494.     case 0:
  2495.       i1 = 1;
  2496.     }
  2497.     if (i1 != 0)
  2498.     {
  2499.       this.dH = null;
  2500.       ae();
  2501.     }
  2502.     return true;
  2503.   }
  2504.  
  2505.   private final int b(int paramInt)
  2506.   {
  2507.     int i1 = this.z.nextInt();
  2508.     if (i1 < 0) {
  2509.       i1 = -i1;
  2510.     }
  2511.     return i1 % paramInt;
  2512.   }
  2513.  
  2514.   private final void C()
  2515.   {
  2516.     if (this.bn != -1)
  2517.     {
  2518.       this.bm -= 1;
  2519.       if (this.bm <= 0) {
  2520.         this.bn = -1;
  2521.       }
  2522.     }
  2523.     else
  2524.     {
  2525.       int i1 = (this.bF + b(this.du)) / this.h;
  2526.       int i2 = (this.bG + b(this.dv)) / this.i;
  2527.       if ((i1 < this.ds) && (i2 < this.dt) && (this.cr[i2][i1] == -8) && ((this.cq[i2][i1] == -57) || (this.cq[i2][i1] == -56)))
  2528.       {
  2529.         this.bn = (i1 * this.h);
  2530.         this.bo = (i2 * this.i);
  2531.         this.bm = 32;
  2532.       }
  2533.     }
  2534.   }
  2535.  
  2536.   private final void D()
  2537.   {
  2538.     if (this.aL > 0)
  2539.     {
  2540.       this.aL -= 1;
  2541.       int i1 = this.h * this.aL / 8;
  2542.       int i2 = b(i1 + 1) - (i1 >> 1);
  2543.       int i3 = b(i1 + 1) - (i1 >> 1);
  2544.       this.bF += i2;
  2545.       this.bG += i3;
  2546.       if (this.bF < 0) {
  2547.         this.bF = 0;
  2548.       } else if (this.bF > this.bH) {
  2549.         this.bF = this.bH;
  2550.       }
  2551.       if (this.bG < 0) {
  2552.         this.bG = 0;
  2553.       } else if (this.bG > this.bI) {
  2554.         this.bG = this.bI;
  2555.       }
  2556.       g(this.bF, this.bG);
  2557.     }
  2558.   }
  2559.  
  2560.   private final boolean E()
  2561.   {
  2562.     if ((this.cR) && (this.db) && (this.at != 5))
  2563.     {
  2564.       long l1;
  2565.       if (!this.bY) {
  2566.         l1 = 60000L - (System.currentTimeMillis() - this.bX + this.bW);
  2567.       } else {
  2568.         l1 = 60000L - this.bW;
  2569.       }
  2570.       if (l1 <= 0L)
  2571.       {
  2572.         this.aX = 0;
  2573.         H();
  2574.       }
  2575.     }
  2576.     if ((this.aQ > 0) && (this.bL == this.bF) && (this.bM == this.bG))
  2577.     {
  2578.       this.aQ -= 1;
  2579.       if (this.aQ == 0)
  2580.       {
  2581.         this.aW = -1;
  2582.         this.aB = -1;
  2583.         T();
  2584.       }
  2585.     }
  2586.     if ((this.bS == 0) && (this.bR == 1) && (!this.C) && (this.X))
  2587.     {
  2588.       this.X = false;
  2589.       a(8, "DO YOU WANT TO ENABLE THE CHEAT?", this.a[32], this.a[33]);
  2590.       return false;
  2591.     }
  2592.     int i1 = this.bF;
  2593.     int i2 = this.bG;
  2594.     int i3;
  2595.     int i4;
  2596.     if ((this.at <= 4) && (this.av == 0) && (this.aZ == 0))
  2597.     {
  2598.       this.bk = false;
  2599.       if (this.be)
  2600.       {
  2601.         this.be = false;
  2602.         this.aK = 0;
  2603.         i3 = 0;
  2604.         i4 = 1;
  2605.         byte b1 = this.cA[this.aw];
  2606.         int i6 = this.cE[this.aw];
  2607.         int i7 = this.cF[this.aw];
  2608.         if (b1 == -20)
  2609.         {
  2610.           int i9 = i7 / this.i;
  2611.           int i8 = i6 / this.h;
  2612.           int i5 = this.cq[i9][i8];
  2613.           if (((i5 == 87) || (i5 == 91) || (i5 == 92) || (i5 == 93)) && (this.at == 2)) {
  2614.             i4 = 0;
  2615.           } else if ((i5 == 88) && (this.at == 3)) {
  2616.             i4 = 0;
  2617.           } else if ((i5 == 89) && (this.at == 0)) {
  2618.             i4 = 0;
  2619.           } else if ((i5 == 90) && (this.at == 1)) {
  2620.             i4 = 0;
  2621.           }
  2622.           if (i4 != 0) {
  2623.             switch (this.at)
  2624.             {
  2625.             case 0:
  2626.               if ((a(i8 - 1, i9, this.at, b1)) && (!a(i6 - this.h, i7, this.aw, 0))) {
  2627.                 i3 = 1;
  2628.               }
  2629.               break;
  2630.             case 1:
  2631.               if ((a(i8 + 1, i9, this.at, b1)) && (!a(i6 + this.h, i7, this.aw, 1))) {
  2632.                 i3 = 1;
  2633.               }
  2634.               break;
  2635.             case 2:
  2636.               if ((a(i8, i9 - 1, this.at, b1)) && (!a(i6, i7 - this.i, this.aw, 2))) {
  2637.                 i3 = 1;
  2638.               }
  2639.               break;
  2640.             case 3:
  2641.               if ((a(i8, i9 + 1, this.at, b1)) && (!a(i6, i7 + this.i, this.aw, 3))) {
  2642.                 i3 = 1;
  2643.               }
  2644.               break;
  2645.             }
  2646.           }
  2647.           if (i3 != 0)
  2648.           {
  2649.             this.cC[this.aw] = ((byte)this.h);
  2650.             this.cB[this.aw] = ((byte)this.at);
  2651.             this.cD[this.aw] = false;
  2652.           }
  2653.         }
  2654.       }
  2655.       if ((this.aw == -1) || (this.cB[this.aw] == 4)) {
  2656.         if (J())
  2657.         {
  2658.           if (!this.be) {
  2659.             this.aw = -1;
  2660.           }
  2661.           this.bd = true;
  2662.           if ((!this.bf) && (!this.bj)) {
  2663.             this.as = 3;
  2664.           }
  2665.         }
  2666.         else if ((this.az == 0) && (!this.bf) && (!this.bj) && (this.aZ == 0))
  2667.         {
  2668.           this.as = 3;
  2669.         }
  2670.       }
  2671.     }
  2672.     else if (this.aZ > 0)
  2673.     {
  2674.       this.aZ = ((byte)(this.aZ - 1));
  2675.       if (this.aZ <= 0)
  2676.       {
  2677.         this.aZ = 0;
  2678.         i3 = this.ao;
  2679.         i4 = this.ap;
  2680.         switch (this.at)
  2681.         {
  2682.         case 0:
  2683.           i3--;
  2684.           break;
  2685.         case 1:
  2686.           i3++;
  2687.           break;
  2688.         case 2:
  2689.           i4--;
  2690.           break;
  2691.         case 3:
  2692.           i4++;
  2693.         }
  2694.         this.cq[i4][i3] = 124;
  2695.         f(this.bF, this.bG);
  2696.         this.as = 3;
  2697.         this.az = 0;
  2698.         this.bl = true;
  2699.       }
  2700.     }
  2701.     if (L()) {
  2702.       return false;
  2703.     }
  2704.     if ((this.at == 5) && ((this.R) || (this.S) || (this.T)))
  2705.     {
  2706.       this.R = (this.S = this.T = 0);
  2707.       if (!this.dc)
  2708.       {
  2709.         Y();
  2710.         d(true);
  2711.       }
  2712.       else
  2713.       {
  2714.         f(false);
  2715.       }
  2716.       return true;
  2717.     }
  2718.     if (this.av != 0)
  2719.     {
  2720.       if ((this.bd) && (this.av <= this.j))
  2721.       {
  2722.         this.bd = false;
  2723.         G();
  2724.         if ((this.aY == 0) && (!this.bj)) {
  2725.           this.aT = (this.aw != -1 ? this.m : 0);
  2726.         }
  2727.       }
  2728.       switch (this.aY)
  2729.       {
  2730.       case 1:
  2731.         this.aT += 6;
  2732.         break;
  2733.       case 2:
  2734.         this.aT -= 6;
  2735.       }
  2736.       this.az = 0;
  2737.       K();
  2738.       if (this.av == 0)
  2739.       {
  2740.         switch (this.aY)
  2741.         {
  2742.         case 1:
  2743.           this.aY = 0;
  2744.           this.bj = true;
  2745.           this.aT = this.k;
  2746.           this.as = 0;
  2747.           this.aK = 1;
  2748.           break;
  2749.         case 2:
  2750.           this.aY = 0;
  2751.           this.bj = false;
  2752.           this.aT = 0;
  2753.           this.as = 0;
  2754.         }
  2755.         this.az = 0;
  2756.         this.bi = false;
  2757.         if (this.bh)
  2758.         {
  2759.           this.bh = false;
  2760.           if (this.cq[this.ap][this.ao] == -56) {
  2761.             this.cr[this.ap][this.ao] = ((byte)(this.cQ ? 'Ê' : 'Ë'));
  2762.           }
  2763.           this.cq[this.ap][this.ao] = bp[b(4)];
  2764.           f(this.bF, this.bG);
  2765.         }
  2766.         switch (this.aU)
  2767.         {
  2768.         case 1:
  2769.           this.aU = 0;
  2770.           this.cr[this.ap][this.ao] = -1;
  2771.           f(this.bF, this.bG);
  2772.           this.aK = 0;
  2773.           this.bf = true;
  2774.           this.as = 0;
  2775.           b(F());
  2776.           break;
  2777.         case 2:
  2778.           this.aU = 0;
  2779.           this.bf = false;
  2780.           this.aK = 0;
  2781.           this.cr[this.ap][this.ao] = -36;
  2782.           f(this.bF, this.bG);
  2783.           this.ao += 1;
  2784.           this.am += this.h;
  2785.           b(F());
  2786.           this.P = (this.Q = this.N = this.O = 0);
  2787.         }
  2788.       }
  2789.     }
  2790.     else if ((!this.bf) && (!this.bg) && (!this.bj) && (this.aZ == 0) && (this.at < 4) && (++this.az >= 160))
  2791.     {
  2792.       this.at = 4;
  2793.       this.as = 0;
  2794.       this.bb = true;
  2795.     }
  2796.     if (this.aI != -1)
  2797.     {
  2798.       this.aM -= 1;
  2799.       if (this.aM <= 0)
  2800.       {
  2801.         if (this.cr[this.aJ][this.aI] == -43)
  2802.         {
  2803.           this.cr[this.aJ][this.aI] = -42;
  2804.           this.aM = 6;
  2805.         }
  2806.         else
  2807.         {
  2808.           this.cr[this.aJ][this.aI] = -1;
  2809.           this.aI = -1;
  2810.         }
  2811.         f(this.bF, this.bG);
  2812.       }
  2813.     }
  2814.     if (this.dn > 0) {
  2815.       O();
  2816.     }
  2817.     if (this.jdField_do == 0)
  2818.     {
  2819.       this.aN -= 1;
  2820.       if (this.aN <= 0)
  2821.       {
  2822.         i3 = this.cr[this.cP][this.cO];
  2823.         switch (i3)
  2824.         {
  2825.         case -41:
  2826.           i3 = -24;
  2827.           break;
  2828.         case -24:
  2829.           i3 = -23;
  2830.           break;
  2831.         default:
  2832.           i3 = -41;
  2833.           this.dl = (this.cO * this.h);
  2834.           this.dm = (this.cP * this.i + (this.i >> 1));
  2835.           this.dp = 0;
  2836.           this.dq = -1;
  2837.           this.dr = 4;
  2838.           this.jdField_do = 1;
  2839.         }
  2840.         this.cr[this.cP][this.cO] = i3;
  2841.         this.aN = 6;
  2842.         f(this.bF, this.bG);
  2843.       }
  2844.     }
  2845.     if ((!this.dR) && (this.aQ == 0)) {
  2846.       d(this.am, this.an);
  2847.     }
  2848.     if ((this.bF != i1) || (this.bG != i2)) {
  2849.       g(this.bF, this.bG);
  2850.     }
  2851.     return true;
  2852.   }
  2853.  
  2854.   private final String F()
  2855.   {
  2856.     if (this.bf) {
  2857.       return "/mow.mid";
  2858.     }
  2859.     if (this.bS != 0)
  2860.     {
  2861.       if (!this.cR)
  2862.       {
  2863.         if (this.H != -1) {
  2864.           return "/ingame" + this.H + ".mid";
  2865.         }
  2866.         return "/ingame" + b(this.D[4] + 1) + ".mid";
  2867.       }
  2868.       if (!this.db) {
  2869.         return "/shop.mid";
  2870.       }
  2871.       return "/bonus.mid";
  2872.     }
  2873.     if (this.bR == 1) {
  2874.       return "/shop.mid";
  2875.     }
  2876.     if ((this.bR == 2) || (this.bR == 4) || (this.bR == 5)) {
  2877.       return "/sandman.mid";
  2878.     }
  2879.     return "/shop.mid";
  2880.   }
  2881.  
  2882.   private final void b(String paramString)
  2883.   {
  2884.     if (this.c == 1) {
  2885.       a(paramString, this.bq, true);
  2886.     }
  2887.   }
  2888.  
  2889.   private final void G()
  2890.   {
  2891.     int i1 = this.cq[this.ap][this.ao];
  2892.     int i2 = this.cr[this.ap][this.ao];
  2893.     if (this.aC != -1)
  2894.     {
  2895.       this.cq[this.aD][this.aC] = -81;
  2896.       f(this.bF, this.bG);
  2897.       this.aC = -1;
  2898.     }
  2899.     else if (this.aE != -1)
  2900.     {
  2901.       this.cq[this.aF][this.aE] = b(this.cq[this.aF][this.aE]);
  2902.       f(this.bF, this.bG);
  2903.       this.aE = -1;
  2904.     }
  2905.     else if (this.aR != -1)
  2906.     {
  2907.       this.cq[this.aS][this.aR] = c(this.cq[this.aS][this.aR]);
  2908.       f(this.bF, this.bG);
  2909.       this.aR = -1;
  2910.     }
  2911.     else if (this.aG != -1)
  2912.     {
  2913.       if (this.aI != -1)
  2914.       {
  2915.         this.cr[this.aJ][this.aI] = -1;
  2916.         f(this.bF, this.bG);
  2917.       }
  2918.       this.cr[this.aH][this.aG] = -43;
  2919.       f(this.bF, this.bG);
  2920.       this.aI = this.aG;
  2921.       this.aJ = this.aH;
  2922.       this.aM = 6;
  2923.       this.aG = -1;
  2924.     }
  2925.     else if (this.aO != -1)
  2926.     {
  2927.       this.cy -= 1;
  2928.       this.cr[this.aP][this.aO] = -52;
  2929.       f(this.bF, this.bG);
  2930.       this.aO = -1;
  2931.     }
  2932.     if (this.bj)
  2933.     {
  2934.       if (i2 == -11) {
  2935.         this.aY = 2;
  2936.       }
  2937.     }
  2938.     else if (i2 == -12)
  2939.     {
  2940.       this.aY = 1;
  2941.       this.aT = 0;
  2942.       return;
  2943.     }
  2944.     if (i2 == -44)
  2945.     {
  2946.       this.aG = this.ao;
  2947.       this.aH = this.ap;
  2948.       return;
  2949.     }
  2950.     if ((i2 == -39) && (this.cO != -1) && (this.jdField_do == -1))
  2951.     {
  2952.       this.jdField_do = 0;
  2953.       this.aN = 6;
  2954.     }
  2955.     this.bg = false;
  2956.     if (!this.bf) {
  2957.       if (i2 == -51)
  2958.       {
  2959.         this.da = false;
  2960.         if ((this.cR) && (!this.db))
  2961.         {
  2962.           this.db = true;
  2963.           b(F());
  2964.           l();
  2965.           this.bW = 0L;
  2966.         }
  2967.         this.cr[this.ap][this.ao] = -1;
  2968.         f(this.bF, this.bG);
  2969.       }
  2970.       else if (i2 == -8)
  2971.       {
  2972.         this.bU += 1;
  2973.         this.cr[this.ap][this.ao] = -1;
  2974.         f(this.bF, this.bG);
  2975.       }
  2976.       else if (i2 == -35)
  2977.       {
  2978.         this.ax = 0;
  2979.         this.cT = true;
  2980.         this.cr[this.ap][this.ao] = -1;
  2981.         f(this.bF, this.bG);
  2982.       }
  2983.       else if (i2 == -13)
  2984.       {
  2985.         this.ax = 0;
  2986.         this.cU = true;
  2987.         this.cr[this.ap][this.ao] = -1;
  2988.         f(this.bF, this.bG);
  2989.       }
  2990.       else if (i2 == -49)
  2991.       {
  2992.         this.cz += 1;
  2993.         this.cr[this.ap][this.ao] = -1;
  2994.         f(this.bF, this.bG);
  2995.       }
  2996.       else if (i2 == -54)
  2997.       {
  2998.         this.cy -= 1;
  2999.         this.cr[this.ap][this.ao] = -55;
  3000.         f(this.bF, this.bG);
  3001.       }
  3002.       else if (i2 == -53)
  3003.       {
  3004.         this.aO = this.ao;
  3005.         this.aP = this.ap;
  3006.       }
  3007.       else if (i2 == -33)
  3008.       {
  3009.         if (this.cz > 0)
  3010.         {
  3011.           this.cz -= 1;
  3012.           this.dd[this.dk] = ((byte)this.ao);
  3013.           this.de[this.dk] = ((byte)this.ap);
  3014.           this.df[this.dk] = 1;
  3015.           this.dg[this.dk] = 16;
  3016.           this.dk += 1;
  3017.           this.cr[this.ap][this.ao] = -17;
  3018.           f(this.bF, this.bG);
  3019.         }
  3020.         else
  3021.         {
  3022.           this.aV = 4;
  3023.           this.ax = 4;
  3024.         }
  3025.       }
  3026.       else if ((i2 == -18) || (i2 == -34) || (i2 == -50))
  3027.       {
  3028.         this.bg = true;
  3029.       }
  3030.       else if (i2 == -36)
  3031.       {
  3032.         this.aU = 1;
  3033.       }
  3034.       else if (i2 == -10)
  3035.       {
  3036.         this.J = ((short)(this.J + 1));
  3037.         this.cr[this.ap][this.ao] = -1;
  3038.         f(this.bF, this.bG);
  3039.         a(true, this.bS, this.bR);
  3040.         this.I = ((short)(this.I + this.bU));
  3041.         this.ec = 0;
  3042.         g();
  3043.         d(false);
  3044.         k();
  3045.         r();
  3046.         return;
  3047.       }
  3048.     }
  3049.     if (i1 == -92)
  3050.     {
  3051.       I();
  3052.     }
  3053.     else if (i1 == -94)
  3054.     {
  3055.       c(0);
  3056.     }
  3057.     else if (i1 == -108)
  3058.     {
  3059.       this.bk = true;
  3060.       this.as = 1;
  3061.     }
  3062.     else if (((i1 & 0xFF) >= 191) && ((i1 & 0xFF) <= 194))
  3063.     {
  3064.       a(i1);
  3065.     }
  3066.     else if (i1 == -90)
  3067.     {
  3068.       c(1);
  3069.     }
  3070.     else if (i1 == -80)
  3071.     {
  3072.       this.aC = this.ao;
  3073.       this.aD = this.ap;
  3074.     }
  3075.     else if ((!this.bf) && ((i1 & 0xFF) >= 185) && ((i1 & 0xFF) <= 190))
  3076.     {
  3077.       this.aE = this.ao;
  3078.       this.aF = this.ap;
  3079.     }
  3080.     else if ((!this.bf) && ((i1 & 0xFF) >= 177) && ((i1 & 0xFF) <= 180))
  3081.     {
  3082.       this.aR = this.ao;
  3083.       this.aS = this.ap;
  3084.     }
  3085.     else if ((!this.bf) && (i1 == -97))
  3086.     {
  3087.       this.cV = true;
  3088.       this.cq[this.ap][this.ao] = 124;
  3089.       f(this.bF, this.bG);
  3090.     }
  3091.     else if (i1 == -89)
  3092.     {
  3093.       this.cW = false;
  3094.       a((byte)-89, (byte)-88);
  3095.     }
  3096.     else if (i1 == -87)
  3097.     {
  3098.       this.cX = false;
  3099.       a((byte)-87, (byte)-86);
  3100.     }
  3101.     else if (i1 == -85)
  3102.     {
  3103.       this.cY = false;
  3104.       a((byte)-85, (byte)-84);
  3105.     }
  3106.     else if (i1 == -83)
  3107.     {
  3108.       this.cZ = false;
  3109.       a((byte)-83, (byte)-82);
  3110.     }
  3111.     else if (i1 == -88)
  3112.     {
  3113.       this.cW = true;
  3114.       this.aW = 2;
  3115.       a((byte)-88, (byte)-89);
  3116.       this.aQ = 64;
  3117.       d(this.cG * this.h, this.cH * this.i);
  3118.     }
  3119.     else if (i1 == -86)
  3120.     {
  3121.       this.cX = true;
  3122.       this.aW = 3;
  3123.       a((byte)-86, (byte)-87);
  3124.       this.aQ = 64;
  3125.       d(this.cI * this.h, this.cJ * this.i);
  3126.     }
  3127.     else if (i1 == -84)
  3128.     {
  3129.       this.cY = true;
  3130.       this.aW = 0;
  3131.       a((byte)-84, (byte)-85);
  3132.       this.aQ = 64;
  3133.       d(this.cK * this.h, this.cL * this.i);
  3134.     }
  3135.     else if (i1 == -82)
  3136.     {
  3137.       this.cZ = true;
  3138.       this.aW = 1;
  3139.       a((byte)-82, (byte)-83);
  3140.       this.aQ = 64;
  3141.       d(this.cM * this.h, this.cN * this.i);
  3142.     }
  3143.     else if ((!this.bf) && (i1 == -81))
  3144.     {
  3145.       H();
  3146.     }
  3147.     else if ((!this.bf) && (this.cy == 0) && (i1 == -106))
  3148.     {
  3149.       d(false);
  3150.       k();
  3151.       this.au = this.at;
  3152.       this.at = 6;
  3153.       this.as = 0;
  3154.       this.bb = true;
  3155.     }
  3156.     else if ((this.bf) && (i1 == -96))
  3157.     {
  3158.       this.aU = 2;
  3159.     }
  3160.     else if (((i1 & 0xFF) >= 151) && ((i1 & 0xFF) <= 157))
  3161.     {
  3162.       int i3 = (i1 & 0xFF) - 151;
  3163.       int i4 = this.I >= this.br[i3] ? 1 : 0;
  3164.       a(i4 != 0 ? i3 : -1, this.a[(82 + i3)] + this.a[(91 + i3)] + (i4 != 0 ? this.a[99] : this.a[98]), i4 != 0 ? this.a[32] : this.a[30], i4 != 0 ? this.a[33] : null);
  3165.     }
  3166.   }
  3167.  
  3168.   private final void H()
  3169.   {
  3170.     d(false);
  3171.     k();
  3172.     this.av = 0;
  3173.     this.at = 5;
  3174.     this.bg = (this.bj = 0);
  3175.     this.as = 0;
  3176.     if (this.dR)
  3177.     {
  3178.       this.dR = false;
  3179.       T();
  3180.     }
  3181.     if (this.c == 1) {
  3182.       a(this.aX == -1 ? "/death.mid" : "/alarm.mid", this.bq, false);
  3183.     }
  3184.     this.U = false;
  3185.   }
  3186.  
  3187.   private final void I()
  3188.   {
  3189.     for (int i1 = 0; i1 < this.dt; i1++) {
  3190.       for (int i2 = 0; i2 < this.ds; i2++) {
  3191.         this.cq[i1][i2] = b(this.cq[i1][i2]);
  3192.       }
  3193.     }
  3194.     f(this.bF, this.bG);
  3195.   }
  3196.  
  3197.   private final void c(int paramInt)
  3198.   {
  3199.     byte b1;
  3200.     byte b2;
  3201.     byte b3;
  3202.     byte b4;
  3203.     byte b5;
  3204.     byte b6;
  3205.     switch (paramInt)
  3206.     {
  3207.     case 0:
  3208.       b1 = -73;
  3209.       b2 = -72;
  3210.       b3 = -75;
  3211.       b4 = -74;
  3212.       b5 = -95;
  3213.       b6 = -94;
  3214.       break;
  3215.     default:
  3216.       b1 = 90;
  3217.       b2 = 89;
  3218.       b3 = 88;
  3219.       b4 = 87;
  3220.       b5 = -91;
  3221.       b6 = -90;
  3222.     }
  3223.     for (int i1 = 0; i1 < this.dt; i1++) {
  3224.       for (int i2 = 0; i2 < this.ds; i2++) {
  3225.         this.cq[i1][i2] = a(this.cq[i1][i2], b1, b3, b2, b4, b5, b6);
  3226.       }
  3227.     }
  3228.     f(this.bF, this.bG);
  3229.   }
  3230.  
  3231.   private final void a(byte paramByte)
  3232.   {
  3233.     byte b1;
  3234.     byte b2;
  3235.     byte b3;
  3236.     byte b4;
  3237.     switch (paramByte)
  3238.     {
  3239.     case -65:
  3240.     case -64:
  3241.       b1 = -65;
  3242.       b2 = -64;
  3243.       b3 = -61;
  3244.       b4 = -60;
  3245.       break;
  3246.     case -63:
  3247.     case -62:
  3248.       b1 = -63;
  3249.       b2 = -62;
  3250.       b3 = -59;
  3251.       b4 = -58;
  3252.       break;
  3253.     default:
  3254.       return;
  3255.     }
  3256.     for (int i1 = 0; i1 < this.dt; i1++) {
  3257.       for (int i2 = 0; i2 < this.ds; i2++)
  3258.       {
  3259.         paramByte = this.cq[i1][i2];
  3260.         if (paramByte == b1) {
  3261.           this.cq[i1][i2] = b2;
  3262.         } else if (paramByte == b2) {
  3263.           this.cq[i1][i2] = b1;
  3264.         } else if (paramByte == b3) {
  3265.           this.cq[i1][i2] = b4;
  3266.         } else if (paramByte == b4) {
  3267.           this.cq[i1][i2] = b3;
  3268.         }
  3269.       }
  3270.     }
  3271.     f(this.bF, this.bG);
  3272.   }
  3273.  
  3274.   private final void a(byte paramByte1, byte paramByte2)
  3275.   {
  3276.     for (int i1 = 0; i1 < this.dt; i1++) {
  3277.       for (int i2 = 0; i2 < this.ds; i2++) {
  3278.         if (this.cq[i1][i2] == paramByte1) {
  3279.           this.cq[i1][i2] = paramByte2;
  3280.         }
  3281.       }
  3282.     }
  3283.     f(this.bF, this.bG);
  3284.   }
  3285.  
  3286.   private final byte a(byte paramByte1, byte paramByte2, byte paramByte3, byte paramByte4, byte paramByte5, byte paramByte6, byte paramByte7)
  3287.   {
  3288.     if (paramByte1 == paramByte6) {
  3289.       return paramByte7;
  3290.     }
  3291.     if (paramByte1 == paramByte7) {
  3292.       return paramByte6;
  3293.     }
  3294.     if (paramByte1 == paramByte5) {
  3295.       return paramByte3;
  3296.     }
  3297.     if (paramByte1 == paramByte3) {
  3298.       return paramByte5;
  3299.     }
  3300.     if (paramByte1 == paramByte4) {
  3301.       return paramByte2;
  3302.     }
  3303.     if (paramByte1 == paramByte2) {
  3304.       return paramByte4;
  3305.     }
  3306.     return paramByte1;
  3307.   }
  3308.  
  3309.   private final byte b(byte paramByte)
  3310.   {
  3311.     switch (paramByte)
  3312.     {
  3313.     case -93:
  3314.       return -92;
  3315.     case -92:
  3316.       return -93;
  3317.     case -71:
  3318.       return -68;
  3319.     case -70:
  3320.       return -71;
  3321.     case -69:
  3322.       return -70;
  3323.     case -68:
  3324.       return -69;
  3325.     case -67:
  3326.       return -66;
  3327.     case -66:
  3328.       return -67;
  3329.     }
  3330.     return paramByte;
  3331.   }
  3332.  
  3333.   private final byte c(byte paramByte)
  3334.   {
  3335.     switch (paramByte)
  3336.     {
  3337.     case -79:
  3338.       return -78;
  3339.     case -78:
  3340.       return -76;
  3341.     case -77:
  3342.       return -79;
  3343.     case -76:
  3344.       return -77;
  3345.     }
  3346.     return paramByte;
  3347.   }
  3348.  
  3349.   private final boolean a(int paramInt1, int paramInt2)
  3350.   {
  3351.     paramInt1 *= this.h;
  3352.     paramInt2 *= this.i;
  3353.     for (int i1 = 0; i1 < this.cx; i1++) {
  3354.       if ((this.cB[i1] == 4) && (this.cE[i1] == paramInt1) && (this.cF[i1] == paramInt2))
  3355.       {
  3356.         this.be = true;
  3357.         this.aw = ((byte)i1);
  3358.         return true;
  3359.       }
  3360.     }
  3361.     return false;
  3362.   }
  3363.  
  3364.   private final boolean J()
  3365.   {
  3366.     int i1 = this.cq[this.ap][this.ao];
  3367.     int i2 = this.cr[this.ap][this.ao];
  3368.     if (this.bl)
  3369.     {
  3370.       this.bl = false;
  3371.       switch (this.at)
  3372.       {
  3373.       case 0:
  3374.         if (a(-1, 0, false))
  3375.         {
  3376.           this.ao -= 1;
  3377.           this.av = this.h;
  3378.           if (this.F) {
  3379.             this.bi = true;
  3380.           }
  3381.           return true;
  3382.         }
  3383.         break;
  3384.       case 1:
  3385.         if (a(1, 0, false))
  3386.         {
  3387.           this.ao += 1;
  3388.           this.av = this.h;
  3389.           if (this.F) {
  3390.             this.bi = true;
  3391.           }
  3392.           return true;
  3393.         }
  3394.         break;
  3395.       case 2:
  3396.         if (a(0, -1, false))
  3397.         {
  3398.           this.ap -= 1;
  3399.           this.av = this.i;
  3400.           if (this.F) {
  3401.             this.bi = true;
  3402.           }
  3403.           return true;
  3404.         }
  3405.         break;
  3406.       case 3:
  3407.         if (a(0, 1, false))
  3408.         {
  3409.           this.ap += 1;
  3410.           this.av = this.i;
  3411.           if (this.F) {
  3412.             this.bi = true;
  3413.           }
  3414.           return true;
  3415.         }
  3416.         break;
  3417.       }
  3418.     }
  3419.     if (this.bj)
  3420.     {
  3421.       switch (this.at)
  3422.       {
  3423.       case 0:
  3424.         this.ao -= 1;
  3425.         this.av = this.h;
  3426.         break;
  3427.       case 1:
  3428.         this.ao += 1;
  3429.         this.av = this.h;
  3430.         break;
  3431.       case 2:
  3432.         this.ap -= 1;
  3433.         this.av = this.i;
  3434.         break;
  3435.       case 3:
  3436.         this.ap += 1;
  3437.         this.av = this.i;
  3438.       }
  3439.       return true;
  3440.     }
  3441.     if (i2 != -44) {
  3442.       if ((i1 == -73) && (a(-1, 0, true)))
  3443.       {
  3444.         this.at = 0;
  3445.         this.aK = 3;
  3446.       }
  3447.       else if ((i1 == -72) && (a(1, 0, true)))
  3448.       {
  3449.         this.at = 1;
  3450.         this.aK = 3;
  3451.       }
  3452.       else if ((i1 == -75) && (a(0, -1, true)))
  3453.       {
  3454.         this.at = 2;
  3455.         this.aK = 3;
  3456.       }
  3457.       else if ((i1 == -74) && (a(0, 1, true)))
  3458.       {
  3459.         this.at = 3;
  3460.         this.aK = 3;
  3461.       }
  3462.     }
  3463.     int i3;
  3464.     if (this.aK > 0)
  3465.     {
  3466.       i3 = 1;
  3467.       int i4 = 0;
  3468.       switch (this.at)
  3469.       {
  3470.       case 0:
  3471.         if (a(-1, 0, false))
  3472.         {
  3473.           this.ao -= 1;
  3474.           if ((!this.dR) && (this.P)) {
  3475.             i3 = 0;
  3476.           }
  3477.         }
  3478.         else
  3479.         {
  3480.           i4 = 1;
  3481.         }
  3482.         break;
  3483.       case 1:
  3484.         if (a(1, 0, false))
  3485.         {
  3486.           this.ao += 1;
  3487.           if ((!this.dR) && (this.Q)) {
  3488.             i3 = 0;
  3489.           }
  3490.         }
  3491.         else
  3492.         {
  3493.           i4 = 1;
  3494.         }
  3495.         break;
  3496.       case 2:
  3497.         if (a(0, -1, false))
  3498.         {
  3499.           this.ap -= 1;
  3500.           if ((!this.dR) && (this.N)) {
  3501.             i3 = 0;
  3502.           }
  3503.         }
  3504.         else
  3505.         {
  3506.           i4 = 1;
  3507.         }
  3508.         break;
  3509.       case 3:
  3510.         if (a(0, 1, false))
  3511.         {
  3512.           this.ap += 1;
  3513.           if ((!this.dR) && (this.O)) {
  3514.             i3 = 0;
  3515.           }
  3516.         }
  3517.         else
  3518.         {
  3519.           i4 = 1;
  3520.         }
  3521.         break;
  3522.       }
  3523.       if (i4 == 0)
  3524.       {
  3525.         if ((this.bf) && (c(this.ao, this.ap) == -19))
  3526.         {
  3527.           this.cr[this.ap][this.ao] = -1;
  3528.           f(this.bF, this.bG);
  3529.           this.aL = 8;
  3530.         }
  3531.         if ((i3 == 0) || (i1 == -108)) {
  3532.           this.aK = 3;
  3533.         } else {
  3534.           this.aK -= 1;
  3535.         }
  3536.         if (i1 == -108)
  3537.         {
  3538.           this.bk = true;
  3539.           this.aK = 3;
  3540.         }
  3541.         this.av = this.h;
  3542.         return true;
  3543.       }
  3544.       this.aK = 0;
  3545.       this.aL = 8;
  3546.       this.bc = false;
  3547.     }
  3548.     if ((this.av == 0) && (i1 == -108))
  3549.     {
  3550.       i3 = 0;
  3551.       switch (this.at)
  3552.       {
  3553.       case 0:
  3554.         if (a(-1, 0, false)) {
  3555.           this.ao -= 1;
  3556.         } else {
  3557.           i3 = 1;
  3558.         }
  3559.         break;
  3560.       case 1:
  3561.         if (a(1, 0, false)) {
  3562.           this.ao += 1;
  3563.         } else {
  3564.           i3 = 1;
  3565.         }
  3566.         break;
  3567.       case 2:
  3568.         if (a(0, -1, false)) {
  3569.           this.ap -= 1;
  3570.         } else {
  3571.           i3 = 1;
  3572.         }
  3573.         break;
  3574.       case 3:
  3575.         if (a(0, 1, false)) {
  3576.           this.ap += 1;
  3577.         } else {
  3578.           i3 = 1;
  3579.         }
  3580.         break;
  3581.       default:
  3582.         i3 = 1;
  3583.       }
  3584.       if (i3 == 0)
  3585.       {
  3586.         this.av = this.h;
  3587.         this.bk = true;
  3588.         this.as = 1;
  3589.         if ((!this.bf) && (this.F)) {
  3590.           this.bi = true;
  3591.         }
  3592.         return true;
  3593.       }
  3594.     }
  3595.     if ((!this.dR) && (this.aQ == 0)) {
  3596.       if (this.P)
  3597.       {
  3598.         if (a(-1, 0, false))
  3599.         {
  3600.           this.ao -= 1;
  3601.           this.at = 0;
  3602.           this.av = this.h;
  3603.           if ((!this.bf) && (this.F)) {
  3604.             this.bi = true;
  3605.           }
  3606.           return true;
  3607.         }
  3608.       }
  3609.       else if (this.Q)
  3610.       {
  3611.         if (a(1, 0, false))
  3612.         {
  3613.           this.ao += 1;
  3614.           this.at = 1;
  3615.           this.av = this.h;
  3616.           if ((!this.bf) && (this.F)) {
  3617.             this.bi = true;
  3618.           }
  3619.           return true;
  3620.         }
  3621.       }
  3622.       else if (this.N)
  3623.       {
  3624.         if (a(0, -1, false))
  3625.         {
  3626.           this.ap -= 1;
  3627.           this.at = 2;
  3628.           this.av = this.h;
  3629.           if ((!this.bf) && (this.F)) {
  3630.             this.bi = true;
  3631.           }
  3632.           return true;
  3633.         }
  3634.       }
  3635.       else if ((this.O) && (a(0, 1, false)))
  3636.       {
  3637.         this.ap += 1;
  3638.         this.at = 3;
  3639.         this.av = this.h;
  3640.         if ((!this.bf) && (this.F)) {
  3641.           this.bi = true;
  3642.         }
  3643.         return true;
  3644.       }
  3645.     }
  3646.     return false;
  3647.   }
  3648.  
  3649.   private final byte b(int paramInt1, int paramInt2)
  3650.   {
  3651.     if ((paramInt1 < 0) || (paramInt2 < 0) || (paramInt1 >= this.ds) || (paramInt2 >= this.dt)) {
  3652.       return -1;
  3653.     }
  3654.     return this.cq[paramInt2][paramInt1];
  3655.   }
  3656.  
  3657.   private final byte c(int paramInt1, int paramInt2)
  3658.   {
  3659.     if ((paramInt1 < 0) || (paramInt2 < 0) || (paramInt1 >= this.ds) || (paramInt2 >= this.dt)) {
  3660.       return -1;
  3661.     }
  3662.     return this.cr[paramInt2][paramInt1];
  3663.   }
  3664.  
  3665.   private final boolean a(int paramInt1, int paramInt2, boolean paramBoolean)
  3666.   {
  3667.     int i1 = this.ao + paramInt1;
  3668.     int i2 = this.ap + paramInt2;
  3669.     this.aZ = 0;
  3670.     if ((i1 < 0) || (i2 < 0) || (i1 >= this.ds) || (i2 >= this.dt)) {
  3671.       return false;
  3672.     }
  3673.     if (this.bj) {
  3674.       return true;
  3675.     }
  3676.     int i3 = this.cq[this.ap][this.ao];
  3677.     int i4 = this.cq[i2][i1];
  3678.     int i5 = this.cr[i2][i1];
  3679.     int i6 = 1;
  3680.     if (i3 == -66) {
  3681.       i6 = paramInt1 != 0 ? 1 : 0;
  3682.     } else if (i3 == -67) {
  3683.       i6 = paramInt2 != 0 ? 1 : 0;
  3684.     } else if (i3 == -68) {
  3685.       i6 = (paramInt1 == 1) || (paramInt2 == 1) ? 1 : 0;
  3686.     } else if (i3 == -69) {
  3687.       i6 = (paramInt1 == -1) || (paramInt2 == 1) ? 1 : 0;
  3688.     } else if (i3 == -70) {
  3689.       i6 = (paramInt1 == -1) || (paramInt2 == -1) ? 1 : 0;
  3690.     } else if (i3 == -71) {
  3691.       i6 = (paramInt1 == 1) || (paramInt2 == -1) ? 1 : 0;
  3692.     }
  3693.     if (i6 == 0) {
  3694.       return false;
  3695.     }
  3696.     if ((!this.bf) && (a(this.ao + paramInt1, this.ap + paramInt2))) {
  3697.       return true;
  3698.     }
  3699.     i6 = ((i4 & 0xFF) >= 94) && ((i4 & 0xFF) <= 200) ? 1 : 0;
  3700.     if (i6 != 0)
  3701.     {
  3702.       if (((i4 & 0xFF) >= 185) && ((i4 & 0xFF) <= 190))
  3703.       {
  3704.         if (!this.bf) {
  3705.           switch (i4)
  3706.           {
  3707.           case -71:
  3708.             i6 = (paramInt1 == -1) || (paramInt2 == 1) ? 1 : 0;
  3709.             break;
  3710.           case -70:
  3711.             i6 = (paramInt1 == 1) || (paramInt2 == 1) ? 1 : 0;
  3712.             break;
  3713.           case -69:
  3714.             i6 = (paramInt1 == 1) || (paramInt2 == -1) ? 1 : 0;
  3715.             break;
  3716.           case -68:
  3717.             i6 = (paramInt1 == -1) || (paramInt2 == -1) ? 1 : 0;
  3718.             break;
  3719.           case -67:
  3720.             i6 = paramInt2 != 0 ? 1 : 0;
  3721.             break;
  3722.           case -66:
  3723.             i6 = paramInt1 != 0 ? 1 : 0;
  3724.           }
  3725.         } else {
  3726.           i6 = 0;
  3727.         }
  3728.       }
  3729.       else if (((i4 & 0xFF) >= 177) && ((i4 & 0xFF) <= 180)) {
  3730.         i6 = !this.bf ? 1 : 0;
  3731.       } else if ((i4 == -57) || (i4 == -56))
  3732.       {
  3733.         if (this.bf) {
  3734.           this.bh = true;
  3735.         } else {
  3736.           i6 = 0;
  3737.         }
  3738.       }
  3739.       else if ((i4 == -61) || (i4 == -59)) {
  3740.         i6 = 0;
  3741.       }
  3742.     }
  3743.     else if ((i4 == 77) && (!this.bf)) {
  3744.       if (this.cV)
  3745.       {
  3746.         this.aZ = 32;
  3747.         this.as = 0;
  3748.         if (paramInt1 != 0) {
  3749.           this.at = (paramInt1 < 0 ? 0 : 1);
  3750.         } else {
  3751.           this.at = (paramInt2 < 0 ? 2 : 3);
  3752.         }
  3753.         this.bi = false;
  3754.         this.aK = 0;
  3755.         this.az = 0;
  3756.       }
  3757.       else
  3758.       {
  3759.         this.aV = 3;
  3760.         this.ax = 4;
  3761.       }
  3762.     }
  3763.     if (i6 == 0)
  3764.     {
  3765.       switch (i5)
  3766.       {
  3767.       case -50:
  3768.       case -44:
  3769.       case -34:
  3770.         i6 = !this.bf ? 1 : 0;
  3771.         break;
  3772.       default:
  3773.         i6 = 0;
  3774.       }
  3775.       if (i6 == 0) {
  3776.         return false;
  3777.       }
  3778.     }
  3779.     else
  3780.     {
  3781.       switch (i5)
  3782.       {
  3783.       case -54:
  3784.         i6 = !this.bf ? 1 : 0;
  3785.         break;
  3786.       case -52:
  3787.       case -48:
  3788.       case -47:
  3789.       case -46:
  3790.       case -45:
  3791.       case -41:
  3792.       case -40:
  3793.       case -38:
  3794.       case -37:
  3795.       case -29:
  3796.       case -25:
  3797.       case -7:
  3798.       case -6:
  3799.       case -5:
  3800.       case -4:
  3801.       case -3:
  3802.       case -2:
  3803.         i6 = 0;
  3804.         break;
  3805.       case -51:
  3806.         if (!this.bf)
  3807.         {
  3808.           if ((!this.da) && (this.D[2] == 0))
  3809.           {
  3810.             this.aV = 1;
  3811.             this.ax = 4;
  3812.             i6 = 0;
  3813.           }
  3814.           else
  3815.           {
  3816.             i6 = 1;
  3817.           }
  3818.         }
  3819.         else {
  3820.           i6 = 0;
  3821.         }
  3822.         break;
  3823.       case -36:
  3824.         if (!this.cT)
  3825.         {
  3826.           this.aV = 0;
  3827.           this.ax = 4;
  3828.           i6 = 0;
  3829.         }
  3830.         else
  3831.         {
  3832.           i6 = 1;
  3833.         }
  3834.         break;
  3835.       case -22:
  3836.       case -9:
  3837.         if (this.cR)
  3838.         {
  3839.           int i8 = 0;
  3840.           int i7;
  3841.           String str;
  3842.           if (!this.db)
  3843.           {
  3844.             if (this.D[2] > 0)
  3845.             {
  3846.               i7 = -1;
  3847.               str = this.a[113] + this.a[114];
  3848.             }
  3849.             else if (!this.da)
  3850.             {
  3851.               i7 = 7;
  3852.               if (this.I >= 3)
  3853.               {
  3854.                 str = this.a[113] + this.a[115] + this.I + this.a[116];
  3855.               }
  3856.               else
  3857.               {
  3858.                 str = this.a[113] + this.a[117];
  3859.                 i8 = 1;
  3860.               }
  3861.             }
  3862.             else
  3863.             {
  3864.               i7 = -1;
  3865.               str = this.a[118];
  3866.             }
  3867.           }
  3868.           else
  3869.           {
  3870.             i7 = -1;
  3871.             str = this.a[118];
  3872.           }
  3873.           a(i7, str, this.a[30], i7 != -1 ? this.a[33] : null);
  3874.         }
  3875.         else if (this.bS == 0)
  3876.         {
  3877.           if (this.bR == 1) {
  3878.             a(-1, this.a[100] + this.I + this.a[101], this.a[30], null);
  3879.           } else if (this.bR == 2)
  3880.           {
  3881.             if (this.J > 0) {
  3882.               a(9, this.a[102] + this.J + this.a[103], this.a[32], this.a[33]);
  3883.             } else {
  3884.               a(-1, this.a[102] + this.a[104], this.a[30], null);
  3885.             }
  3886.           }
  3887.           else if (this.bR == 3) {
  3888.             a(-1, this.a[109], this.a[30], null);
  3889.           } else if (this.bR == 4) {
  3890.             a(10, this.a[112], this.a[32], this.a[33]);
  3891.           } else if (this.bR == 5) {
  3892.             a(-1, this.a[110], this.a[30], null);
  3893.           }
  3894.         }
  3895.         i6 = 0;
  3896.         break;
  3897.       case -21:
  3898.         A();
  3899.         i6 = 0;
  3900.         break;
  3901.       case -19:
  3902.         i6 = (this.bf) && ((this.aK > 0) || (paramBoolean)) ? 1 : 0;
  3903.         break;
  3904.       case -12:
  3905.         if (!this.bf)
  3906.         {
  3907.           if (this.cU)
  3908.           {
  3909.             i6 = 1;
  3910.           }
  3911.           else
  3912.           {
  3913.             this.aV = 2;
  3914.             this.ax = 4;
  3915.             i6 = 0;
  3916.           }
  3917.         }
  3918.         else {
  3919.           i6 = 0;
  3920.         }
  3921.         break;
  3922.       case -53:
  3923.       case -50:
  3924.       case -49:
  3925.       case -44:
  3926.       case -43:
  3927.       case -42:
  3928.       case -39:
  3929.       case -35:
  3930.       case -34:
  3931.       case -33:
  3932.       case -32:
  3933.       case -31:
  3934.       case -30:
  3935.       case -28:
  3936.       case -27:
  3937.       case -26:
  3938.       case -24:
  3939.       case -23:
  3940.       case -20:
  3941.       case -18:
  3942.       case -17:
  3943.       case -16:
  3944.       case -15:
  3945.       case -14:
  3946.       case -13:
  3947.       case -11:
  3948.       case -10:
  3949.       case -8:
  3950.       default:
  3951.         i6 = 1;
  3952.       }
  3953.       if (i6 == 0) {
  3954.         return false;
  3955.       }
  3956.     }
  3957.     return true;
  3958.   }
  3959.  
  3960.   private final void K()
  3961.   {
  3962.     int i1 = this.at;
  3963.     int i2 = (this.aK > 0) || (this.bi) ? 6 : 3;
  3964.     this.av -= i2;
  3965.     if (this.at == 6) {
  3966.       i1 = this.au;
  3967.     }
  3968.     switch (i1)
  3969.     {
  3970.     case 0:
  3971.       this.am -= i2;
  3972.       break;
  3973.     case 1:
  3974.       this.am += i2;
  3975.       break;
  3976.     case 2:
  3977.       this.an -= i2;
  3978.       break;
  3979.     case 3:
  3980.       this.an += i2;
  3981.     }
  3982.   }
  3983.  
  3984.   private final boolean L()
  3985.   {
  3986.     if ((!this.bc) || ((this.at <= 3) && (!this.bj) && ((this.aK > 0) || ((this.F) && (!this.bf) && (this.aZ <= 0)))))
  3987.     {
  3988.       this.aA = ((this.aA + 1) % 12);
  3989.       if (this.bf) {
  3990.         this.as = ((this.as + 1) % 2);
  3991.       } else if (this.bj) {
  3992.         this.as = 0;
  3993.       } else if (this.aZ > 0) {
  3994.         this.as = ((this.as + 1) % 9);
  3995.       } else {
  3996.         switch (this.at)
  3997.         {
  3998.         case 0:
  3999.         case 1:
  4000.         case 2:
  4001.         case 3:
  4002.           if (this.av != 0) {
  4003.             if (!this.bk) {
  4004.               this.as = ((this.as + 1) % 8);
  4005.             } else {
  4006.               this.as = 1;
  4007.             }
  4008.           }
  4009.           break;
  4010.         case 4:
  4011.           if (this.bb)
  4012.           {
  4013.             this.as += 1;
  4014.             if (this.as >= 3)
  4015.             {
  4016.               this.as = 1;
  4017.               this.bb = false;
  4018.             }
  4019.           }
  4020.           else
  4021.           {
  4022.             this.as -= 1;
  4023.             if (this.as < 0)
  4024.             {
  4025.               this.as = 1;
  4026.               this.bb = true;
  4027.             }
  4028.           }
  4029.           break;
  4030.         case 5:
  4031.           if (this.as < 7) {
  4032.             this.as += 1;
  4033.           }
  4034.           break;
  4035.         case 6:
  4036.           if (this.bb)
  4037.           {
  4038.             this.as += 1;
  4039.             if (this.as >= 10)
  4040.             {
  4041.               if (this.bS != 0)
  4042.               {
  4043.                 am();
  4044.               }
  4045.               else if (this.bR == 1)
  4046.               {
  4047.                 ae();
  4048.                 this.aL = 0;
  4049.                 this.bL = this.bF;
  4050.                 this.bM = this.bG;
  4051.               }
  4052.               else if (this.bR == 5)
  4053.               {
  4054.                 this.G = true;
  4055.                 g();
  4056.                 this.bS = this.bT;
  4057.                 this.bR = 1;
  4058.                 X();
  4059.                 d(true);
  4060.               }
  4061.               else
  4062.               {
  4063.                 x();
  4064.               }
  4065.               return true;
  4066.             }
  4067.           }
  4068.           else
  4069.           {
  4070.             this.as -= 1;
  4071.             if (this.as < 0)
  4072.             {
  4073.               this.at = 3;
  4074.               this.as = 3;
  4075.               l();
  4076.             }
  4077.           }
  4078.           break;
  4079.         }
  4080.       }
  4081.       if (this.aX != -1) {
  4082.         this.aX = ((byte)((this.aX + 1) % 2));
  4083.       }
  4084.       this.bc = true;
  4085.     }
  4086.     else
  4087.     {
  4088.       this.bc = false;
  4089.     }
  4090.     if ((this.at <= 3) && (this.bk)) {
  4091.       this.as = 1;
  4092.     }
  4093.     return false;
  4094.   }
  4095.  
  4096.   private final void M()
  4097.   {
  4098.     int i6 = 3;
  4099.     for (int i12 = 0; i12 < this.cx; i12++)
  4100.     {
  4101.       byte b1 = this.cA[i12];
  4102.       int i5 = this.cB[i12];
  4103.       int i1 = this.cE[i12];
  4104.       int i2 = this.cF[i12];
  4105.       int i7 = this.cC[i12];
  4106.       int i11 = this.cD[i12];
  4107.       int i10 = 0;
  4108.       int i4;
  4109.       int i3;
  4110.       if (i7 > 0)
  4111.       {
  4112.         i3 = i4 = 0;
  4113.         switch (i5)
  4114.         {
  4115.         case 0:
  4116.           i3 = i11 != 0 ? -6 : -i6;
  4117.           break;
  4118.         case 1:
  4119.           i3 = i11 != 0 ? 6 : i6;
  4120.           break;
  4121.         case 2:
  4122.           i4 = i11 != 0 ? -6 : -i6;
  4123.           break;
  4124.         case 3:
  4125.           i4 = i11 != 0 ? 6 : i6;
  4126.         }
  4127.         if ((i11 == 0) || (!a(i1 + i3, i2 + i4, i12, 4)))
  4128.         {
  4129.           i1 += i3;
  4130.           i2 += i4;
  4131.           this.cE[i12] = ((short)i1);
  4132.           this.cF[i12] = ((short)i2);
  4133.           if (this.aw == i12)
  4134.           {
  4135.             this.am += i3;
  4136.             this.an += i4;
  4137.             this.ao = (this.am / this.h);
  4138.             this.ap = (this.an / this.i);
  4139.           }
  4140.           i7 -= (i11 != 0 ? 6 : i6);
  4141.         }
  4142.       }
  4143.       if ((i12 == this.aB) && (this.aQ > 1))
  4144.       {
  4145.         d(i1, i2);
  4146.         this.aQ -= 1;
  4147.       }
  4148.       if (i7 <= 0)
  4149.       {
  4150.         i4 = i2 / this.i;
  4151.         i3 = i1 / this.h;
  4152.         int i8 = this.cq[i4][i3];
  4153.         int i9 = this.cr[i4][i3];
  4154.         i7 = 0;
  4155.         i11 = 0;
  4156.         if (b1 == -20)
  4157.         {
  4158.           if (i8 == 90)
  4159.           {
  4160.             if ((a(i3 - 1, i4, 0, b1)) && (!a(i1 - this.h, i2, i12, 0)))
  4161.             {
  4162.               i5 = 0;
  4163.               i7 = this.h;
  4164.             }
  4165.           }
  4166.           else if (i8 == 89)
  4167.           {
  4168.             if ((a(i3 + 1, i4, 1, b1)) && (!a(i1 + this.h, i2, i12, 1)))
  4169.             {
  4170.               i5 = 1;
  4171.               i7 = this.h;
  4172.             }
  4173.           }
  4174.           else if (i8 == 88)
  4175.           {
  4176.             if ((a(i3, i4 - 1, 2, b1)) && (!a(i1, i2 - this.i, i12, 2)))
  4177.             {
  4178.               i5 = 2;
  4179.               i7 = this.i;
  4180.             }
  4181.           }
  4182.           else if (i8 == 87)
  4183.           {
  4184.             if ((a(i3, i4 + 1, 3, b1)) && (!a(i1, i2 + this.i, i12, 3)))
  4185.             {
  4186.               i5 = 3;
  4187.               i7 = this.i;
  4188.             }
  4189.           }
  4190.           else if (((i8 == 91) || (i8 == 92) || (i8 == 93)) && (a(i3, i4 + 1, 3, b1)) && (!a(i1, i2 + this.i, i12, 3)))
  4191.           {
  4192.             i5 = 3;
  4193.             i7 = this.i;
  4194.             i11 = 1;
  4195.           }
  4196.         }
  4197.         else if (((b1 == -32) && (i9 == -16)) || ((b1 == -31) && (i9 == -15)) || ((b1 == -30) && (i9 == -14)))
  4198.         {
  4199.           i10 = 1;
  4200.         }
  4201.         else if ((this.aQ == 0) || ((this.bL == this.bF) && (this.bM == this.bG)) || (this.aB != -1))
  4202.         {
  4203.           if ((this.cW) && (i5 != 2) && (i3 == this.cG) && (i4 >= this.cH - 3) && (i4 <= this.cH - 1) && (a(i3, i4 - 1, 2, b1)) && (!a(i1, i2 - this.i, i12, 2)))
  4204.           {
  4205.             i5 = 2;
  4206.             i7 = this.i;
  4207.           }
  4208.           else if ((this.cX) && (i5 != 3) && (i3 == this.cI) && (i4 >= this.cJ + 1) && (i4 <= this.cJ + 3) && (a(i3, i4 + 1, 3, b1)) && (!a(i1, i2 + this.i, i12, 3)))
  4209.           {
  4210.             i5 = 3;
  4211.             i7 = this.i;
  4212.           }
  4213.           else if ((this.cY) && (i5 != 0) && (i4 == this.cL) && (i3 >= this.cK - 3) && (i3 <= this.cK - 1) && (a(i3 - 1, i4, 0, b1)) && (!a(i1 - this.h, i2, i12, 0)))
  4214.           {
  4215.             i5 = 0;
  4216.             i7 = this.h;
  4217.           }
  4218.           else if ((this.cZ) && (i5 != 1) && (i4 == this.cN) && (i3 >= this.cM + 1) && (i3 <= this.cM + 3) && (a(i3 + 1, i4, 1, b1)) && (!a(i1 + this.h, i2, i12, 1)))
  4219.           {
  4220.             i5 = 1;
  4221.             i7 = this.h;
  4222.           }
  4223.           if ((i7 != 0) && (this.aW == i5))
  4224.           {
  4225.             this.aW = -1;
  4226.             this.aB = i12;
  4227.             this.aQ = 64;
  4228.             d(i3 * this.h, i4 * this.i);
  4229.           }
  4230.         }
  4231.         if ((i10 == 0) && (i7 == 0)) {
  4232.           switch (i5)
  4233.           {
  4234.           case 0:
  4235.             if ((a(i3 - 1, i4, 0, b1)) && (!a(i1 - this.h, i2, i12, 0))) {
  4236.               i7 = this.h;
  4237.             }
  4238.             break;
  4239.           case 1:
  4240.             if ((a(i3 + 1, i4, 1, b1)) && (!a(i1 + this.h, i2, i12, 1))) {
  4241.               i7 = this.h;
  4242.             }
  4243.             break;
  4244.           case 2:
  4245.             if ((a(i3, i4 - 1, 2, b1)) && (!a(i1, i2 - this.i, i12, 2))) {
  4246.               i7 = this.i;
  4247.             }
  4248.             break;
  4249.           case 3:
  4250.             if ((a(i3, i4 + 1, 3, b1)) && (!a(i1, i2 + this.i, i12, 3))) {
  4251.               i7 = this.i;
  4252.             }
  4253.             break;
  4254.           }
  4255.         }
  4256.         if (i7 == 0) {
  4257.           i5 = 4;
  4258.         }
  4259.       }
  4260.       this.cC[i12] = ((byte)i7);
  4261.       this.cB[i12] = ((byte)i5);
  4262.       this.cD[i12] = i11;
  4263.     }
  4264.   }
  4265.  
  4266.   private final boolean a(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  4267.   {
  4268.     for (int i4 = 0; i4 < this.cx; i4++) {
  4269.       if (i4 != paramInt3) {
  4270.         if (paramInt3 != -1)
  4271.         {
  4272.           if ((this.cB[i4] != paramInt4) && (b(paramInt1, paramInt2, this.cE[i4], this.cF[i4]))) {
  4273.             return true;
  4274.           }
  4275.         }
  4276.         else
  4277.         {
  4278.           int i1 = this.cC[i4];
  4279.           int i2 = this.cE[i4];
  4280.           int i3 = this.cF[i4];
  4281.           switch (this.cB[i4])
  4282.           {
  4283.           case 0:
  4284.             i2 = (short)(i2 - i1);
  4285.             break;
  4286.           case 1:
  4287.             i2 = (short)(i2 + i1);
  4288.             break;
  4289.           case 2:
  4290.             i3 = (short)(i3 - i1);
  4291.             break;
  4292.           case 3:
  4293.             i3 = (short)(i3 + i1);
  4294.           }
  4295.           if (b(paramInt1, paramInt2, i2, i3)) {
  4296.             return true;
  4297.           }
  4298.         }
  4299.       }
  4300.     }
  4301.     return false;
  4302.   }
  4303.  
  4304.   private final boolean b(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  4305.   {
  4306.     int i1 = paramInt1 + this.h - 1;
  4307.     int i2 = paramInt3 + this.h - 1;
  4308.     int i3 = paramInt2 + this.i - 1;
  4309.     int i4 = paramInt4 + this.i - 1;
  4310.     if (i3 < paramInt4) {
  4311.       return false;
  4312.     }
  4313.     if (paramInt2 > i4) {
  4314.       return false;
  4315.     }
  4316.     if (i1 < paramInt3) {
  4317.       return false;
  4318.     }
  4319.     return paramInt1 <= i2;
  4320.   }
  4321.  
  4322.   private final boolean a(int paramInt1, int paramInt2, int paramInt3, byte paramByte)
  4323.   {
  4324.     if ((paramInt1 < 0) || (paramInt2 < 0) || (paramInt1 >= this.ds) || (paramInt2 >= this.dt)) {
  4325.       return false;
  4326.     }
  4327.     int i1 = this.cr[paramInt2][paramInt1];
  4328.     switch (i1)
  4329.     {
  4330.     case -44:
  4331.     case -43:
  4332.     case -42:
  4333.     case -29:
  4334.     case -28:
  4335.     case -27:
  4336.     case -26:
  4337.     case -19:
  4338.     case -7:
  4339.     case -6:
  4340.     case -5:
  4341.     case -4:
  4342.     case -3:
  4343.     case -2:
  4344.       return false;
  4345.     }
  4346.     i1 = this.cq[paramInt2][paramInt1];
  4347.     if (paramByte == -20)
  4348.     {
  4349.       switch (i1)
  4350.       {
  4351.       case 88:
  4352.         return paramInt3 != 3;
  4353.       case 87:
  4354.         return paramInt3 != 2;
  4355.       case 90:
  4356.         return paramInt3 != 1;
  4357.       case 89:
  4358.         return paramInt3 != 0;
  4359.       case 85:
  4360.       case 86:
  4361.         return true;
  4362.       case 91:
  4363.       case 92:
  4364.       case 93:
  4365.         return paramInt3 != 2;
  4366.       }
  4367.     }
  4368.     else
  4369.     {
  4370.       switch (paramInt3)
  4371.       {
  4372.       case 0:
  4373.         if ((this.cZ) && (paramInt2 == this.cN) && (paramInt1 >= this.cM + 1) && (paramInt1 <= this.cM + 3)) {
  4374.           return false;
  4375.         }
  4376.         break;
  4377.       case 1:
  4378.         if ((this.cY) && (paramInt2 == this.cL) && (paramInt1 >= this.cK - 3) && (paramInt1 <= this.cK - 1)) {
  4379.           return false;
  4380.         }
  4381.         break;
  4382.       case 2:
  4383.         if ((this.cX) && (paramInt1 == this.cI) && (paramInt2 >= this.cJ + 1) && (paramInt2 <= this.cJ + 3)) {
  4384.           return false;
  4385.         }
  4386.         break;
  4387.       case 3:
  4388.         if ((this.cW) && (paramInt1 == this.cG) && (paramInt2 >= this.cH - 3) && (paramInt2 <= this.cH - 1)) {
  4389.           return false;
  4390.         }
  4391.         break;
  4392.       }
  4393.       if (((i1 & 0xFF) >= 71) && ((i1 & 0xFF) <= 76)) {
  4394.         return true;
  4395.       }
  4396.     }
  4397.     return false;
  4398.   }
  4399.  
  4400.   private final void N()
  4401.   {
  4402.     this.bs = ((byte)((this.bs + 1) % 8));
  4403.     this.aQ = 16;
  4404.     d(this.dl, this.dm);
  4405.     if (this.dr == 3)
  4406.     {
  4407.       i1 = this.dl / this.h;
  4408.       int i2 = this.dm / this.i;
  4409.       if ((i1 < 0) || (i2 < 0) || (i1 >= this.ds) || (i2 >= this.dt))
  4410.       {
  4411.         this.jdField_do = -1;
  4412.         return;
  4413.       }
  4414.       int i3 = this.cq[i2][i1];
  4415.       int i4 = this.cr[i2][i1];
  4416.       int i5 = (((i3 & 0xFF) >= 94) && ((i3 & 0xFF) <= 200)) || (((i3 & 0xFF) >= 85) && ((i3 & 0xFF) <= 93)) || (((i3 & 0xFF) >= 71) && ((i3 & 0xFF) <= 76)) ? 1 : 0;
  4417.       if (i5 != 0) {
  4418.         switch (i3)
  4419.         {
  4420.         case -61:
  4421.         case -59:
  4422.           i5 = 0;
  4423.         }
  4424.       }
  4425.       if (i5 != 0) {
  4426.         switch (i4)
  4427.         {
  4428.         case -41:
  4429.         case -40:
  4430.           i5 = 0;
  4431.           break;
  4432.         case -29:
  4433.           b((byte)i1, (byte)i2);
  4434.           break;
  4435.         case -19:
  4436.           i5 = 0;
  4437.         }
  4438.       }
  4439.       if (i5 != 0) {
  4440.         switch (i3)
  4441.         {
  4442.         case -79:
  4443.           if (this.dp == 0) {
  4444.             this.dq = 3;
  4445.           } else if (this.dp == 2) {
  4446.             this.dq = 1;
  4447.           } else {
  4448.             i5 = 0;
  4449.           }
  4450.           break;
  4451.         case -78:
  4452.           if (this.dp == 1) {
  4453.             this.dq = 3;
  4454.           } else if (this.dp == 2) {
  4455.             this.dq = 0;
  4456.           } else {
  4457.             i5 = 0;
  4458.           }
  4459.           break;
  4460.         case -77:
  4461.           if (this.dp == 0) {
  4462.             this.dq = 2;
  4463.           } else if (this.dp == 3) {
  4464.             this.dq = 1;
  4465.           } else {
  4466.             i5 = 0;
  4467.           }
  4468.           break;
  4469.         case -76:
  4470.           if (this.dp == 1) {
  4471.             this.dq = 2;
  4472.           } else if (this.dp == 3) {
  4473.             this.dq = 0;
  4474.           } else {
  4475.             i5 = 0;
  4476.           }
  4477.           break;
  4478.         }
  4479.       }
  4480.       if (i5 == 0) {
  4481.         this.jdField_do = -1;
  4482.       }
  4483.     }
  4484.     else if (this.dr == 0)
  4485.     {
  4486.       this.dr = 8;
  4487.       if (this.dq != -1)
  4488.       {
  4489.         this.dp = this.dq;
  4490.         this.dq = -1;
  4491.       }
  4492.     }
  4493.     this.dr = ((byte)(this.dr - 1));
  4494.     int i1 = 6;
  4495.     switch (this.dp)
  4496.     {
  4497.     case 0:
  4498.       this.dl -= i1;
  4499.       break;
  4500.     case 1:
  4501.       this.dl += i1;
  4502.       break;
  4503.     case 2:
  4504.       this.dm -= i1;
  4505.       break;
  4506.     default:
  4507.       this.dm += i1;
  4508.     }
  4509.   }
  4510.  
  4511.   private final void b(byte paramByte1, byte paramByte2)
  4512.   {
  4513.     if (this.dn >= 5)
  4514.     {
  4515.       this.cr[this.di[0]][this.dh[0]] = -1;
  4516.       for (int i1 = 0; i1 < this.dn - 1; i1++)
  4517.       {
  4518.         this.dh[i1] = this.dh[(i1 + 1)];
  4519.         this.di[i1] = this.di[(i1 + 1)];
  4520.         this.dj[i1] = this.dj[(i1 + 1)];
  4521.       }
  4522.       this.dn -= 1;
  4523.     }
  4524.     this.dh[this.dn] = paramByte1;
  4525.     this.di[this.dn] = paramByte2;
  4526.     this.dj[this.dn] = 6;
  4527.     this.dn += 1;
  4528.     this.cr[paramByte2][paramByte1] = -28;
  4529.     f(this.bF, this.bG);
  4530.   }
  4531.  
  4532.   private final void O()
  4533.   {
  4534.     int i1 = 0;
  4535.     int i6 = 0;
  4536.     while (i1 < this.dn)
  4537.     {
  4538.       int i5 = this.dj[i1];
  4539.       if (i5 <= 0)
  4540.       {
  4541.         int i2 = this.dh[i1];
  4542.         int i3 = this.di[i1];
  4543.         int i4 = this.cr[i3][i2];
  4544.         int i7 = 0;
  4545.         i6 = 1;
  4546.         switch (i4)
  4547.         {
  4548.         case -28:
  4549.           i4 = -27;
  4550.           break;
  4551.         case -27:
  4552.           i4 = -26;
  4553.           break;
  4554.         case -26:
  4555.           i4 = -1;
  4556.           i7 = 1;
  4557.         }
  4558.         this.dj[i1] = 6;
  4559.         this.cr[i3][i2] = i4;
  4560.         if (i7 != 0)
  4561.         {
  4562.           for (int i8 = i1; i8 < this.dn - 1; i8++)
  4563.           {
  4564.             this.dh[i8] = this.dh[(i8 + 1)];
  4565.             this.di[i8] = this.di[(i8 + 1)];
  4566.             this.dj[i8] = this.dj[(i8 + 1)];
  4567.           }
  4568.           this.dn -= 1;
  4569.           i1--;
  4570.         }
  4571.       }
  4572.       else
  4573.       {
  4574.         this.dj[i1] = ((byte)(i5 - 1));
  4575.       }
  4576.       i1++;
  4577.     }
  4578.     if (i6 != 0) {
  4579.       f(this.bF, this.bG);
  4580.     }
  4581.   }
  4582.  
  4583.   private final void P()
  4584.   {
  4585.     int i1 = 0;
  4586.     int i7 = 0;
  4587.     while (i1 < this.dk)
  4588.     {
  4589.       int i6 = this.dg[i1];
  4590.       if (i6 <= 0)
  4591.       {
  4592.         int i2 = this.dd[i1];
  4593.         int i3 = this.de[i1];
  4594.         int i4 = this.df[i1];
  4595.         int i8 = 1;
  4596.         if ((i3 - i4 >= 0) && (this.cr[(i3 - i4)][i2] == -1))
  4597.         {
  4598.           int i5 = this.cq[(i3 - i4)][i2];
  4599.           if (((i5 & 0xFF) >= 0) && ((i5 & 0xFF) <= 93))
  4600.           {
  4601.             this.cr[(i3 - i4 + 1)][i2] = -34;
  4602.             if (i4 <= 1) {
  4603.               this.cr[i3][i2] = -18;
  4604.             }
  4605.             this.cr[(i3 - i4)][i2] = -50;
  4606.             this.df[i1] = ((byte)(i4 + 1));
  4607.             this.dg[i1] = 16;
  4608.             i8 = 0;
  4609.             i7 = 1;
  4610.           }
  4611.         }
  4612.         if (i8 != 0)
  4613.         {
  4614.           for (int i9 = i1; i9 < this.dk - 1; i9++)
  4615.           {
  4616.             this.dd[i9] = this.dd[(i9 + 1)];
  4617.             this.de[i9] = this.de[(i9 + 1)];
  4618.             this.dg[i9] = this.dg[(i9 + 1)];
  4619.           }
  4620.           this.dk -= 1;
  4621.           i1--;
  4622.         }
  4623.       }
  4624.       else
  4625.       {
  4626.         this.dg[i1] = ((byte)(i6 - 1));
  4627.       }
  4628.       i1++;
  4629.     }
  4630.     if (i7 != 0) {
  4631.       f(this.bF, this.bG);
  4632.     }
  4633.   }
  4634.  
  4635.   private final void Q()
  4636.   {
  4637.     int i1 = 48;
  4638.     if (this.cc < this.bG) {
  4639.       i1 -= 24;
  4640.     } else if (this.cc > this.bG) {
  4641.       i1 += 24;
  4642.     }
  4643.     for (int i2 = 0; i2 < 5; i2++)
  4644.     {
  4645.       if (this.ce[i2] >> this.r > this.v)
  4646.       {
  4647.         this.cd[i2] = (b(this.u) << this.r);
  4648.         this.ce[i2] = (-(b(10) << this.r));
  4649.       }
  4650.       this.cd[i2] += (b(3) - 1 << this.r);
  4651.       this.ce[i2] += i1;
  4652.     }
  4653.     this.cc = this.bG;
  4654.   }
  4655.  
  4656.   private final void R()
  4657.   {
  4658.     if (this.by)
  4659.     {
  4660.       this.bx = ((byte)(this.bx + 1));
  4661.       if (this.bx >= 8)
  4662.       {
  4663.         this.by = false;
  4664.         this.bx = 8;
  4665.       }
  4666.     }
  4667.     else
  4668.     {
  4669.       this.bx = ((byte)(this.bx - 1));
  4670.       if (this.bx <= 0)
  4671.       {
  4672.         this.by = true;
  4673.         this.bx = 0;
  4674.       }
  4675.     }
  4676.     int i1 = this.bt >> this.r;
  4677.     int i2 = this.bu >> this.r;
  4678.     if (i1 == this.bv) {
  4679.       this.bv = b(this.aq + 1 - 24);
  4680.     }
  4681.     if (i2 == this.bw) {
  4682.       this.bw = b(this.ar + 1 - 24);
  4683.     }
  4684.     int i3 = b(48);
  4685.     this.bt += (i1 < this.bv ? i3 : -i3);
  4686.     i3 = b(24);
  4687.     this.bu += (i2 < this.bw ? i3 : -i3);
  4688.   }
  4689.  
  4690.   private final void S()
  4691.   {
  4692.     if (this.bD == 0)
  4693.     {
  4694.       this.bz = ((this.bz + 1) % 8);
  4695.       this.bA = ((this.bA + 1) % 6);
  4696.       this.bB = ((this.bB + 1) % 4);
  4697.       this.bC = ((this.bC + 1) % 3);
  4698.       int i1;
  4699.       for (int i3 = 0; i3 < 3; i3++)
  4700.       {
  4701.         int i5 = (byte)(this.ab[i3] + 1);
  4702.         if ((i5 == 0) || (i5 >= 8))
  4703.         {
  4704.           i1 = b(this.u) + this.bF;
  4705.           i2 = b(this.v) + this.bG;
  4706.           if (c(i1 / this.h, i2 / this.i) == -1)
  4707.           {
  4708.             int i4 = b(i1 / this.h, i2 / this.i) & 0xFF;
  4709.             if ((i4 < 71) || (i4 > 76)) {
  4710.               i5 = -1;
  4711.             }
  4712.           }
  4713.           else
  4714.           {
  4715.             i5 = -1;
  4716.           }
  4717.           this.Z[i3] = ((short)i1);
  4718.           this.aa[i3] = ((short)i2);
  4719.         }
  4720.         this.ab[i3] = i5;
  4721.       }
  4722.       for (int i2 = 0; i2 < this.dB; i2++) {
  4723.         for (i1 = 0; i1 < this.dA; i1++)
  4724.         {
  4725.           boolean bool = false;
  4726.           byte b1 = this.dD[i2][i1];
  4727.           byte b2 = this.dE[i2][i1];
  4728.           switch (b1)
  4729.           {
  4730.           case -75:
  4731.           case -74:
  4732.           case -73:
  4733.           case -72:
  4734.           case 86:
  4735.           case 87:
  4736.           case 88:
  4737.           case 89:
  4738.           case 90:
  4739.           case 91:
  4740.           case 92:
  4741.           case 93:
  4742.             bool = true;
  4743.             break;
  4744.           case -106:
  4745.             if (this.cy == 0) {
  4746.               bool = true;
  4747.             }
  4748.             break;
  4749.           }
  4750.           if (!bool) {
  4751.             switch (b2)
  4752.             {
  4753.             case -48:
  4754.               bool = this.cW;
  4755.               break;
  4756.             case -47:
  4757.               bool = this.cX;
  4758.               break;
  4759.             case -46:
  4760.               bool = this.cY;
  4761.               break;
  4762.             case -45:
  4763.               bool = this.cZ;
  4764.               break;
  4765.             case -12:
  4766.               bool = true;
  4767.               break;
  4768.             case -8:
  4769.               bool = this.bE;
  4770.             }
  4771.           }
  4772.           if (bool) {
  4773.             a(b1, b2, i1 * this.h, i2 * this.i);
  4774.           }
  4775.         }
  4776.       }
  4777.     }
  4778.     if (this.bB == 0) {
  4779.       if (this.bE) {
  4780.         this.bE = false;
  4781.       } else if (b(7) == 0) {
  4782.         this.bE = true;
  4783.       }
  4784.     }
  4785.     this.bD += 1;
  4786.     if (this.bD >= 4) {
  4787.       this.bD = 0;
  4788.     }
  4789.   }
  4790.  
  4791.   private final void T()
  4792.   {
  4793.     this.bJ = 0;
  4794.     this.bK = 0;
  4795.     d(this.am, this.an);
  4796.     this.bN = (this.bO = 0);
  4797.     this.bP = (this.bQ = 0);
  4798.     this.ba = true;
  4799.     V();
  4800.   }
  4801.  
  4802.   private final void d(int paramInt1, int paramInt2)
  4803.   {
  4804.     this.bL = (paramInt1 + this.j - (this.du >> 1) + this.bJ);
  4805.     this.bM = (paramInt2 + this.k - (this.dv >> 1) + this.bK);
  4806.     U();
  4807.   }
  4808.  
  4809.   private final void U()
  4810.   {
  4811.     if (this.bL < 0) {
  4812.       this.bL = 0;
  4813.     } else if (this.bL > this.bH) {
  4814.       this.bL = this.bH;
  4815.     }
  4816.     if (this.bM < 0) {
  4817.       this.bM = 0;
  4818.     } else if (this.bM > this.bI) {
  4819.       this.bM = this.bI;
  4820.     }
  4821.   }
  4822.  
  4823.   private final void V()
  4824.   {
  4825.     int i1 = this.bL - this.bF;
  4826.     int i2 = this.bM - this.bG;
  4827.     int i3 = 1;
  4828.     int i4 = 1;
  4829.     if (i1 < 0)
  4830.     {
  4831.       i1 = -i1;
  4832.       i3 = 0;
  4833.     }
  4834.     if (i2 < 0)
  4835.     {
  4836.       i2 = -i2;
  4837.       i4 = 0;
  4838.     }
  4839.     if (i1 != 0)
  4840.     {
  4841.       if (i1 > this.bP + this.bN)
  4842.       {
  4843.         if (this.bN < ((this.ba) || (this.dR) || (this.aQ > 0) ? 24 : 6))
  4844.         {
  4845.           this.bN += 1;
  4846.           this.bP += this.bN;
  4847.         }
  4848.       }
  4849.       else if ((i1 < this.bP + this.bN) && (this.bN > 1))
  4850.       {
  4851.         this.bP -= this.bN;
  4852.         this.bN -= 1;
  4853.       }
  4854.     }
  4855.     else {
  4856.       this.bN = (this.bP = 0);
  4857.     }
  4858.     if (i2 != 0)
  4859.     {
  4860.       if (i2 > this.bQ + this.bO)
  4861.       {
  4862.         if (this.bO < ((this.ba) || (this.dR) || (this.aQ > 0) ? 24 : 6))
  4863.         {
  4864.           this.bO += 1;
  4865.           this.bQ += this.bO;
  4866.         }
  4867.       }
  4868.       else if ((i2 < this.bQ + this.bO) && (this.bO > 1))
  4869.       {
  4870.         this.bQ -= this.bO;
  4871.         this.bO -= 1;
  4872.       }
  4873.     }
  4874.     else {
  4875.       this.bO = (this.bQ = 0);
  4876.     }
  4877.     if (i1 - this.bN < 0) {
  4878.       this.bN = i1;
  4879.     }
  4880.     if (i2 - this.bO < 0) {
  4881.       this.bO = i2;
  4882.     }
  4883.     this.bF += (i3 != 0 ? this.bN : -this.bN);
  4884.     this.bG += (i4 != 0 ? this.bO : -this.bO);
  4885.     g(this.bF, this.bG);
  4886.     if ((this.ba) && (this.bL == this.bF) && (this.bM == this.bG)) {
  4887.       this.ba = false;
  4888.     }
  4889.   }
  4890.  
  4891.   private final void W()
  4892.   {
  4893.     for (int i1 = 0; i1 < this.co.length; i1++) {
  4894.       this.co[i1] = a(this.co[i1], "/b" + i1 + ".png");
  4895.     }
  4896.     this.cp = a(this.cp, "/ta.png");
  4897.     this.ci = a(this.ci, "/hud.png");
  4898.     this.cm = a(this.cm, "/bf.png");
  4899.     this.cn = a(this.cn, "/alarm.png");
  4900.   }
  4901.  
  4902.   private final void c(boolean paramBoolean)
  4903.   {
  4904.     for (int i1 = 0; i1 < (paramBoolean ? 9 : 10); i1++) {
  4905.       this.co[i1] = null;
  4906.     }
  4907.     if (!paramBoolean) {
  4908.       this.cp = null;
  4909.     }
  4910.     this.cm = null;
  4911.     this.cn = null;
  4912.   }
  4913.  
  4914.   private final void X()
  4915.   {
  4916.     W();
  4917.     Y();
  4918.   }
  4919.  
  4920.   private final void Y()
  4921.   {
  4922.     this.X = false;
  4923.     b(true, -1);
  4924.     this.cG = (this.cI = this.cK = this.cM = -1);
  4925.     this.cW = (this.cX = this.cY = this.cZ = 0);
  4926.     this.cO = -1;
  4927.     this.dl = -1;
  4928.     this.jdField_do = -1;
  4929.     this.cS = false;
  4930.     if (this.bS == 0) {
  4931.       this.F = (this.E = 0);
  4932.     }
  4933.     e(this.bS, this.bR);
  4934.     ab();
  4935.     if (this.cS) {
  4936.       for (i1 = 0; i1 < 5; i1++)
  4937.       {
  4938.         this.cd[i1] = (b(this.u) << this.r);
  4939.         this.ce[i1] = (b(this.v) << this.r);
  4940.       }
  4941.     }
  4942.     this.bv = (b(2) == 0 ? -24 : this.aq + 1);
  4943.     this.bw = b(this.ar + 1 - 24);
  4944.     this.bt = (this.bv << this.r);
  4945.     this.bu = (this.bw << this.r);
  4946.     this.bn = -1;
  4947.     this.bU = 0;
  4948.     this.da = (this.dc = 0);
  4949.     this.db = false;
  4950.     this.cz = 0;
  4951.     this.bY = true;
  4952.     this.bW = 0L;
  4953.     this.bz = 0;
  4954.     this.bA = 0;
  4955.     this.bB = 0;
  4956.     this.bC = 0;
  4957.     this.dQ = false;
  4958.     this.av = 0;
  4959.     this.at = 6;
  4960.     this.bb = false;
  4961.     this.bc = false;
  4962.     this.as = 9;
  4963.     this.bd = false;
  4964.     this.cT = (this.cU = this.cV = this.be = 0);
  4965.     this.aK = 0;
  4966.     this.aL = 0;
  4967.     this.aw = -1;
  4968.     this.bf = false;
  4969.     this.bg = false;
  4970.     this.bj = false;
  4971.     this.aY = 0;
  4972.     this.bk = (this.bl = 0);
  4973.     this.aU = 0;
  4974.     this.bh = false;
  4975.     this.aZ = 0;
  4976.     this.bi = false;
  4977.     this.ax = 0;
  4978.     this.az = 0;
  4979.     this.aT = 0;
  4980.     this.aX = -1;
  4981.     this.aQ = 0;
  4982.     this.aX = -1;
  4983.     this.aW = -1;
  4984.     this.aB = -1;
  4985.     this.aC = -1;
  4986.     this.aO = -1;
  4987.     this.aE = -1;
  4988.     this.aR = -1;
  4989.     this.aG = (this.aI = -1);
  4990.     for (int i1 = 0; i1 < 5; i1++) {
  4991.       this.ab[i1] = ((byte)(-b(8) - 1));
  4992.     }
  4993.     this.aq = (this.ds * this.h - 1);
  4994.     this.ar = (this.dt * this.i - 1);
  4995.     this.bH = (this.aq - this.du);
  4996.     this.bI = (this.ar - this.dv);
  4997.     if (this.bH < 0) {
  4998.       this.bH = 0;
  4999.     }
  5000.     if (this.bI < 0) {
  5001.       this.bI = 0;
  5002.     }
  5003.     this.dR = false;
  5004.     this.ba = false;
  5005.     this.bJ = 0;
  5006.     this.bK = 0;
  5007.     d(this.am, this.an);
  5008.     this.bF = this.bL;
  5009.     this.bG = this.bM;
  5010.     ad();
  5011.     f(this.bF, this.bG);
  5012.     String str;
  5013.     if (this.bS != 0)
  5014.     {
  5015.       if ((this.bR == 11) || (this.bR == 12)) {
  5016.         str = this.a[42];
  5017.       } else {
  5018.         str = this.a[39] + this.bS + '-' + this.bR;
  5019.       }
  5020.     }
  5021.     else {
  5022.       switch (this.bR)
  5023.       {
  5024.       case 1:
  5025.         str = this.a[22];
  5026.         break;
  5027.       case 2:
  5028.         str = this.a[40];
  5029.         break;
  5030.       case 3:
  5031.         str = this.a[41];
  5032.         break;
  5033.       case 4:
  5034.         str = this.a[42];
  5035.         break;
  5036.       default:
  5037.         str = this.a[43];
  5038.       }
  5039.     }
  5040.     a((byte)75, str, (byte)1);
  5041.     b(F());
  5042.   }
  5043.  
  5044.   private final void a(byte paramByte1, String paramString, byte paramByte2)
  5045.   {
  5046.     this.ec = paramByte1;
  5047.     this.ee = paramString;
  5048.     this.ed = paramByte2;
  5049.   }
  5050.  
  5051.   private final Image a(Image paramImage, String paramString)
  5052.   {
  5053.     if (paramImage != null) {
  5054.       return paramImage;
  5055.     }
  5056.     try
  5057.     {
  5058.       return Image.createImage(paramString);
  5059.     }
  5060.     catch (Throwable localThrowable)
  5061.     {
  5062.       c();
  5063.     }
  5064.     return null;
  5065.   }
  5066.  
  5067.   private final void Z()
  5068.   {
  5069.     this.cq = ((byte[][])null);
  5070.     this.cr = ((byte[][])null);
  5071.     this.cA = null;
  5072.     this.cB = null;
  5073.     this.cC = null;
  5074.     this.cE = null;
  5075.     this.cF = null;
  5076.     this.cD = null;
  5077.     this.dd = null;
  5078.     this.de = null;
  5079.     this.df = null;
  5080.     this.dg = null;
  5081.   }
  5082.  
  5083.   private final void aa()
  5084.   {
  5085.     int i2 = 0;
  5086.     for (int i1 = 1; i1 <= 4; i1++)
  5087.     {
  5088.       d(i1);
  5089.       this.cv[i2] = this.cs;
  5090.       this.cw[i2] = this.cu;
  5091.       i2++;
  5092.     }
  5093.   }
  5094.  
  5095.   private final void d(int paramInt)
  5096.   {
  5097.     int i1 = 1;
  5098.     if (this.y.compareTo("DE") == 0) {
  5099.       i1 = 0;
  5100.     } else if (this.y.compareTo("EN") == 0) {
  5101.       i1 = 1;
  5102.     } else if (this.y.compareTo("FR") == 0) {
  5103.       i1 = 2;
  5104.     } else if (this.y.compareTo("IT") == 0) {
  5105.       i1 = 3;
  5106.     } else if (this.y.compareTo("SP") == 0) {
  5107.       i1 = 4;
  5108.     } else if (this.y.compareTo("PG") == 0) {
  5109.       i1 = 5;
  5110.     }
  5111.     try
  5112.     {
  5113.       InputStream localInputStream = getClass().getResourceAsStream((paramInt < 10 ? "0" : "") + paramInt + ".dat");
  5114.       DataInputStream localDataInputStream = new DataInputStream(localInputStream);
  5115.       localDataInputStream.readShort();
  5116.       this.cu = localDataInputStream.readByte();
  5117.       for (int i2 = 0; i2 <= i1; i2++)
  5118.       {
  5119.         this.cs = localDataInputStream.readUTF();
  5120.         this.ct = localDataInputStream.readUTF();
  5121.       }
  5122.       localDataInputStream.close();
  5123.       localDataInputStream = null;
  5124.     }
  5125.     catch (Exception localException)
  5126.     {
  5127.       c();
  5128.     }
  5129.   }
  5130.  
  5131.   private final void e(int paramInt1, int paramInt2)
  5132.   {
  5133.     Z();
  5134.     this.bV = 0;
  5135.     try
  5136.     {
  5137.       InputStream localInputStream = getClass().getResourceAsStream((paramInt1 < 10 ? "0" : "") + paramInt1 + ".dat");
  5138.       DataInputStream localDataInputStream = new DataInputStream(localInputStream);
  5139.       for (int i1 = 0; i1 < paramInt2; i1++)
  5140.       {
  5141.         i4 = localDataInputStream.readShort();
  5142.         for (;;)
  5143.         {
  5144.           int i8 = localDataInputStream.skipBytes(i4);
  5145.           if (i8 >= i4) {
  5146.             break;
  5147.           }
  5148.           i4 -= i8;
  5149.         }
  5150.       }
  5151.       localDataInputStream.readShort();
  5152.       this.ds = localDataInputStream.readByte();
  5153.       this.dt = localDataInputStream.readByte();
  5154.       this.cq = new byte[this.dt][this.ds];
  5155.       for (i1 = 0; i1 < this.dt; i1++) {
  5156.         localDataInputStream.readFully(this.cq[i1]);
  5157.       }
  5158.       this.cr = new byte[this.dt][this.ds];
  5159.       int i2;
  5160.       for (int i3 = 0; i3 < this.dt; i3++) {
  5161.         for (i2 = 0; i2 < this.ds; i2++) {
  5162.           this.cr[i3][i2] = -1;
  5163.         }
  5164.       }
  5165.       this.cx = localDataInputStream.readByte();
  5166.       this.cA = new byte[this.cx];
  5167.       this.cB = new byte[this.cx];
  5168.       this.cC = new byte[this.cx];
  5169.       this.cE = new short[this.cx];
  5170.       this.cF = new short[this.cx];
  5171.       this.cD = new boolean[this.cx];
  5172.       int i4 = localDataInputStream.readShort();
  5173.       int i5 = 0;
  5174.       for (i1 = 0; i1 < i4; i1++)
  5175.       {
  5176.         int i6 = localDataInputStream.readByte();
  5177.         i2 = localDataInputStream.readByte();
  5178.         i3 = localDataInputStream.readByte();
  5179.         int i7 = 0;
  5180.         switch (i6)
  5181.         {
  5182.         case -32:
  5183.         case -31:
  5184.         case -30:
  5185.         case -20:
  5186.           this.cE[i5] = ((short)(i2 * this.h));
  5187.           this.cF[i5] = ((short)(i3 * this.i));
  5188.           this.cB[i5] = 4;
  5189.           this.cC[i5] = 0;
  5190.           this.cA[i5] = i6;
  5191.           i5++;
  5192.           i7 = 1;
  5193.           break;
  5194.         case -41:
  5195.           this.cr[i3][(i2 + 1)] = -40;
  5196.           this.cr[i3][(i2 + 2)] = -39;
  5197.           break;
  5198.         case -38:
  5199.           this.cr[(i3 + 1)][i2] = -22;
  5200.           break;
  5201.         case -37:
  5202.           this.cr[(i3 + 1)][i2] = -21;
  5203.           break;
  5204.         case -25:
  5205.           this.cr[(i3 + 1)][i2] = -9;
  5206.           break;
  5207.         case -8:
  5208.           this.bV += 1;
  5209.         }
  5210.         if (i7 == 0) {
  5211.           this.cr[i3][i2] = i6;
  5212.         }
  5213.       }
  5214.       localDataInputStream.close();
  5215.       localDataInputStream = null;
  5216.     }
  5217.     catch (Exception localException)
  5218.     {
  5219.       c();
  5220.     }
  5221.   }
  5222.  
  5223.   private final void ab()
  5224.   {
  5225.     byte[] arrayOfByte = { 0, 0, 0, 0, 0, 0, 0 };
  5226.     if ((this.bS == 0) && (this.bR == 1))
  5227.     {
  5228.       arrayOfByte[6] = ((byte)(1 - this.D[6]));
  5229.       arrayOfByte[4] = ((byte)(2 - this.D[4]));
  5230.       arrayOfByte[5] = ((byte)(1 - this.D[5]));
  5231.       arrayOfByte[2] = ((byte)(1 - this.D[2]));
  5232.       arrayOfByte[3] = ((byte)(1 - this.D[3]));
  5233.       arrayOfByte[0] = ((byte)(1 - this.D[0]));
  5234.       arrayOfByte[1] = ((byte)(1 - this.D[1]));
  5235.     }
  5236.     this.cy = 0;
  5237.     int i4 = 0;
  5238.     this.cR = ((this.bS != 0) && ((this.bR == 11) || (this.bR == 12)));
  5239.     for (int i2 = 0; i2 < this.dt; i2++) {
  5240.       for (int i1 = 0; i1 < this.ds; i1++)
  5241.       {
  5242.         int i5 = this.cq[i2][i1];
  5243.         int i6 = this.cr[i2][i1];
  5244.         if (i5 == -107)
  5245.         {
  5246.           this.ao = i1;
  5247.           this.ap = i2;
  5248.           this.am = (i1 * this.h);
  5249.           this.an = (i2 * this.i);
  5250.         }
  5251.         else if (i5 == -56)
  5252.         {
  5253.           this.cy += 1;
  5254.         }
  5255.         else if (i5 == 77)
  5256.         {
  5257.           this.cS = true;
  5258.         }
  5259.         else if ((this.bS == 0) && (this.bR == 1) && ((i5 & 0xFF) >= 151) && ((i5 & 0xFF) <= 157))
  5260.         {
  5261.           int i3 = (i5 & 0xFF) - 151;
  5262.           if (arrayOfByte[i3] > 0)
  5263.           {
  5264.             int tmp360_359 = i3;
  5265.             byte[] tmp360_357 = arrayOfByte;
  5266.             tmp360_357[tmp360_359] = ((byte)(tmp360_357[tmp360_359] - 1));
  5267.           }
  5268.           else
  5269.           {
  5270.             this.cq[i2][i1] = -98;
  5271.           }
  5272.         }
  5273.         if (i6 == -54)
  5274.         {
  5275.           this.cQ = true;
  5276.           this.cy += 1;
  5277.         }
  5278.         else if (i6 == -53)
  5279.         {
  5280.           this.cQ = false;
  5281.           this.cy += 1;
  5282.         }
  5283.         else if (i6 == -33)
  5284.         {
  5285.           i4++;
  5286.         }
  5287.         else if (i6 == -48)
  5288.         {
  5289.           this.cG = ((short)i1);
  5290.           this.cH = ((short)i2);
  5291.         }
  5292.         else if (i6 == -47)
  5293.         {
  5294.           this.cI = ((short)i1);
  5295.           this.cJ = ((short)i2);
  5296.         }
  5297.         else if (i6 == -46)
  5298.         {
  5299.           this.cK = ((short)i1);
  5300.           this.cL = ((short)i2);
  5301.         }
  5302.         else if (i6 == -45)
  5303.         {
  5304.           this.cM = ((short)i1);
  5305.           this.cN = ((short)i2);
  5306.         }
  5307.         else if (i6 == -41)
  5308.         {
  5309.           this.cO = ((short)i1);
  5310.           this.cP = ((short)i2);
  5311.         }
  5312.       }
  5313.     }
  5314.     this.dk = 0;
  5315.     this.dd = new byte[i4];
  5316.     this.de = new byte[i4];
  5317.     this.df = new byte[i4];
  5318.     this.dg = new byte[i4];
  5319.     this.dn = 0;
  5320.   }
  5321.  
  5322.   private final void b(int paramInt1, int paramInt2, boolean paramBoolean)
  5323.   {
  5324.     this.du = paramInt1;
  5325.     this.dv = paramInt2;
  5326.     this.dC = paramBoolean;
  5327.     this.dw = ((paramInt1 + this.h - 1) / this.h);
  5328.     this.dx = ((paramInt2 + this.i - 1) / this.i);
  5329.     int i1;
  5330.     if (!this.dC) {
  5331.       i1 = 3;
  5332.     } else {
  5333.       i1 = 1;
  5334.     }
  5335.     this.dA = (this.dw + i1);
  5336.     this.dB = (this.dx + i1);
  5337.     this.dy = (this.dA * this.h);
  5338.     this.dz = (this.dB * this.i);
  5339.   }
  5340.  
  5341.   private final void ac()
  5342.   {
  5343.     this.dG = null;
  5344.     this.dF = null;
  5345.     this.dF = Image.createImage(this.dy, this.dz);
  5346.     this.dG = this.dF.getGraphics();
  5347.     this.dD = (this.dE = (byte[][])null);
  5348.     this.dD = new byte[this.dB][this.dA];
  5349.     this.dE = new byte[this.dB][this.dA];
  5350.     for (int i1 = 0; i1 < this.dB; i1++) {
  5351.       for (int i2 = 0; i2 < this.dA; i2++)
  5352.       {
  5353.         this.dD[i1][i2] = -1;
  5354.         this.dE[i1][i2] = 0;
  5355.       }
  5356.     }
  5357.   }
  5358.  
  5359.   private final void ad()
  5360.   {
  5361.     this.dG.setColor(0);
  5362.     this.dG.setClip(0, 0, this.dy, this.dz);
  5363.     this.dG.fillRect(0, 0, this.dy, this.dz);
  5364.     for (int i1 = 0; i1 < this.dB; i1++) {
  5365.       for (int i2 = 0; i2 < this.dA; i2++)
  5366.       {
  5367.         this.dD[i1][i2] = -1;
  5368.         this.dE[i1][i2] = 0;
  5369.       }
  5370.     }
  5371.   }
  5372.  
  5373.   private final void f(int paramInt1, int paramInt2)
  5374.   {
  5375.     int i1;
  5376.     if (!this.dC) {
  5377.       i1 = 1;
  5378.     } else {
  5379.       i1 = 0;
  5380.     }
  5381.     int i2 = paramInt1 / this.h - i1;
  5382.     int i3 = paramInt2 / this.i - i1;
  5383.     int i4 = i2 + this.dw + i1;
  5384.     int i5 = i3 + this.dx + i1;
  5385.     if (i2 < 0) {
  5386.       i2 = 0;
  5387.     }
  5388.     if (i4 >= this.ds) {
  5389.       i4 = this.ds - 1;
  5390.     }
  5391.     if (i3 < 0) {
  5392.       i3 = 0;
  5393.     }
  5394.     if (i5 >= this.dt) {
  5395.       i5 = this.dt - 1;
  5396.     }
  5397.     int i10 = i2 % this.dA;
  5398.     int i9 = i3 % this.dB;
  5399.     for (int i7 = i3; i7 <= i5; i7++)
  5400.     {
  5401.       int i8 = i10;
  5402.       for (int i6 = i2; i6 <= i4; i6++)
  5403.       {
  5404.         c(i6, i7, i8, i9);
  5405.         i8++;
  5406.         if (i8 >= this.dA) {
  5407.           i8 = 0;
  5408.         }
  5409.       }
  5410.       i9++;
  5411.       if (i9 >= this.dB) {
  5412.         i9 = 0;
  5413.       }
  5414.     }
  5415.   }
  5416.  
  5417.   private final void g(int paramInt1, int paramInt2)
  5418.   {
  5419.     int i1;
  5420.     if (!this.dC) {
  5421.       i1 = 1;
  5422.     } else {
  5423.       i1 = 0;
  5424.     }
  5425.     int i2 = paramInt1 / this.h - i1;
  5426.     int i3 = paramInt2 / this.i - i1;
  5427.     int i4 = i2 + this.dw + i1;
  5428.     int i5 = i3 + this.dx + i1;
  5429.     int i7 = i2 >= 0 ? i2 : 0;
  5430.     int i8 = i4 < this.ds ? i4 : this.ds - 1;
  5431.     int i11 = i3 % this.dB;
  5432.     int i12 = i5 % this.dB;
  5433.     int i9 = i7 % this.dA;
  5434.     for (int i6 = i7; i6 <= i8; i6++)
  5435.     {
  5436.       if (i3 >= 0) {
  5437.         c(i6, i3, i9, i11);
  5438.       }
  5439.       if (i5 < this.dt) {
  5440.         c(i6, i5, i9, i12);
  5441.       }
  5442.       i9++;
  5443.       if (i9 >= this.dA) {
  5444.         i9 = 0;
  5445.       }
  5446.     }
  5447.     i7 = i3 >= 0 ? i3 : 0;
  5448.     i8 = i5 < this.dt ? i5 : this.dt - 1;
  5449.     i11 = i2 % this.dA;
  5450.     i12 = i4 % this.dA;
  5451.     int i10 = i7 % this.dB;
  5452.     for (i6 = i7; i6 <= i8; i6++)
  5453.     {
  5454.       if (i2 >= 0) {
  5455.         c(i2, i6, i11, i10);
  5456.       }
  5457.       if (i4 < this.ds) {
  5458.         c(i4, i6, i12, i10);
  5459.       }
  5460.       i10++;
  5461.       if (i10 >= this.dB) {
  5462.         i10 = 0;
  5463.       }
  5464.     }
  5465.   }
  5466.  
  5467.   private final void c(int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  5468.   {
  5469.     byte b1 = this.cq[paramInt2][paramInt1];
  5470.     byte b2 = this.cr[paramInt2][paramInt1];
  5471.     if ((this.dD[paramInt4][paramInt3] == b1) && (this.dE[paramInt4][paramInt3] == b2)) {
  5472.       return;
  5473.     }
  5474.     this.dD[paramInt4][paramInt3] = b1;
  5475.     this.dE[paramInt4][paramInt3] = b2;
  5476.     a(b1, b2, paramInt3 * this.h, paramInt4 * this.i);
  5477.   }
  5478.  
  5479.   private final void d(Graphics paramGraphics, int paramInt1, int paramInt2)
  5480.   {
  5481.     if (this.dF != null)
  5482.     {
  5483.       int i3 = 0;
  5484.       int i4 = 0;
  5485.       int i1 = paramInt1 % this.dy;
  5486.       int i2 = paramInt2 % this.dz;
  5487.       if (i1 + this.du > this.dy) {
  5488.         i3 = 1;
  5489.       }
  5490.       if (i2 + this.dv > this.dz) {
  5491.         i4 = 1;
  5492.       }
  5493.       paramGraphics.drawImage(this.dF, -i1, -i2, 20);
  5494.       if (i3 != 0) {
  5495.         paramGraphics.drawImage(this.dF, this.dy - i1, -i2, 20);
  5496.       }
  5497.       if (i4 != 0) {
  5498.         paramGraphics.drawImage(this.dF, -i1, this.dz - i2, 20);
  5499.       }
  5500.       if ((i3 != 0) && (i4 != 0)) {
  5501.         paramGraphics.drawImage(this.dF, this.dy - i1, this.dz - i2, 20);
  5502.       }
  5503.     }
  5504.   }
  5505.  
  5506.   private final void d(boolean paramBoolean)
  5507.   {
  5508.     this.dT = paramBoolean;
  5509.   }
  5510.  
  5511.   private final void ae()
  5512.   {
  5513.     i();
  5514.     c(true);
  5515.     this.co[9] = a(this.co[9], "/b9.png");
  5516.     this.cp = a(this.cp, "/ta.png");
  5517.     this.dH = a(this.dH, "/title.png");
  5518.     this.bf = false;
  5519.     this.bg = false;
  5520.     this.aT = 0;
  5521.     this.aK = 0;
  5522.     this.bj = true;
  5523.     this.as = 0;
  5524.     this.av = 1;
  5525.     this.az = 0;
  5526.     this.at = 1;
  5527.     this.au = 0;
  5528.     this.aC = 0;
  5529.     this.aD = 0;
  5530.     this.aF = ((this.w - this.dH.getHeight() - this.i - 72 >> 1) + this.dH.getHeight() + this.i + (this.i >> 1));
  5531.     this.am = -120;
  5532.     this.an = this.w;
  5533.     this.ao = (this.am << this.r);
  5534.     this.ap = (this.an << this.r);
  5535.     m();
  5536.     b(true, -1);
  5537.     this.x = 4;
  5538.     b("/title.mid");
  5539.     this.dJ = 0;
  5540.     this.dK = true;
  5541.     d(false);
  5542.     this.U = false;
  5543.   }
  5544.  
  5545.   private final boolean af()
  5546.   {
  5547.     if ((this.cb == 0) && (this.U))
  5548.     {
  5549.       this.R = (this.S = this.T = 0);
  5550.       c((byte)0, (byte)-1);
  5551.       return true;
  5552.     }
  5553.     this.dJ += 1;
  5554.     if (this.dJ >= 20)
  5555.     {
  5556.       this.dJ = 0;
  5557.       this.dK = (!this.dK);
  5558.     }
  5559.     this.ao += this.aC;
  5560.     this.am = (this.ao >> this.r);
  5561.     this.ap += this.aD;
  5562.     this.an = (this.ap >> this.r);
  5563.     if (this.an <= this.aF) {
  5564.       this.aD = 0;
  5565.     }
  5566.     switch (this.au)
  5567.     {
  5568.     case 0:
  5569.       this.az += 1;
  5570.       if (this.az >= 64)
  5571.       {
  5572.         this.aC = (3 << this.r + 1);
  5573.         this.aD = (-(1 << this.r));
  5574.         this.au += 1;
  5575.       }
  5576.       break;
  5577.     case 1:
  5578.       if (this.am > this.u - this.h >> 1) {
  5579.         this.au += 1;
  5580.       }
  5581.       break;
  5582.     case 2:
  5583.       if (this.aC > 0) {
  5584.         this.aC -= 4;
  5585.       } else {
  5586.         this.au += 1;
  5587.       }
  5588.       break;
  5589.     case 3:
  5590.       if (this.aC > -(2 << this.r)) {
  5591.         this.aC -= 4;
  5592.       }
  5593.       if (this.am <= (this.u - this.h >> 1) + this.j) {
  5594.         this.au += 1;
  5595.       }
  5596.       break;
  5597.     case 4:
  5598.       if (this.aC < 0)
  5599.       {
  5600.         this.aC += 4;
  5601.       }
  5602.       else
  5603.       {
  5604.         this.aC = 0;
  5605.         this.au += 1;
  5606.       }
  5607.       break;
  5608.     }
  5609.     L();
  5610.     n();
  5611.     return true;
  5612.   }
  5613.  
  5614.   private final int e(int paramInt)
  5615.   {
  5616.     switch (this.dM)
  5617.     {
  5618.     case 0:
  5619.       return 0;
  5620.     case 1:
  5621.       return this.dO[this.dL] * paramInt >> 8;
  5622.     }
  5623.     return this.dO[(18 - this.dL)] * paramInt >> 8;
  5624.   }
  5625.  
  5626.   private final void a(boolean paramBoolean, int paramInt)
  5627.   {
  5628.     this.dM = ((byte)(paramBoolean ? 1 : 2));
  5629.     this.dN = ((byte)paramInt);
  5630.     this.dL = 18;
  5631.   }
  5632.  
  5633.   private final void c(byte paramByte1, byte paramByte2)
  5634.   {
  5635.     int i2 = 0;
  5636.     int i4 = -1;
  5637.     this.dW = paramByte1;
  5638.     this.eb = paramByte2;
  5639.     if (!this.dS)
  5640.     {
  5641.       if (!this.dQ) {
  5642.         k();
  5643.       }
  5644.       d(false);
  5645.       this.dS = true;
  5646.     }
  5647.     this.dU = new String[20];
  5648.     this.dV = new short[20];
  5649.     this.ea = 0;
  5650.     this.dX = 0;
  5651.     int i5;
  5652.     int i6;
  5653.     int i3;
  5654.     switch (paramByte1)
  5655.     {
  5656.     case 0:
  5657.       for (i1 = 0; i1 < 4; i1++) {
  5658.         if (this.A[i1] > 0)
  5659.         {
  5660.           this.dU[i2] = this.a[1];
  5661.           this.dV[(i2++)] = 1;
  5662.           break;
  5663.         }
  5664.       }
  5665.       this.dU[i2] = this.a[0];
  5666.       this.dV[(i2++)] = 0;
  5667.       this.dU[i2] = this.a[22];
  5668.       this.dV[(i2++)] = 20;
  5669.       this.dU[i2] = this.a[23];
  5670.       this.dV[(i2++)] = 14;
  5671.       if (this.M[0].length() > 0)
  5672.       {
  5673.         this.dU[i2] = this.a[24];
  5674.         this.dV[(i2++)] = 15;
  5675.       }
  5676.       this.dU[i2] = this.a[18];
  5677.       this.dV[(i2++)] = 10;
  5678.       this.dU[i2] = (this.a[4] + this.a[3]);
  5679.       this.dV[(i2++)] = 11;
  5680.       this.dU[i2] = (this.a[5] + this.bq);
  5681.       this.dV[(i2++)] = 13;
  5682.       if (this.D[3] > 0)
  5683.       {
  5684.         this.dU[i2] = this.a[6];
  5685.         this.dV[(i2++)] = 16;
  5686.       }
  5687.       this.dU[i2] = this.a[17];
  5688.       this.dV[(i2++)] = 12;
  5689.       this.dU[i2] = this.a[19];
  5690.       this.dV[(i2++)] = 3;
  5691.       this.dU[i2] = this.a[21];
  5692.       this.dV[(i2++)] = 4;
  5693.       break;
  5694.     case 1:
  5695.       if (this.bS != 0)
  5696.       {
  5697.         if (this.C)
  5698.         {
  5699.           this.dU[i2] = "CHEAT!";
  5700.           this.dV[(i2++)] = 99;
  5701.         }
  5702.         if (this.D[5] > 0)
  5703.         {
  5704.           this.dU[i2] = (this.a[87] + this.a[3]);
  5705.           this.dV[(i2++)] = 30;
  5706.         }
  5707.         if (this.D[6] > 0)
  5708.         {
  5709.           this.dU[i2] = (this.a[88] + this.a[3]);
  5710.           this.dV[(i2++)] = 31;
  5711.         }
  5712.         if (!this.dc)
  5713.         {
  5714.           this.dU[i2] = this.a[27];
  5715.           this.dV[(i2++)] = 6;
  5716.         }
  5717.         this.dU[i2] = this.a[18];
  5718.         this.dV[(i2++)] = 10;
  5719.       }
  5720.       this.dU[i2] = (this.a[4] + this.a[3]);
  5721.       this.dV[(i2++)] = 11;
  5722.       if ((this.bS != 0) && (this.D[4] > 0))
  5723.       {
  5724.         this.dU[i2] = (this.a[89] + (this.H != -1 ? Integer.toString(this.H + 1) : this.a[90]));
  5725.         this.dV[(i2++)] = 32;
  5726.         i4 = this.a[89].length() + this.a[90].length();
  5727.       }
  5728.       this.dU[i2] = this.a[20];
  5729.       this.dV[(i2++)] = 8;
  5730.       break;
  5731.     case 2:
  5732.       i5 = 0;
  5733.       for (i6 = 0; (i3 = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".indexOf(';', i6)) != -1; i6 = i3 + 1) {
  5734.         i5++;
  5735.       }
  5736.       i6 = 0;
  5737.       i1 = 0;
  5738.     case 3:
  5739.     case 4:
  5740.     case 5:
  5741.       while (i1 < i5)
  5742.       {
  5743.         i3 = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".indexOf('=', i6);
  5744.         this.dU[i2] = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".substring(i6, i3);
  5745.         i6 = i3 + 1;
  5746.         this.dV[(i2++)] = ((short)i6);
  5747.         i3 = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".indexOf(';', i6);
  5748.         if (this.y.compareTo("DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".substring(i6, i3)) == 0) {
  5749.           this.dX = ((byte)i1);
  5750.         }
  5751.         i6 = i3 + 1;
  5752.         i1++;
  5753.         continue;
  5754.         i3 = 0;
  5755.         i1 = 1;
  5756.         while (i1 <= 4)
  5757.         {
  5758.           if ((paramByte2 == 0) || ((paramByte2 == 1) && (this.A[i3] > 0)))
  5759.           {
  5760.             this.dU[i2] = this.cv[i3];
  5761.             this.dV[(i2++)] = ((short)i1);
  5762.           }
  5763.           i3++;
  5764.           i1++;
  5765.           continue;
  5766.           if (this.D[0] > 0)
  5767.           {
  5768.             this.dU[i2] = this.a[25];
  5769.             this.dV[(i2++)] = 1;
  5770.           }
  5771.           if (this.D[1] > 0)
  5772.           {
  5773.             this.dU[i2] = this.a[26];
  5774.             this.dV[(i2++)] = 2;
  5775.             break;
  5776.             this.dU[i2] = this.a[7];
  5777.             this.dV[(i2++)] = 0;
  5778.             this.dU[i2] = this.a[8];
  5779.             this.dV[(i2++)] = 1;
  5780.             this.dU[i2] = this.a[9];
  5781.             this.dV[(i2++)] = 2;
  5782.             this.dU[i2] = this.a[12];
  5783.             this.dV[(i2++)] = 3;
  5784.             this.dU[i2] = this.a[13];
  5785.             this.dV[(i2++)] = 4;
  5786.             this.dU[i2] = this.a[14];
  5787.             this.dV[(i2++)] = 5;
  5788.             this.dU[i2] = this.a[15];
  5789.             this.dV[(i2++)] = 6;
  5790.             this.dU[i2] = this.a[16];
  5791.             this.dV[(i2++)] = 7;
  5792.             this.dU[i2] = this.a[10];
  5793.             this.dV[(i2++)] = 8;
  5794.             this.dU[i2] = this.a[11];
  5795.             this.dV[(i2++)] = 9;
  5796.           }
  5797.         }
  5798.       }
  5799.     }
  5800.     this.dY = ((byte)i2);
  5801.     this.ef = (this.w - Math.min(this.dZ, i2) * 31 >> 1);
  5802.     if (this.dX >= i2) {
  5803.       this.dX = ((byte)(i2 - 1));
  5804.     }
  5805.     if (this.ea > this.dX) {
  5806.       this.ea = this.dX;
  5807.     }
  5808.     if (this.dX >= this.ea + this.dZ) {
  5809.       this.ea = ((byte)(this.dX - this.dZ + 1));
  5810.     }
  5811.     this.eg = (i4 == -1 ? 0 : i4);
  5812.     for (int i1 = 0; i1 < i2; i1++)
  5813.     {
  5814.       i5 = this.dU[i1].length();
  5815.       if (i5 > this.eg) {
  5816.         this.eg = i5;
  5817.       }
  5818.     }
  5819.     this.eg = ((this.eg + 1) * 12 + 10);
  5820.     if (this.dW == 2)
  5821.     {
  5822.       this.eh = ((this.u - this.eg >> 1) - 27);
  5823.       this.eg += 78;
  5824.     }
  5825.     else if (this.dW == 3)
  5826.     {
  5827.       this.eh = ((this.u - this.eg >> 1) - 31);
  5828.       this.ei = (this.u - this.eh - 31);
  5829.       this.eg += 86;
  5830.     }
  5831.     this.eg = Math.max((this.u << 1) / 3, this.eg);
  5832.     a(true, -1);
  5833.   }
  5834.  
  5835.   private final boolean ag()
  5836.   {
  5837.     boolean bool = false;
  5838.     if (this.dM == 0)
  5839.     {
  5840.       if (this.N)
  5841.       {
  5842.         this.N = false;
  5843.         if (this.dX > 0) {
  5844.           this.dX = ((byte)(this.dX - 1));
  5845.         } else {
  5846.           this.dX = ((byte)(this.dY - 1));
  5847.         }
  5848.         if (this.dX < this.ea) {
  5849.           this.ea = this.dX;
  5850.         } else if (this.dX >= this.ea + this.dZ) {
  5851.           this.ea = ((byte)(this.dX - this.dZ + 1));
  5852.         }
  5853.         bool = true;
  5854.       }
  5855.       else if (this.O)
  5856.       {
  5857.         this.Q = (this.O = 0);
  5858.         if (this.dX < this.dY - 1) {
  5859.           this.dX = ((byte)(this.dX + 1));
  5860.         } else {
  5861.           this.dX = 0;
  5862.         }
  5863.         if (this.dX < this.ea) {
  5864.           this.ea = this.dX;
  5865.         } else if (this.dX >= this.ea + this.dZ) {
  5866.           this.ea = ((byte)(this.dX - this.dZ + 1));
  5867.         }
  5868.         bool = true;
  5869.       }
  5870.       else if ((this.Q) || (this.P))
  5871.       {
  5872.         bool = e(this.P);
  5873.         this.Q = (this.P = 0);
  5874.       }
  5875.       else if ((this.S) || (this.R))
  5876.       {
  5877.         this.S = (this.R = this.U = 0);
  5878.         int i1 = this.dV[this.dX];
  5879.         if ((this.dW == 5) || ((this.dW != 2) && ((i1 == 11) || (i1 == 13) || (i1 == 30) || (i1 == 31) || (i1 == 32) || (i1 == 101))))
  5880.         {
  5881.           bool = ah();
  5882.         }
  5883.         else
  5884.         {
  5885.           if (((this.dW == 0) && (i1 != 0) && (i1 != 1) && (i1 != 16) && (i1 != 12)) || ((this.dW == 1) && (i1 != 99) && (i1 != 100)) || (this.dW == 3)) {
  5886.             b(false, -1);
  5887.           }
  5888.           a(false, 0);
  5889.         }
  5890.       }
  5891.       else if (this.T)
  5892.       {
  5893.         this.T = (this.U = 0);
  5894.         if (this.x != 11) {
  5895.           a(false, 1);
  5896.         }
  5897.       }
  5898.     }
  5899.     else
  5900.     {
  5901.       this.dL -= 1;
  5902.       if (this.dL < 0)
  5903.       {
  5904.         this.dL = 0;
  5905.         if (this.cb <= 0) {
  5906.           if (this.dM == 2)
  5907.           {
  5908.             this.dM = 0;
  5909.             switch (this.dN)
  5910.             {
  5911.             case 0:
  5912.               ah();
  5913.               break;
  5914.             case 1:
  5915.               ai();
  5916.             }
  5917.           }
  5918.           else
  5919.           {
  5920.             this.dM = 0;
  5921.           }
  5922.         }
  5923.       }
  5924.       bool = true;
  5925.     }
  5926.     return bool;
  5927.   }
  5928.  
  5929.   private final boolean e(boolean paramBoolean)
  5930.   {
  5931.     boolean bool = false;
  5932.     if ((this.dW == 0) && (this.dV[this.dX] == 13))
  5933.     {
  5934.       if ((paramBoolean) && (this.bq > 1))
  5935.       {
  5936.         bool = true;
  5937.         this.bq = ((byte)(this.bq - 1));
  5938.       }
  5939.       else if ((!paramBoolean) && (this.bq < 5))
  5940.       {
  5941.         bool = true;
  5942.         this.bq = ((byte)(this.bq + 1));
  5943.       }
  5944.       if (bool)
  5945.       {
  5946.         if (this.c == 1)
  5947.         {
  5948.           a();
  5949.           b("/title.mid");
  5950.         }
  5951.         g();
  5952.         this.dU[this.dX] = (this.a[5] + this.bq);
  5953.       }
  5954.     }
  5955.     return bool;
  5956.   }
  5957.  
  5958.   private final boolean ah()
  5959.   {
  5960.     boolean bool = false;
  5961.     int i1 = 0;
  5962.     int i2 = this.dV[this.dX];
  5963.     String str1;
  5964.     switch (this.dW)
  5965.     {
  5966.     case 0:
  5967.     case 1:
  5968.       switch (i2)
  5969.       {
  5970.       case 0:
  5971.       case 1:
  5972.         c((byte)3, (byte)i2);
  5973.         bool = true;
  5974.         break;
  5975.       case 3:
  5976.         a(this.a[52], 0, (byte)-1);
  5977.         this.dS = false;
  5978.         bool = true;
  5979.         break;
  5980.       case 4:
  5981.         d((byte)1);
  5982.         return true;
  5983.       case 6:
  5984.         i();
  5985.         Y();
  5986.         this.x = 1;
  5987.         d(true);
  5988.         i1 = 1;
  5989.         break;
  5990.       case 8:
  5991.         if ((this.bS != 0) || (this.bR == 4))
  5992.         {
  5993.           d((byte)0);
  5994.         }
  5995.         else
  5996.         {
  5997.           aj();
  5998.           if ((this.bR == 1) || (this.bR == 5)) {
  5999.             ae();
  6000.           } else if ((this.bR == 2) || (this.bR == 3)) {
  6001.             x();
  6002.           }
  6003.         }
  6004.         return true;
  6005.       case 10:
  6006.         ao();
  6007.         this.dS = false;
  6008.         bool = true;
  6009.         break;
  6010.       case 11:
  6011.         if (this.c == 1) {
  6012.           this.c = 0;
  6013.         } else {
  6014.           this.c = 1;
  6015.         }
  6016.         if (this.x == 4)
  6017.         {
  6018.           if (this.c == 0) {
  6019.             a();
  6020.           } else {
  6021.             b("/title.mid");
  6022.           }
  6023.         }
  6024.         else if (this.c == 0) {
  6025.           a();
  6026.         } else {
  6027.           b(F());
  6028.         }
  6029.         g();
  6030.         this.dU[this.dX] = (this.a[4] + this.a[3]);
  6031.         bool = true;
  6032.         break;
  6033.       case 12:
  6034.         c((byte)2, (byte)-1);
  6035.         bool = true;
  6036.         break;
  6037.       case 13:
  6038.         this.bq = ((byte)(this.bq + 1));
  6039.         if (this.bq > 5) {
  6040.           this.bq = 1;
  6041.         }
  6042.         if (this.c == 1)
  6043.         {
  6044.           a();
  6045.           b("/title.mid");
  6046.         }
  6047.         g();
  6048.         this.dU[this.dX] = (this.a[5] + this.bq);
  6049.         bool = true;
  6050.         break;
  6051.       case 14:
  6052.         x();
  6053.         this.dH = null;
  6054.         break;
  6055.       case 15:
  6056.         str1 = this.a[122];
  6057.         for (int i3 = 0; (i3 < this.M.length) && (this.M[i3].length() > 0); i3++)
  6058.         {
  6059.           str1 = str1 + this.M[i3] + '#';
  6060.           if (i3 == 0) {
  6061.             str1 = str1 + '#';
  6062.           }
  6063.         }
  6064.         a(str1, 0, (byte)-1);
  6065.         this.dS = false;
  6066.         bool = true;
  6067.         break;
  6068.       case 16:
  6069.         c((byte)5, (byte)0);
  6070.         bool = true;
  6071.         break;
  6072.       case 20:
  6073.         i();
  6074.         this.dH = null;
  6075.         if (this.c == 1) {
  6076.           a();
  6077.         }
  6078.         this.bS = 0;
  6079.         this.bR = 1;
  6080.         X();
  6081.         this.x = 1;
  6082.         i1 = 1;
  6083.         break;
  6084.       case 30:
  6085.         this.F = (!this.F);
  6086.         g();
  6087.         this.dU[this.dX] = (this.a[87] + this.a[3]);
  6088.         bool = true;
  6089.         break;
  6090.       case 31:
  6091.         this.E = (!this.E);
  6092.         g();
  6093.         this.dU[this.dX] = (this.a[88] + this.a[3]);
  6094.         bool = true;
  6095.         break;
  6096.       case 32:
  6097.         this.H = ((byte)(this.H + 1));
  6098.         if (this.H > this.D[4]) {
  6099.           this.H = -1;
  6100.         }
  6101.         b(F());
  6102.         g();
  6103.         this.dU[this.dX] = (this.a[89] + (this.H != -1 ? Integer.toString(this.H + 1) : this.a[90]));
  6104.         bool = true;
  6105.         break;
  6106.       case 99:
  6107.         aj();
  6108.         this.cy = 0;
  6109.         d(false);
  6110.         k();
  6111.         if (this.dR)
  6112.         {
  6113.           this.dR = false;
  6114.           T();
  6115.         }
  6116.         this.au = this.at;
  6117.         this.at = 6;
  6118.         this.as = 0;
  6119.         this.bb = true;
  6120.         am();
  6121.         bool = true;
  6122.       }
  6123.       break;
  6124.     case 2:
  6125.       str1 = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".substring(i2, "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".indexOf(';', i2));
  6126.       if (str1.compareTo(this.y) != 0)
  6127.       {
  6128.         this.y = str1;
  6129.         a(this.y + ".dat");
  6130.         g();
  6131.         aa();
  6132.       }
  6133.       if (this.x != 11)
  6134.       {
  6135.         c((byte)0, (byte)-1);
  6136.       }
  6137.       else
  6138.       {
  6139.         aj();
  6140.         d((byte)2);
  6141.       }
  6142.       bool = true;
  6143.       break;
  6144.     case 3:
  6145.       i();
  6146.       this.dH = null;
  6147.       if (this.c == 1) {
  6148.         a();
  6149.       }
  6150.       if (this.G)
  6151.       {
  6152.         this.bS = i2;
  6153.         if (this.eb == 0)
  6154.         {
  6155.           this.bR = 1;
  6156.         }
  6157.         else
  6158.         {
  6159.           this.bR = this.A[(i2 - 1)];
  6160.           if ((this.bR == 11) && (i(this.bS, 11))) {
  6161.             this.bR = 3;
  6162.           } else if ((this.bR == 12) && (i(this.bS, 12))) {
  6163.             this.bR = 6;
  6164.           }
  6165.         }
  6166.       }
  6167.       else
  6168.       {
  6169.         this.bT = i2;
  6170.         this.bS = 0;
  6171.         this.bR = 5;
  6172.       }
  6173.       X();
  6174.       this.x = 1;
  6175.       i1 = 1;
  6176.       break;
  6177.     case 5:
  6178.       String str2;
  6179.       switch (i2)
  6180.       {
  6181.       case 0:
  6182.       case 1:
  6183.       case 2:
  6184.         str2 = "/ingame" + i2 + ".mid";
  6185.         break;
  6186.       case 3:
  6187.         str2 = "/mow.mid";
  6188.         break;
  6189.       case 4:
  6190.         str2 = "/sandman.mid";
  6191.         break;
  6192.       case 5:
  6193.         str2 = "/shop.mid";
  6194.         break;
  6195.       case 6:
  6196.         str2 = "/universe.mid";
  6197.         break;
  6198.       case 7:
  6199.         str2 = "/fly.mid";
  6200.         break;
  6201.       case 8:
  6202.         str2 = "/bonus.mid";
  6203.         break;
  6204.       default:
  6205.         str2 = "/cleared.mid";
  6206.       }
  6207.       a(str2, this.bq, false);
  6208.     }
  6209.     if (i1 != 0)
  6210.     {
  6211.       aj();
  6212.       bool = true;
  6213.     }
  6214.     return bool;
  6215.   }
  6216.  
  6217.   private final boolean ai()
  6218.   {
  6219.     boolean bool = false;
  6220.     int i1 = 0;
  6221.     switch (this.dW)
  6222.     {
  6223.     case 0:
  6224.     case 1:
  6225.       i1 = 1;
  6226.       break;
  6227.     case 2:
  6228.     case 5:
  6229.       a();
  6230.       b("/title.mid");
  6231.     case 3:
  6232.       c((byte)0, (byte)-1);
  6233.       bool = true;
  6234.     }
  6235.     if (i1 != 0)
  6236.     {
  6237.       aj();
  6238.       bool = true;
  6239.     }
  6240.     return bool;
  6241.   }
  6242.  
  6243.   private final void aj()
  6244.   {
  6245.     this.dS = false;
  6246.     if ((this.x != 4) && (this.x != 11)) {
  6247.       d(true);
  6248.     }
  6249.     this.dU = null;
  6250.     this.dV = null;
  6251.     if (!this.dQ) {
  6252.       l();
  6253.     }
  6254.   }
  6255.  
  6256.   private final void a(Graphics paramGraphics, boolean paramBoolean)
  6257.   {
  6258.     int i1 = 0;
  6259.     int i2 = this.ea;
  6260.     int i3 = this.ef;
  6261.     i3 -= e(this.v);
  6262.     int i4 = 31 - e(31);
  6263.     if (this.ea > 0) {
  6264.       b(paramGraphics, this.ch, 0, 0, 17, 9, this.u - 17 >> 1, i3 - 9 - 2);
  6265.     }
  6266.     while ((i1 < this.dZ) && (i2 < this.dY))
  6267.     {
  6268.       if (paramBoolean) {
  6269.         a(paramGraphics, this.u - this.eg >> 1, i3, this.eg, 26, i2 == this.dX ? 41658 : 22935, 10370);
  6270.       }
  6271.       a(this.dU[i2], paramGraphics, this.u - (this.dU[i2].length() - 1) * 12 - 10 >> 1, i3 + 3 + 2, false);
  6272.       int i5;
  6273.       if (this.dW == 2)
  6274.       {
  6275.         i5 = -1;
  6276.         String str = "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".substring(this.dV[i2], "DEUTSCH=DE;ENGLISH=EN;FRANÇAIS=FR;ITALIANO=IT;ESPAÑOL=SP;PORTUGUÊS=PG;".indexOf(';', this.dV[i2]));
  6277.         if (str.compareTo("DE") == 0) {
  6278.           i5 = 0;
  6279.         } else if (str.compareTo("EN") == 0) {
  6280.           i5 = 1;
  6281.         } else if (str.compareTo("FR") == 0) {
  6282.           i5 = 2;
  6283.         } else if (str.compareTo("IT") == 0) {
  6284.           i5 = 3;
  6285.         } else if (str.compareTo("SP") == 0) {
  6286.           i5 = 4;
  6287.         } else if (str.compareTo("PG") == 0) {
  6288.           i5 = 5;
  6289.         }
  6290.         if (i5 != -1) {
  6291.           b(paramGraphics, this.cj, 72 + i5 * 27, 0, 27, 18, this.eh, i3 + 3 + 2 + -1);
  6292.         }
  6293.       }
  6294.       else if (this.dW == 3)
  6295.       {
  6296.         i5 = this.dV[i2];
  6297.         int i6 = this.B[(i5 - 1)];
  6298.         if (i6 != 0) {
  6299.           b(paramGraphics, this.cj, 18, 0, 31, 18, this.eh, i3 + 3 + 2 + -1);
  6300.         } else {
  6301.           b(paramGraphics, this.cj, 0, 0, 18, 18, this.eh + 6, i3 + 3 + 2 + -1);
  6302.         }
  6303.         int i10 = this.cw[(i5 - 1)];
  6304.         int i7;
  6305.         int i8;
  6306.         int i9;
  6307.         switch (i10)
  6308.         {
  6309.         case 1:
  6310.           i7 = 9;
  6311.           i8 = 11;
  6312.           i9 = 9;
  6313.           break;
  6314.         case 2:
  6315.           i7 = 9;
  6316.           i8 = 23;
  6317.           i9 = 9;
  6318.           break;
  6319.         default:
  6320.           i7 = 0;
  6321.           i8 = 23;
  6322.           i9 = 18;
  6323.         }
  6324.         b(paramGraphics, this.cj, 49, i7, i8, i8, this.ei + (31 - i8 >> 1), i3 + 3 + 2 + (16 - i9 >> 1));
  6325.       }
  6326.       i3 += i4;
  6327.       i2++;
  6328.       i1++;
  6329.     }
  6330.     if (this.ea + this.dZ < this.dY) {
  6331.       b(paramGraphics, this.ch, 0, 9, 17, 9, this.u - 17 >> 1, i3 + 2);
  6332.     }
  6333.     a(paramGraphics, this.a[30], this.x != 11 ? this.a[29] : null, paramBoolean);
  6334.   }
  6335.  
  6336.   private final void d(Graphics paramGraphics)
  6337.   {
  6338.     int i1 = 0;
  6339.     int i2 = 0;
  6340.     int i4 = 0;
  6341.     int i5 = 0;
  6342.     int i6 = this.ej.length();
  6343.     int i8 = 0;
  6344.     int i9 = 0;
  6345.     if (paramGraphics != null)
  6346.     {
  6347.       i1 = this.u - this.ek >> 1;
  6348.       i2 = this.w - this.el >> 1;
  6349.       a(paramGraphics, i1, i2, this.ek, this.el, 22935, 10370);
  6350.       i2 += 6;
  6351.     }
  6352.     while (i4 < i6)
  6353.     {
  6354.       int i10 = this.ej.charAt(i4);
  6355.       if ((i10 == 35) || (i4 == i6 - 1))
  6356.       {
  6357.         if (i10 != 35) {
  6358.           i4++;
  6359.         }
  6360.         int i7 = i4 - i5;
  6361.         if (i7 > i8) {
  6362.           i8 = i7;
  6363.         }
  6364.         if (paramGraphics != null)
  6365.         {
  6366.           i1 = this.u - i7 * 12 >> 1;
  6367.           for (int i3 = i5; i3 < i4; i3++)
  6368.           {
  6369.             a(paramGraphics, i1, i2, this.ej.charAt(i3));
  6370.             i1 += 12;
  6371.           }
  6372.           i2 += this.g;
  6373.         }
  6374.         i5 = i4 + 1;
  6375.         i9++;
  6376.       }
  6377.       i4++;
  6378.     }
  6379.     if (paramGraphics == null)
  6380.     {
  6381.       this.ek = (i8 * 12 + 16);
  6382.       this.el = (i9 * this.g + 10);
  6383.     }
  6384.   }
  6385.  
  6386.   private final void a(Graphics paramGraphics, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)
  6387.   {
  6388.     paramGraphics.setClip(paramInt1, paramInt2, paramInt3, paramInt4);
  6389.     paramGraphics.setColor(paramInt6);
  6390.     paramGraphics.fillRect(paramInt1, paramInt2 + 1, paramInt3, paramInt4 - 2);
  6391.     paramGraphics.fillRect(paramInt1 + 1, paramInt2, paramInt3 - 2, paramInt4);
  6392.     paramGraphics.setColor(paramInt5);
  6393.     paramGraphics.fillRect(paramInt1 + 3, paramInt2 + 2, paramInt3 - 6, paramInt4 - 4);
  6394.     paramGraphics.drawLine(paramInt1 + 2, paramInt2 + 3, paramInt1 + 2, paramInt2 + paramInt4 - 4);
  6395.     paramGraphics.drawLine(paramInt1 + paramInt3 - 3, paramInt2 + 3, paramInt1 + paramInt3 - 3, paramInt2 + paramInt4 - 4);
  6396.   }
  6397.  
  6398.   private final void a(Graphics paramGraphics, String paramString, byte paramByte, int paramInt)
  6399.   {
  6400.     int i1 = paramString.length() * 12 + 16;
  6401.     int i2 = this.g + 10;
  6402.     int i3 = this.u - i1 >> 1;
  6403.     if (paramByte != 3) {
  6404.       if (paramByte == 0) {
  6405.         paramInt = this.w - i2 >> 1;
  6406.       } else if (paramByte == 1) {
  6407.         paramInt = 45;
  6408.       } else {
  6409.         paramInt = this.w - i2 - 5;
  6410.       }
  6411.     }
  6412.     a(paramGraphics, i3, paramInt, i1, i2, 22935, 10370);
  6413.     a(paramString, paramGraphics, this.u >> 1, paramInt + 6, true);
  6414.   }
  6415.  
  6416.   private final int a(String paramString, Graphics paramGraphics, int paramInt1, int paramInt2, boolean paramBoolean)
  6417.   {
  6418.     int i2 = paramString.length();
  6419.     int i3 = (i2 - 1) * 12 + 10;
  6420.     if (paramBoolean) {
  6421.       paramInt1 -= (i3 >> 1);
  6422.     }
  6423.     int i1 = paramInt1;
  6424.     for (int i4 = 0; i4 < i2; i4++)
  6425.     {
  6426.       a(paramGraphics, paramInt1, paramInt2, paramString.charAt(i4));
  6427.       paramInt1 += 12;
  6428.     }
  6429.     return i1;
  6430.   }
  6431.  
  6432.   private final void a(Graphics paramGraphics, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
  6433.   {
  6434.     int i1 = 10;
  6435.     int i2 = 1;
  6436.     paramInt1 += 13 * (paramInt4 - 1);
  6437.     for (int i3 = 0; i3 < paramInt4; i3++)
  6438.     {
  6439.       paramGraphics.setClip(paramInt1, paramInt2, 12, 13);
  6440.       paramGraphics.drawImage(this.cg, paramInt1 - paramInt3 % i1 / i2 * 12, paramInt2, 20);
  6441.       paramInt1 -= 13;
  6442.       i2 = i1;
  6443.       i1 *= 10;
  6444.     }
  6445.   }
  6446.  
  6447.   private final void a(Graphics paramGraphics, int paramInt1, int paramInt2, char paramChar)
  6448.   {
  6449.     int i4 = -1;
  6450.     if (paramGraphics != null) {
  6451.       paramGraphics.setClip(paramInt1, paramInt2, 10, 16);
  6452.     }
  6453.     int i1;
  6454.     if ((paramChar >= '0') && (paramChar <= '9')) {
  6455.       i1 = paramChar - '0';
  6456.     } else if ((paramChar >= 'A') && (paramChar <= 'Z')) {
  6457.       i1 = '\n' + paramChar - 65;
  6458.     } else {
  6459.       switch (paramChar)
  6460.       {
  6461.       case '.':
  6462.         i1 = 36;
  6463.         break;
  6464.       case ',':
  6465.         i1 = 37;
  6466.         break;
  6467.       case '-':
  6468.         i1 = 38;
  6469.         break;
  6470.       case ':':
  6471.         i1 = 39;
  6472.         break;
  6473.       case '!':
  6474.         i1 = 40;
  6475.         break;
  6476.       case '?':
  6477.         i1 = 41;
  6478.         break;
  6479.       case '*':
  6480.         i1 = 42;
  6481.         break;
  6482.       case '\'':
  6483.         i1 = 43;
  6484.         break;
  6485.       case '©':
  6486.         i1 = 44;
  6487.         break;
  6488.       case '@':
  6489.         i1 = 45;
  6490.         break;
  6491.       case 'À':
  6492.         i1 = 46;
  6493.         i4 = 0;
  6494.         break;
  6495.       case 'È':
  6496.         i1 = 47;
  6497.         i4 = 0;
  6498.         break;
  6499.       case 'Ì':
  6500.         i1 = 48;
  6501.         i4 = 0;
  6502.         break;
  6503.       case 'Ò':
  6504.         i1 = 49;
  6505.         i4 = 0;
  6506.         break;
  6507.       case 'Ù':
  6508.         i1 = 50;
  6509.         i4 = 0;
  6510.         break;
  6511.       case 'Â':
  6512.         i1 = 46;
  6513.         i4 = 2;
  6514.         break;
  6515.       case 'Ê':
  6516.         i1 = 47;
  6517.         i4 = 2;
  6518.         break;
  6519.       case 'Î':
  6520.         i1 = 48;
  6521.         i4 = 2;
  6522.         break;
  6523.       case 'Ô':
  6524.         i1 = 49;
  6525.         i4 = 2;
  6526.         break;
  6527.       case 'Û':
  6528.         i1 = 50;
  6529.         i4 = 2;
  6530.         break;
  6531.       case 'Á':
  6532.         i1 = 46;
  6533.         i4 = 4;
  6534.         break;
  6535.       case 'É':
  6536.         i1 = 47;
  6537.         i4 = 4;
  6538.         break;
  6539.       case 'Í':
  6540.         i1 = 48;
  6541.         i4 = 4;
  6542.         break;
  6543.       case 'Ó':
  6544.         i1 = 49;
  6545.         i4 = 4;
  6546.         break;
  6547.       case 'Ú':
  6548.         i1 = 50;
  6549.         i4 = 4;
  6550.         break;
  6551.       case 'Ä':
  6552.         i1 = 46;
  6553.         i4 = 1;
  6554.         break;
  6555.       case 'Ë':
  6556.         i1 = 47;
  6557.         i4 = 1;
  6558.         break;
  6559.       case 'Ï':
  6560.         i1 = 48;
  6561.         i4 = 1;
  6562.         break;
  6563.       case 'Ö':
  6564.         i1 = 49;
  6565.         i4 = 1;
  6566.         break;
  6567.       case 'Ü':
  6568.         i1 = 50;
  6569.         i4 = 1;
  6570.         break;
  6571.       case 'Ã':
  6572.         i1 = 46;
  6573.         i4 = 3;
  6574.         break;
  6575.       case 'Ñ':
  6576.         i1 = 51;
  6577.         i4 = 3;
  6578.         break;
  6579.       case 'Õ':
  6580.         i1 = 49;
  6581.         i4 = 3;
  6582.         break;
  6583.       case 'Ç':
  6584.         i1 = 12;
  6585.         i4 = 5;
  6586.         break;
  6587.       default:
  6588.         return;
  6589.       }
  6590.     }
  6591.     if (paramGraphics != null)
  6592.     {
  6593.       int i3 = i1 / 18;
  6594.       int i2 = i1 % 18;
  6595.       paramGraphics.drawImage(this.cf, paramInt1 - i2 * 10, paramInt2 - i3 * 16, 20);
  6596.       if (i4 != -1)
  6597.       {
  6598.         paramGraphics.setClip(paramInt1, paramInt2 + (i4 != 5 ? -3 : 16), 10, 3);
  6599.         i3 = i4 / 2;
  6600.         i2 = i4 % 2;
  6601.         paramGraphics.drawImage(this.cf, paramInt1 - (160 + i2 * 10), paramInt2 + (i4 != 5 ? -3 : 16) - (32 + i3 * 3), 20);
  6602.       }
  6603.     }
  6604.   }
  6605.  
  6606.   private final void a(String paramString, int paramInt, byte paramByte)
  6607.   {
  6608.     this.eu = this.dS;
  6609.     this.ew = paramString;
  6610.     this.ep = 0;
  6611.     this.en = paramInt;
  6612.     this.eo = 0;
  6613.     this.er = this.u;
  6614.     this.ev = paramByte;
  6615.     a(null, 0, 0, true, true, true, true);
  6616.     this.em = this.x;
  6617.     this.x = 5;
  6618.     a(true, -1);
  6619.   }
  6620.  
  6621.   private final boolean ak()
  6622.   {
  6623.     boolean bool = false;
  6624.     if (this.dM == 0)
  6625.     {
  6626.       if (this.N)
  6627.       {
  6628.         this.N = false;
  6629.         if (this.ep > 0)
  6630.         {
  6631.           this.ep -= 2;
  6632.           if (this.ep < 0) {
  6633.             this.ep = 0;
  6634.           }
  6635.           bool = true;
  6636.         }
  6637.       }
  6638.       else if (this.O)
  6639.       {
  6640.         this.O = false;
  6641.         if (this.ep < this.eq)
  6642.         {
  6643.           this.ep += 2;
  6644.           if (this.ep > this.eq) {
  6645.             this.ep = this.eq;
  6646.           }
  6647.           bool = true;
  6648.         }
  6649.       }
  6650.       else if ((this.S) || (this.T) || (this.R))
  6651.       {
  6652.         this.S = (this.T = this.R = 0);
  6653.         a(false, 0);
  6654.       }
  6655.     }
  6656.     else
  6657.     {
  6658.       this.dL -= 1;
  6659.       if (this.dL < 0)
  6660.       {
  6661.         this.dL = 0;
  6662.         if (this.dM == 2)
  6663.         {
  6664.           this.dM = 0;
  6665.           switch (this.dN)
  6666.           {
  6667.           case 0:
  6668.             al();
  6669.           }
  6670.         }
  6671.         else
  6672.         {
  6673.           this.dM = 0;
  6674.         }
  6675.       }
  6676.       bool = true;
  6677.     }
  6678.     return bool;
  6679.   }
  6680.  
  6681.   private final void al()
  6682.   {
  6683.     if (this.ev == -1)
  6684.     {
  6685.       this.x = this.em;
  6686.       this.dS = this.eu;
  6687.       b(true, -1);
  6688.       a(true, -1);
  6689.     }
  6690.     else if (this.ev == 0)
  6691.     {
  6692.       ae();
  6693.     }
  6694.   }
  6695.  
  6696.   private final void a(Graphics paramGraphics, int paramInt1, int paramInt2, boolean paramBoolean1, boolean paramBoolean2, boolean paramBoolean3, boolean paramBoolean4)
  6697.   {
  6698.     int i3 = 0;
  6699.     int i5 = 0;
  6700.     int i4 = this.w - this.en - this.eo;
  6701.     if ((paramGraphics != null) && (paramBoolean1))
  6702.     {
  6703.       if (paramBoolean2)
  6704.       {
  6705.         paramGraphics.setClip(0, 0, this.u, this.v);
  6706.         paramGraphics.setColor(0);
  6707.         paramGraphics.fillRect(0, 0, this.u, this.v);
  6708.       }
  6709.       int i13 = this.er - e(this.er);
  6710.       int i14 = i4 - e(i4);
  6711.       a(paramGraphics, this.u - i13 >> 1, this.en + (i4 - i14 >> 1), i13, i14, paramInt1, paramInt2);
  6712.     }
  6713.     int i7 = (this.er - 7) / 12;
  6714.     this.et = ((i4 - 19) / this.g);
  6715.     int i8 = this.ep + this.et;
  6716.     int i11 = this.ew.length();
  6717.     int i9 = 0;
  6718.     this.es = 0;
  6719.     int i10 = 0;
  6720.     int i12 = -1;
  6721.     i5 = e(this.u);
  6722.     if (paramGraphics != null)
  6723.     {
  6724.       i3 = 5 + this.en + (i4 - (paramBoolean1 ? 19 : 7) - this.et * this.g >> 1);
  6725.       if ((this.eq < 0) && (paramBoolean4)) {
  6726.         i3 -= (this.eq * this.g >> 1);
  6727.       }
  6728.     }
  6729.     while (i10 < i11)
  6730.     {
  6731.       int i6 = this.ew.charAt(i10);
  6732.       i9++;
  6733.       if ((i6 == 32) || (i6 == 46) || (i6 == 44) || (i6 == 45) || (i6 == 58) || (i6 == 58) || (i6 == 35)) {
  6734.         i12 = i10;
  6735.       }
  6736.       if ((i9 >= i7) || (i6 == 35) || (i10 >= i11 - 1))
  6737.       {
  6738.         if ((i12 == -1) || (i10 >= i11 - 1)) {
  6739.           i12 = i10;
  6740.         }
  6741.         if ((paramGraphics != null) && (this.es >= this.ep))
  6742.         {
  6743.           if ((this.dM == 0) || (!paramBoolean1))
  6744.           {
  6745.             i6 = this.ew.charAt(i12);
  6746.             int i2;
  6747.             if ((i6 != 32) && (i6 != 35)) {
  6748.               i2 = this.u - (i12 - (i10 - i9 + 1) + 1) * 12 >> 1;
  6749.             } else {
  6750.               i2 = this.u - (i12 - (i10 - i9 + 1)) * 12 >> 1;
  6751.             }
  6752.             for (int i1 = i10 - i9 + 1; i1 <= i12; i1++)
  6753.             {
  6754.               a(paramGraphics, i2 - i5, i3, this.ew.charAt(i1));
  6755.               i2 += 12;
  6756.             }
  6757.           }
  6758.           i3 += this.g;
  6759.         }
  6760.         i9 = i10 - i12;
  6761.         if ((i12 + 1 < i11) && (this.ew.charAt(i12 + 1) == ' ')) {
  6762.           i10++;
  6763.         }
  6764.         i12 = -1;
  6765.         this.es += 1;
  6766.         if ((paramGraphics != null) && (this.es >= i8)) {
  6767.           break;
  6768.         }
  6769.       }
  6770.       i10++;
  6771.     }
  6772.     if (paramGraphics != null)
  6773.     {
  6774.       if ((paramBoolean3) && (this.dM == 0))
  6775.       {
  6776.         if (this.ep > 0) {
  6777.           b(paramGraphics, this.ch, 0, 0, 17, 9, (this.u >> 1) - 17 + 1, this.en + i4 - 9 - 4);
  6778.         }
  6779.         if (this.ep < this.eq) {
  6780.           b(paramGraphics, this.ch, 0, 9, 17, 9, (this.u >> 1) - 1, this.en + i4 - 9 - 4);
  6781.         }
  6782.       }
  6783.     }
  6784.     else
  6785.     {
  6786.       if (i9 > 0) {
  6787.         this.es += 1;
  6788.       }
  6789.       this.eq = (this.es - this.et);
  6790.     }
  6791.   }
  6792.  
  6793.   private final void b(boolean paramBoolean, int paramInt)
  6794.   {
  6795.     this.bZ = 0;
  6796.     this.cb = ((byte)(paramBoolean ? 1 : 2));
  6797.     this.ca = paramInt;
  6798.   }
  6799.  
  6800.   private final void am()
  6801.   {
  6802.     this.I = ((short)(this.I + this.bU));
  6803.     this.ec = 0;
  6804.     d(false);
  6805.     if (this.c == 1) {
  6806.       a("/cleared.mid", this.bq, false);
  6807.     }
  6808.     b(false, -1);
  6809.     if ((this.bR != 11) && (this.bR != 12))
  6810.     {
  6811.       int i5 = 2 + this.a[48].length();
  6812.       int i1 = (int)this.bW / 1000;
  6813.       int i2 = i1 / 60;
  6814.       int i3 = i1 - i2 * 60;
  6815.       StringBuffer localStringBuffer = new StringBuffer(100);
  6816.       localStringBuffer.append(this.a[44]);
  6817.       localStringBuffer.append("##");
  6818.       localStringBuffer.append(this.a[45]);
  6819.       int i4 = localStringBuffer.length();
  6820.       if (i2 <= 9) {
  6821.         localStringBuffer.append('0');
  6822.       }
  6823.       localStringBuffer.append(i2);
  6824.       localStringBuffer.append(':');
  6825.       if (i3 <= 9) {
  6826.         localStringBuffer.append('0');
  6827.       }
  6828.       localStringBuffer.append(i3);
  6829.       a(localStringBuffer, "", i5 - (localStringBuffer.length() - i4), ' ', false);
  6830.       localStringBuffer.append("#");
  6831.       localStringBuffer.append(this.a[46]);
  6832.       i4 = localStringBuffer.length();
  6833.       localStringBuffer.append(this.bU);
  6834.       localStringBuffer.append(this.a[48]);
  6835.       localStringBuffer.append(this.bV);
  6836.       a(localStringBuffer, "", i5 - (localStringBuffer.length() - i4), ' ', false);
  6837.       localStringBuffer.append("#");
  6838.       localStringBuffer.append(this.a[47]);
  6839.       a(localStringBuffer, String.valueOf(this.I), i5, ' ', false);
  6840.       this.ej = localStringBuffer.toString();
  6841.       d(null);
  6842.     }
  6843.     else
  6844.     {
  6845.       this.ej = null;
  6846.     }
  6847.     this.x = 7;
  6848.   }
  6849.  
  6850.   private final void a(StringBuffer paramStringBuffer, String paramString, int paramInt, char paramChar, boolean paramBoolean)
  6851.   {
  6852.     int i2 = paramString.length();
  6853.     if (!paramBoolean) {
  6854.       paramStringBuffer.append(paramString);
  6855.     }
  6856.     for (int i1 = i2; i1 < paramInt; i1++) {
  6857.       paramStringBuffer.append(paramChar);
  6858.     }
  6859.     if (paramBoolean) {
  6860.       paramStringBuffer.append(paramString);
  6861.     }
  6862.   }
  6863.  
  6864.   private final boolean an()
  6865.   {
  6866.     if (this.cb <= 0)
  6867.     {
  6868.       if ((this.ej != null) && ((this.S) || (this.R)))
  6869.       {
  6870.         this.S = (this.T = this.R = 0);
  6871.         f(true);
  6872.         return true;
  6873.       }
  6874.       if (this.ej == null)
  6875.       {
  6876.         f(true);
  6877.         return true;
  6878.       }
  6879.       return false;
  6880.     }
  6881.     return true;
  6882.   }
  6883.  
  6884.   private final void f(boolean paramBoolean)
  6885.   {
  6886.     this.bT = this.bS;
  6887.     int i1 = this.bR + 1;
  6888.     int i2 = this.bS;
  6889.     int i3 = 1;
  6890.     int i4 = 0;
  6891.     switch (this.bR)
  6892.     {
  6893.     case 3:
  6894.       if (!i(this.bS, 11)) {
  6895.         i1 = 11;
  6896.       }
  6897.       break;
  6898.     case 6:
  6899.       if (!i(this.bS, 12)) {
  6900.         i1 = 12;
  6901.       }
  6902.       break;
  6903.     case 11:
  6904.       i1 = 4;
  6905.       break;
  6906.     case 12:
  6907.       i1 = 7;
  6908.       break;
  6909.     case 10:
  6910.       this.B[(this.bS - 1)] = true;
  6911.       i4 = 1;
  6912.       if (!i(this.bS, 10))
  6913.       {
  6914.         i2 = 0;
  6915.         i1 = 4;
  6916.       }
  6917.       else
  6918.       {
  6919.         i3 = 0;
  6920.       }
  6921.       break;
  6922.     }
  6923.     this.A[(this.bS - 1)] = ((byte)(i4 == 0 ? i1 : 0));
  6924.     g();
  6925.     if (i3 != 0)
  6926.     {
  6927.       this.bS = i2;
  6928.       this.bR = i1;
  6929.       if (paramBoolean) {
  6930.         i();
  6931.       }
  6932.       Y();
  6933.       this.x = 1;
  6934.       d(true);
  6935.     }
  6936.     else
  6937.     {
  6938.       ae();
  6939.     }
  6940.   }
  6941.  
  6942.   private final int h(int paramInt1, int paramInt2)
  6943.   {
  6944.     int i1 = (paramInt1 - 1) * 3;
  6945.     if (paramInt2 == 12) {
  6946.       i1++;
  6947.     } else if (paramInt2 == 10) {
  6948.       i1 += 2;
  6949.     } else if (paramInt2 != 11) {
  6950.       return -1;
  6951.     }
  6952.     return i1;
  6953.   }
  6954.  
  6955.   private final boolean i(int paramInt1, int paramInt2)
  6956.   {
  6957.     int i1 = h(paramInt1, paramInt2);
  6958.     if (i1 == -1) {
  6959.       return true;
  6960.     }
  6961.     return (this.K & 1L << i1) != 0L;
  6962.   }
  6963.  
  6964.   private final void a(boolean paramBoolean, int paramInt1, int paramInt2)
  6965.   {
  6966.     int i1 = h(paramInt1, paramInt2);
  6967.     if (i1 == -1) {
  6968.       return;
  6969.     }
  6970.     if (paramBoolean) {
  6971.       this.K |= 1L << i1;
  6972.     } else {
  6973.       this.K &= (1L << i1 ^ 0xFFFFFFFFFFFFFFFF);
  6974.     }
  6975.   }
  6976.  
  6977.   private final void ao()
  6978.   {
  6979.     a(this.a[this.ey[this.ex]], this.i + 12, (byte)-1);
  6980.     this.x = 8;
  6981.   }
  6982.  
  6983.   private final boolean ap()
  6984.   {
  6985.     boolean bool = false;
  6986.     if (this.Q)
  6987.     {
  6988.       this.Q = false;
  6989.       this.ex = ((byte)(this.ex + 1));
  6990.       if (this.ex >= this.ey.length) {
  6991.         this.ex = 0;
  6992.       }
  6993.       this.ep = 0;
  6994.       this.ew = this.a[this.ey[this.ex]];
  6995.       this.er = this.u;
  6996.       a(null, 0, 0, true, true, true, true);
  6997.       bool = true;
  6998.     }
  6999.     else if (this.P)
  7000.     {
  7001.       this.P = false;
  7002.       this.ex = ((byte)(this.ex - 1));
  7003.       if (this.ex < 0) {
  7004.         this.ex = ((byte)(this.ey.length - 1));
  7005.       }
  7006.       this.ep = 0;
  7007.       this.ew = this.a[this.ey[this.ex]];
  7008.       this.er = this.u;
  7009.       a(null, 0, 0, true, true, true, true);
  7010.       bool = true;
  7011.     }
  7012.     bool |= ak();
  7013.     return bool;
  7014.   }
  7015.  
  7016.   private final void e(Graphics paramGraphics)
  7017.   {
  7018.     a(paramGraphics, 22935, 10370, true, true, true, true);
  7019.     int i1 = this.i + 10;
  7020.     int i2 = this.u - e(this.u);
  7021.     int i3 = i1 - e(i1);
  7022.     a(paramGraphics, this.u - i2 >> 1, i1 - i3 >> 1, i2, i3, 22935, 10370);
  7023.     if (this.dM == 0)
  7024.     {
  7025.       if (this.ez[this.ex].length == 0)
  7026.       {
  7027.         String str;
  7028.         if (this.ex == 0) {
  7029.           str = this.a[49];
  7030.         } else {
  7031.           str = this.a[50];
  7032.         }
  7033.         a(str, paramGraphics, this.u >> 1, 6 + (this.i - this.g >> 1), true);
  7034.       }
  7035.       else
  7036.       {
  7037.         int i5 = this.ez[this.ex].length;
  7038.         int i6 = this.u - i5 * (this.h + this.l) + this.l >> 1;
  7039.         int i7 = i1 - this.i >> 1;
  7040.         for (int i4 = 0; i4 < i5; i4++)
  7041.         {
  7042.           byte b1 = this.ez[this.ex][i4];
  7043.           a(paramGraphics, true, b1, i6, i7);
  7044.           i6 += this.h + ((b1 != -24) && (b1 != -40) && (b1 != -39) ? this.l : 0);
  7045.         }
  7046.       }
  7047.       b(paramGraphics, this.ch, 17, 0, 9, 17, 5, i1 - 17 >> 1);
  7048.       b(paramGraphics, this.ch, 26, 0, 9, 17, this.u - 9 - 5, i1 - 17 >> 1);
  7049.     }
  7050.     a(paramGraphics, null, this.a[29], true);
  7051.   }
  7052.  
  7053.   private final void a(Graphics paramGraphics, String paramString1, String paramString2, boolean paramBoolean)
  7054.   {
  7055.     int i1;
  7056.     if (!this.dP) {
  7057.       i1 = e(22);
  7058.     } else {
  7059.       i1 = 0;
  7060.     }
  7061.     if (paramBoolean)
  7062.     {
  7063.       paramGraphics.setClip(0, 0, this.u, this.v);
  7064.       paramGraphics.setColor(22935);
  7065.       paramGraphics.fillRect(0, this.w + 2 + i1, this.u, 22);
  7066.     }
  7067.     if (paramString1 != null) {
  7068.       a(paramString1, paramGraphics, 3, this.w + 2 + 3 + i1, false);
  7069.     }
  7070.     if (paramString2 != null) {
  7071.       a(paramString2, paramGraphics, this.u - ((paramString2.length() - 1) * 12 + 10) - 3, this.w + 2 + 3 + i1, false);
  7072.     }
  7073.   }
  7074.  
  7075.   private final void d(byte paramByte)
  7076.   {
  7077.     this.eA = paramByte;
  7078.     this.ep = 0;
  7079.     this.en = 0;
  7080.     this.eo = 0;
  7081.     this.er = this.u;
  7082.     this.dS = false;
  7083.     switch (this.eA)
  7084.     {
  7085.     case 0:
  7086.       this.ew = this.a[55];
  7087.       break;
  7088.     case 1:
  7089.       this.ew = this.a[56];
  7090.       break;
  7091.     case 2:
  7092.       this.ew = this.a[57];
  7093.     }
  7094.     this.x = 9;
  7095.     a(null, 0, 0, true, true, true, true);
  7096.     a(true, -1);
  7097.   }
  7098.  
  7099.   private final boolean aq()
  7100.   {
  7101.     if (this.dM == 0)
  7102.     {
  7103.       if (this.S)
  7104.       {
  7105.         this.S = false;
  7106.         a(false, 0);
  7107.         return true;
  7108.       }
  7109.       if (this.T)
  7110.       {
  7111.         this.T = false;
  7112.         a(false, 1);
  7113.         return true;
  7114.       }
  7115.       if (this.N)
  7116.       {
  7117.         this.N = false;
  7118.         if (this.ep > 0)
  7119.         {
  7120.           this.ep -= 2;
  7121.           if (this.ep < 0) {
  7122.             this.ep = 0;
  7123.           }
  7124.           return true;
  7125.         }
  7126.       }
  7127.       else if (this.O)
  7128.       {
  7129.         this.O = false;
  7130.         if (this.ep < this.eq)
  7131.         {
  7132.           this.ep += 2;
  7133.           if (this.ep > this.eq) {
  7134.             this.ep = this.eq;
  7135.           }
  7136.           return true;
  7137.         }
  7138.       }
  7139.       return false;
  7140.     }
  7141.     this.dL -= 1;
  7142.     if (this.dL < 0)
  7143.     {
  7144.       this.dL = 0;
  7145.       if (this.dM == 2)
  7146.       {
  7147.         this.dM = 0;
  7148.         switch (this.dN)
  7149.         {
  7150.         case 0:
  7151.           g(true);
  7152.           break;
  7153.         case 1:
  7154.           g(false);
  7155.         }
  7156.       }
  7157.       else
  7158.       {
  7159.         this.dM = 0;
  7160.       }
  7161.     }
  7162.     return true;
  7163.   }
  7164.  
  7165.   private final void g(boolean paramBoolean)
  7166.   {
  7167.     switch (this.eA)
  7168.     {
  7169.     case 0:
  7170.       if (paramBoolean)
  7171.       {
  7172.         ae();
  7173.       }
  7174.       else
  7175.       {
  7176.         this.x = 1;
  7177.         this.dS = true;
  7178.         b(true, -1);
  7179.         a(true, -1);
  7180.       }
  7181.       break;
  7182.     case 1:
  7183.       if (paramBoolean)
  7184.       {
  7185.         this.x = 3;
  7186.         this.dS = false;
  7187.       }
  7188.       else
  7189.       {
  7190.         this.x = 4;
  7191.         this.dS = true;
  7192.         b(true, -1);
  7193.         a(true, -1);
  7194.       }
  7195.       break;
  7196.     case 2:
  7197.       this.c = ((byte)(paramBoolean ? 1 : 0));
  7198.       ae();
  7199.     }
  7200.   }
  7201.  
  7202.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement