Output Code
Output Code
*;
import java.lang.reflect.*;
// ----------------------------------------------------------------
// return (function(l,...) ... end);
// The entire remainder of the Lua code is wrapped inside an anonymous
function
// that is returned. We simulate that by writing a LuaFunction and
immediately
// calling it. (The first parameter l in Lua is forced to be a function in
our case.)
LuaFunction mainFunc = new LuaFunction() {
public Object call(Object... outerArgs) {
// In Lua: function(l,...)
Object l = outerArgs[0]; // first argument
// Many local variables are declared:
Object d = null;
Object a = null;
Object h = null;
Object t = null;
Object o = null;
Object p = null;
int e = 24915;
int n = 0;
// Lua table -> using a HashMap to simulate.
HashMap<Object, Object> r = new HashMap<>();
// p(t);
if(p instanceof LuaFunction) {
((LuaFunction) p).call(t);
}
// local n = {}
HashMap<Object, Object> n_table = new HashMap<>();
// for e = 0x0, 0xff do
for (int e_i = 0; e_i <= 0xff; e_i++) {
try {
// local r = h.aGRMyEJB(e)
Method m = h.getClass().getMethod("aGRMyEJB", int.class);
Object r_val = m.invoke(h, e_i);
n_table.put(e_i, r_val);
n_table.put(r_val, e_i);
} catch(Exception ex) {
// Do nothing if method not found.
}
}
// local function f(e)return n[e]; end
LuaFunction f_func = new LuaFunction() {
public Object call(Object... args) {
return n_table.get(args[0]);
}
};
"l7y:egQ#=n&kDS{RyDg{R#yee{#7&yD#n67Dgn#S&D&nR::eggQD&RD=SSDDRnn_&RSn7-:DeSnyDn{kRk
ekQ:&wgS=Syegy#g&QS={n:QeDQ=k#DS{e7&R+yykk{=7y:gQQ=kgg{n>ne=Q:neDySnyng7g{nSDRSQk={
=#SnSSDRDDgg=#D&n{=rDynQ9#:n7SJdQ77gryDQGR:77eD#7ngSv{ny=e7Q{&eDnRyyk::=y&yD:
{D::Rey:n{Sn0:eqQ#nQ=:D=7=y:e=n7&RSk7={N/
D&kD7RgyDe&QQ=RDkSgsneRgDeQ#7Sg7:eWngke{:K#yyeeyDgDRe7kek#=&yDgRQ7kyygk&Sk:1#7:e&Q7
eB#7YDyggy==&S#&7g:&Q==gk:
{#RDe{gR&QknR77n:S8D:&SgR&y=eg#:&#ky{=*Qg:QR=g{Q}QDDRnn3k{{77yeeQ7=R&:Sy7gyRe&#:Qyn
oy=eR#R&DSQRny&eRgQ=S&R{nySQ:QSnD#&&g:DQ&=Sk{RowDe:Q{n#kSRSRDyk_D:&S:R7yeen#:kdknSS
:9gkQ&kDDgRyD=R==S&S{DGDSgQyneD:{R7{yeg=&#ky{#y=g:#Q:S"));
// hFvAabjEiCmrIhm={h.BOuOwWbM,h.egORiWFC};
Object[] hFvAabjEiCmrIhm = new Object[] {
invokeMethod(h, "BOuOwWbM", null),
invokeMethod(h, "egORiWFC", null)
};
// local j = h.tqLRXmds;
Object j_var = invokeMethod(h, "tqLRXmds", null);
// local p = h.fCeEIVqs;
Object p_var = invokeMethod(h, "fCeEIVqs", null);
// local o = h.UrFVEY_s;
Object o_var = invokeMethod(h, "UrFVEY_s", null);
// local t = h.gHFlDPAz;
Object t_var = invokeMethod(h, "gHFlDPAz", null);
return null;
}
};