public static Cons yieldGenericSlotAccessorAttachment(Stella_Class renamed_Class, Symbol classref) {
    { boolean foundP000 = false;

      { Slot slot = null;
        Cons iter000 = renamed_Class.classLocalSlots.theConsList;

        loop000 : for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          slot = ((Slot)(iter000.value));
          if (Stella_Object.storageSlotP(slot) &&
              StorageSlot.genericSlotReaderP(((StorageSlot)(slot)))) {
            foundP000 = true;
            break loop000;
          }
        }
      }
      if (foundP000) {
        return (Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_SETF, Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_CLASS_SLOT_ACCESSOR_CODE, Cons.cons(classref, Cons.cons(Stella.NIL, Stella.NIL)))), Cons.cons(Cons.list$(Cons.cons(Stella.SYM_STELLA_THE_CODE, Cons.cons(Stella.KWD_FUNCTION, Cons.cons(Stella_Class.yieldGenericSlotAccessorName(renamed_Class), Cons.cons(Stella.NIL, Stella.NIL))))), Cons.cons(Stella.NIL, Stella.NIL))))), Stella.NIL));
      }
      else {
        return (Stella.NIL);
      }
    }
  }