array Cell_nextFree128 integer Cell_firstFree427 integer Cell_maxIndex169 integer Cell_firstFree427 = 0 integer Cell_maxIndex169 = 0 function initGlobals269() { } function main213() { initGlobals269(); init_test999(); } function config446() { } function init_test999() { new_Cell135(); } function Cell_init943(integer this181) { } function new_Cell135() returns integer { local integer this310 this_310 = alloc_Cell921(); construct_Cell442(this_310); return this_310; } function construct_Cell442(integer this138) { Cell_init943(this_138); } function alloc_Cell921() returns integer { local integer this880 if (Cell_firstFree_427 == 0) { if (Cell_maxIndex_169 < 32768) { Cell_maxIndex_169 = (Cell_maxIndex_169 + 1); this_880 = Cell_maxIndex_169; } else { error160("Out of memory: Could not create Cell."); this_880 = 0; }; } else { Cell_firstFree_427 = (Cell_firstFree_427 - 1); this_880 = Cell_nextFree_128[Cell_firstFree_427]; }; return this_880; } function error160(string msg639) { $debugPrint182((msg_639 + (" " + #getStackTrace()))); }