Advertisement
Guest User

Untitled

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