public static Cons yieldListifiedVariableArguments(Cons walkedargs, StandardObject targettype, boolean wrapargsP) {
    if (!(walkedargs == Stella.NIL)) {
      { Stella_Object listifiedargs = Stella.SYM_STELLA_NIL;

        { ConsIterator it = walkedargs.allocateIterator();

          while (it.nextP()) {
            { Stella_Object arg = it.value;

              arg = Stella_Object.sysTree(arg, targettype, new Object[1]);
              if (wrapargsP) {
                arg = Cons.cons(((targettype == Stella.SGT_STELLA_BOOLEAN) ? Stella.SYM_STELLA_WRAP_BOOLEAN : Stella.SYM_STELLA_WRAP_LITERAL), Cons.cons(arg, Stella.NIL));
              }
              it.valueSetter(arg);
            }
          }
        }
        if (((Keyword)(Stella.$TRANSLATOROUTPUTLANGUAGE$.get())) == Stella.KWD_JAVA) {
          { Stella_Object arg = null;
            Cons iter000 = walkedargs.reverse();

            for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
              arg = iter000.value;
              listifiedargs = Cons.list$(Cons.cons(Stella.SYM_STELLA_CONS, Cons.cons(arg, Cons.cons(Cons.cons(listifiedargs, Stella.NIL), Stella.NIL))));
            }
          }
        }
        else {
          listifiedargs = Cons.list$(Cons.cons(Stella.SYM_STELLA_CONS_LIST, Cons.cons(walkedargs.value, Cons.cons(walkedargs.rest.concatenate(Stella.NIL, Stella.NIL), Stella.NIL))));
        }
        return (((Cons)(Stella_Object.walkWithoutTypeTree(listifiedargs))));
      }
    }
    else {
      return (Cons.cons(Stella.SYM_STELLA_NIL, Stella.NIL));
    }
  }