array A_nextFree166 integer A_firstFree154 integer A_maxIndex348 integer A_firstFree154 = 0 integer A_maxIndex348 = 0 function initGlobals562() { } function main101() { initGlobals562(); new_B320(); } function config906() { } function new_B320() returns integer { local integer this149 if (A_firstFree_154 == 0) { if (A_maxIndex_348 < 32768) { A_maxIndex_348 = (A_maxIndex_348 + 1); this_149 = A_maxIndex_348; } else { error212("Out of memory: Could not create B."); this_149 = 0; }; } else { A_firstFree_154 = (A_firstFree_154 - 1); this_149 = A_nextFree_166[A_firstFree_154]; }; return this_149; } function error212(string msg196) { $debugPrint730((msg_196 + (" " + #getStackTrace()))); }