Program: 174715
Project: 174715
Buggy source:
public static void addObject(GameObject gameObject){
  if (gameObject.getId() == 0x2c) {
    short inventoryArg=(short)(gameObject.getArgs().get(0) - 11);
    int 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 || gameObject.getId() == 0x0e) {
    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 (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 (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 (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 (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 (gameObject.getId() == 0x9e) {
    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 (gameObject.getId() == 0xa0) {
    if (gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 185) {
      littleBrotherShopScreen=gameObject.getObjectContainer();
    }
 else     if (gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 693 || gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 689 || gameObject.getArgs().get(4) == 690) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2702);
          if (flagTest.getValue() > 0 && ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_GTEQ);
          }
          GameObjectId gameObjectId=new GameObjectId((short)30,2702);
          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.getArgs().get(4) == 691) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2706);
          if (flagTest.getValue() == 1 && ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
          }
          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 (gameObject.getArgs().get(4) == 692) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2706);
          if (flagTest.getValue() == 1 && ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
          }
          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(2702);
      pepperCheck.setOp(ByteOp.FLAG_GTEQ);
      pepperCheck.setValue((byte)2);
      gameObject.getTestByteOperations().add(pepperCheck);
      GameObjectId gameObjectId=new GameObjectId((short)30,2702);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
 else     if (gameObject.getArgs().get(4) == 484 || gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 1082 || gameObject.getArgs().get(4) == 1083 || gameObject.getArgs().get(4) == 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 (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 (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;
          }
        }
      }
    }
    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 (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 (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;
      }
    }
  }
}

Fixed version (ground truth):
public static void addObject(GameObject gameObject){
  if (gameObject.getId() == 0x2c) {
    short inventoryArg=(short)(gameObject.getArgs().get(0) - 11);
    int 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 || gameObject.getId() == 0x0e) {
    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 (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 (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 (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 (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 (gameObject.getId() == 0x9e) {
    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 (gameObject.getId() == 0xa0) {
    if (gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 185) {
      littleBrotherShopScreen=gameObject.getObjectContainer();
    }
 else     if (gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 693 || gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 689 || gameObject.getArgs().get(4) == 690) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2702);
          if (flagTest.getValue() > 0 && ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_GTEQ);
          }
          GameObjectId gameObjectId=new GameObjectId((short)30,2702);
          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.getArgs().get(4) == 691) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2706);
          if (flagTest.getValue() == 1 && ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
          }
          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 (gameObject.getArgs().get(4) == 692) {
      for (      TestByteOperation flagTest : gameObject.getTestByteOperations()) {
        if (flagTest.getIndex() == 552) {
          flagTest.setIndex(2706);
          if (flagTest.getValue() == 1 && ByteOp.FLAG_EQUALS.equals(flagTest.getOp())) {
            flagTest.setOp(ByteOp.FLAG_LTEQ);
          }
          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(2702);
      pepperCheck.setOp(ByteOp.FLAG_GTEQ);
      pepperCheck.setValue((byte)2);
      gameObject.getTestByteOperations().add(pepperCheck);
      GameObjectId gameObjectId=new GameObjectId((short)30,2702);
      List<GameObject> objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      if (objects == null) {
        mapOfChestIdentifyingInfoToGameObject.put(gameObjectId,new ArrayList<>());
        objects=mapOfChestIdentifyingInfoToGameObject.get(gameObjectId);
      }
      objects.add(gameObject);
    }
 else     if (gameObject.getArgs().get(4) == 484 || gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 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 (gameObject.getArgs().get(4) == 1082 || gameObject.getArgs().get(4) == 1083 || gameObject.getArgs().get(4) == 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 (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 (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;
          }
        }
      }
    }
    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 (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 (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;
      }
    }
  }
}