public static Cons findMemoizedValueEntryn(Cons bucket, Cons tuple, int eqvector, boolean deleteentryP) {
    { Cons entries = bucket.rest;
      Cons result = null;

      if (eqvector < 0) {
        loop000 : while (!(entries == Stella.NIL)) {
          { boolean alwaysP000 = true;

            { Stella_Object entryarg = null;
              Cons iter000 = ((Cons)(entries.value)).rest;
              Stella_Object inputarg = null;
              Cons iter001 = tuple;

              loop001 : for (;(!(iter000 == Stella.NIL)) &&
                        (!(iter001 == Stella.NIL)); iter000 = iter000.rest, iter001 = iter001.rest) {
                entryarg = iter000.value;
                inputarg = iter001.value;
                if (!(entryarg == inputarg)) {
                  alwaysP000 = false;
                  break loop001;
                }
              }
            }
            if (alwaysP000) {
              result = ((Cons)(entries.value));
              break loop000;
            }
          }
          entries = entries.rest;
        }
      }
      else {
        loop002 : while (!(entries == Stella.NIL)) {
          result = ((Cons)(entries.value));
          { Stella_Object entryarg = null;
            Cons iter002 = result.rest;
            Stella_Object inputarg = null;
            Cons iter003 = tuple;

            loop003 : for (;(!(iter002 == Stella.NIL)) &&
                      (!(iter003 == Stella.NIL)); iter002 = iter002.rest, iter003 = iter003.rest) {
              entryarg = iter002.value;
              inputarg = iter003.value;
              if ((entryarg == inputarg) ||
                  (((eqvector & 1) == 0) &&
                   Stella_Object.eqlP(entryarg, inputarg))) {
                eqvector = (eqvector >> 1);
              }
              else {
                result = null;
                break loop003;
              }
            }
          }
          if (result != null) {
            break loop002;
          }
          else {
            entries = entries.rest;
          }
        }
      }
      if (deleteentryP &&
          (result != null)) {
        entries.value = ((Cons)(bucket.rest.value));
        if ((bucket.rest = bucket.rest.rest) == Stella.NIL) {
          bucket.rest = Stella.NIL;
        }
      }
      return (result);
    }
  }