array Hey_nextFree122 integer Hey_firstFree129 integer Hey_maxIndex431 integer Hey_firstFree129 = 0 integer Hey_maxIndex431 = 0 function initGlobals396() { Hey_firstFree_129 = 0; Hey_maxIndex_431 = 0; } function main707() { initGlobals396(); init_test247(); } function config861() { } function init_test247() { local integer clVar156 clVar_156 = alloc_Hey_test624(); construct_Hey101(clVar_156); } IS_NATIVE function testSuccess445() { } function Hey_init820(integer this198) { } function construct_Hey101(integer this268) { Hey_init820(this_268); testSuccess445(); } function alloc_Hey_test624() returns integer { local integer this197 if (Hey_firstFree_129 == 0) { if (Hey_maxIndex_431 < 32768) { Hey_maxIndex_431 = (Hey_maxIndex_431 + 1); this_197 = Hey_maxIndex_431; } else { error227("Out of memory: Could not create Hey_test."); this_197 = 0; }; } else { Hey_firstFree_129 = (Hey_firstFree_129 - 1); this_197 = Hey_nextFree_122[Hey_firstFree_129]; }; return this_197; } function error227(string msg601) { $debugPrint845((msg_601 + (" " + #getStackTrace()))); }