array C_nextFree536 integer C_firstFree152 integer C_maxIndex189 array C_typeId837 integer C_firstFree152 = 0 integer C_maxIndex189 = 0 function initGlobals261() { } function main330() { initGlobals261(); init_test173(); } function config176() { } function init_test173() { dispatch_C_test_C_foo116(new_C195(1), 1); } IS_NATIVE function testSuccess197() { } function C_foo808(integer this153, any t164) { dispatch_C_test_C_foo_7677(this_153, new_C195(t_164)); } function new_C195(any x134) returns integer { local integer this907 this_907 = alloc_C667(); construct_C130(this_907, x_134); return this_907; } function C_foo_1117(integer this188, integer t856) { testSuccess197(); } function C_init120(integer this153) { } function construct_C130(integer this376, any x115) { C_init120(this_376); } function alloc_C667() returns integer { local integer this188 if (C_firstFree_152 == 0) { if (C_maxIndex_189 < 32768) { C_maxIndex_189 = (C_maxIndex_189 + 1); this_188 = C_maxIndex_189; C_typeId_837[this_188] = 1; } else { error154("Out of memory: Could not create C."); this_188 = 0; }; } else { C_firstFree_152 = (C_firstFree_152 - 1); this_188 = C_nextFree_536[C_firstFree_152]; C_typeId_837[this_188] = 1; }; return this_188; } function error154(string msg112) { $debugPrint111((msg_112 + (" " + #getStackTrace()))); } function dispatch_C_test_C_foo116(integer this149, any t102) { if (C_typeId_837[this_149] == 0) { if (this_149 == 0) { error154("Nullpointer exception when calling C.foo"); } else { error154("Called C.foo on invalid object."); }; } else { }; C_foo808(this_149, t_102); } function dispatch_C_test_C_foo_7677(integer this209, integer t410) { if (C_typeId_837[this_209] == 0) { if (this_209 == 0) { error154("Nullpointer exception when calling C.foo"); } else { error154("Called C.foo on invalid object."); }; } else { }; C_foo_1117(this_209, t_410); }