Program: 174698
Project: 174698
Buggy source:
public static void addObject(GameObject gameObject){
  if (gameObject.getId() == 0x2c) {
    int worldFlag;
    short inventoryArg;
    if (gameObject.getArgs().get(0) == 1) {
      inventoryArg=gameObject.getArgs().get(1);
    }
 else     if (gameObject.getArgs().get(0) == 7) {
      inventoryArg=80;
    }
 else {
      inventoryArg=(short)(gameObject.getArgs().get(0) - 11);
      if (inventoryArg == 24) {
        TestByteOperation cogChestTest=gameObject.getTestByteOperations().get(0);
        cogChestTest.setIndex(2799);
        WriteByteOperation cogPuzzleFlag=gameObject.getWriteByteOperations().get(1);
        cogPuzzleFlag.setIndex(2799);
      }
    }
    WriteByteOperation flagUpdate=gameObject.getWriteByteOperations().get(0);
    if (flagUpdate.getIndex() == 333) {
      worldFlag=2707;
    }
 else     if (Settings.isRandomizeTrapItems() && flagUpdate.getIndex() == 60) {
      inventoryArg=0;
      worldFlag=2777;
      gameObject.getWriteByteOperations().clear();
      flagUpdate=new WriteByteOperation();
      flagUpdate.setIndex(2777);
      flagUpdate.setOp(ByteOp.ASSIGN_FLAG);
      flagUpdate.setValue(2);
      gameObject.getWriteByteOperations().add(flagUpdate);
      flagUpdate=new WriteByteOperation();
      flagUpdate.setIndex(2776);
      flagUpdate.setOp(ByteOp.ASSIGN_FLAG);
      flagUpdate.setValue(1);
      gameObject.getWriteByteOperations().add(flagUpdate);
      flagUpdate=new WriteByteOperation();
      flagUpdate.setIndex(2777);
      flagUpdate.setOp(ByteOp.ASSIGN_FLAG);
      flagUpdate.setValue(2);
      gameObject.getWriteByteOperations().add(flagUpdate);
      flagUpdate=new WriteByteOperation();
      flagUpdate.setIndex(2777);
      flagUpdate.setOp(ByteOp.ASSIGN_FLAG);
      flagUpdate.setValue(2);
      gameObject.getWriteByteOperations().add(flagUpdate);
    }
 else     if (Settings.isRandomizeTrapItems() && flagUpdate.getIndex() == 522) {
      inventoryArg=0;
      worldFlag=2778;
    }
 else {
      worldFlag=gameObject.getWriteByteOperations().get(0).getIndex();
    }
    GameObjectId gameObjectId=new GameObjectId(inventoryArg,worldFlag);
    List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
    if (objects == null) {
      mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
      objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
    }
    objects.add(gameObject);
  }
 else   if (gameObject.getId() == 0x2f) {
    short chestArg=gameObject.getArgs().get(1);
    int worldFlag=gameObject.getWriteByteOperations().get(0).getIndex();
    GameObjectId gameObjectId=new GameObjectId(chestArg,worldFlag);
    if (chestArg == 4) {
      Integer flagToRemoveIndex=null;
      for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
        if (gameObject.getTestByteOperations().get(i).getIndex() == 292) {
          flagToRemoveIndex=i;
          break;
        }
      }
      gameObject.getTestByteOperations().remove((int)flagToRemoveIndex);
    }
    List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
    if (objects == null) {
      mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
      objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
    }
    objects.add(gameObject);
  }
 else   if (gameObject.getId() == 0xb5) {
    short itemArg=gameObject.getArgs().get(0);
    if (itemArg == 70) {
      GameObjectId gameObjectId=new GameObjectId((short)70,209);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
 else     if (itemArg == 81) {
      GameObjectId gameObjectId=new GameObjectId((short)81,267);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
  }
 else   if (gameObject.getId() == 0xc3) {
    short itemArg=gameObject.getArgs().get(3);
    if (itemArg == 93 || itemArg == 94 || itemArg == 95) {
      short worldFlag;
      if (itemArg == 93) {
        worldFlag=234;
      }
 else       if (itemArg == 94) {
        worldFlag=235;
      }
 else {
        worldFlag=236;
      }
      GameObjectId gameObjectId=new GameObjectId((short)itemArg,worldFlag);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
  }
 else   if (gameObject.getId() == 0x12) {
    Integer flagIndexToRemove=null;
    TestByteOperation flagTest;
    for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
      flagTest=gameObject.getTestByteOperations().get(i);
      if (flagTest.getIndex() == 335) {
        GameObjectId gameObjectId=new GameObjectId((short)96,335);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 219) {
        GameObjectId gameObjectId=new GameObjectId((short)70,219);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 501) {
        flagIndexToRemove=i;
        break;
      }
 else       if (flagTest.getIndex() == 296) {
        flagTest.setIndex(2795);
        flagTest.setValue((byte)1);
      }
    }
    if (flagIndexToRemove != null) {
      gameObject.getTestByteOperations().remove((int)flagIndexToRemove);
    }
  }
 else   if (gameObject.getId() == 0x0e) {
    ObjectContainer objectContainer=gameObject.getObjectContainer();
    if (objectContainer instanceof Screen) {
      Screen screen=(Screen)objectContainer;
      if (screen.getZoneIndex() == 3 && screen.getRoomIndex() == 0 && screen.getScreenIndex() == 1) {
        TestByteOperation testByteOperation=new TestByteOperation();
        testByteOperation.setIndex(12);
        testByteOperation.setOp(ByteOp.FLAG_EQUALS);
        testByteOperation.setValue((byte)0);
        gameObject.getTestByteOperations().add(testByteOperation);
      }
    }
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 335) {
        GameObjectId gameObjectId=new GameObjectId((short)96,335);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 219) {
        GameObjectId gameObjectId=new GameObjectId((short)70,219);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 299 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 8) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 298 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 7) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 297 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 6) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 296 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 5) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 295 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 13) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 294 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 3) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 293 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 11) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 292) {
        if (flagTest.getValue() == 2) {
          if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 0) {
            List<GameObject> objects=mantraTablets.get("String_Node_Str");
            if (objects == null) {
              mantraTablets.put("String_Node_Str",new ArrayList<>());
              objects=mantraTablets.get("String_Node_Str");
            }
            objects.add(gameObject);
            break;
          }
        }
 else         if (flagTest.getValue() == 3) {
          flagTest.setIndex(2794);
          flagTest.setOp(ByteOp.FLAG_LT);
          flagTest.setValue((byte)1);
          break;
        }
 else         if (flagTest.getValue() == 4) {
          flagTest.setIndex(2794);
          flagTest.setValue((byte)1);
          break;
        }
      }
 else       if (flagTest.getIndex() == 570) {
        if (flagTest.getValue() == 3) {
          if (ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
            gameObject.setX(gameObject.getX() - 60);
            break;
          }
          if (ByteOp.FLAG_LTEQ.equals(flagTest.getOp())) {
            flagTest.setValue((byte)4);
            flagTest.setOp(ByteOp.FLAG_LT);
            break;
          }
        }
 else         if (flagTest.getValue() != 4) {
          flagTest.setIndex(2799);
          break;
        }
      }
    }
  }
 else   if (gameObject.getId() == 0x9b) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 218) {
        GameObjectId gameObjectId=new GameObjectId((short)70,218);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 267) {
        GameObjectId gameObjectId=new GameObjectId((short)81,267);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 292) {
        flagTest.setIndex(2794);
        flagTest.setValue((byte)1);
        break;
      }
    }
  }
 else   if (gameObject.getId() == 0x9c) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 552) {
        flagTest.setIndex(259);
        flagTest.setOp(ByteOp.FLAG_LTEQ);
        flagTest.setValue((byte)1);
        GameObjectId gameObjectId=new GameObjectId((short)71,259);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 570) {
        if (flagTest.getValue() == 3) {
          if (ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
            gameObject.setX(gameObject.getX() - 60);
            break;
          }
          if (ByteOp.FLAG_LTEQ.equals(flagTest.getOp())) {
            flagTest.setValue((byte)4);
            flagTest.setOp(ByteOp.FLAG_LT);
            break;
          }
        }
 else         if (flagTest.getValue() != 4) {
          flagTest.setIndex(2799);
          break;
        }
      }
    }
  }
 else   if (gameObject.getId() == 0x6b) {
    Integer flagUpdateToRemove=null;
    for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
      if (gameObject.getWriteByteOperations().get(i).getIndex() == 810) {
        flagUpdateToRemove=i;
        break;
      }
    }
    if (flagUpdateToRemove != null) {
      gameObject.getWriteByteOperations().remove((int)flagUpdateToRemove);
    }
  }
 else   if (gameObject.getId() == 0x11) {
    for (    WriteByteOperation flagUpdate : gameObject.getWriteByteOperations()) {
      if (flagUpdate.getIndex() == 218) {
        GameObjectId gameObjectId=new GameObjectId((short)70,218);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagUpdate.getIndex() == 433) {
        flagUpdate.setIndex(46);
        break;
      }
 else       if (flagUpdate.getIndex() == 434) {
        flagUpdate.setIndex(47);
        break;
      }
    }
  }
 else   if (gameObject.getId() == 0x14) {
    ObjectContainer objectContainer=gameObject.getObjectContainer();
    if (objectContainer instanceof Screen) {
      Screen screen=(Screen)objectContainer;
      if (screen.getZoneIndex() == 3 && screen.getRoomIndex() == 0 && screen.getScreenIndex() == 1) {
        if (gameObject.getTestByteOperations().get(0).getIndex() == 387) {
          gameObject.getWriteByteOperations().remove(0);
        }
 else         if (gameObject.getTestByteOperations().get(0).getIndex() == 392) {
          WriteByteOperation writeByteOperation=new WriteByteOperation();
          writeByteOperation.setIndex(387);
          writeByteOperation.setOp(ByteOp.ASSIGN_FLAG);
          writeByteOperation.setValue(1);
          gameObject.getWriteByteOperations().add(writeByteOperation);
        }
      }
    }
  }
 else   if (gameObject.getId() == 0x71 || gameObject.getId() == 0x33) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 180) {
        GameObjectId gameObjectId=new GameObjectId((short)51,180);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
    }
  }
 else   if (gameObject.getId() == 0x08) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 229) {
        GameObjectId gameObjectId=new GameObjectId((short)88,229);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 144) {
        GameObjectId gameObjectId=new GameObjectId((short)19,144);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 433) {
        flagTest.setIndex(46);
        gameObject.getWriteByteOperations().get(0).setIndex(46);
        break;
      }
 else       if (flagTest.getIndex() == 434) {
        flagTest.setIndex(47);
        gameObject.getWriteByteOperations().get(0).setIndex(47);
        break;
      }
 else       if (Settings.isRandomizeTrapItems()) {
        if (gameObject.getObjectContainer() instanceof Screen) {
          Screen screen=(Screen)gameObject.getObjectContainer();
          if (screen.getZoneIndex() == 11 && screen.getRoomIndex() == 4 && screen.getScreenIndex() == 3) {
            gameObject.getTestByteOperations().get(0).setIndex(2776);
            gameObject.getWriteByteOperations().get(0).setIndex(2776);
            gameObject.getWriteByteOperations().remove(1);
            GameObjectId gameObjectId=new GameObjectId((short)0,2777);
            List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
            if (objects == null) {
              mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
              objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
            }
            objects.add(gameObject);
            break;
          }
        }
      }
    }
  }
 else   if (gameObject.getId() == 0x9e) {
    int languageBlock=gameObject.getArgs().get(0);
    if (Settings.isAutomaticGrailPoints()) {
      if (languageBlock == 41 || languageBlock == 75 || languageBlock == 104 || languageBlock == 136 || languageBlock == 149 || languageBlock == 170 || languageBlock == 188 || languageBlock == 221 || languageBlock == 250 || languageBlock == 275 || languageBlock == 291 || languageBlock == 305 || languageBlock == 323 || languageBlock == 339 || languageBlock == 206 || languageBlock == 358) {
        addGrailDetector(gameObject,getGrailFlag(languageBlock));
        return;
      }
 else       if (languageBlock == 231) {
        if (gameObject.getObjectContainer() instanceof Screen) {
          if (((Screen)gameObject.getObjectContainer()).getZoneIndex() == 9) {
            addGrailDetector(gameObject,108);
            return;
          }
 else {
            addGrailDetector(gameObject,117);
            return;
          }
        }
      }
    }
    if (languageBlock == 223) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 200) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 172) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 153) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 313) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 115) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 282) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 72) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 648) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 292 && flagTest.getValue() == 4) {
          flagTest.setIndex(2794);
          flagTest.setValue((byte)1);
          break;
        }
      }
    }
 else {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 209) {
          GameObjectId gameObjectId=new GameObjectId((short)70,209);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          break;
        }
 else         if (flagTest.getIndex() == 570) {
          if (flagTest.getValue() == 3) {
            if (ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
              flagTest.setOp(ByteOp.FLAG_LTEQ);
              gameObject.setX(gameObject.getX() - 60);
              break;
            }
            if (ByteOp.FLAG_LTEQ.equals(flagTest.getOp())) {
              flagTest.setValue((byte)4);
              flagTest.setOp(ByteOp.FLAG_LT);
              break;
            }
          }
 else           if (flagTest.getValue() != 4) {
            flagTest.setIndex(2799);
            break;
          }
        }
      }
    }
  }
 else   if (gameObject.getId() == 0xa0) {
    int blockNumber=gameObject.getArgs().get(4);
    if (gameObject.getArgs().get(3) == 1) {
      if (DataFromFile.getMapOfShopNameToShopBlock().values().contains(blockNumber)) {
        List<GameObject> objects=mapOfShopBlockToShopObjects.get(blockNumber);
        if (objects == null) {
          mapOfShopBlockToShopObjects.put(blockNumber,new ArrayList<>());
          objects=mapOfShopBlockToShopObjects.get(blockNumber);
        }
        objects.add(gameObject);
      }
    }
    if (blockNumber == 34) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 742) {
          GameObjectId gameObjectId=new GameObjectId((short)76,742);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          break;
        }
      }
    }
 else     if (blockNumber == 185) {
      littleBrotherShopScreen=gameObject.getObjectContainer();
    }
 else     if (blockNumber == 490) {
      GameObjectId gameObjectId=new GameObjectId((short)76,742);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
      addAltSurfaceShopItemTimer(gameObject.getObjectContainer());
    }
 else     if (blockNumber == 693 || blockNumber == 915) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 554) {
          flagTest.setIndex(152);
          GameObjectId gameObjectId=new GameObjectId((short)22,152);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          break;
        }
      }
    }
 else     if (blockNumber == 673) {
      GameObjectId gameObjectId=new GameObjectId((short)100,241);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
 else     if (blockNumber == 677) {
      for (      WriteByteOperation flagUpdate : gameObject.getWriteByteOperations()) {
        if (flagUpdate.getIndex() == 299) {
          flagUpdate.setIndex(2795);
        }
      }
    }
 else     if (blockNumber == 689) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2784);
          flagTest.setOp(ByteOp.FLAG_EQUALS);
          flagTest.setValue((byte)0);
          break;
        }
      }
    }
 else     if (blockNumber == 690) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2784);
          flagTest.setOp(ByteOp.FLAG_GT);
          flagTest.setValue((byte)0);
          break;
        }
      }
    }
 else     if (blockNumber == 691) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2706);
          flagTest.setOp(ByteOp.FLAG_LT);
          flagTest.setValue((byte)2);
          GameObjectId gameObjectId=new GameObjectId((short)50,2706);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          break;
        }
      }
    }
 else     if (blockNumber == 692) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2706);
          flagTest.setOp(ByteOp.FLAG_GTEQ);
          flagTest.setValue((byte)2);
          GameObjectId gameObjectId=new GameObjectId((short)50,2706);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          break;
        }
      }
      TestByteOperation pepperCheck=new TestByteOperation();
      pepperCheck.setIndex(2784);
      pepperCheck.setOp(ByteOp.FLAG_GT);
      pepperCheck.setValue((byte)0);
      gameObject.getTestByteOperations().add(pepperCheck);
    }
 else     if (blockNumber == 484 || blockNumber == 1019 || gameObject.getArgs().get(4) == 1080 || gameObject.getArgs().get(4) == 1081) {
      Integer flagToRemoveIndex=null;
      for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
        if (gameObject.getTestByteOperations().get(i).getIndex() == 537) {
          flagToRemoveIndex=i;
          break;
        }
      }
      if (flagToRemoveIndex != null) {
        gameObject.getTestByteOperations().remove((int)flagToRemoveIndex);
      }
      if (gameObject.getArgs().get(4) == 484) {
        addDiaryTalismanConversationTimers(gameObject.getObjectContainer());
        xelpudScreen=gameObject.getObjectContainer();
      }
    }
 else     if (blockNumber == 485) {
      Integer flagToRemoveIndex=null;
      for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
        TestByteOperation flagTest=gameObject.getTestByteOperations().get(i);
        if (flagTest.getIndex() == 874) {
          flagToRemoveIndex=i;
        }
 else         if (flagTest.getIndex() == 123 && flagTest.getValue() == 56) {
          flagTest.setValue((byte)0);
        }
      }
      if (flagToRemoveIndex != null) {
        gameObject.getTestByteOperations().remove((int)flagToRemoveIndex);
      }
      mulbrukScreen=gameObject.getObjectContainer();
    }
 else     if (blockNumber == 685 || blockNumber == 686) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 501) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          break;
        }
      }
    }
 else     if (blockNumber == 990) {
      TestByteOperation testByteOperation=new TestByteOperation();
      testByteOperation.setIndex(810);
      testByteOperation.setOp(ByteOp.FLAG_NOT_EQUAL);
      testByteOperation.setValue((byte)1);
      gameObject.getTestByteOperations().add(testByteOperation);
    }
 else     if (blockNumber == 694 || blockNumber == 695) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 570) {
          flagTest.setIndex(2799);
        }
      }
      for (      WriteByteOperation flagUpdate : gameObject.getWriteByteOperations()) {
        if (flagUpdate.getIndex() == 570) {
          flagUpdate.setIndex(2799);
        }
      }
    }
 else     if (blockNumber == 1011) {
      GameObjectId gameObjectId=new GameObjectId((short)74,262);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
 else     if (blockNumber == 1013) {
      GameObjectId gameObjectId=new GameObjectId((short)74,262);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
 else     if (blockNumber == 1082 || blockNumber == 1083 || blockNumber == 924) {
      Integer flagToRemoveIndex=null;
      for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
        if (gameObject.getTestByteOperations().get(i).getIndex() == 874) {
          flagToRemoveIndex=i;
          break;
        }
      }
      if (flagToRemoveIndex != null) {
        gameObject.getTestByteOperations().remove((int)flagToRemoveIndex);
      }
    }
 else     if (blockNumber == 132) {
      addBackupGyoninFishShop(gameObject);
    }
  }
 else   if (gameObject.getId() == 0x93) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 241) {
        GameObjectId gameObjectId=new GameObjectId((short)100,241);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 171) {
        GameObjectId gameObjectId=new GameObjectId((short)42,171);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 262) {
        GameObjectId gameObjectId=new GameObjectId((short)74,262);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 299 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 8) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 298 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 7) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 297 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 6) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 296 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 5) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 295 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 13) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 294 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 3) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 293 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 11) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 292) {
        if (flagTest.getValue() == 2) {
          if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 0) {
            List<GameObject> objects=mantraTablets.get("String_Node_Str");
            if (objects == null) {
              mantraTablets.put("String_Node_Str",new ArrayList<>());
              objects=mantraTablets.get("String_Node_Str");
            }
            objects.add(gameObject);
            break;
          }
        }
 else         if (flagTest.getValue() == 4) {
          flagTest.setIndex(2794);
          flagTest.setValue((byte)1);
        }
      }
 else       if (flagTest.getIndex() == 570) {
        if (flagTest.getValue() == 3) {
          if (ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
            gameObject.setX(gameObject.getX() - 60);
            break;
          }
          if (ByteOp.FLAG_LTEQ.equals(flagTest.getOp())) {
            flagTest.setValue((byte)4);
            flagTest.setOp(ByteOp.FLAG_LT);
            break;
          }
        }
 else         if (flagTest.getValue() != 4) {
          flagTest.setIndex(2799);
          break;
        }
      }
    }
  }
 else   if (gameObject.getId() == 0x0b) {
    for (    WriteByteOperation flagUpdate : gameObject.getWriteByteOperations()) {
      if (flagUpdate.getIndex() == 554 && flagUpdate.getValue() == 3) {
        for (        TestByteOperation flagTest : gameObject.getTestByteOperations()) {
          if (flagTest.getIndex() == 554 && ByteOp.FLAG_EQUALS.equals(flagTest.getOp()) && flagTest.getValue() == 2) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
            return;
          }
        }
      }
 else       if (flagUpdate.getIndex() == 844) {
        if (flagUpdate.getValue() == 8) {
          GameObjectId gameObjectId=new GameObjectId((short)74,262);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          return;
        }
 else         if (flagUpdate.getValue() == 1) {
          if (Settings.isRandomizeForbiddenTreasure() && Settings.isHTFullRandom()) {
            Integer flagToRemoveIndex=null;
            for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
              if (gameObject.getTestByteOperations().get(i).getIndex() == 258) {
                flagToRemoveIndex=i;
                break;
              }
            }
            if (flagToRemoveIndex != null) {
              gameObject.getTestByteOperations().remove((int)flagToRemoveIndex);
            }
            return;
          }
        }
      }
    }
    for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
      TestByteOperation flagTest=gameObject.getTestByteOperations().get(i);
      if (flagTest.getIndex() == 260) {
        GameObjectId gameObjectId=new GameObjectId((short)72,260);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        return;
      }
 else       if (flagTest.getIndex() == 742) {
        GameObjectId gameObjectId=new GameObjectId((short)76,742);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        return;
      }
 else       if (flagTest.getIndex() == 123 && flagTest.getValue() == 56) {
        flagTest.setValue((byte)0);
      }
 else       if (flagTest.getIndex() == 299) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 8) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 298) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 7) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 297) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 6) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 425) {
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 295) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 13) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 294) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 3) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 293) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 11) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 292) {
        if (flagTest.getValue() == 1) {
          if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 0) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
            TestByteOperation testByteOperation=new TestByteOperation();
            testByteOperation.setIndex(2795);
            testByteOperation.setOp(ByteOp.FLAG_EQUALS);
            testByteOperation.setValue((byte)1);
            gameObject.getTestByteOperations().add(testByteOperation);
            List<GameObject> objects=mantraTablets.get("String_Node_Str");
            if (objects == null) {
              mantraTablets.put("String_Node_Str",new ArrayList<>());
              objects=mantraTablets.get("String_Node_Str");
            }
            objects.add(gameObject);
            break;
          }
        }
 else         if (flagTest.getValue() == 4) {
          flagTest.setIndex(2794);
          flagTest.setValue((byte)1);
        }
      }
 else       if (flagTest.getIndex() == 570) {
        flagTest.setIndex(2799);
        for (        WriteByteOperation writeByteOperation : gameObject.getWriteByteOperations()) {
          if (writeByteOperation.getIndex() == 570) {
            writeByteOperation.setIndex(2799);
            break;
          }
        }
        break;
      }
    }
  }
 else   if (gameObject.getId() == 0xbb) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 260) {
        GameObjectId gameObjectId=new GameObjectId((short)72,260);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        return;
      }
    }
  }
 else   if (gameObject.getId() == 0x0a) {
    for (    WriteByteOperation flagUpdate : gameObject.getWriteByteOperations()) {
      if (flagUpdate.getIndex() == 143) {
        GameObjectId gameObjectId=new GameObjectId((short)19,143);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        return;
      }
    }
  }
 else   if (gameObject.getId() == 0x4e) {
    for (    TestByteOperation testByteOperation : gameObject.getTestByteOperations()) {
      if (testByteOperation.getIndex() == 362 && ByteOp.FLAG_EQUALS.equals(testByteOperation.getOp())) {
        addBackupShrineDoor(gameObject.getObjectContainer());
      }
    }
  }
 else   if (gameObject.getId() == 0xc2) {
    short mantraNumber=gameObject.getArgs().get(0);
    if (mantraNumber > 1) {
      if (mantraNumber == 2) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 298) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 3) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 297) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 4) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 296) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 5) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 295) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 6) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 294) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 7) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 293) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 8) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 292) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 9) {
        for (        WriteByteOperation writeByteOperation : gameObject.getWriteByteOperations()) {
          if (writeByteOperation.getIndex() == 292) {
            writeByteOperation.setIndex(2794);
            writeByteOperation.setValue(1);
            break;
          }
        }
      }
      GameObject mantraCountTimer=new GameObject(gameObject.getObjectContainer());
      mantraCountTimer.setId((short)0x0b);
      mantraCountTimer.getArgs().add((short)0);
      mantraCountTimer.getArgs().add((short)0);
      mantraCountTimer.setX(-1);
      mantraCountTimer.setY(-1);
      TestByteOperation testByteOperation=new TestByteOperation();
      testByteOperation.setOp(ByteOp.FLAG_EQUALS);
      if (mantraNumber == 9) {
        testByteOperation.setIndex(2794);
        testByteOperation.setValue((byte)1);
      }
 else {
        testByteOperation.setIndex(gameObject.getTestByteOperations().get(0).getIndex());
        testByteOperation.setValue((byte)4);
      }
      mantraCountTimer.getTestByteOperations().add(testByteOperation);
      testByteOperation=new TestByteOperation();
      testByteOperation.setIndex(2792 - (299 - gameObject.getTestByteOperations().get(0).getIndex()));
      testByteOperation.setOp(ByteOp.FLAG_EQUALS);
      testByteOperation.setValue((byte)0);
      mantraCountTimer.getTestByteOperations().add(testByteOperation);
      WriteByteOperation writeByteOperation=new WriteByteOperation();
      writeByteOperation.setIndex(2793);
      writeByteOperation.setOp(ByteOp.ADD_FLAG);
      writeByteOperation.setValue(1);
      mantraCountTimer.getWriteByteOperations().add(writeByteOperation);
      writeByteOperation=new WriteByteOperation();
      writeByteOperation.setIndex(2792 - (299 - gameObject.getTestByteOperations().get(0).getIndex()));
      writeByteOperation.setOp(ByteOp.ASSIGN_FLAG);
      writeByteOperation.setValue(1);
      mantraCountTimer.getWriteByteOperations().add(writeByteOperation);
      gameObject.getObjectContainer().getObjects().add(mantraCountTimer);
      GameObject mantraTimer=new GameObject(gameObject.getObjectContainer());
      mantraTimer.setId((short)0x0b);
      mantraTimer.getArgs().add((short)0);
      mantraTimer.getArgs().add((short)0);
      mantraTimer.setX(-1);
      mantraTimer.setY(-1);
      testByteOperation=new TestByteOperation();
      testByteOperation.setIndex(2793);
      testByteOperation.setOp(ByteOp.FLAG_GTEQ);
      if (Settings.getEnabledGlitches().contains("String_Node_Str")) {
        testByteOperation.setValue((byte)5);
      }
 else {
        testByteOperation.setValue((byte)8);
      }
      mantraTimer.getTestByteOperations().add(testByteOperation);
      testByteOperation=new TestByteOperation();
      testByteOperation.setIndex(292);
      testByteOperation.setOp(ByteOp.FLAG_NOT_EQUAL);
      testByteOperation.setValue((byte)4);
      mantraTimer.getTestByteOperations().add(testByteOperation);
      writeByteOperation=new WriteByteOperation();
      writeByteOperation.setIndex(292);
      writeByteOperation.setOp(ByteOp.ASSIGN_FLAG);
      writeByteOperation.setValue(4);
      mantraTimer.getWriteByteOperations().add(writeByteOperation);
      gameObject.getObjectContainer().getObjects().add(mantraTimer);
    }
  }
}

Fixed version (ground truth):
public static void addObject(GameObject gameObject){
  if (gameObject.getId() == 0x2c) {
    int worldFlag;
    short inventoryArg;
    if (gameObject.getArgs().get(0) == 1) {
      inventoryArg=gameObject.getArgs().get(1);
    }
 else     if (gameObject.getArgs().get(0) == 7) {
      inventoryArg=80;
    }
 else {
      inventoryArg=(short)(gameObject.getArgs().get(0) - 11);
      if (inventoryArg == 24) {
        TestByteOperation cogChestTest=gameObject.getTestByteOperations().get(0);
        cogChestTest.setIndex(2799);
        WriteByteOperation cogPuzzleFlag=gameObject.getWriteByteOperations().get(1);
        cogPuzzleFlag.setIndex(2799);
      }
    }
    WriteByteOperation flagUpdate=gameObject.getWriteByteOperations().get(0);
    if (flagUpdate.getIndex() == 333) {
      worldFlag=2707;
    }
 else     if (Settings.isRandomizeTrapItems() && flagUpdate.getIndex() == 60) {
      inventoryArg=0;
      worldFlag=2777;
      gameObject.getWriteByteOperations().clear();
      flagUpdate=new WriteByteOperation();
      flagUpdate.setIndex(2777);
      flagUpdate.setOp(ByteOp.ASSIGN_FLAG);
      flagUpdate.setValue(2);
      gameObject.getWriteByteOperations().add(flagUpdate);
      flagUpdate=new WriteByteOperation();
      flagUpdate.setIndex(2776);
      flagUpdate.setOp(ByteOp.ASSIGN_FLAG);
      flagUpdate.setValue(1);
      gameObject.getWriteByteOperations().add(flagUpdate);
      flagUpdate=new WriteByteOperation();
      flagUpdate.setIndex(2777);
      flagUpdate.setOp(ByteOp.ASSIGN_FLAG);
      flagUpdate.setValue(2);
      gameObject.getWriteByteOperations().add(flagUpdate);
      flagUpdate=new WriteByteOperation();
      flagUpdate.setIndex(2777);
      flagUpdate.setOp(ByteOp.ASSIGN_FLAG);
      flagUpdate.setValue(2);
      gameObject.getWriteByteOperations().add(flagUpdate);
    }
 else     if (Settings.isRandomizeTrapItems() && flagUpdate.getIndex() == 522) {
      inventoryArg=0;
      worldFlag=2778;
    }
 else {
      worldFlag=gameObject.getWriteByteOperations().get(0).getIndex();
    }
    GameObjectId gameObjectId=new GameObjectId(inventoryArg,worldFlag);
    List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
    if (objects == null) {
      mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
      objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
    }
    objects.add(gameObject);
  }
 else   if (gameObject.getId() == 0x2f) {
    short chestArg=gameObject.getArgs().get(1);
    int worldFlag=gameObject.getWriteByteOperations().get(0).getIndex();
    GameObjectId gameObjectId=new GameObjectId(chestArg,worldFlag);
    if (chestArg == 4) {
      Integer flagToRemoveIndex=null;
      for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
        if (gameObject.getTestByteOperations().get(i).getIndex() == 292) {
          flagToRemoveIndex=i;
          break;
        }
      }
      gameObject.getTestByteOperations().remove((int)flagToRemoveIndex);
    }
    List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
    if (objects == null) {
      mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
      objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
    }
    objects.add(gameObject);
  }
 else   if (gameObject.getId() == 0xb5) {
    short itemArg=gameObject.getArgs().get(0);
    if (itemArg == 70) {
      GameObjectId gameObjectId=new GameObjectId((short)70,209);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
 else     if (itemArg == 81) {
      GameObjectId gameObjectId=new GameObjectId((short)81,267);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
  }
 else   if (gameObject.getId() == 0xc3) {
    short itemArg=gameObject.getArgs().get(3);
    if (itemArg == 93 || itemArg == 94 || itemArg == 95) {
      short worldFlag;
      if (itemArg == 93) {
        worldFlag=234;
      }
 else       if (itemArg == 94) {
        worldFlag=235;
      }
 else {
        worldFlag=236;
      }
      GameObjectId gameObjectId=new GameObjectId((short)itemArg,worldFlag);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
  }
 else   if (gameObject.getId() == 0x12) {
    Integer flagIndexToRemove=null;
    TestByteOperation flagTest;
    for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
      flagTest=gameObject.getTestByteOperations().get(i);
      if (flagTest.getIndex() == 335) {
        GameObjectId gameObjectId=new GameObjectId((short)96,335);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 219) {
        GameObjectId gameObjectId=new GameObjectId((short)70,219);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 501) {
        flagIndexToRemove=i;
        break;
      }
 else       if (flagTest.getIndex() == 296) {
        flagTest.setIndex(2795);
        flagTest.setValue((byte)1);
      }
    }
    if (flagIndexToRemove != null) {
      gameObject.getTestByteOperations().remove((int)flagIndexToRemove);
    }
  }
 else   if (gameObject.getId() == 0x0e) {
    ObjectContainer objectContainer=gameObject.getObjectContainer();
    if (objectContainer instanceof Screen) {
      Screen screen=(Screen)objectContainer;
      if (screen.getZoneIndex() == 3 && screen.getRoomIndex() == 0 && screen.getScreenIndex() == 1) {
        TestByteOperation testByteOperation=new TestByteOperation();
        testByteOperation.setIndex(12);
        testByteOperation.setOp(ByteOp.FLAG_EQUALS);
        testByteOperation.setValue((byte)0);
        gameObject.getTestByteOperations().add(testByteOperation);
      }
    }
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 335) {
        GameObjectId gameObjectId=new GameObjectId((short)96,335);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 219) {
        GameObjectId gameObjectId=new GameObjectId((short)70,219);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 299 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 8) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 298 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 7) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 297 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 6) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 296 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 5) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 295 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 13) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 294 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 3) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 293 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 11) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 292) {
        if (flagTest.getValue() == 2) {
          if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 0) {
            List<GameObject> objects=mantraTablets.get("String_Node_Str");
            if (objects == null) {
              mantraTablets.put("String_Node_Str",new ArrayList<>());
              objects=mantraTablets.get("String_Node_Str");
            }
            objects.add(gameObject);
            break;
          }
        }
 else         if (flagTest.getValue() == 3) {
          flagTest.setIndex(2794);
          flagTest.setOp(ByteOp.FLAG_LT);
          flagTest.setValue((byte)1);
          break;
        }
 else         if (flagTest.getValue() == 4) {
          flagTest.setIndex(2794);
          flagTest.setValue((byte)1);
          break;
        }
      }
 else       if (flagTest.getIndex() == 570) {
        if (flagTest.getValue() == 3) {
          if (ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
            gameObject.setX(gameObject.getX() - 60);
            break;
          }
          if (ByteOp.FLAG_LTEQ.equals(flagTest.getOp())) {
            flagTest.setValue((byte)4);
            flagTest.setOp(ByteOp.FLAG_LT);
            break;
          }
        }
 else         if (flagTest.getValue() != 4) {
          flagTest.setIndex(2799);
          break;
        }
      }
    }
  }
 else   if (gameObject.getId() == 0x9b) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 218) {
        GameObjectId gameObjectId=new GameObjectId((short)70,218);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 267) {
        GameObjectId gameObjectId=new GameObjectId((short)81,267);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 292) {
        flagTest.setIndex(2794);
        flagTest.setValue((byte)1);
        break;
      }
    }
  }
 else   if (gameObject.getId() == 0x9c) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 552) {
        flagTest.setIndex(259);
        flagTest.setOp(ByteOp.FLAG_LTEQ);
        flagTest.setValue((byte)1);
        GameObjectId gameObjectId=new GameObjectId((short)71,259);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 570) {
        if (flagTest.getValue() == 3) {
          if (ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
            gameObject.setX(gameObject.getX() - 60);
            break;
          }
          if (ByteOp.FLAG_LTEQ.equals(flagTest.getOp())) {
            flagTest.setValue((byte)4);
            flagTest.setOp(ByteOp.FLAG_LT);
            break;
          }
        }
 else         if (flagTest.getValue() != 4) {
          flagTest.setIndex(2799);
          break;
        }
      }
    }
  }
 else   if (gameObject.getId() == 0x6b) {
    Integer flagUpdateToRemove=null;
    for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
      if (gameObject.getWriteByteOperations().get(i).getIndex() == 810) {
        flagUpdateToRemove=i;
        break;
      }
    }
    if (flagUpdateToRemove != null) {
      gameObject.getWriteByteOperations().remove((int)flagUpdateToRemove);
    }
  }
 else   if (gameObject.getId() == 0x11) {
    for (    WriteByteOperation flagUpdate : gameObject.getWriteByteOperations()) {
      if (flagUpdate.getIndex() == 218) {
        GameObjectId gameObjectId=new GameObjectId((short)70,218);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagUpdate.getIndex() == 433) {
        flagUpdate.setIndex(46);
        break;
      }
 else       if (flagUpdate.getIndex() == 434) {
        flagUpdate.setIndex(47);
        break;
      }
    }
  }
 else   if (gameObject.getId() == 0x14) {
    ObjectContainer objectContainer=gameObject.getObjectContainer();
    if (objectContainer instanceof Screen) {
      Screen screen=(Screen)objectContainer;
      if (screen.getZoneIndex() == 3 && screen.getRoomIndex() == 0 && screen.getScreenIndex() == 1) {
        if (gameObject.getTestByteOperations().get(0).getIndex() == 387) {
          gameObject.getWriteByteOperations().remove(0);
        }
 else         if (gameObject.getTestByteOperations().get(0).getIndex() == 392) {
          WriteByteOperation writeByteOperation=new WriteByteOperation();
          writeByteOperation.setIndex(387);
          writeByteOperation.setOp(ByteOp.ASSIGN_FLAG);
          writeByteOperation.setValue(1);
          gameObject.getWriteByteOperations().add(writeByteOperation);
        }
      }
    }
  }
 else   if (gameObject.getId() == 0x71 || gameObject.getId() == 0x33) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 180) {
        GameObjectId gameObjectId=new GameObjectId((short)51,180);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
    }
  }
 else   if (gameObject.getId() == 0x08) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 229) {
        GameObjectId gameObjectId=new GameObjectId((short)88,229);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 144) {
        GameObjectId gameObjectId=new GameObjectId((short)19,144);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 433) {
        flagTest.setIndex(46);
        gameObject.getWriteByteOperations().get(0).setIndex(46);
        break;
      }
 else       if (flagTest.getIndex() == 434) {
        flagTest.setIndex(47);
        gameObject.getWriteByteOperations().get(0).setIndex(47);
        break;
      }
 else       if (Settings.isRandomizeTrapItems()) {
        if (gameObject.getObjectContainer() instanceof Screen) {
          Screen screen=(Screen)gameObject.getObjectContainer();
          if (screen.getZoneIndex() == 11 && screen.getRoomIndex() == 4 && screen.getScreenIndex() == 3) {
            gameObject.getTestByteOperations().get(0).setIndex(2776);
            gameObject.getWriteByteOperations().get(0).setIndex(2776);
            gameObject.getWriteByteOperations().remove(1);
            GameObjectId gameObjectId=new GameObjectId((short)0,2777);
            List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
            if (objects == null) {
              mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
              objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
            }
            objects.add(gameObject);
            break;
          }
        }
      }
    }
  }
 else   if (gameObject.getId() == 0x9e) {
    int languageBlock=gameObject.getArgs().get(0);
    if (Settings.isAutomaticGrailPoints()) {
      if (languageBlock == 41 || languageBlock == 75 || languageBlock == 104 || languageBlock == 136 || languageBlock == 149 || languageBlock == 170 || languageBlock == 188 || languageBlock == 221 || languageBlock == 250 || languageBlock == 275 || languageBlock == 291 || languageBlock == 305 || languageBlock == 323 || languageBlock == 339 || languageBlock == 206 || languageBlock == 358) {
        addGrailDetector(gameObject,getGrailFlag(languageBlock));
        return;
      }
 else       if (languageBlock == 231) {
        if (gameObject.getObjectContainer() instanceof Screen) {
          if (((Screen)gameObject.getObjectContainer()).getZoneIndex() == 9) {
            addGrailDetector(gameObject,108);
            return;
          }
 else {
            addGrailDetector(gameObject,117);
            return;
          }
        }
      }
    }
    if (languageBlock == 223) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 200) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 172) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 153) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 313) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 115) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 282) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 72) {
      List<GameObject> objects=mantraTablets.get("String_Node_Str");
      if (objects == null) {
        mantraTablets.put("String_Node_Str",new ArrayList<>());
        objects=mantraTablets.get("String_Node_Str");
      }
      objects.add(gameObject);
    }
 else     if (languageBlock == 648) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 292 && flagTest.getValue() == 4) {
          flagTest.setIndex(2794);
          flagTest.setValue((byte)1);
          break;
        }
      }
    }
 else {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 209) {
          GameObjectId gameObjectId=new GameObjectId((short)70,209);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          break;
        }
 else         if (flagTest.getIndex() == 570) {
          if (flagTest.getValue() == 3) {
            if (ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
              flagTest.setOp(ByteOp.FLAG_LTEQ);
              gameObject.setX(gameObject.getX() - 60);
              break;
            }
            if (ByteOp.FLAG_LTEQ.equals(flagTest.getOp())) {
              flagTest.setValue((byte)4);
              flagTest.setOp(ByteOp.FLAG_LT);
              break;
            }
          }
 else           if (flagTest.getValue() != 4) {
            flagTest.setIndex(2799);
            break;
          }
        }
      }
    }
  }
 else   if (gameObject.getId() == 0xa0) {
    int blockNumber=gameObject.getArgs().get(4);
    if (gameObject.getArgs().get(3) == 1) {
      if (DataFromFile.getMapOfShopNameToShopBlock().values().contains(blockNumber)) {
        List<GameObject> objects=mapOfShopBlockToShopObjects.get(blockNumber);
        if (objects == null) {
          mapOfShopBlockToShopObjects.put(blockNumber,new ArrayList<>());
          objects=mapOfShopBlockToShopObjects.get(blockNumber);
        }
        objects.add(gameObject);
      }
    }
    if (blockNumber == 34) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 742) {
          GameObjectId gameObjectId=new GameObjectId((short)76,742);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          break;
        }
      }
    }
 else     if (blockNumber == 185) {
      littleBrotherShopScreen=gameObject.getObjectContainer();
    }
 else     if (blockNumber == 490) {
      GameObjectId gameObjectId=new GameObjectId((short)76,742);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
      addAltSurfaceShopItemTimer(gameObject.getObjectContainer());
    }
 else     if (blockNumber == 693 || blockNumber == 915) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 554) {
          flagTest.setIndex(152);
          GameObjectId gameObjectId=new GameObjectId((short)22,152);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          break;
        }
      }
    }
 else     if (blockNumber == 673) {
      GameObjectId gameObjectId=new GameObjectId((short)100,241);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
 else     if (blockNumber == 677) {
      for (      WriteByteOperation flagUpdate : gameObject.getWriteByteOperations()) {
        if (flagUpdate.getIndex() == 299) {
          flagUpdate.setIndex(2795);
        }
      }
    }
 else     if (blockNumber == 689) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2784);
          flagTest.setOp(ByteOp.FLAG_EQUALS);
          flagTest.setValue((byte)0);
          break;
        }
      }
    }
 else     if (blockNumber == 690) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2784);
          flagTest.setOp(ByteOp.FLAG_GT);
          flagTest.setValue((byte)0);
          break;
        }
      }
    }
 else     if (blockNumber == 691) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2706);
          flagTest.setOp(ByteOp.FLAG_LT);
          flagTest.setValue((byte)2);
          GameObjectId gameObjectId=new GameObjectId((short)50,2706);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          break;
        }
      }
    }
 else     if (blockNumber == 692) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2706);
          flagTest.setOp(ByteOp.FLAG_GTEQ);
          flagTest.setValue((byte)2);
          GameObjectId gameObjectId=new GameObjectId((short)50,2706);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          break;
        }
      }
      TestByteOperation pepperCheck=new TestByteOperation();
      pepperCheck.setIndex(2784);
      pepperCheck.setOp(ByteOp.FLAG_GT);
      pepperCheck.setValue((byte)0);
      gameObject.getTestByteOperations().add(pepperCheck);
    }
 else     if (blockNumber == 484 || blockNumber == 1019 || gameObject.getArgs().get(4) == 1080 || gameObject.getArgs().get(4) == 1081) {
      Integer flagToRemoveIndex=null;
      for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
        if (gameObject.getTestByteOperations().get(i).getIndex() == 537) {
          flagToRemoveIndex=i;
          break;
        }
      }
      if (flagToRemoveIndex != null) {
        gameObject.getTestByteOperations().remove((int)flagToRemoveIndex);
      }
      if (gameObject.getArgs().get(4) == 484) {
        addDiaryTalismanConversationTimers(gameObject.getObjectContainer());
        xelpudScreen=gameObject.getObjectContainer();
      }
    }
 else     if (blockNumber == 485) {
      Integer flagToRemoveIndex=null;
      for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
        TestByteOperation flagTest=gameObject.getTestByteOperations().get(i);
        if (flagTest.getIndex() == 874) {
          flagToRemoveIndex=i;
        }
 else         if (flagTest.getIndex() == 123 && flagTest.getValue() == 56) {
          flagTest.setValue((byte)0);
        }
      }
      if (flagToRemoveIndex != null) {
        gameObject.getTestByteOperations().remove((int)flagToRemoveIndex);
      }
      mulbrukScreen=gameObject.getObjectContainer();
    }
 else     if (blockNumber == 685 || blockNumber == 686) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 501) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          break;
        }
      }
    }
 else     if (blockNumber == 990) {
      TestByteOperation testByteOperation=new TestByteOperation();
      testByteOperation.setIndex(810);
      testByteOperation.setOp(ByteOp.FLAG_NOT_EQUAL);
      testByteOperation.setValue((byte)1);
      gameObject.getTestByteOperations().add(testByteOperation);
    }
 else     if (blockNumber == 694 || blockNumber == 695) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 570) {
          flagTest.setIndex(2799);
        }
      }
      for (      WriteByteOperation flagUpdate : gameObject.getWriteByteOperations()) {
        if (flagUpdate.getIndex() == 570) {
          flagUpdate.setIndex(2799);
        }
      }
    }
 else     if (blockNumber == 1011) {
      GameObjectId gameObjectId=new GameObjectId((short)74,262);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
 else     if (blockNumber == 1013) {
      GameObjectId gameObjectId=new GameObjectId((short)74,262);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
 else     if (blockNumber == 1082 || blockNumber == 1083 || blockNumber == 924) {
      Integer flagToRemoveIndex=null;
      for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
        if (gameObject.getTestByteOperations().get(i).getIndex() == 874) {
          flagToRemoveIndex=i;
          break;
        }
      }
      if (flagToRemoveIndex != null) {
        gameObject.getTestByteOperations().remove((int)flagToRemoveIndex);
      }
    }
 else     if (blockNumber == 132) {
      addBackupGyoninFishShop(gameObject);
    }
  }
 else   if (gameObject.getId() == 0x93) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 241) {
        GameObjectId gameObjectId=new GameObjectId((short)100,241);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 171) {
        GameObjectId gameObjectId=new GameObjectId((short)42,171);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 262) {
        GameObjectId gameObjectId=new GameObjectId((short)74,262);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        break;
      }
 else       if (flagTest.getIndex() == 299 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 8) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 298 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 7) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 297 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 6) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 296 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 5) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 295 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 13) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 294 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 3) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 293 && flagTest.getValue() == 2) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 11) {
          List<GameObject> objects=mantraTablets.get("String_Node_Str");
          if (objects == null) {
            mantraTablets.put("String_Node_Str",new ArrayList<>());
            objects=mantraTablets.get("String_Node_Str");
          }
          objects.add(gameObject);
          break;
        }
      }
 else       if (flagTest.getIndex() == 292) {
        if (flagTest.getValue() == 2) {
          if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 0) {
            List<GameObject> objects=mantraTablets.get("String_Node_Str");
            if (objects == null) {
              mantraTablets.put("String_Node_Str",new ArrayList<>());
              objects=mantraTablets.get("String_Node_Str");
            }
            objects.add(gameObject);
            break;
          }
        }
 else         if (flagTest.getValue() == 4) {
          flagTest.setIndex(2794);
          flagTest.setValue((byte)1);
        }
      }
 else       if (flagTest.getIndex() == 570) {
        if (flagTest.getValue() == 3) {
          if (ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
            gameObject.setX(gameObject.getX() - 60);
            break;
          }
          if (ByteOp.FLAG_LTEQ.equals(flagTest.getOp())) {
            flagTest.setValue((byte)4);
            flagTest.setOp(ByteOp.FLAG_LT);
            break;
          }
        }
 else         if (flagTest.getValue() != 4) {
          flagTest.setIndex(2799);
          break;
        }
      }
    }
  }
 else   if (gameObject.getId() == 0x0b) {
    for (    WriteByteOperation flagUpdate : gameObject.getWriteByteOperations()) {
      if (flagUpdate.getIndex() == 554 && flagUpdate.getValue() == 3) {
        for (        TestByteOperation flagTest : gameObject.getTestByteOperations()) {
          if (flagTest.getIndex() == 554 && ByteOp.FLAG_EQUALS.equals(flagTest.getOp()) && flagTest.getValue() == 2) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
            return;
          }
        }
      }
 else       if (flagUpdate.getIndex() == 844) {
        if (flagUpdate.getValue() == 8) {
          GameObjectId gameObjectId=new GameObjectId((short)74,262);
          List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          if (objects == null) {
            mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
            objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
          }
          objects.add(gameObject);
          return;
        }
 else         if (flagUpdate.getValue() == 1) {
          if ((Settings.isRandomizeForbiddenTreasure() && Settings.isHTFullRandom()) || Settings.isRandomizeDracuetShop()) {
            Integer flagToRemoveIndex=null;
            for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
              if (gameObject.getTestByteOperations().get(i).getIndex() == 258) {
                flagToRemoveIndex=i;
                break;
              }
            }
            if (flagToRemoveIndex != null) {
              gameObject.getTestByteOperations().remove((int)flagToRemoveIndex);
            }
            return;
          }
        }
      }
    }
    for (int i=0; i < gameObject.getTestByteOperations().size(); i++) {
      TestByteOperation flagTest=gameObject.getTestByteOperations().get(i);
      if (flagTest.getIndex() == 260) {
        GameObjectId gameObjectId=new GameObjectId((short)72,260);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        return;
      }
 else       if (flagTest.getIndex() == 742) {
        GameObjectId gameObjectId=new GameObjectId((short)76,742);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        return;
      }
 else       if (flagTest.getIndex() == 123 && flagTest.getValue() == 56) {
        flagTest.setValue((byte)0);
      }
 else       if (flagTest.getIndex() == 299) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 8) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 298) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 7) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 297) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 6) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 425) {
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 295) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 13) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 294) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 3) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 293) {
        if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 11) {
          flagTest.setOp(ByteOp.FLAG_LTEQ);
          TestByteOperation testByteOperation=new TestByteOperation();
          testByteOperation.setIndex(2795);
          testByteOperation.setOp(ByteOp.FLAG_EQUALS);
          testByteOperation.setValue((byte)1);
          gameObject.getTestByteOperations().add(testByteOperation);
          break;
        }
        List<GameObject> objects=mantraTablets.get("String_Node_Str");
        if (objects == null) {
          mantraTablets.put("String_Node_Str",new ArrayList<>());
          objects=mantraTablets.get("String_Node_Str");
        }
        objects.add(gameObject);
      }
 else       if (flagTest.getIndex() == 292) {
        if (flagTest.getValue() == 1) {
          if (gameObject.getObjectContainer() instanceof Screen && ((Screen)gameObject.getObjectContainer()).getZoneIndex() == 0) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
            TestByteOperation testByteOperation=new TestByteOperation();
            testByteOperation.setIndex(2795);
            testByteOperation.setOp(ByteOp.FLAG_EQUALS);
            testByteOperation.setValue((byte)1);
            gameObject.getTestByteOperations().add(testByteOperation);
            List<GameObject> objects=mantraTablets.get("String_Node_Str");
            if (objects == null) {
              mantraTablets.put("String_Node_Str",new ArrayList<>());
              objects=mantraTablets.get("String_Node_Str");
            }
            objects.add(gameObject);
            break;
          }
        }
 else         if (flagTest.getValue() == 4) {
          flagTest.setIndex(2794);
          flagTest.setValue((byte)1);
        }
      }
 else       if (flagTest.getIndex() == 570) {
        flagTest.setIndex(2799);
        for (        WriteByteOperation writeByteOperation : gameObject.getWriteByteOperations()) {
          if (writeByteOperation.getIndex() == 570) {
            writeByteOperation.setIndex(2799);
            break;
          }
        }
        break;
      }
    }
  }
 else   if (gameObject.getId() == 0xbb) {
    for (    TestByteOperation flagTest : gameObject.getTestByteOperations()) {
      if (flagTest.getIndex() == 260) {
        GameObjectId gameObjectId=new GameObjectId((short)72,260);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        return;
      }
    }
  }
 else   if (gameObject.getId() == 0x0a) {
    for (    WriteByteOperation flagUpdate : gameObject.getWriteByteOperations()) {
      if (flagUpdate.getIndex() == 143) {
        GameObjectId gameObjectId=new GameObjectId((short)19,143);
        List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        if (objects == null) {
          mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
          objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
        }
        objects.add(gameObject);
        return;
      }
    }
  }
 else   if (gameObject.getId() == 0x4e) {
    for (    TestByteOperation testByteOperation : gameObject.getTestByteOperations()) {
      if (testByteOperation.getIndex() == 362 && ByteOp.FLAG_EQUALS.equals(testByteOperation.getOp())) {
        addBackupShrineDoor(gameObject.getObjectContainer());
      }
    }
  }
 else   if (gameObject.getId() == 0xc2) {
    short mantraNumber=gameObject.getArgs().get(0);
    if (mantraNumber > 1) {
      if (mantraNumber == 2) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 298) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 3) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 297) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 4) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 296) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 5) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 295) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 6) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 294) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 7) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 293) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 8) {
        Integer flagToRemoveIndex=null;
        for (int i=0; i < gameObject.getWriteByteOperations().size(); i++) {
          if (gameObject.getWriteByteOperations().get(i).getIndex() == 292) {
            flagToRemoveIndex=i;
            break;
          }
        }
        if (flagToRemoveIndex != null) {
          gameObject.getWriteByteOperations().remove((int)flagToRemoveIndex);
        }
      }
 else       if (mantraNumber == 9) {
        for (        WriteByteOperation writeByteOperation : gameObject.getWriteByteOperations()) {
          if (writeByteOperation.getIndex() == 292) {
            writeByteOperation.setIndex(2794);
            writeByteOperation.setValue(1);
            break;
          }
        }
      }
      GameObject mantraCountTimer=new GameObject(gameObject.getObjectContainer());
      mantraCountTimer.setId((short)0x0b);
      mantraCountTimer.getArgs().add((short)0);
      mantraCountTimer.getArgs().add((short)0);
      mantraCountTimer.setX(-1);
      mantraCountTimer.setY(-1);
      TestByteOperation testByteOperation=new TestByteOperation();
      testByteOperation.setOp(ByteOp.FLAG_EQUALS);
      if (mantraNumber == 9) {
        testByteOperation.setIndex(2794);
        testByteOperation.setValue((byte)1);
      }
 else {
        testByteOperation.setIndex(gameObject.getTestByteOperations().get(0).getIndex());
        testByteOperation.setValue((byte)4);
      }
      mantraCountTimer.getTestByteOperations().add(testByteOperation);
      testByteOperation=new TestByteOperation();
      testByteOperation.setIndex(2792 - (299 - gameObject.getTestByteOperations().get(0).getIndex()));
      testByteOperation.setOp(ByteOp.FLAG_EQUALS);
      testByteOperation.setValue((byte)0);
      mantraCountTimer.getTestByteOperations().add(testByteOperation);
      WriteByteOperation writeByteOperation=new WriteByteOperation();
      writeByteOperation.setIndex(2793);
      writeByteOperation.setOp(ByteOp.ADD_FLAG);
      writeByteOperation.setValue(1);
      mantraCountTimer.getWriteByteOperations().add(writeByteOperation);
      writeByteOperation=new WriteByteOperation();
      writeByteOperation.setIndex(2792 - (299 - gameObject.getTestByteOperations().get(0).getIndex()));
      writeByteOperation.setOp(ByteOp.ASSIGN_FLAG);
      writeByteOperation.setValue(1);
      mantraCountTimer.getWriteByteOperations().add(writeByteOperation);
      gameObject.getObjectContainer().getObjects().add(mantraCountTimer);
      GameObject mantraTimer=new GameObject(gameObject.getObjectContainer());
      mantraTimer.setId((short)0x0b);
      mantraTimer.getArgs().add((short)0);
      mantraTimer.getArgs().add((short)0);
      mantraTimer.setX(-1);
      mantraTimer.setY(-1);
      testByteOperation=new TestByteOperation();
      testByteOperation.setIndex(2793);
      testByteOperation.setOp(ByteOp.FLAG_GTEQ);
      if (Settings.getEnabledGlitches().contains("String_Node_Str")) {
        testByteOperation.setValue((byte)5);
      }
 else {
        testByteOperation.setValue((byte)8);
      }
      mantraTimer.getTestByteOperations().add(testByteOperation);
      testByteOperation=new TestByteOperation();
      testByteOperation.setIndex(292);
      testByteOperation.setOp(ByteOp.FLAG_NOT_EQUAL);
      testByteOperation.setValue((byte)4);
      mantraTimer.getTestByteOperations().add(testByteOperation);
      writeByteOperation=new WriteByteOperation();
      writeByteOperation.setIndex(292);
      writeByteOperation.setOp(ByteOp.ASSIGN_FLAG);
      writeByteOperation.setValue(4);
      mantraTimer.getWriteByteOperations().add(writeByteOperation);
      gameObject.getObjectContainer().getObjects().add(mantraTimer);
    }
  }
}