array List_nextFree601 integer List_firstFree142 integer List_maxIndex147 array List_typeId764 integer List_firstFree142 = 0 integer List_maxIndex147 = 0 function initGlobals177() { List_firstFree_142 = 0; List_maxIndex_147 = 0; } function main764() { initGlobals177(); init_Test180(); } function config741() { } function init_Test180() { local integer fxs182 fxs_182 = new_List328(); effectFromIndex653(dispatch_List_Test_List_get104(fxs_182)); } function effectFromIndex653(integer index171) returns effect { return null; } function List_get121(integer this103) returns any { return (0 castTo any); } function List_init131(integer this169) { } function new_List328() returns integer { local integer this163 this_163 = alloc_List197(); construct_List141(this_163); return this_163; } function construct_List141(integer this198) { List_init131(this_198); } function alloc_List197() returns integer { local integer this804 if (List_firstFree_142 == 0) { if (List_maxIndex_147 < 32768) { List_maxIndex_147 = (List_maxIndex_147 + 1); this_804 = List_maxIndex_147; List_typeId_764[this_804] = 1; } else { error141("Out of memory: Could not create List."); this_804 = 0; }; } else { List_firstFree_142 = (List_firstFree_142 - 1); this_804 = List_nextFree_601[List_firstFree_142]; List_typeId_764[this_804] = 1; }; return this_804; } function error141(string msg825) { $debugPrint571((msg_825 + (" " + #getStackTrace()))); } function dispatch_List_Test_List_get104(integer this145) returns any { local any Test_List_get_result975 if (List_typeId_764[this_145] == 0) { if (this_145 == 0) { error141("Nullpointer exception when calling List.get"); } else { error141("Called List.get on invalid object."); }; } else { }; Test_List_get_result_975 = List_get121(this_145); return Test_List_get_result_975; }