array A_nextFree277 integer A_firstFree135 integer A_maxIndex213 array A_typeId921 integer A_firstFree135 = 0 integer A_maxIndex213 = 0 function initGlobals150() { } function main179() { initGlobals150(); new_B403(); } function config214() { } IS_NATIVE function testSuccess602() { } function new_B403() returns integer { local integer this212 if (A_firstFree_135 == 0) { if (A_maxIndex_213 < 32768) { A_maxIndex_213 = (A_maxIndex_213 + 1); this_212 = A_maxIndex_213; A_typeId_921[this_212] = 2; } else { error118("Out of memory: Could not create B."); this_212 = 0; }; } else { A_firstFree_135 = (A_firstFree_135 - 1); this_212 = A_nextFree_277[A_firstFree_135]; A_typeId_921[this_212] = 2; }; construct_B145(this_212); return this_212; } function construct_B145(integer this105) { if (A_typeId_921[this_105] == 0) { if (this_105 == 0) { error118("Nullpointer exception when calling A.someInt"); } else { error118("Called A.someInt on invalid object."); }; } else { }; testSuccess602(); } function error118(string msg738) { $debugPrint362((msg_738 + (" " + #getStackTrace()))); }