array TFunc_nextFree202 integer TFunc_firstFree183 integer TFunc_maxIndex100 array TFunc_typeId921 integer TFunc_firstFree183 = 0 integer TFunc_maxIndex100 = 0 function initGlobals199() { TFunc_firstFree_183 = 0; TFunc_maxIndex_100 = 0; } function main104() { initGlobals199(); init_test137(); } function config667() { } function init_test137() { local integer clVar166 clVar_166 = alloc_TFunc_runFunc_test196(); runFunc167(clVar_166); } function booleanToIndex378(boolean b748) returns integer { local integer cond_result176 if b_748 { cond_result_176 = 1; } else { cond_result_176 = 0; }; return cond_result_176; } function booleanFromIndex155(integer i268) returns boolean { local boolean cond_result125 if (i_268 == 0) { cond_result_125 = false; } else { cond_result_125 = true; }; return cond_result_125; } function runFunc167(integer func145) { dispatch_TFunc_test_TFunc_run542(func_145, booleanToIndex378(false)); } function run_wrapper151(integer this968, any t699) { run_runFunc_test262(this_968, booleanFromIndex155(t_699)); } IS_NATIVE function testSuccess162() { } function run_runFunc_test262(integer this244, boolean b103) { testSuccess162(); } function alloc_TFunc_runFunc_test196() returns integer { local integer this146 if (TFunc_firstFree_183 == 0) { if (TFunc_maxIndex_100 < 32768) { TFunc_maxIndex_100 = (TFunc_maxIndex_100 + 1); this_146 = TFunc_maxIndex_100; TFunc_typeId_921[this_146] = 2; } else { error207("Out of memory: Could not create TFunc_runFunc_test."); this_146 = 0; }; } else { TFunc_firstFree_183 = (TFunc_firstFree_183 - 1); this_146 = TFunc_nextFree_202[TFunc_firstFree_183]; TFunc_typeId_921[this_146] = 2; }; return this_146; } function error207(string msg178) { $debugPrint192((msg_178 + (" " + #getStackTrace()))); } function dispatch_TFunc_test_TFunc_run542(integer this511, any t200) { if (TFunc_typeId_921[this_511] == 0) { if (this_511 == 0) { error207("Nullpointer exception when calling TFunc.run"); } else { error207("Called TFunc.run on invalid object."); }; } else { }; run_wrapper151(this_511, t_200); }