// // GameManager::calculateBaseKeyForIcons from 0x4189d0 to 0x418a96 (198 bytes) // // 1 xrefs: // > GameManager::init @ 0x418ae2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:47:42 +0000 // void __fastcall GameManager::calculateBaseKeyForIcons(GameManager *this, int a2) { int v3; // r3 unsigned int v4; // r1 int v5; // r3 int v6; // r4 int v7; // r3 int v8; // r4 int **v9; // r5 int v10[2]; // [sp+0h] [bp-8h] BYREF v10[0] = (int)this; v10[1] = a2; v3 = *((_DWORD *)this + 240); v4 = (*((_DWORD *)this + 241) - v3) >> 2; if ( v4 > 8 ) { if ( v4 != 9 ) { v7 = v3 + 36; while ( 1 ) { v8 = *((_DWORD *)this + 241); if ( v7 == v8 ) break; *((_DWORD *)this + 241) = v8 - 4; } } } else { std::vector::__append((int)this + 960, 9 - v4); } v5 = 0; v6 = 0; do { *(_DWORD *)(*((_DWORD *)this + 240) + 4 * v5) = v6; switch ( v5 ) { case 1: v6 += 169; break; case 2: v6 += 118; break; case 3: v6 += 149; break; case 4: v6 += 96; break; case 5: v6 += 68; break; case 6: v6 += 69; break; case 7: v6 += 43; break; case 8: v6 += 8; break; default: v6 += 485; break; } ++v5; } while ( v5 != 9 ); v9 = (int **)((char *)this + 924); for ( v10[0] = 0; v10[0] < v6; ++v10[0] ) *std::map::operator[](v9, v10) = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source