array C_nextFree169 integer C_firstFree137 integer C_maxIndex208 array C_typeId124 integer C_firstFree137 = 0 integer C_maxIndex208 = 0 function initGlobals409() { C_firstFree_137 = 0; C_maxIndex_208 = 0; } function main108() { initGlobals409(); init_test192(); } function config116() { } function init_test192() { local integer c168 c_168 = new_C212(1); dispatch_C_test_C_foo388(c_168, 1); } IS_NATIVE function testSuccess170() { } function C_foo925(integer this104, any t753) { dispatch_C_test_C_foo_7975(this_104, new_C212(t_753)); } function new_C212(any x144) returns integer { local integer this619 this_619 = alloc_C102(); construct_C170(this_619, x_144); return this_619; } function C_foo_1198(integer this133, integer t132) { testSuccess170(); } function C_init555(integer this315) { } function construct_C170(integer this108, any x875) { C_init555(this_108); } function alloc_C102() returns integer { local integer this187 if (C_firstFree_137 == 0) { if (C_maxIndex_208 < 32768) { C_maxIndex_208 = (C_maxIndex_208 + 1); this_187 = C_maxIndex_208; C_typeId_124[this_187] = 1; } else { error197("Out of memory: Could not create C."); this_187 = 0; }; } else { C_firstFree_137 = (C_firstFree_137 - 1); this_187 = C_nextFree_169[C_firstFree_137]; C_typeId_124[this_187] = 1; }; return this_187; } function error197(string msg180) { $debugPrint136((msg_180 + (" " + #getStackTrace()))); } function dispatch_C_test_C_foo388(integer this349, any t115) { if (C_typeId_124[this_349] == 0) { if (this_349 == 0) { error197("Nullpointer exception when calling C.foo"); } else { error197("Called C.foo on invalid object."); }; } else { }; C_foo925(this_349, t_115); } function dispatch_C_test_C_foo_7975(integer this168, integer t201) { if (C_typeId_124[this_168] == 0) { if (this_168 == 0) { error197("Nullpointer exception when calling C.foo"); } else { error197("Called C.foo on invalid object."); }; } else { }; C_foo_1198(this_168, t_201); }