array Blub_nextFree821 integer Blub_firstFree871 integer Blub_maxIndex885 array Blub_typeId134 integer Blub_firstFree871 = 0 integer Blub_maxIndex885 = 0 function initGlobals433() { } function main207() { initGlobals433(); init_B490(); } function config145() { } function init_B490() { dispatch_Blub_A_Blub_foo203(new_Blub108()); } function Blub_foo499(integer this112) { } function Blub_init128(integer this453) { } function new_Blub108() returns integer { local integer this165 this_165 = alloc_Blub185(); construct_Blub106(this_165); return this_165; } function construct_Blub106(integer this192) { Blub_init128(this_192); } function alloc_Blub185() returns integer { local integer this137 if (Blub_firstFree_871 == 0) { if (Blub_maxIndex_885 < 32768) { Blub_maxIndex_885 = (Blub_maxIndex_885 + 1); this_137 = Blub_maxIndex_885; Blub_typeId_134[this_137] = 1; } else { error177("Out of memory: Could not create Blub."); this_137 = 0; }; } else { Blub_firstFree_871 = (Blub_firstFree_871 - 1); this_137 = Blub_nextFree_821[Blub_firstFree_871]; Blub_typeId_134[this_137] = 1; }; return this_137; } function error177(string msg149) { $debugPrint213((msg_149 + (" " + #getStackTrace()))); } function dispatch_Blub_A_Blub_foo203(integer this133) { if (Blub_typeId_134[this_133] == 0) { if (this_133 == 0) { error177("Nullpointer exception when calling Blub.foo"); } else { error177("Called Blub.foo on invalid object."); }; } else { }; Blub_foo499(this_133); }