public static Cons cppYieldUnusedDummyArgs(MethodSlot method, Cons args) {
    if (method == null) {
      return (Stella.NIL);
    }
    { int numberofunusedreturnparameters = (method.methodParameterNames().length() + (method.methodReturnTypeSpecifiers().length() - 1)) - args.length();
      Cons unusedreturntypes = Stella.NIL;
      Symbol dummyname = null;
      Cons dummyargs = Stella.NIL;

      if (numberofunusedreturnparameters > 0) {
        unusedreturntypes = Cons.getLastNElements(method.methodReturnTypeSpecifiers().rest(), numberofunusedreturnparameters);
        { Stella_Object unusedparametertype = null;
          Cons iter000 = unusedreturntypes;

          for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
            unusedparametertype = iter000.value;
            Native.setIntSpecial(Stella.$CURRENTDUMMYINDEX$, ((Integer)(Stella.$CURRENTDUMMYINDEX$.get())).intValue() + 1);
            dummyname = Symbol.internSymbol(Symbol.cppTranslateReturnParameterName(Stella.SYM_STELLA_DUMMY, ((Integer)(Stella.$CURRENTDUMMYINDEX$.get())).intValue()).wrapperValue);
            Native.setSpecial(Stella.$DUMMYDECLARATIONS$, Cons.cons(Cons.cons(dummyname, Cons.cons(unusedparametertype, Stella.NIL)), ((Cons)(Stella.$DUMMYDECLARATIONS$.get()))));
            dummyargs = Cons.cons(dummyname, dummyargs);
          }
        }
      }
      return (dummyargs.reverse());
    }
  }