public static void cleanupAuxiliaryMethods(Stella_Class renamed_Class) {
    { List auxiliarymethods = renamed_Class.classAuxiliaryMethods();
      Slot reason = null;

      { MethodSlot method = null;
        Cons iter000 = auxiliarymethods.theConsList;

        for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          method = ((MethodSlot)(iter000.value));
          if (!method.deletedP()) {
            if (BooleanWrapper.coerceWrappedBooleanToBoolean(method.badP())) {
              method.deletedPSetter(true);
            }
            else {
              reason = ((Slot)(KeyValueList.dynamicSlotValue(method.dynamicSlots, Stella.SYM_STELLA_AUXILIARY_METHOD_REASON, null)));
              if ((reason == null) ||
                  (reason.deletedP() ||
                   (BooleanWrapper.coerceWrappedBooleanToBoolean(reason.badP()) ||
                    ((reason.slotOwner == null) ||
                     ((reason.slotOwner.symbolId == -1) ||
                      ((((Stella_Class)(reason.slotOwner.surrogateValue)) == null) ||
                       (((Stella_Class)(reason.slotOwner.surrogateValue)).deletedP() ||
                        (BooleanWrapper.coerceWrappedBooleanToBoolean(((Stella_Class)(reason.slotOwner.surrogateValue)).badP()) ||
                         (!(Stella_Class.lookupSlot(((Stella_Class)(reason.slotOwner.surrogateValue)), reason.slotName) == reason)))))))))) {
                KeyValueList.setDynamicSlotValue(method.dynamicSlots, Stella.SYM_STELLA_AUXILIARY_METHOD_REASON, null, null);
                method.deletedPSetter(true);
              }
            }
          }
        }
      }
      auxiliarymethods.removeDeletedMembers();
    }
  }