//
// cocos2d::CCDirector::removeStatsLabel from 0x5c3c64 to 0x5c3cf4 (144 bytes)
//
// 1 xrefs:
// > GameManager::reloadAllStep2 @ 0x3237e8
//
// 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 cocos2d::CCDirector::removeStatsLabel(cocos2d::CCDirector *a1)
{
cocos2d::CCLabelAtlas *m_pFPSLabel; // r0
cocos2d::CCLabelAtlas *m_pSPFLabel; // r0
cocos2d::CCLabelAtlas *m_pDrawsLabel; // r0
cocos2d::CCTextureCache *v5; // r0
_BYTE v6[4]; // [sp+8h] [bp-14h] BYREF
cocos2d::CCPoint v7; // [sp+Ch] [bp-10h] BYREF
m_pFPSLabel = a1->m_pFPSLabel;
if ( m_pFPSLabel && a1->m_pSPFLabel )
{
cocos2d::CCObject::release(m_pFPSLabel);
m_pSPFLabel = a1->m_pSPFLabel;
a1->m_pFPSLabel = nullptr;
if ( m_pSPFLabel )
{
cocos2d::CCObject::release(m_pSPFLabel);
a1->m_pSPFLabel = nullptr;
}
m_pDrawsLabel = a1->m_pDrawsLabel;
if ( m_pDrawsLabel )
{
cocos2d::CCObject::release(m_pDrawsLabel);
a1->m_pDrawsLabel = nullptr;
}
v5 = cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v5, "cc_fps_images");
}
sub_776584((int)v6, (char *)&unk_939830);
cocos2d::CCPoint::CCPoint(&v7, &stru_AC8A04);
cocos2d::CCDirector::toggleShowFPS((int)a1, 0, (int)v6, &v7.x);
sub_774008(v6);
}