static final void method3589(ha var_ha, int i) {
   if (!Class145.aBoolean1721) Class187.method1629(81, var_ha);
   else Class52.method413(false, var_ha);
   if (i != 5851) method3585(-51);
   anInt10134++;
 }
 public static void method1505(byte i) {
   if (i >= -1) method1499(125, 31, 8, true, -92, -128);
   for (int i_76_ = 0; i_76_ < Class68_Sub20_Sub16.anInt4418; i_76_++) {
     int i_77_ = PacketStream.anIntArray4110[i_76_];
     Class1_Sub6_Sub1 class1_sub6_sub1 = Class102.aClass1_Sub6_Sub1Array1746[i_77_];
     int i_78_ = Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedByte(-6677);
     if ((i_78_ & 0x10) != 0) {
       class1_sub6_sub1.anInt2525 =
           Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedWord(1355769544);
       if (class1_sub6_sub1.anInt2525 == 65535) class1_sub6_sub1.anInt2525 = -1;
     }
     if ((i_78_ & 0x8) != 0) {
       if (class1_sub6_sub1.aClass80_3395.method1444(0))
         Class68_Sub13_Sub4.method717(class1_sub6_sub1, 2);
       class1_sub6_sub1.aClass80_3395 =
           (Class68_Sub13_Sub11.method753(
               Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedWordBigEndian(119), 18));
       class1_sub6_sub1.anInt2530 = class1_sub6_sub1.aClass80_3395.anInt1409;
       class1_sub6_sub1.anInt2565 = class1_sub6_sub1.aClass80_3395.anInt1467;
       class1_sub6_sub1.anInt2574 = class1_sub6_sub1.aClass80_3395.anInt1447;
       class1_sub6_sub1.anInt2543 = class1_sub6_sub1.aClass80_3395.anInt1440;
       class1_sub6_sub1.anInt2532 = class1_sub6_sub1.aClass80_3395.anInt1410;
       class1_sub6_sub1.anInt2564 = class1_sub6_sub1.aClass80_3395.anInt1421;
       class1_sub6_sub1.anInt2581 = class1_sub6_sub1.aClass80_3395.anInt1456;
       class1_sub6_sub1.anInt2544 = class1_sub6_sub1.aClass80_3395.anInt1451;
       class1_sub6_sub1.anInt2563 = class1_sub6_sub1.aClass80_3395.anInt1415;
       if (class1_sub6_sub1.aClass80_3395.method1444(0))
         Class52.method543(
             19395,
             class1_sub6_sub1.anIntArray2570[0],
             class1_sub6_sub1,
             null,
             0,
             class1_sub6_sub1.anIntArray2523[0],
             Class61.anInt1149,
             null);
     }
     if ((0x40 & i_78_) != 0) {
       class1_sub6_sub1.aRSString_2576 = Class68_Sub13_Sub8.aPacketStream_3560.readString(127);
       class1_sub6_sub1.anInt2569 = 100;
     }
     if ((i_78_ & 0x1) != 0) {
       int i_79_ = Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedWordA();
       if (i_79_ == 65535) i_79_ = -1;
       int i_80_ = Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedByte(-6677);
       Class101.method1625(0, i_79_, class1_sub6_sub1, i_80_);
     }
     if ((i_78_ & 0x2) != 0) {
       class1_sub6_sub1.anInt2552 = Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedWordA();
       int i_81_ = Class68_Sub13_Sub8.aPacketStream_3560.readDWord_v2(false);
       class1_sub6_sub1.anInt2541 = (i_81_ & 0xffff) + Class68_Sub3.anInt2812;
       class1_sub6_sub1.anInt2586 = 0;
       if (class1_sub6_sub1.anInt2552 == 65535) class1_sub6_sub1.anInt2552 = -1;
       class1_sub6_sub1.anInt2560 = i_81_ >> 1453284944;
       class1_sub6_sub1.anInt2578 = 0;
       if (Class68_Sub3.anInt2812 < class1_sub6_sub1.anInt2541) class1_sub6_sub1.anInt2578 = -1;
     }
     if ((0x20 & i_78_) != 0) {
       int i_82_ = Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedByte(-6677);
       int i_83_ = Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedByteS();
       class1_sub6_sub1.method149(i_82_, false, Class68_Sub3.anInt2812, i_83_);
     }
     if ((i_78_ & 0x80) != 0) {
       class1_sub6_sub1.anInt2526 = Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedWordA();
       class1_sub6_sub1.anInt2572 =
           Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedWordBigEndianA();
     }
     if ((0x4 & i_78_) != 0) {
       int i_84_ = Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedByte(-6677);
       int i_85_ = Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedByte(-6677);
       class1_sub6_sub1.method149(i_84_, false, Class68_Sub3.anInt2812, i_85_);
       class1_sub6_sub1.anInt2534 = Class68_Sub3.anInt2812 + 300;
       class1_sub6_sub1.anInt2547 = Class68_Sub13_Sub8.aPacketStream_3560.readUnsignedByteS();
     }
   }
   anInt1623++;
 }