//
// GameManager::calculateBaseKeyForIcons from 0x7207e8 to 0x720950 (360 bytes)
//
// 2 xrefs:
// > GameManager::init @ 0x7209ac
// > ??> @ 0xa2d78
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:52:23 +0000
//
__int64 __fastcall GameManager::calculateBaseKeyForIcons(GameManager *this)
{
char *v2; // x0
char *v3; // x2
unsigned __int64 v4; // x1
__int64 v5; // x0
int v7; // [xsp+5Ch] [xbp+5Ch] BYREF
int *v8; // [xsp+60h] [xbp+60h] BYREF
v2 = *((char **)this + 154);
v3 = *((char **)this + 155);
v4 = (v3 - v2) >> 2;
if ( v4 <= 8 )
{
std::vector::__append((__int64)this + 1232, 9 - v4);
v2 = *((char **)this + 154);
}
else if ( v4 != 9 && v3 != v2 + 36 )
{
*((_QWORD *)this + 155) = &v3[4 * ~((unsigned __int64)(v3 - 40 - v2) >> 2)];
}
*(_DWORD *)v2 = 0;
v5 = *((_QWORD *)this + 154);
v7 = 0;
*(_DWORD *)(v5 + 4) = 485;
*(_DWORD *)(*((_QWORD *)this + 154) + 8LL) = 654;
*(_DWORD *)(*((_QWORD *)this + 154) + 12LL) = 772;
*(_DWORD *)(*((_QWORD *)this + 154) + 16LL) = 921;
*(_DWORD *)(*((_QWORD *)this + 154) + 20LL) = 1017;
*(_DWORD *)(*((_QWORD *)this + 154) + 24LL) = 1085;
*(_DWORD *)(*((_QWORD *)this + 154) + 28LL) = 1154;
*(_DWORD *)(*((_QWORD *)this + 154) + 32LL) = 1197;
do
{
v8 = &v7;
*(_DWORD *)(std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 145,
&v7,
(__int64)&unk_1122210,
&v8)
+ 32) = 0;
++v7;
}
while ( v7 <= 1204 );
return _stack_chk_guard;
}