array A_nextFree154 integer A_firstFree201 integer A_maxIndex939 array A_typeId119 integer A_firstFree201 = 0 integer A_maxIndex939 = 0 function initGlobals116() { } function main666() { initGlobals116(); dispatch_B_B_B_blub211(new_B358()); } function config173() { } IS_NATIVE function testSuccess143() { } function new_B358() returns integer { local integer this129 local integer this700 if (A_firstFree_201 == 0) { if (A_maxIndex_939 < 32768) { A_maxIndex_939 = (A_maxIndex_939 + 1); this_700 = A_maxIndex_939; A_typeId_119[this_700] = 2; } else { error157("Out of memory: Could not create B."); this_700 = 0; }; } else { A_firstFree_201 = (A_firstFree_201 - 1); this_700 = A_nextFree_154[A_firstFree_201]; A_typeId_119[this_700] = 2; }; this_129 = this_700; return this_129; } function error157(string msg112) { $debugPrint692((msg_112 + (" " + #getStackTrace()))); } function dispatch_B_B_B_blub211(integer this825) { local integer this183 local integer this166 if (A_typeId_119[this_825] == 0) { if (this_825 == 0) { error157("Nullpointer exception when calling B.blub"); } else { error157("Called B.blub on invalid object."); }; } else { }; this_183 = this_825; this_166 = this_183; if (A_typeId_119[this_166] == 0) { if (this_166 == 0) { error157("Nullpointer exception when calling A.show"); } else { error157("Called A.show on invalid object."); }; } else { }; testSuccess143(); }