array Blub_nextFree180 integer Blub_firstFree310 integer Blub_maxIndex799 array Blub_typeId126 integer Blub_firstFree310 = 0 integer Blub_maxIndex799 = 0 function initGlobals103() { Blub_firstFree_310 = 0; Blub_maxIndex_799 = 0; } function main401() { initGlobals103(); init_B982(); } function config417() { } function init_B982() { local integer blub841 blub_841 = new_Blub208(); dispatch_Blub_A_Blub_foo718(blub_841); } function Blub_foo168(integer this209) { } function Blub_init653(integer this178) { } function new_Blub208() returns integer { local integer this116 this_116 = alloc_Blub147(); construct_Blub108(this_116); return this_116; } function construct_Blub108(integer this291) { Blub_init653(this_291); } function alloc_Blub147() returns integer { local integer this201 if (Blub_firstFree_310 == 0) { if (Blub_maxIndex_799 < 32768) { Blub_maxIndex_799 = (Blub_maxIndex_799 + 1); this_201 = Blub_maxIndex_799; Blub_typeId_126[this_201] = 1; } else { error934("Out of memory: Could not create Blub."); this_201 = 0; }; } else { Blub_firstFree_310 = (Blub_firstFree_310 - 1); this_201 = Blub_nextFree_180[Blub_firstFree_310]; Blub_typeId_126[this_201] = 1; }; return this_201; } function error934(string msg111) { $debugPrint137((msg_111 + (" " + #getStackTrace()))); } function dispatch_Blub_A_Blub_foo718(integer this314) { if (Blub_typeId_126[this_314] == 0) { if (this_314 == 0) { error934("Nullpointer exception when calling Blub.foo"); } else { error934("Called Blub.foo on invalid object."); }; } else { }; Blub_foo168(this_314); }