//
// GameManager::calculateBaseKeyForIcons from 0x100311e14 to 0x100311ebc (168 bytes)
//
// 1 xrefs:
// > GameManager::init @ 0x100311d9c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GameManager::calculateBaseKeyForIcons(GameManager *a1)
{
__int64 v2; // x8
int v3; // w21
std::__vector_base::pointer begin; // x9
int v5; // [xsp+0h] [xbp-30h] BYREF
unsigned int *v6; // [xsp+8h] [xbp-28h] BYREF
sub_10011C2E0(&a1->m_keyStartForIcon.__begin_, 9u);
v2 = 0;
v3 = 0;
begin = a1->m_keyStartForIcon.__begin_;
do
{
begin[v2] = v3;
v3 += *(_DWORD *)((char *)&unk_100644FD8 + v2 * 4);
++v2;
}
while ( v2 != 9 );
v5 = 0;
do
{
v6 = (unsigned int *)&v5;
*((_DWORD *)sub_1001A6048((__int64)&a1->m_iconLoadCounts, &v5, (__int64)&unk_100644FD5, &v6) + 8) = 0;
++v5;
}
while ( v5 < v3 );
}