//
// SimplePlayer::dSimplePlayer from 0x100306f8c to 0x100306fec (96 bytes)
//
// 2 xrefs:
// > j_SimplePlayer::dSimplePlayer @ 0x100306ff0
// > sub_100306FF4 @ 0x100306ffc
//
// 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 SimplePlayer::dSimplePlayer(__int64 a1)
{
GameManager *v2; // x0
GameManager *v3; // x0
*(_QWORD *)a1 = off_1007EC258;
*(_QWORD *)(a1 + 320) = off_1007EC730;
*(_QWORD *)(a1 + 344) = off_1007EC7B0;
v2 = GameManager::sharedState();
GameManager::unloadIcons(v2, *(_DWORD *)(a1 + 664));
if ( *(_BYTE *)(a1 + 672) == 1 )
{
v3 = GameManager::sharedState();
GameManager::removeIconDelegate(v3, *(_DWORD *)(a1 + 664));
}
return cocos2d::CCSprite::dCCSprite((_QWORD *)a1);
}