//
// sub_100359470 from 0x100359470 to 0x1003594e4 (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b23f00
//
// This function is hookable on this platform (idp: pc, 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:28:53 +0000
//
void __fastcall sub_100359470(_QWORD *__p, __int64 a2, __int64 a3)
{
double v4; // xmm0_8
__int64 v5; // rsi
__int64 v6; // rax
__int64 v7; // rdi
__int64 v8; // rdx
double v9; // xmm0_8
__int64 v10; // rax
*__p = off_100B23EF0;
__p[40] = off_100B243D8;
__p[43] = off_100B24458;
*(_QWORD *)&v4 = GameManager::sharedState(__p, a2, a3).u64[0];
v5 = *((unsigned int *)__p + 166);
v7 = v6;
GameManager::unloadIcons(v6, v5, v4);
if ( *((_BYTE *)__p + 672) == 1 )
{
*(_QWORD *)&v9 = GameManager::sharedState(v7, v5, v8).u64[0];
GameManager::removeIconDelegate(v10, *((unsigned int *)__p + 166), v9);
}
sub_100274100(__p);
operator delete(__p);
}