array TFunc_nextFree210 integer TFunc_firstFree204 integer TFunc_maxIndex306 array TFunc_typeId112 integer TFunc_firstFree204 = 0 integer TFunc_maxIndex306 = 0 function initGlobals122() { TFunc_firstFree_204 = 0; TFunc_maxIndex_306 = 0; } function main593() { initGlobals122(); init_test960(); } function config984() { } function init_test960() { local integer clVar206 clVar_206 = alloc_TFunc_runFunc_test357(); runFunc178(clVar_206); } function booleanToIndex119(boolean b930) returns integer { local integer cond_result234 if b_930 { cond_result_234 = 1; } else { cond_result_234 = 0; }; return cond_result_234; } function booleanFromIndex177(integer i595) returns boolean { local boolean cond_result272 if (i_595 == 0) { cond_result_272 = false; } else { cond_result_272 = true; }; return cond_result_272; } function runFunc178(integer func163) { dispatch_TFunc_test_TFunc_run709(func_163, booleanToIndex119(false)); } function run_wrapper224(integer this143, any t203) { run_runFunc_test667(this_143, booleanFromIndex177(t_203)); } IS_NATIVE function testSuccess872() { } function run_runFunc_test667(integer this883, boolean b141) { testSuccess872(); } function alloc_TFunc_runFunc_test357() returns integer { local integer this129 if (TFunc_firstFree_204 == 0) { if (TFunc_maxIndex_306 < 32768) { TFunc_maxIndex_306 = (TFunc_maxIndex_306 + 1); this_129 = TFunc_maxIndex_306; TFunc_typeId_112[this_129] = 2; } else { error135("Out of memory: Could not create TFunc_runFunc_test."); this_129 = 0; }; } else { TFunc_firstFree_204 = (TFunc_firstFree_204 - 1); this_129 = TFunc_nextFree_210[TFunc_firstFree_204]; TFunc_typeId_112[this_129] = 2; }; return this_129; } function error135(string msg220) { $debugPrint188((msg_220 + (" " + #getStackTrace()))); } function dispatch_TFunc_test_TFunc_run709(integer this127, any t214) { if (TFunc_typeId_112[this_127] == 0) { if (this_127 == 0) { error135("Nullpointer exception when calling TFunc.run"); } else { error135("Called TFunc.run on invalid object."); }; } else { }; run_wrapper224(this_127, t_214); }