// // GameManager::isIconLoaded from 0x418670 to 0x418718 (168 bytes) // // 2 xrefs: // > SimplePlayer::asyncLoadIcon @ 0x50cdfc // > GJItemIcon::init @ 0x50d522 // // 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 // bool __fastcall GameManager::isIconLoaded(GameManager *this, int a2, int a3) { int v4; // r0 _DWORD *v5; // r3 int v6; // r8 int v7; // r2 _DWORD *v8; // r4 _DWORD *v9; // r4 _DWORD *v10; // r5 _DWORD *v11; // r0 int v12; // r3 int v13; // r3 _DWORD v15[2]; // [sp+0h] [bp-8h] BYREF v15[0] = this; v15[1] = a2; v4 = GameManager::keyForIcon(this, a2, a3); v5 = *((_DWORD **)this + 232); v6 = v4; if ( v5 ) { while ( 1 ) { v7 = v5[4]; if ( v4 >= v7 ) { if ( v7 >= v4 ) { v15[0] = v5; v9 = v15; goto LABEL_11; } v8 = (_DWORD *)v5[1]; if ( !v8 ) { v15[0] = v5; v9 = v5 + 1; goto LABEL_11; } } else { v8 = (_DWORD *)*v5; if ( !*v5 ) { v15[0] = v5; v9 = v5; goto LABEL_11; } } v5 = v8; } } v9 = (_DWORD *)((char *)this + 928); v15[0] = (char *)this + 928; LABEL_11: v10 = (_DWORD *)*v9; if ( !*v9 ) { v11 = (_DWORD *)operator new(0x18u); v11[5] = 0; v10 = v11; *v11 = 0; v11[1] = 0; v12 = v15[0]; v11[4] = v6; v11[2] = v12; *v9 = v11; v13 = **((_DWORD **)this + 231); if ( v13 ) *((_DWORD *)this + 231) = v13; std::__tree_balance_after_insert *>(*((_DWORD **)this + 232), (_DWORD *)*v9); ++*((_DWORD *)this + 233); } return v10[5] > 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source