import jagdx.IDirect3DDevice;
import jagdx.IUnknown;

public final class Class100_Sub1 extends Class100 {

   boolean aBool8280;
   Class103_Sub2 aClass103_Sub2_8281;
   Class545_Sub2_Sub1 aClass545_Sub2_Sub1_8282;
   long aLong8283;
   static final int anInt8284 = 1;
   static float[] aFloatArray8285 = new float[16];
   byte[] aByteArray8286;
   long aLong8287;
   byte[] aByteArray8288;
   static final int anInt8289 = 0;
   float[][] aFloatArrayArray8290;
   boolean[] aBoolArray8291;


   public void finalize() {
      this.method13206();
   }

   Class100_Sub1(Class545_Sub2_Sub1 var1, Class84 var2) {
      this.aBool8280 = false;
      this.aFloatArrayArray8290 = new float[2][];
      this.aBoolArray8291 = new boolean[2];
      this.aString1004 = var2.aString855;
      if(var2.aString852 != null) {
         this.aString1002 = var2.aString852;
         this.aByteArray8286 = var1.method15870(this.aString1002);
      }

      if(var2.aString853 != null) {
         this.aString1003 = var2.aString853;
         this.aByteArray8288 = var1.method15870(this.aString1003);
      }

      var1.method15120(this);
   }

   Class100_Sub1(Class545_Sub2_Sub1 var1, Class103_Sub2 var2, Class84 var3) {
      this(var1, var3);
      this.aClass545_Sub2_Sub1_8282 = var1;
      this.aClass103_Sub2_8281 = var2;
   }

   void method1922(Class225_Sub36_Sub1 var1, float var2) {
      int var3 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(1172909393) != Class122.aClass122_1233 && var1.method15648(618666912) != Class122.aClass122_1279) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var3 >= 0) {
            var3 *= 4;
            this.aFloatArrayArray8290[0][var3] = var2;
            this.aBoolArray8291[0] = true;
         }

         if(var4 >= 0) {
            var4 *= 4;
            this.aFloatArrayArray8290[1][var4] = var2;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1967(Class225_Sub36_Sub1 var1, float var2, float var3) {
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var5 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(720982479) != Class122.aClass122_1234) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var4 >= 0) {
            var4 *= 4;
            this.aFloatArrayArray8290[0][var4 + 0] = var2;
            this.aFloatArrayArray8290[0][var4 + 1] = var3;
            this.aBoolArray8291[0] = true;
         }

         if(var5 >= 0) {
            var5 *= 4;
            this.aFloatArrayArray8290[1][var5 + 0] = var2;
            this.aFloatArrayArray8290[1][var5 + 1] = var3;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1924(Class225_Sub36_Sub1 var1, float var2, float var3, float var4) {
      int var5 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var6 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(1237777486) != Class122.aClass122_1235) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var5 >= 0) {
            var5 *= 4;
            this.aFloatArrayArray8290[0][var5 + 0] = var2;
            this.aFloatArrayArray8290[0][var5 + 1] = var3;
            this.aFloatArrayArray8290[0][var5 + 2] = var4;
            this.aBoolArray8291[0] = true;
         }

         if(var6 >= 0) {
            var6 *= 4;
            this.aFloatArrayArray8290[1][var6 + 0] = var2;
            this.aFloatArrayArray8290[1][var6 + 1] = var3;
            this.aFloatArrayArray8290[1][var6 + 2] = var4;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1927(Class225_Sub36_Sub1 var1, float var2, float var3, float var4, float var5) {
      int var6 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var7 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(556820675) != Class122.aClass122_1236) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var6 >= 0) {
            var6 *= 4;
            this.aFloatArrayArray8290[0][var6 + 0] = var2;
            this.aFloatArrayArray8290[0][var6 + 1] = var3;
            this.aFloatArrayArray8290[0][var6 + 2] = var4;
            this.aFloatArrayArray8290[0][var6 + 3] = var5;
            this.aBoolArray8291[0] = true;
         }

         if(var7 >= 0) {
            var7 *= 4;
            this.aFloatArrayArray8290[1][var7 + 0] = var2;
            this.aFloatArrayArray8290[1][var7 + 1] = var3;
            this.aFloatArrayArray8290[1][var7 + 2] = var4;
            this.aFloatArrayArray8290[1][var7 + 3] = var5;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1964(Class225_Sub36_Sub1 var1, Class317 var2) {
      int var3 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(-418266504) != Class122.aClass122_1277) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var3 >= 0) {
            this.method13214(var3, var2.method5641(aFloatArray8285), 8);
         }

         if(var4 >= 0) {
            this.method13204(var4, var2.method5641(aFloatArray8285), 8);
         }

      }
   }

   void method1934(Class225_Sub36_Sub1 var1, Class317 var2) {
      int var3 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(-968069576) != Class122.aClass122_1290) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var3 >= 0) {
            this.method13214(var3, var2.method5639(aFloatArray8285), 16);
         }

         if(var4 >= 0) {
            this.method13204(var4, var2.method5639(aFloatArray8285), 16);
         }

      }
   }

   void method1926(Class225_Sub36_Sub1 var1, float[] var2, int var3) {
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var5 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(-54307657) != Class122.aClass122_1211) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var4 >= 0) {
            this.method13214(var4, var2, var3);
         }

         if(var5 >= 0) {
            this.method13204(var5, var2, var3);
         }

      }
   }

   void method1932(Class225_Sub36_Sub1 var1, int var2, Interface38 var3) {
      this.aClass545_Sub2_Sub1_8282.method15050(var2);
      this.aClass545_Sub2_Sub1_8282.method15051(var3);
   }

   void method1930(int var1, float var2, float var3, float var4) {
      int var5 = var1 >> 16;
      int var6 = (var1 & '\uffff') * 4;
      this.aFloatArrayArray8290[var5][var6] = var2;
      this.aFloatArrayArray8290[var5][var6 + 1] = var3;
      this.aFloatArrayArray8290[var5][var6 + 2] = var4;
      this.aBoolArray8291[var5] = true;
   }

   void method1919(int var1, float var2, float var3, float var4, float var5) {
      int var6 = var1 >> 16;
      int var7 = (var1 & '\uffff') * 4;
      this.aFloatArrayArray8290[var6][var7] = var2;
      this.aFloatArrayArray8290[var6][var7 + 1] = var3;
      this.aFloatArrayArray8290[var6][var7 + 2] = var4;
      this.aFloatArrayArray8290[var6][var7 + 3] = var5;
      this.aBoolArray8291[var6] = true;
   }

   void method1933(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5639(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 12);
      this.aBoolArray8291[var3] = true;
   }

   void method1976(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5641(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 8);
      this.aBoolArray8291[var3] = true;
   }

   void method1935(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5639(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 16);
      this.aBoolArray8291[var3] = true;
   }

   void method1944(int var1, float[] var2, int var3) {
      int var4 = var1 >> 16;
      int var5 = (var1 & '\uffff') * 4;
      System.arraycopy(var2, 0, this.aFloatArrayArray8290[var4], var5, var3);
      this.aBoolArray8291[var4] = true;
   }

   void method1955(int var1, float var2, float var3, float var4) {
      int var5 = var1 >> 16;
      int var6 = (var1 & '\uffff') * 4;
      this.aFloatArrayArray8290[var5][var6] = var2;
      this.aFloatArrayArray8290[var5][var6 + 1] = var3;
      this.aFloatArrayArray8290[var5][var6 + 2] = var4;
      this.aBoolArray8291[var5] = true;
   }

   final void method13204(int var1, float[] var2, int var3) {
      Class492.method8216(var2, 0, this.aFloatArrayArray8290[1], var1 * 4, var3);
      this.aBoolArray8291[1] = true;
   }

   void method1948(int var1, int var2, Interface38 var3) {
      this.aClass545_Sub2_Sub1_8282.method15050(var2);
      this.aClass545_Sub2_Sub1_8282.method15051(var3);
   }

   void method13205() {
      int var1;
      if(this.aBoolArray8291[0]) {
         for(var1 = 0; var1 < this.aFloatArrayArray8290[0].length; ++var1) {
            this.aClass545_Sub2_Sub1_8282.anUnsafe9632.putFloat(this.aClass545_Sub2_Sub1_8282.aLong9730 + (long)(var1 * 4), this.aFloatArrayArray8290[0][var1]);
         }

         IDirect3DDevice.SetVertexShaderConstantF(this.aClass545_Sub2_Sub1_8282.aLong10294, 0, this.aClass545_Sub2_Sub1_8282.aLong9730, this.aFloatArrayArray8290[0].length / 4);
         this.aBoolArray8291[0] = false;
      }

      if(this.aBoolArray8291[1]) {
         for(var1 = 0; var1 < this.aFloatArrayArray8290[1].length; ++var1) {
            this.aClass545_Sub2_Sub1_8282.anUnsafe9632.putFloat(this.aClass545_Sub2_Sub1_8282.aLong9730 + (long)(var1 * 4), this.aFloatArrayArray8290[1][var1]);
         }

         IDirect3DDevice.SetPixelShaderConstantF(this.aClass545_Sub2_Sub1_8282.aLong10294, 0, this.aClass545_Sub2_Sub1_8282.aLong9730, this.aFloatArrayArray8290[1].length / 4);
         this.aBoolArray8291[1] = false;
      }

   }

   public void method10() {
      if(this.aLong8283 != 0L) {
         IUnknown.Release(this.aLong8283);
         this.aLong8283 = 0L;
      }

      if(this.aLong8287 != 0L) {
         IUnknown.Release(this.aLong8287);
         this.aLong8287 = 0L;
      }

      this.aClass545_Sub2_Sub1_8282.method15169(this);
   }

   void method13206() {
      if(this.aLong8283 != 0L) {
         this.aClass545_Sub2_Sub1_8282.method15858(this.aLong8283);
         this.aLong8283 = 0L;
      }

      if(this.aLong8287 != 0L) {
         this.aClass545_Sub2_Sub1_8282.method15858(this.aLong8287);
         this.aLong8287 = 0L;
      }

   }

   final void method13207(int var1, float[] var2, int var3) {
      Class492.method8216(var2, 0, this.aFloatArrayArray8290[1], var1 * 4, var3);
      this.aBoolArray8291[1] = true;
   }

   void method1925(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5641(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 8);
      this.aBoolArray8291[var3] = true;
   }

   public void method8() {
      if(this.aLong8283 != 0L) {
         IUnknown.Release(this.aLong8283);
         this.aLong8283 = 0L;
      }

      if(this.aLong8287 != 0L) {
         IUnknown.Release(this.aLong8287);
         this.aLong8287 = 0L;
      }

      this.aClass545_Sub2_Sub1_8282.method15169(this);
   }

   void method1951(Class225_Sub36_Sub1 var1, int var2, Interface38 var3) {
      this.aClass545_Sub2_Sub1_8282.method15050(var2);
      this.aClass545_Sub2_Sub1_8282.method15051(var3);
   }

   void method13208() {
      this.method13206();
   }

   void method13209() {
      this.method13206();
   }

   public boolean method1941() {
      if(this.aBool8280) {
         return true;
      } else {
         this.aLong8283 = this.aByteArray8286 == null?0L:IDirect3DDevice.CreateVertexShader(this.aClass545_Sub2_Sub1_8282.aLong10294, this.aByteArray8286);
         this.aLong8287 = this.aByteArray8288 == null?0L:IDirect3DDevice.CreatePixelShader(this.aClass545_Sub2_Sub1_8282.aLong10294, this.aByteArray8288);
         if(this.aLong8283 == 0L && this.aLong8287 == 0L) {
            return false;
         } else {
            int var1 = -1;

            int var2;
            for(var2 = 0; var2 < this.aClass103_Sub2_8281.method2003(-1101942740); ++var2) {
               if(this.aClass103_Sub2_8281.method2004(var2, -1738905240) == this) {
                  var1 = var2;
                  break;
               }
            }

            var2 = this.aClass103_Sub2_8281.method2034((byte)15);
            int var3 = this.aClass103_Sub2_8281.method2031(-1072432698);

            int var4;
            Class225_Sub36_Sub1 var5;
            for(var4 = 0; var4 < var2; ++var4) {
               var5 = this.aClass103_Sub2_8281.method2092(var4, -1718655901);
               var5.method15631(var1);
            }

            for(var4 = 0; var4 < var3; ++var4) {
               var5 = this.aClass103_Sub2_8281.method2032(var4, (byte)12);
               var5.method15631(var1);
            }

            var4 = 0;
            int var12 = 0;
            int var6 = this.aClass103_Sub2_8281.method2051(this, -1653938144);

            for(int var7 = 0; var7 < var2 + var3; ++var7) {
               Class225_Sub36_Sub1_Sub1 var8 = (Class225_Sub36_Sub1_Sub1)(var7 < var2?this.aClass103_Sub2_8281.method2092(var7, -350620110):this.aClass103_Sub2_8281.method2032(var7 - var2, (byte)12));
               Class122 var9 = var8.method15648(116248514);
               int var10 = 1;
               if(var9 == Class122.aClass122_1211) {
                  var9 = var8.method15634(1524724148);
                  var10 = var8.method15635(1960308917);
               }

               switch(var9.anInt1334 * 95926635) {
               case 0:
               case 56:
               case 98:
               case 116:
                  var10 *= 4;
                  break;
               case 6:
               case 12:
               case 48:
               case 115:
                  var10 *= 2;
                  break;
               case 8:
               case 10:
               case 71:
               case 124:
                  var10 *= 3;
               case 38:
               case 46:
               case 63:
               case 107:
                  break;
               default:
                  var10 = 0;
               }

               int var11;
               if(var8.anIntArray10657[var6] >= 0) {
                  var11 = var8.anIntArray10657[var6] + var10;
                  if(var4 < var11) {
                     var4 = var11;
                  }
               }

               if(var8.anIntArray10659[var6] >= 0) {
                  var11 = var8.anIntArray10659[var6] + var10;
                  if(var12 < var11) {
                     var12 = var11;
                  }
               }
            }

            this.aFloatArrayArray8290[0] = new float[var4 * 4];
            this.aFloatArrayArray8290[1] = new float[var12 * 4];
            this.aBool8280 = true;
            return true;
         }
      }
   }

   void method1974(Class225_Sub36_Sub1 var1, float var2) {
      int var3 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(-737256659) != Class122.aClass122_1233 && var1.method15648(1790631880) != Class122.aClass122_1279) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var3 >= 0) {
            var3 *= 4;
            this.aFloatArrayArray8290[0][var3] = var2;
            this.aBoolArray8291[0] = true;
         }

         if(var4 >= 0) {
            var4 *= 4;
            this.aFloatArrayArray8290[1][var4] = var2;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1940(Class225_Sub36_Sub1 var1, float var2) {
      int var3 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(442542938) != Class122.aClass122_1233 && var1.method15648(1279602135) != Class122.aClass122_1279) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var3 >= 0) {
            var3 *= 4;
            this.aFloatArrayArray8290[0][var3] = var2;
            this.aBoolArray8291[0] = true;
         }

         if(var4 >= 0) {
            var4 *= 4;
            this.aFloatArrayArray8290[1][var4] = var2;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1972(Class225_Sub36_Sub1 var1, float var2) {
      int var3 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(568828138) != Class122.aClass122_1233 && var1.method15648(147461104) != Class122.aClass122_1279) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var3 >= 0) {
            var3 *= 4;
            this.aFloatArrayArray8290[0][var3] = var2;
            this.aBoolArray8291[0] = true;
         }

         if(var4 >= 0) {
            var4 *= 4;
            this.aFloatArrayArray8290[1][var4] = var2;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1942(Class225_Sub36_Sub1 var1, float var2, float var3, float var4) {
      int var5 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var6 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(990851976) != Class122.aClass122_1235) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var5 >= 0) {
            var5 *= 4;
            this.aFloatArrayArray8290[0][var5 + 0] = var2;
            this.aFloatArrayArray8290[0][var5 + 1] = var3;
            this.aFloatArrayArray8290[0][var5 + 2] = var4;
            this.aBoolArray8291[0] = true;
         }

         if(var6 >= 0) {
            var6 *= 4;
            this.aFloatArrayArray8290[1][var6 + 0] = var2;
            this.aFloatArrayArray8290[1][var6 + 1] = var3;
            this.aFloatArrayArray8290[1][var6 + 2] = var4;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1943(Class225_Sub36_Sub1 var1, float var2, float var3, float var4) {
      int var5 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var6 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(439142616) != Class122.aClass122_1235) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var5 >= 0) {
            var5 *= 4;
            this.aFloatArrayArray8290[0][var5 + 0] = var2;
            this.aFloatArrayArray8290[0][var5 + 1] = var3;
            this.aFloatArrayArray8290[0][var5 + 2] = var4;
            this.aBoolArray8291[0] = true;
         }

         if(var6 >= 0) {
            var6 *= 4;
            this.aFloatArrayArray8290[1][var6 + 0] = var2;
            this.aFloatArrayArray8290[1][var6 + 1] = var3;
            this.aFloatArrayArray8290[1][var6 + 2] = var4;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1939(Class225_Sub36_Sub1 var1, float var2, float var3, float var4, float var5) {
      int var6 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var7 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(1053465000) != Class122.aClass122_1236) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var6 >= 0) {
            var6 *= 4;
            this.aFloatArrayArray8290[0][var6 + 0] = var2;
            this.aFloatArrayArray8290[0][var6 + 1] = var3;
            this.aFloatArrayArray8290[0][var6 + 2] = var4;
            this.aFloatArrayArray8290[0][var6 + 3] = var5;
            this.aBoolArray8291[0] = true;
         }

         if(var7 >= 0) {
            var7 *= 4;
            this.aFloatArrayArray8290[1][var7 + 0] = var2;
            this.aFloatArrayArray8290[1][var7 + 1] = var3;
            this.aFloatArrayArray8290[1][var7 + 2] = var4;
            this.aFloatArrayArray8290[1][var7 + 3] = var5;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1945(Class225_Sub36_Sub1 var1, float var2, float var3, float var4, float var5) {
      int var6 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var7 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(-216184980) != Class122.aClass122_1236) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var6 >= 0) {
            var6 *= 4;
            this.aFloatArrayArray8290[0][var6 + 0] = var2;
            this.aFloatArrayArray8290[0][var6 + 1] = var3;
            this.aFloatArrayArray8290[0][var6 + 2] = var4;
            this.aFloatArrayArray8290[0][var6 + 3] = var5;
            this.aBoolArray8291[0] = true;
         }

         if(var7 >= 0) {
            var7 *= 4;
            this.aFloatArrayArray8290[1][var7 + 0] = var2;
            this.aFloatArrayArray8290[1][var7 + 1] = var3;
            this.aFloatArrayArray8290[1][var7 + 2] = var4;
            this.aFloatArrayArray8290[1][var7 + 3] = var5;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1970(Class225_Sub36_Sub1 var1, float var2, float var3, float var4, float var5) {
      int var6 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var7 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(1569867874) != Class122.aClass122_1236) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var6 >= 0) {
            var6 *= 4;
            this.aFloatArrayArray8290[0][var6 + 0] = var2;
            this.aFloatArrayArray8290[0][var6 + 1] = var3;
            this.aFloatArrayArray8290[0][var6 + 2] = var4;
            this.aFloatArrayArray8290[0][var6 + 3] = var5;
            this.aBoolArray8291[0] = true;
         }

         if(var7 >= 0) {
            var7 *= 4;
            this.aFloatArrayArray8290[1][var7 + 0] = var2;
            this.aFloatArrayArray8290[1][var7 + 1] = var3;
            this.aFloatArrayArray8290[1][var7 + 2] = var4;
            this.aFloatArrayArray8290[1][var7 + 3] = var5;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1969(Class225_Sub36_Sub1 var1, float var2, float var3, float var4, float var5) {
      int var6 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var7 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(-12297493) != Class122.aClass122_1236) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var6 >= 0) {
            var6 *= 4;
            this.aFloatArrayArray8290[0][var6 + 0] = var2;
            this.aFloatArrayArray8290[0][var6 + 1] = var3;
            this.aFloatArrayArray8290[0][var6 + 2] = var4;
            this.aFloatArrayArray8290[0][var6 + 3] = var5;
            this.aBoolArray8291[0] = true;
         }

         if(var7 >= 0) {
            var7 *= 4;
            this.aFloatArrayArray8290[1][var7 + 0] = var2;
            this.aFloatArrayArray8290[1][var7 + 1] = var3;
            this.aFloatArrayArray8290[1][var7 + 2] = var4;
            this.aFloatArrayArray8290[1][var7 + 3] = var5;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1923(Class225_Sub36_Sub1 var1, float[] var2, int var3) {
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var5 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(-940564428) != Class122.aClass122_1211) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var4 >= 0) {
            this.method13214(var4, var2, var3);
         }

         if(var5 >= 0) {
            this.method13204(var5, var2, var3);
         }

      }
   }

   public boolean method1921() {
      if(this.aBool8280) {
         return true;
      } else {
         this.aLong8283 = this.aByteArray8286 == null?0L:IDirect3DDevice.CreateVertexShader(this.aClass545_Sub2_Sub1_8282.aLong10294, this.aByteArray8286);
         this.aLong8287 = this.aByteArray8288 == null?0L:IDirect3DDevice.CreatePixelShader(this.aClass545_Sub2_Sub1_8282.aLong10294, this.aByteArray8288);
         if(this.aLong8283 == 0L && this.aLong8287 == 0L) {
            return false;
         } else {
            int var1 = -1;

            int var2;
            for(var2 = 0; var2 < this.aClass103_Sub2_8281.method2003(-1140190779); ++var2) {
               if(this.aClass103_Sub2_8281.method2004(var2, -1997004567) == this) {
                  var1 = var2;
                  break;
               }
            }

            var2 = this.aClass103_Sub2_8281.method2034((byte)-59);
            int var3 = this.aClass103_Sub2_8281.method2031(-1799384036);

            int var4;
            Class225_Sub36_Sub1 var5;
            for(var4 = 0; var4 < var2; ++var4) {
               var5 = this.aClass103_Sub2_8281.method2092(var4, -423661622);
               var5.method15631(var1);
            }

            for(var4 = 0; var4 < var3; ++var4) {
               var5 = this.aClass103_Sub2_8281.method2032(var4, (byte)12);
               var5.method15631(var1);
            }

            var4 = 0;
            int var12 = 0;
            int var6 = this.aClass103_Sub2_8281.method2051(this, 990622790);

            for(int var7 = 0; var7 < var2 + var3; ++var7) {
               Class225_Sub36_Sub1_Sub1 var8 = (Class225_Sub36_Sub1_Sub1)(var7 < var2?this.aClass103_Sub2_8281.method2092(var7, -1464574385):this.aClass103_Sub2_8281.method2032(var7 - var2, (byte)12));
               Class122 var9 = var8.method15648(32681113);
               int var10 = 1;
               if(var9 == Class122.aClass122_1211) {
                  var9 = var8.method15634(1850462396);
                  var10 = var8.method15635(2075120592);
               }

               switch(var9.anInt1334 * 95926635) {
               case 0:
               case 56:
               case 98:
               case 116:
                  var10 *= 4;
                  break;
               case 6:
               case 12:
               case 48:
               case 115:
                  var10 *= 2;
                  break;
               case 8:
               case 10:
               case 71:
               case 124:
                  var10 *= 3;
               case 38:
               case 46:
               case 63:
               case 107:
                  break;
               default:
                  var10 = 0;
               }

               int var11;
               if(var8.anIntArray10657[var6] >= 0) {
                  var11 = var8.anIntArray10657[var6] + var10;
                  if(var4 < var11) {
                     var4 = var11;
                  }
               }

               if(var8.anIntArray10659[var6] >= 0) {
                  var11 = var8.anIntArray10659[var6] + var10;
                  if(var12 < var11) {
                     var12 = var11;
                  }
               }
            }

            this.aFloatArrayArray8290[0] = new float[var4 * 4];
            this.aFloatArrayArray8290[1] = new float[var12 * 4];
            this.aBool8280 = true;
            return true;
         }
      }
   }

   void method13210() {
      int var1;
      if(this.aBoolArray8291[0]) {
         for(var1 = 0; var1 < this.aFloatArrayArray8290[0].length; ++var1) {
            this.aClass545_Sub2_Sub1_8282.anUnsafe9632.putFloat(this.aClass545_Sub2_Sub1_8282.aLong9730 + (long)(var1 * 4), this.aFloatArrayArray8290[0][var1]);
         }

         IDirect3DDevice.SetVertexShaderConstantF(this.aClass545_Sub2_Sub1_8282.aLong10294, 0, this.aClass545_Sub2_Sub1_8282.aLong9730, this.aFloatArrayArray8290[0].length / 4);
         this.aBoolArray8291[0] = false;
      }

      if(this.aBoolArray8291[1]) {
         for(var1 = 0; var1 < this.aFloatArrayArray8290[1].length; ++var1) {
            this.aClass545_Sub2_Sub1_8282.anUnsafe9632.putFloat(this.aClass545_Sub2_Sub1_8282.aLong9730 + (long)(var1 * 4), this.aFloatArrayArray8290[1][var1]);
         }

         IDirect3DDevice.SetPixelShaderConstantF(this.aClass545_Sub2_Sub1_8282.aLong10294, 0, this.aClass545_Sub2_Sub1_8282.aLong9730, this.aFloatArrayArray8290[1].length / 4);
         this.aBoolArray8291[1] = false;
      }

   }

   void method1936(Class225_Sub36_Sub1 var1, float var2, float var3) {
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var5 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(1674660999) != Class122.aClass122_1234) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var4 >= 0) {
            var4 *= 4;
            this.aFloatArrayArray8290[0][var4 + 0] = var2;
            this.aFloatArrayArray8290[0][var4 + 1] = var3;
            this.aBoolArray8291[0] = true;
         }

         if(var5 >= 0) {
            var5 *= 4;
            this.aFloatArrayArray8290[1][var5 + 0] = var2;
            this.aFloatArrayArray8290[1][var5 + 1] = var3;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1952(Class225_Sub36_Sub1 var1, int var2, Interface38 var3) {
      this.aClass545_Sub2_Sub1_8282.method15050(var2);
      this.aClass545_Sub2_Sub1_8282.method15051(var3);
   }

   void method1953(Class225_Sub36_Sub1 var1, int var2, Interface38 var3) {
      this.aClass545_Sub2_Sub1_8282.method15050(var2);
      this.aClass545_Sub2_Sub1_8282.method15051(var3);
   }

   void method1928(Class225_Sub36_Sub1 var1, int var2, Interface38 var3) {
      this.aClass545_Sub2_Sub1_8282.method15050(var2);
      this.aClass545_Sub2_Sub1_8282.method15051(var3);
   }

   void method1950(Class225_Sub36_Sub1 var1, Class317 var2) {
      int var3 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(1211078363) != Class122.aClass122_1277) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var3 >= 0) {
            this.method13214(var3, var2.method5641(aFloatArray8285), 8);
         }

         if(var4 >= 0) {
            this.method13204(var4, var2.method5641(aFloatArray8285), 8);
         }

      }
   }

   void method1956(int var1, float var2, float var3, float var4, float var5) {
      int var6 = var1 >> 16;
      int var7 = (var1 & '\uffff') * 4;
      this.aFloatArrayArray8290[var6][var7] = var2;
      this.aFloatArrayArray8290[var6][var7 + 1] = var3;
      this.aFloatArrayArray8290[var6][var7 + 2] = var4;
      this.aFloatArrayArray8290[var6][var7 + 3] = var5;
      this.aBoolArray8291[var6] = true;
   }

   void method1946(int var1, float[] var2, int var3) {
      int var4 = var1 >> 16;
      int var5 = (var1 & '\uffff') * 4;
      System.arraycopy(var2, 0, this.aFloatArrayArray8290[var4], var5, var3);
      this.aBoolArray8291[var4] = true;
   }

   void method1958(int var1, float[] var2, int var3) {
      int var4 = var1 >> 16;
      int var5 = (var1 & '\uffff') * 4;
      System.arraycopy(var2, 0, this.aFloatArrayArray8290[var4], var5, var3);
      this.aBoolArray8291[var4] = true;
   }

   final void method13211(int var1, float[] var2, int var3) {
      Class492.method8216(var2, 0, this.aFloatArrayArray8290[0], var1 * 4, var3);
      this.aBoolArray8291[0] = true;
   }

   void method1957(Class225_Sub36_Sub1 var1, Class317 var2) {
      int var3 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(1283596364) != Class122.aClass122_1277) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var3 >= 0) {
            this.method13214(var3, var2.method5641(aFloatArray8285), 8);
         }

         if(var4 >= 0) {
            this.method13204(var4, var2.method5641(aFloatArray8285), 8);
         }

      }
   }

   void method1929(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5639(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 12);
      this.aBoolArray8291[var3] = true;
   }

   void method1937(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5639(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 16);
      this.aBoolArray8291[var3] = true;
   }

   void method13212() {
      if(this.aLong8283 != 0L) {
         this.aClass545_Sub2_Sub1_8282.method15858(this.aLong8283);
         this.aLong8283 = 0L;
      }

      if(this.aLong8287 != 0L) {
         this.aClass545_Sub2_Sub1_8282.method15858(this.aLong8287);
         this.aLong8287 = 0L;
      }

   }

   void method1947(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5641(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 8);
      this.aBoolArray8291[var3] = true;
   }

   void method1965(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5641(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 8);
      this.aBoolArray8291[var3] = true;
   }

   void method1966(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5641(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 8);
      this.aBoolArray8291[var3] = true;
   }

   void method1954(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5641(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 8);
      this.aBoolArray8291[var3] = true;
   }

   void method1968(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5641(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 8);
      this.aBoolArray8291[var3] = true;
   }

   void method1962(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5639(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 12);
      this.aBoolArray8291[var3] = true;
   }

   void method1959(int var1, float[] var2, int var3) {
      int var4 = var1 >> 16;
      int var5 = (var1 & '\uffff') * 4;
      System.arraycopy(var2, 0, this.aFloatArrayArray8290[var4], var5, var3);
      this.aBoolArray8291[var4] = true;
   }

   void method1963(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5639(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 12);
      this.aBoolArray8291[var3] = true;
   }

   void method1931(int var1, int var2, Interface38 var3) {
      this.aClass545_Sub2_Sub1_8282.method15050(var2);
      this.aClass545_Sub2_Sub1_8282.method15051(var3);
   }

   void method13213() {
      this.method13206();
   }

   void method1949(int var1, int var2, Interface38 var3) {
      this.aClass545_Sub2_Sub1_8282.method15050(var2);
      this.aClass545_Sub2_Sub1_8282.method15051(var3);
   }

   void method1977(Class225_Sub36_Sub1 var1, float var2, float var3) {
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var5 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(-1235964379) != Class122.aClass122_1234) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var4 >= 0) {
            var4 *= 4;
            this.aFloatArrayArray8290[0][var4 + 0] = var2;
            this.aFloatArrayArray8290[0][var4 + 1] = var3;
            this.aBoolArray8291[0] = true;
         }

         if(var5 >= 0) {
            var5 *= 4;
            this.aFloatArrayArray8290[1][var5 + 0] = var2;
            this.aFloatArrayArray8290[1][var5 + 1] = var3;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   final void method13214(int var1, float[] var2, int var3) {
      Class492.method8216(var2, 0, this.aFloatArrayArray8290[0], var1 * 4, var3);
      this.aBoolArray8291[0] = true;
   }

   void method1960(int var1, Class317 var2) {
      int var3 = var1 >> 16;
      int var4 = (var1 & '\uffff') * 4;
      System.arraycopy(var2.method5639(aFloatArray8285), 0, this.aFloatArrayArray8290[var3], var4, 12);
      this.aBoolArray8291[var3] = true;
   }

   void method1978(Class225_Sub36_Sub1 var1, float var2, float var3) {
      int var4 = ((Class225_Sub36_Sub1_Sub1)var1).method16471();
      int var5 = ((Class225_Sub36_Sub1_Sub1)var1).method16470();
      if(var1.method15648(1295419374) != Class122.aClass122_1234) {
         throw new IllegalArgumentException_Sub1(var1, "");
      } else {
         if(var4 >= 0) {
            var4 *= 4;
            this.aFloatArrayArray8290[0][var4 + 0] = var2;
            this.aFloatArrayArray8290[0][var4 + 1] = var3;
            this.aBoolArray8291[0] = true;
         }

         if(var5 >= 0) {
            var5 *= 4;
            this.aFloatArrayArray8290[1][var5 + 0] = var2;
            this.aFloatArrayArray8290[1][var5 + 1] = var3;
            this.aBoolArray8291[1] = true;
         }

      }
   }

   void method1971(int var1, int var2, Interface38 var3) {
      this.aClass545_Sub2_Sub1_8282.method15050(var2);
      this.aClass545_Sub2_Sub1_8282.method15051(var3);
   }

   void method1973(int var1, int var2, Interface38 var3) {
      this.aClass545_Sub2_Sub1_8282.method15050(var2);
      this.aClass545_Sub2_Sub1_8282.method15051(var3);
   }

   final void method13215(int var1, float[] var2, int var3) {
      Class492.method8216(var2, 0, this.aFloatArrayArray8290[1], var1 * 4, var3);
      this.aBoolArray8291[1] = true;
   }

   void method13216() {
      int var1;
      if(this.aBoolArray8291[0]) {
         for(var1 = 0; var1 < this.aFloatArrayArray8290[0].length; ++var1) {
            this.aClass545_Sub2_Sub1_8282.anUnsafe9632.putFloat(this.aClass545_Sub2_Sub1_8282.aLong9730 + (long)(var1 * 4), this.aFloatArrayArray8290[0][var1]);
         }

         IDirect3DDevice.SetVertexShaderConstantF(this.aClass545_Sub2_Sub1_8282.aLong10294, 0, this.aClass545_Sub2_Sub1_8282.aLong9730, this.aFloatArrayArray8290[0].length / 4);
         this.aBoolArray8291[0] = false;
      }

      if(this.aBoolArray8291[1]) {
         for(var1 = 0; var1 < this.aFloatArrayArray8290[1].length; ++var1) {
            this.aClass545_Sub2_Sub1_8282.anUnsafe9632.putFloat(this.aClass545_Sub2_Sub1_8282.aLong9730 + (long)(var1 * 4), this.aFloatArrayArray8290[1][var1]);
         }

         IDirect3DDevice.SetPixelShaderConstantF(this.aClass545_Sub2_Sub1_8282.aLong10294, 0, this.aClass545_Sub2_Sub1_8282.aLong9730, this.aFloatArrayArray8290[1].length / 4);
         this.aBoolArray8291[1] = false;
      }

   }

   public void method9() {
      if(this.aLong8283 != 0L) {
         IUnknown.Release(this.aLong8283);
         this.aLong8283 = 0L;
      }

      if(this.aLong8287 != 0L) {
         IUnknown.Release(this.aLong8287);
         this.aLong8287 = 0L;
      }

      this.aClass545_Sub2_Sub1_8282.method15169(this);
   }

   void method13217() {
      if(this.aLong8283 != 0L) {
         this.aClass545_Sub2_Sub1_8282.method15858(this.aLong8283);
         this.aLong8283 = 0L;
      }

      if(this.aLong8287 != 0L) {
         this.aClass545_Sub2_Sub1_8282.method15858(this.aLong8287);
         this.aLong8287 = 0L;
      }

   }

   void method1975(int var1, int var2, Interface38 var3) {
      this.aClass545_Sub2_Sub1_8282.method15050(var2);
      this.aClass545_Sub2_Sub1_8282.method15051(var3);
   }
}
