array A_nextFree132 integer A_firstFree206 integer A_maxIndex161 array A_typeId137 integer A_firstFree206 = 0 integer A_maxIndex161 = 0 function initGlobals936() { } function main214() { initGlobals936(); init_test134(); } function config122() { } function init_test134() { dispatch_A_test_A_foo771(new_A177(), handleToIndex172(null)); } function handleToIndex172(handle h148) returns integer { return 1; } function A_foo905(integer this110, any t151) { } function A_init485(integer this360) { } function new_A177() returns integer { local integer this942 this_942 = alloc_A126(); construct_A102(this_942); return this_942; } function construct_A102(integer this173) { A_init485(this_173); } function alloc_A126() returns integer { local integer this773 if (A_firstFree_206 == 0) { if (A_maxIndex_161 < 32768) { A_maxIndex_161 = (A_maxIndex_161 + 1); this_773 = A_maxIndex_161; A_typeId_137[this_773] = 1; } else { error108("Out of memory: Could not create A."); this_773 = 0; }; } else { A_firstFree_206 = (A_firstFree_206 - 1); this_773 = A_nextFree_132[A_firstFree_206]; A_typeId_137[this_773] = 1; }; return this_773; } function error108(string msg190) { $debugPrint989((msg_190 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo771(integer this783, any t174) { if (A_typeId_137[this_783] == 0) { if (this_783 == 0) { error108("Nullpointer exception when calling A.foo"); } else { error108("Called A.foo on invalid object."); }; } else { }; A_foo905(this_783, t_174); }