* @return MethodSlot
   */
  public static MethodSlot lookupFunctionByName(String name) {
    { MethodSlot function = null;
      Symbol symbol = null;

      { Module module = null;
        Cons iter000 = Module.visibleModules(((Module)(Stella.$MODULE$.get())));

        for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          module = ((Module)(iter000.value));
          { boolean testValue000 = false;

            { 
              symbol = Symbol.lookupSymbolInModule(name, module, true);
              testValue000 = symbol != null;
            }
            if (testValue000) {
              { 
                function = Symbol.lookupFunction(symbol);
                testValue000 = function != null;
              }
            }
            if (testValue000) {
              return (function);
            }
          }
        }
      }
      return (null);
    }
  }