//
// cocos2d::CCDirector::removeStatsLabel from 0x100176518 to 0x1001765c8 (176 bytes)
//
// 1 xrefs:
// > GameManager::reloadAllStep2 @ 0x10031d9dc
//
// 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 cocos2d::CCDirector::removeStatsLabel(cocos2d::CCDirector *a1)
{
cocos2d::CCLabelAtlas *m_pFPSLabel; // x0
cocos2d::CCLabelAtlas *m_pSPFLabel; // x0
cocos2d::CCLabelAtlas *m_pDrawsLabel; // x0
cocos2d::CCTextureCache *v5; // x0
cocos2d::CCLabelBMFont *m_pFPSNode; // x0
__int64 v7; // [xsp+0h] [xbp-30h] BYREF
void *__p; // [xsp+8h] [xbp-28h] BYREF
char v9; // [xsp+1Fh] [xbp-11h]
m_pFPSLabel = a1->m_pFPSLabel;
if ( m_pFPSLabel && a1->m_pSPFLabel )
{
cocos2d::CCObject::release(m_pFPSLabel);
a1->m_pFPSLabel = nullptr;
m_pSPFLabel = a1->m_pSPFLabel;
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_100009900(&__p, "");
sub_1000229B8(&v7, &qword_10086BA80);
m_pFPSNode = a1->m_pFPSNode;
if ( m_pFPSNode )
{
cocos2d::CCObject::release(m_pFPSNode);
a1->m_pFPSNode = nullptr;
}
a1->m_bDisplayFPS = 0;
if ( v9 < 0 )
operator delete(__p);
}