array A_nextFree158 integer A_firstFree729 integer A_maxIndex802 array A_typeId595 integer A_firstFree729 = 0 integer A_maxIndex802 = 0 function initGlobals213() { A_firstFree_729 = 0; A_maxIndex_802 = 0; } function main924() { initGlobals213(); init_test168(); } function config193() { } function init_test168() { dispatch_A_test_A_foo662(new_A328(), handleToIndex775(null)); } function handleToIndex775(handle h193) returns integer { return 1; } function A_foo196(integer this147, any t208) { } function A_init113(integer this713) { } function new_A328() returns integer { local integer this151 this_151 = alloc_A902(); construct_A119(this_151); return this_151; } function construct_A119(integer this117) { A_init113(this_117); } function alloc_A902() returns integer { local integer this107 if (A_firstFree_729 == 0) { if (A_maxIndex_802 < 32768) { A_maxIndex_802 = (A_maxIndex_802 + 1); this_107 = A_maxIndex_802; A_typeId_595[this_107] = 1; } else { error193("Out of memory: Could not create A."); this_107 = 0; }; } else { A_firstFree_729 = (A_firstFree_729 - 1); this_107 = A_nextFree_158[A_firstFree_729]; A_typeId_595[this_107] = 1; }; return this_107; } function error193(string msg429) { $debugPrint228((msg_429 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo662(integer this116, any t149) { if (A_typeId_595[this_116] == 0) { if (this_116 == 0) { error193("Nullpointer exception when calling A.foo"); } else { error193("Called A.foo on invalid object."); }; } else { }; A_foo196(this_116, t_149); }