code: public void ofsToIdx(Code context, int ofs, Object[] argValues) {
          int i;
          IntArrayList branchesW;
  
          switch (encoding) {
          case TS:
              i = ((Integer) argValues[0]).intValue();
              argValues[0] = new Integer(context.findIdx(ofs + i));
              branchesW = (IntArrayList) argValues[3];
              for (i = 0; i < branchesW.size(); i++) {
                  branchesW.set(i, context.findIdx(ofs + branchesW.get(i)));
              }
              break;
          case LS:
              i = ((Integer) argValues[0]).intValue();
              argValues[0] = new Integer(context.findIdx(ofs + i));
              branchesW = (IntArrayList) argValues[2];
              for (i = 0; i < branchesW.size(); i++) {
                  branchesW.set(i, context.findIdx(ofs + branchesW.get(i)));
              }
              break;
          case BRANCH:
          case VBRANCH:
              i = ((Integer) argValues[0]).intValue();
              argValues[0] = new Integer(context.findIdx(ofs + i));
              break;
          default:
              // do nothing
              break;
          }
      }
docs: Fixup. Turn ofs into idx.