//
// sub_10036FF20 from 0x10036ff20 to 0x10036ff8c (108 bytes)
//
// 1 xrefs:
// > ??> @ 0x10091bd28
//
// 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
//
__int64 __fastcall sub_10036FF20(__int64 a1)
{
GameManager *v1; // rax
GameManager *v2; // rax
*(_QWORD *)a1 = off_10091BD20;
*(_QWORD *)(a1 + 320) = off_10091C1F8;
*(_QWORD *)(a1 + 344) = off_10091C278;
v1 = GameManager::sharedState();
GameManager::unloadIcons(v1, *(_DWORD *)(a1 + 664));
if ( *(_BYTE *)(a1 + 672) == 1 )
{
v2 = GameManager::sharedState();
GameManager::removeIconDelegate(v2, *(_DWORD *)(a1 + 664));
}
return cocos2d::CCSprite::dCCSprite((_QWORD *)a1);
}