import jaggl.OpenGL;

public class Class168 {

   Class151_Sub1_Sub2 aClass151_Sub1_Sub2_2024;
   boolean aBool2025 = false;
   Class151_Sub1_Sub2 aClass151_Sub1_Sub2_2026;
   Class151_Sub1_Sub2 aClass151_Sub1_Sub2_2027;
   Class147_Sub4[] aClass147_Sub4Array2028 = new Class147_Sub4[2];
   int anInt2029 = 0;
   int anInt2030 = 1;
   int anInt2031 = 1;
   boolean aBool2032;
   boolean aBool2033 = true;
   Class545_Sub1 aClass545_Sub1_2034;
   Class456 aClass456_2035 = new Class456();
   boolean aBool2036 = true;
   boolean aBool2037 = true;
   boolean aBool2038 = true;
   Class225_Sub14_Sub18 aClass225_Sub14_Sub18_2039;
   Class147_Sub4 aClass147_Sub4_2040;
   Class225_Sub14_Sub18 aClass225_Sub14_Sub18_2041;
   int anInt2042 = 0;
   int anInt2043 = 0;
   Class91 aClass91_2044;


   void method2867() {
      int var1 = 0;
      boolean var2 = false;
      Class91 var3 = Class91.aClass91_897;

      for(Class225_Sub42 var4 = (Class225_Sub42)this.aClass456_2035.method7682((byte)18); var4 != null; var4 = (Class225_Sub42)this.aClass456_2035.method7666(-626458492)) {
         Class91 var5 = var4.method14145();
         if(var5.anInt906 * -2107221975 > var3.anInt906 * -2107221975) {
            var3 = var5;
         }

         var2 |= var4.method14137();
         var1 += var4.method14136();
      }

      if(var3 != this.aClass91_2044) {
         this.aClass91_2044 = var3;
         this.aBool2037 = true;
      }

      int var6 = this.anInt2043 > 2?2:this.anInt2043;
      int var7 = var1 > 2?2:var1;
      if(var6 != var7) {
         this.aBool2037 = true;
         this.aBool2036 = true;
      }

      if(var2 != this.aBool2025) {
         this.aBool2025 = var2;
         this.aBool2038 = true;
      }

      this.anInt2043 = var1;
   }

   void method2868() {
      this.aClass151_Sub1_Sub2_2024 = null;
      this.aClass151_Sub1_Sub2_2026 = null;
      this.aClass151_Sub1_Sub2_2027 = null;
      this.aClass225_Sub14_Sub18_2041 = null;
      this.aClass147_Sub4_2040 = null;
      this.aClass147_Sub4Array2028 = null;
      this.aClass225_Sub14_Sub18_2039 = null;
      if(!this.aClass456_2035.method7640(441727486)) {
         for(Class225 var1 = this.aClass456_2035.method7682((byte)78); var1 != this.aClass456_2035.aClass225_5687; var1 = var1.aClass225_2607) {
            ((Class225_Sub42)var1).method14132();
         }
      }

      this.anInt2031 = 1;
      this.anInt2030 = 1;
   }

   boolean method2869() {
      return this.aClass151_Sub1_Sub2_2027 != null;
   }

   Class168(Class545_Sub1 var1) {
      this.aClass91_2044 = Class91.aClass91_897;
      this.aClass545_Sub1_2034 = var1;
      if(this.aClass545_Sub1_2034.aBool9266 && this.aClass545_Sub1_2034.aBool9276) {
         this.aClass151_Sub1_Sub2_2027 = this.aClass151_Sub1_Sub2_2024 = new Class151_Sub1_Sub2(this.aClass545_Sub1_2034);
         if(this.aClass545_Sub1_2034.anInt9148 > 1 && this.aClass545_Sub1_2034.aBool9267 && this.aClass545_Sub1_2034.aBool9290) {
            this.aClass151_Sub1_Sub2_2027 = this.aClass151_Sub1_Sub2_2026 = new Class151_Sub1_Sub2(this.aClass545_Sub1_2034);
         }
      }

   }

   boolean method2870(int var1, int var2, int var3, int var4) {
      if(this.aClass151_Sub1_Sub2_2027 != null && !this.aClass456_2035.method7640(-1393389483)) {
         if(this.anInt2030 != var3 || this.anInt2031 != var4) {
            this.anInt2030 = var3;
            this.anInt2031 = var4;

            for(Class225 var5 = this.aClass456_2035.method7682((byte)74); var5 != this.aClass456_2035.aClass225_5687; var5 = var5.aClass225_2607) {
               ((Class225_Sub42)var5).method14140(this.anInt2030, this.anInt2031);
            }

            this.aBool2037 = true;
            this.aBool2038 = true;
            this.aBool2036 = true;
         }

         if(this.method2873()) {
            this.anInt2042 = var1;
            this.anInt2029 = var2;
            this.aBool2032 = true;
            this.aClass545_Sub1_2034.method14636(-this.anInt2042, this.anInt2031 + this.anInt2029 - this.aClass545_Sub1_2034.method11482((byte)14).method2742());
            this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2027, -543666943);
            this.aClass545_Sub1_2034.ba(3, 0);
            this.aClass151_Sub1_Sub2_2027.method15794(0);
            return true;
         } else {
            return false;
         }
      } else {
         return false;
      }
   }

   void method2871() {
      if(this.aBool2032) {
         if(this.aClass151_Sub1_Sub2_2026 != null) {
            this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2026, (byte)99);
            this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2024, -543666943);
            this.aClass151_Sub1_Sub2_2024.method15794(0);
            this.aClass151_Sub1_Sub2_2026.method14458(0, 0, this.anInt2030, this.anInt2031, 0, 0, true, this.aBool2025);
         }

         this.aClass545_Sub1_2034.method14587();
         this.aClass545_Sub1_2034.method14602(0);
         this.aClass545_Sub1_2034.method14591(1);
         this.aClass545_Sub1_2034.L();
         int var1 = 0;
         int var2 = 1;

         Class225_Sub42 var4;
         for(Class225_Sub42 var3 = (Class225_Sub42)this.aClass456_2035.method7682((byte)32); var3 != null; var3 = var4) {
            var4 = (Class225_Sub42)this.aClass456_2035.method7666(-1114549677);
            int var5 = var3.method14136();

            for(int var6 = 0; var6 < var5; ++var6) {
               var3.method14141(var6, this.aClass147_Sub4Array2028[var1], this.aClass147_Sub4_2040);
               if(var4 == null && var6 == var5 - 1) {
                  this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2024, (byte)86);
                  this.aClass545_Sub1_2034.method14636(0, 0);
                  OpenGL.glBegin(7);
                  OpenGL.glTexCoord2f(0.0F, (float)this.anInt2031);
                  OpenGL.glMultiTexCoord2f('\u84c1', 0.0F, 1.0F);
                  OpenGL.glVertex2i(this.anInt2042, this.anInt2029);
                  OpenGL.glTexCoord2f(0.0F, 0.0F);
                  OpenGL.glMultiTexCoord2f('\u84c1', 0.0F, 0.0F);
                  OpenGL.glVertex2i(this.anInt2042, this.anInt2029 + this.anInt2031);
                  OpenGL.glTexCoord2f((float)this.anInt2030, 0.0F);
                  OpenGL.glMultiTexCoord2f('\u84c1', 1.0F, 0.0F);
                  OpenGL.glVertex2i(this.anInt2042 + this.anInt2030, this.anInt2029 + this.anInt2031);
                  OpenGL.glTexCoord2f((float)this.anInt2030, (float)this.anInt2031);
                  OpenGL.glMultiTexCoord2f('\u84c1', 1.0F, 1.0F);
                  OpenGL.glVertex2i(this.anInt2042 + this.anInt2030, this.anInt2029);
                  OpenGL.glEnd();
               } else {
                  this.aClass151_Sub1_Sub2_2024.method15794(var2);
                  OpenGL.glBegin(7);
                  OpenGL.glTexCoord2f(0.0F, (float)this.anInt2031);
                  OpenGL.glMultiTexCoord2f('\u84c1', 0.0F, 1.0F);
                  OpenGL.glVertex2i(0, 0);
                  OpenGL.glTexCoord2f(0.0F, 0.0F);
                  OpenGL.glMultiTexCoord2f('\u84c1', 0.0F, 0.0F);
                  OpenGL.glVertex2i(0, this.anInt2031);
                  OpenGL.glTexCoord2f((float)this.anInt2030, 0.0F);
                  OpenGL.glMultiTexCoord2f('\u84c1', 1.0F, 0.0F);
                  OpenGL.glVertex2i(this.anInt2030, this.anInt2031);
                  OpenGL.glTexCoord2f((float)this.anInt2030, (float)this.anInt2031);
                  OpenGL.glMultiTexCoord2f('\u84c1', 1.0F, 1.0F);
                  OpenGL.glVertex2i(this.anInt2030, 0);
                  OpenGL.glEnd();
               }

               var3.method14134(var6);
               var2 = var2 + 1 & 1;
               var1 = var1 + 1 & 1;
            }
         }

         this.aBool2032 = false;
      }
   }

   boolean method2872(Class225_Sub42 var1) {
      if(this.aClass151_Sub1_Sub2_2027 != null) {
         if(var1.method14130() || var1.method14131()) {
            this.aClass456_2035.method7712(var1, (byte)91);
            this.method2867();
            if(this.method2873()) {
               if(this.anInt2030 != -1 && this.anInt2031 != -1) {
                  var1.method14140(this.anInt2030, this.anInt2031);
               }

               var1.aBool8763 = true;
               return true;
            }
         }

         this.method2876(var1);
      }

      return false;
   }

   boolean method2873() {
      if(this.aBool2038) {
         if(this.aClass225_Sub14_Sub18_2041 != null) {
            this.aClass225_Sub14_Sub18_2041.method10();
            this.aClass225_Sub14_Sub18_2041 = null;
         }

         if(this.aClass147_Sub4_2040 != null) {
            this.aClass147_Sub4_2040.method2698();
            this.aClass147_Sub4_2040 = null;
         }
      }

      if(this.aBool2037) {
         if(this.aClass225_Sub14_Sub18_2039 != null) {
            this.aClass225_Sub14_Sub18_2039.method10();
            this.aClass225_Sub14_Sub18_2039 = null;
         }

         if(this.aClass147_Sub4Array2028[0] != null) {
            this.aClass147_Sub4Array2028[0].method2698();
            this.aClass147_Sub4Array2028[0] = null;
         }

         if(this.aClass147_Sub4Array2028[1] != null) {
            this.aClass147_Sub4Array2028[1].method2698();
            this.aClass147_Sub4Array2028[1] = null;
         }
      }

      if(this.aBool2038) {
         if(this.aClass151_Sub1_Sub2_2026 != null) {
            this.aClass225_Sub14_Sub18_2041 = new Class225_Sub14_Sub18(this.aClass545_Sub1_2034, Class98.aClass98_990, Class91.aClass91_901, this.anInt2030, this.anInt2031, this.aClass545_Sub1_2034.anInt9148);
         }

         if(this.aBool2025) {
            this.aClass147_Sub4_2040 = new Class147_Sub4(this.aClass545_Sub1_2034, '\u84f5', Class98.aClass98_990, Class91.aClass91_901, this.anInt2030, this.anInt2031);
         } else if(this.aClass225_Sub14_Sub18_2041 == null) {
            this.aClass225_Sub14_Sub18_2041 = new Class225_Sub14_Sub18(this.aClass545_Sub1_2034, Class98.aClass98_990, Class91.aClass91_901, this.anInt2030, this.anInt2031);
         }

         this.aBool2038 = false;
         this.aBool2036 = true;
         this.aBool2033 = true;
      }

      if(this.aBool2037) {
         if(this.aClass151_Sub1_Sub2_2026 != null) {
            this.aClass225_Sub14_Sub18_2039 = new Class225_Sub14_Sub18(this.aClass545_Sub1_2034, Class98.aClass98_992, this.aClass91_2044, this.anInt2030, this.anInt2031, this.aClass545_Sub1_2034.anInt9148);
         }

         this.aClass147_Sub4Array2028[0] = new Class147_Sub4(this.aClass545_Sub1_2034, '\u84f5', Class98.aClass98_992, this.aClass91_2044, this.anInt2030, this.anInt2031);
         this.aClass147_Sub4Array2028[1] = this.anInt2043 > 1?new Class147_Sub4(this.aClass545_Sub1_2034, '\u84f5', Class98.aClass98_992, this.aClass91_2044, this.anInt2030, this.anInt2031):null;
         this.aBool2037 = false;
         this.aBool2036 = true;
         this.aBool2033 = true;
      }

      if(this.aBool2036) {
         if(this.aClass151_Sub1_Sub2_2026 != null) {
            this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2024, -543666943);
            this.aClass151_Sub1_Sub2_2024.method14459((Interface8)null);
            this.aClass151_Sub1_Sub2_2024.method14460(0, (Interface7)null);
            this.aClass151_Sub1_Sub2_2024.method14460(1, (Interface7)null);
            this.aClass151_Sub1_Sub2_2024.method14460(0, this.aClass147_Sub4Array2028[0].method15466(0));
            this.aClass151_Sub1_Sub2_2024.method14460(1, this.anInt2043 > 1?this.aClass147_Sub4Array2028[1].method15466(0):null);
            if(this.aBool2025) {
               this.aClass151_Sub1_Sub2_2024.method14459(this.aClass147_Sub4_2040.method15465(0));
            }

            this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2024, (byte)78);
            this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2026, -543666943);
            this.aClass151_Sub1_Sub2_2026.method14459((Interface8)null);
            this.aClass151_Sub1_Sub2_2026.method14460(0, (Interface7)null);
            this.aClass151_Sub1_Sub2_2026.method14460(0, this.aClass225_Sub14_Sub18_2039);
            this.aClass151_Sub1_Sub2_2026.method14459(this.aClass225_Sub14_Sub18_2041);
            this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2026, (byte)78);
         } else {
            this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2024, -543666943);
            this.aClass151_Sub1_Sub2_2024.method14459((Interface8)null);
            this.aClass151_Sub1_Sub2_2024.method14460(0, (Interface7)null);
            this.aClass151_Sub1_Sub2_2024.method14460(1, (Interface7)null);
            this.aClass151_Sub1_Sub2_2024.method14460(0, this.aClass147_Sub4Array2028[0].method15466(0));
            this.aClass151_Sub1_Sub2_2024.method14460(1, this.anInt2043 > 1?this.aClass147_Sub4Array2028[1].method15466(0):null);
            if(this.aBool2025) {
               this.aClass151_Sub1_Sub2_2024.method14459(this.aClass147_Sub4_2040.method15465(0));
            } else {
               this.aClass151_Sub1_Sub2_2024.method14459(this.aClass225_Sub14_Sub18_2041);
            }

            this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2024, (byte)111);
         }

         this.aBool2036 = false;
         this.aBool2033 = true;
      }

      if(this.aBool2033) {
         this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2027, -543666943);
         this.aBool2033 = !this.aClass151_Sub1_Sub2_2027.method14461();
         this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2027, (byte)22);
      }

      return !this.aBool2033;
   }

   boolean method2874() {
      return this.aClass151_Sub1_Sub2_2027 != null;
   }

   void method2875() {
      if(this.aBool2032) {
         if(this.aClass151_Sub1_Sub2_2026 != null) {
            this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2026, (byte)66);
            this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2024, -543666943);
            this.aClass151_Sub1_Sub2_2024.method15794(0);
            this.aClass151_Sub1_Sub2_2026.method14458(0, 0, this.anInt2030, this.anInt2031, 0, 0, true, this.aBool2025);
         }

         this.aClass545_Sub1_2034.method14587();
         this.aClass545_Sub1_2034.method14602(0);
         this.aClass545_Sub1_2034.method14591(1);
         this.aClass545_Sub1_2034.L();
         int var1 = 0;
         int var2 = 1;

         Class225_Sub42 var4;
         for(Class225_Sub42 var3 = (Class225_Sub42)this.aClass456_2035.method7682((byte)16); var3 != null; var3 = var4) {
            var4 = (Class225_Sub42)this.aClass456_2035.method7666(-660870306);
            int var5 = var3.method14136();

            for(int var6 = 0; var6 < var5; ++var6) {
               var3.method14141(var6, this.aClass147_Sub4Array2028[var1], this.aClass147_Sub4_2040);
               if(var4 == null && var6 == var5 - 1) {
                  this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2024, (byte)82);
                  this.aClass545_Sub1_2034.method14636(0, 0);
                  OpenGL.glBegin(7);
                  OpenGL.glTexCoord2f(0.0F, (float)this.anInt2031);
                  OpenGL.glMultiTexCoord2f('\u84c1', 0.0F, 1.0F);
                  OpenGL.glVertex2i(this.anInt2042, this.anInt2029);
                  OpenGL.glTexCoord2f(0.0F, 0.0F);
                  OpenGL.glMultiTexCoord2f('\u84c1', 0.0F, 0.0F);
                  OpenGL.glVertex2i(this.anInt2042, this.anInt2029 + this.anInt2031);
                  OpenGL.glTexCoord2f((float)this.anInt2030, 0.0F);
                  OpenGL.glMultiTexCoord2f('\u84c1', 1.0F, 0.0F);
                  OpenGL.glVertex2i(this.anInt2042 + this.anInt2030, this.anInt2029 + this.anInt2031);
                  OpenGL.glTexCoord2f((float)this.anInt2030, (float)this.anInt2031);
                  OpenGL.glMultiTexCoord2f('\u84c1', 1.0F, 1.0F);
                  OpenGL.glVertex2i(this.anInt2042 + this.anInt2030, this.anInt2029);
                  OpenGL.glEnd();
               } else {
                  this.aClass151_Sub1_Sub2_2024.method15794(var2);
                  OpenGL.glBegin(7);
                  OpenGL.glTexCoord2f(0.0F, (float)this.anInt2031);
                  OpenGL.glMultiTexCoord2f('\u84c1', 0.0F, 1.0F);
                  OpenGL.glVertex2i(0, 0);
                  OpenGL.glTexCoord2f(0.0F, 0.0F);
                  OpenGL.glMultiTexCoord2f('\u84c1', 0.0F, 0.0F);
                  OpenGL.glVertex2i(0, this.anInt2031);
                  OpenGL.glTexCoord2f((float)this.anInt2030, 0.0F);
                  OpenGL.glMultiTexCoord2f('\u84c1', 1.0F, 0.0F);
                  OpenGL.glVertex2i(this.anInt2030, this.anInt2031);
                  OpenGL.glTexCoord2f((float)this.anInt2030, (float)this.anInt2031);
                  OpenGL.glMultiTexCoord2f('\u84c1', 1.0F, 1.0F);
                  OpenGL.glVertex2i(this.anInt2030, 0);
                  OpenGL.glEnd();
               }

               var3.method14134(var6);
               var2 = var2 + 1 & 1;
               var1 = var1 + 1 & 1;
            }
         }

         this.aBool2032 = false;
      }
   }

   void method2876(Class225_Sub42 var1) {
      var1.aBool8763 = false;
      var1.method14132();
      var1.method3857(16173658);
      this.method2867();
   }

   void method2877() {
      this.aClass151_Sub1_Sub2_2024 = null;
      this.aClass151_Sub1_Sub2_2026 = null;
      this.aClass151_Sub1_Sub2_2027 = null;
      this.aClass225_Sub14_Sub18_2041 = null;
      this.aClass147_Sub4_2040 = null;
      this.aClass147_Sub4Array2028 = null;
      this.aClass225_Sub14_Sub18_2039 = null;
      if(!this.aClass456_2035.method7640(1875469601)) {
         for(Class225 var1 = this.aClass456_2035.method7682((byte)62); var1 != this.aClass456_2035.aClass225_5687; var1 = var1.aClass225_2607) {
            ((Class225_Sub42)var1).method14132();
         }
      }

      this.anInt2031 = 1;
      this.anInt2030 = 1;
   }

   void method2878() {
      this.aClass151_Sub1_Sub2_2024 = null;
      this.aClass151_Sub1_Sub2_2026 = null;
      this.aClass151_Sub1_Sub2_2027 = null;
      this.aClass225_Sub14_Sub18_2041 = null;
      this.aClass147_Sub4_2040 = null;
      this.aClass147_Sub4Array2028 = null;
      this.aClass225_Sub14_Sub18_2039 = null;
      if(!this.aClass456_2035.method7640(-164614396)) {
         for(Class225 var1 = this.aClass456_2035.method7682((byte)73); var1 != this.aClass456_2035.aClass225_5687; var1 = var1.aClass225_2607) {
            ((Class225_Sub42)var1).method14132();
         }
      }

      this.anInt2031 = 1;
      this.anInt2030 = 1;
   }

   boolean method2879() {
      return this.aClass151_Sub1_Sub2_2027 != null;
   }

   boolean method2880() {
      if(this.aBool2038) {
         if(this.aClass225_Sub14_Sub18_2041 != null) {
            this.aClass225_Sub14_Sub18_2041.method10();
            this.aClass225_Sub14_Sub18_2041 = null;
         }

         if(this.aClass147_Sub4_2040 != null) {
            this.aClass147_Sub4_2040.method2698();
            this.aClass147_Sub4_2040 = null;
         }
      }

      if(this.aBool2037) {
         if(this.aClass225_Sub14_Sub18_2039 != null) {
            this.aClass225_Sub14_Sub18_2039.method10();
            this.aClass225_Sub14_Sub18_2039 = null;
         }

         if(this.aClass147_Sub4Array2028[0] != null) {
            this.aClass147_Sub4Array2028[0].method2698();
            this.aClass147_Sub4Array2028[0] = null;
         }

         if(this.aClass147_Sub4Array2028[1] != null) {
            this.aClass147_Sub4Array2028[1].method2698();
            this.aClass147_Sub4Array2028[1] = null;
         }
      }

      if(this.aBool2038) {
         if(this.aClass151_Sub1_Sub2_2026 != null) {
            this.aClass225_Sub14_Sub18_2041 = new Class225_Sub14_Sub18(this.aClass545_Sub1_2034, Class98.aClass98_990, Class91.aClass91_901, this.anInt2030, this.anInt2031, this.aClass545_Sub1_2034.anInt9148);
         }

         if(this.aBool2025) {
            this.aClass147_Sub4_2040 = new Class147_Sub4(this.aClass545_Sub1_2034, '\u84f5', Class98.aClass98_990, Class91.aClass91_901, this.anInt2030, this.anInt2031);
         } else if(this.aClass225_Sub14_Sub18_2041 == null) {
            this.aClass225_Sub14_Sub18_2041 = new Class225_Sub14_Sub18(this.aClass545_Sub1_2034, Class98.aClass98_990, Class91.aClass91_901, this.anInt2030, this.anInt2031);
         }

         this.aBool2038 = false;
         this.aBool2036 = true;
         this.aBool2033 = true;
      }

      if(this.aBool2037) {
         if(this.aClass151_Sub1_Sub2_2026 != null) {
            this.aClass225_Sub14_Sub18_2039 = new Class225_Sub14_Sub18(this.aClass545_Sub1_2034, Class98.aClass98_992, this.aClass91_2044, this.anInt2030, this.anInt2031, this.aClass545_Sub1_2034.anInt9148);
         }

         this.aClass147_Sub4Array2028[0] = new Class147_Sub4(this.aClass545_Sub1_2034, '\u84f5', Class98.aClass98_992, this.aClass91_2044, this.anInt2030, this.anInt2031);
         this.aClass147_Sub4Array2028[1] = this.anInt2043 > 1?new Class147_Sub4(this.aClass545_Sub1_2034, '\u84f5', Class98.aClass98_992, this.aClass91_2044, this.anInt2030, this.anInt2031):null;
         this.aBool2037 = false;
         this.aBool2036 = true;
         this.aBool2033 = true;
      }

      if(this.aBool2036) {
         if(this.aClass151_Sub1_Sub2_2026 != null) {
            this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2024, -543666943);
            this.aClass151_Sub1_Sub2_2024.method14459((Interface8)null);
            this.aClass151_Sub1_Sub2_2024.method14460(0, (Interface7)null);
            this.aClass151_Sub1_Sub2_2024.method14460(1, (Interface7)null);
            this.aClass151_Sub1_Sub2_2024.method14460(0, this.aClass147_Sub4Array2028[0].method15466(0));
            this.aClass151_Sub1_Sub2_2024.method14460(1, this.anInt2043 > 1?this.aClass147_Sub4Array2028[1].method15466(0):null);
            if(this.aBool2025) {
               this.aClass151_Sub1_Sub2_2024.method14459(this.aClass147_Sub4_2040.method15465(0));
            }

            this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2024, (byte)51);
            this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2026, -543666943);
            this.aClass151_Sub1_Sub2_2026.method14459((Interface8)null);
            this.aClass151_Sub1_Sub2_2026.method14460(0, (Interface7)null);
            this.aClass151_Sub1_Sub2_2026.method14460(0, this.aClass225_Sub14_Sub18_2039);
            this.aClass151_Sub1_Sub2_2026.method14459(this.aClass225_Sub14_Sub18_2041);
            this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2026, (byte)29);
         } else {
            this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2024, -543666943);
            this.aClass151_Sub1_Sub2_2024.method14459((Interface8)null);
            this.aClass151_Sub1_Sub2_2024.method14460(0, (Interface7)null);
            this.aClass151_Sub1_Sub2_2024.method14460(1, (Interface7)null);
            this.aClass151_Sub1_Sub2_2024.method14460(0, this.aClass147_Sub4Array2028[0].method15466(0));
            this.aClass151_Sub1_Sub2_2024.method14460(1, this.anInt2043 > 1?this.aClass147_Sub4Array2028[1].method15466(0):null);
            if(this.aBool2025) {
               this.aClass151_Sub1_Sub2_2024.method14459(this.aClass147_Sub4_2040.method15465(0));
            } else {
               this.aClass151_Sub1_Sub2_2024.method14459(this.aClass225_Sub14_Sub18_2041);
            }

            this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2024, (byte)23);
         }

         this.aBool2036 = false;
         this.aBool2033 = true;
      }

      if(this.aBool2033) {
         this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2027, -543666943);
         this.aBool2033 = !this.aClass151_Sub1_Sub2_2027.method14461();
         this.aClass545_Sub1_2034.method11672(this.aClass151_Sub1_Sub2_2027, (byte)29);
      }

      return !this.aBool2033;
   }

   void method2881() {
      this.aClass151_Sub1_Sub2_2024 = null;
      this.aClass151_Sub1_Sub2_2026 = null;
      this.aClass151_Sub1_Sub2_2027 = null;
      this.aClass225_Sub14_Sub18_2041 = null;
      this.aClass147_Sub4_2040 = null;
      this.aClass147_Sub4Array2028 = null;
      this.aClass225_Sub14_Sub18_2039 = null;
      if(!this.aClass456_2035.method7640(861544485)) {
         for(Class225 var1 = this.aClass456_2035.method7682((byte)30); var1 != this.aClass456_2035.aClass225_5687; var1 = var1.aClass225_2607) {
            ((Class225_Sub42)var1).method14132();
         }
      }

      this.anInt2031 = 1;
      this.anInt2030 = 1;
   }

   boolean method2882(int var1, int var2, int var3, int var4) {
      if(this.aClass151_Sub1_Sub2_2027 != null && !this.aClass456_2035.method7640(669239283)) {
         if(this.anInt2030 != var3 || this.anInt2031 != var4) {
            this.anInt2030 = var3;
            this.anInt2031 = var4;

            for(Class225 var5 = this.aClass456_2035.method7682((byte)69); var5 != this.aClass456_2035.aClass225_5687; var5 = var5.aClass225_2607) {
               ((Class225_Sub42)var5).method14140(this.anInt2030, this.anInt2031);
            }

            this.aBool2037 = true;
            this.aBool2038 = true;
            this.aBool2036 = true;
         }

         if(this.method2873()) {
            this.anInt2042 = var1;
            this.anInt2029 = var2;
            this.aBool2032 = true;
            this.aClass545_Sub1_2034.method14636(-this.anInt2042, this.anInt2031 + this.anInt2029 - this.aClass545_Sub1_2034.method11482((byte)14).method2742());
            this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2027, -543666943);
            this.aClass545_Sub1_2034.ba(3, 0);
            this.aClass151_Sub1_Sub2_2027.method15794(0);
            return true;
         } else {
            return false;
         }
      } else {
         return false;
      }
   }

   boolean method2883(int var1, int var2, int var3, int var4) {
      if(this.aClass151_Sub1_Sub2_2027 != null && !this.aClass456_2035.method7640(1200435288)) {
         if(this.anInt2030 != var3 || this.anInt2031 != var4) {
            this.anInt2030 = var3;
            this.anInt2031 = var4;

            for(Class225 var5 = this.aClass456_2035.method7682((byte)88); var5 != this.aClass456_2035.aClass225_5687; var5 = var5.aClass225_2607) {
               ((Class225_Sub42)var5).method14140(this.anInt2030, this.anInt2031);
            }

            this.aBool2037 = true;
            this.aBool2038 = true;
            this.aBool2036 = true;
         }

         if(this.method2873()) {
            this.anInt2042 = var1;
            this.anInt2029 = var2;
            this.aBool2032 = true;
            this.aClass545_Sub1_2034.method14636(-this.anInt2042, this.anInt2031 + this.anInt2029 - this.aClass545_Sub1_2034.method11482((byte)14).method2742());
            this.aClass545_Sub1_2034.method11451(this.aClass151_Sub1_Sub2_2027, -543666943);
            this.aClass545_Sub1_2034.ba(3, 0);
            this.aClass151_Sub1_Sub2_2027.method15794(0);
            return true;
         } else {
            return false;
         }
      } else {
         return false;
      }
   }

   void method2884() {
      this.aClass151_Sub1_Sub2_2024 = null;
      this.aClass151_Sub1_Sub2_2026 = null;
      this.aClass151_Sub1_Sub2_2027 = null;
      this.aClass225_Sub14_Sub18_2041 = null;
      this.aClass147_Sub4_2040 = null;
      this.aClass147_Sub4Array2028 = null;
      this.aClass225_Sub14_Sub18_2039 = null;
      if(!this.aClass456_2035.method7640(912865871)) {
         for(Class225 var1 = this.aClass456_2035.method7682((byte)121); var1 != this.aClass456_2035.aClass225_5687; var1 = var1.aClass225_2607) {
            ((Class225_Sub42)var1).method14132();
         }
      }

      this.anInt2031 = 1;
      this.anInt2030 = 1;
   }

   void method2885(Class225_Sub42 var1) {
      var1.aBool8763 = false;
      var1.method14132();
      var1.method3857(-859612366);
      this.method2867();
   }

   void method2886(Class225_Sub42 var1) {
      var1.aBool8763 = false;
      var1.method14132();
      var1.method3857(1000737508);
      this.method2867();
   }

   void method2887() {
      int var1 = 0;
      boolean var2 = false;
      Class91 var3 = Class91.aClass91_897;

      for(Class225_Sub42 var4 = (Class225_Sub42)this.aClass456_2035.method7682((byte)27); var4 != null; var4 = (Class225_Sub42)this.aClass456_2035.method7666(-789640259)) {
         Class91 var5 = var4.method14145();
         if(var5.anInt906 * -2107221975 > var3.anInt906 * -2107221975) {
            var3 = var5;
         }

         var2 |= var4.method14137();
         var1 += var4.method14136();
      }

      if(var3 != this.aClass91_2044) {
         this.aClass91_2044 = var3;
         this.aBool2037 = true;
      }

      int var6 = this.anInt2043 > 2?2:this.anInt2043;
      int var7 = var1 > 2?2:var1;
      if(var6 != var7) {
         this.aBool2037 = true;
         this.aBool2036 = true;
      }

      if(var2 != this.aBool2025) {
         this.aBool2025 = var2;
         this.aBool2038 = true;
      }

      this.anInt2043 = var1;
   }
}
