array A_nextFree133 integer A_firstFree213 integer A_maxIndex213 array A_typeId184 integer A_firstFree213 = 0 integer A_maxIndex213 = 0 function initGlobals514() { } function main197() { initGlobals514(); init_test197(); } function config149() { } function init_test197() { dispatch_A_test_A_foo249(new_A776(), handleToIndex138(null)); } function handleToIndex138(handle h162) returns integer { return 1; } function A_foo305(integer this512, any t176) { } function A_init206(integer this129) { } function new_A776() returns integer { local integer this136 this_136 = alloc_A118(); construct_A146(this_136); return this_136; } function construct_A146(integer this194) { A_init206(this_194); } function alloc_A118() returns integer { local integer this630 if (A_firstFree_213 == 0) { if (A_maxIndex_213 < 32768) { A_maxIndex_213 = (A_maxIndex_213 + 1); this_630 = A_maxIndex_213; A_typeId_184[this_630] = 1; } else { error332("Out of memory: Could not create A."); this_630 = 0; }; } else { A_firstFree_213 = (A_firstFree_213 - 1); this_630 = A_nextFree_133[A_firstFree_213]; A_typeId_184[this_630] = 1; }; return this_630; } function error332(string msg944) { $debugPrint167((msg_944 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo249(integer this205, any t118) { if (A_typeId_184[this_205] == 0) { if (this_205 == 0) { error332("Nullpointer exception when calling A.foo"); } else { error332("Called A.foo on invalid object."); }; } else { }; A_foo305(this_205, t_118); }