//
// cocos2d::CCDirector::removeStatsLabel from 0x1800bf050 to 0x1800bf126 (214 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b927c
//
// 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
//
// Hidden C++ exception states: #wind=2
void __fastcall cocos2d::CCDirector::removeStatsLabel(cocos2d::CCDirector *this)
{
cocos2d::CCLabelAtlas *m_pFPSLabel; // rcx
cocos2d::CCLabelAtlas *m_pSPFLabel; // rcx
cocos2d::CCLabelAtlas *m_pDrawsLabel; // rcx
cocos2d::CCTextureCache *v5; // rax
_QWORD *v6; // rdi
cocos2d::CCLabelBMFont *m_pFPSNode; // rcx
_QWORD v8[7]; // [rsp+20h] [rbp-38h] BYREF
int v9; // [rsp+70h] [rbp+18h] BYREF
m_pFPSLabel = this->m_pFPSLabel;
if ( m_pFPSLabel && this->m_pSPFLabel )
{
cocos2d::CCObject::release(m_pFPSLabel);
this->m_pFPSLabel = nullptr;
m_pSPFLabel = this->m_pSPFLabel;
if ( m_pSPFLabel )
{
cocos2d::CCObject::release(m_pSPFLabel);
this->m_pSPFLabel = nullptr;
}
m_pDrawsLabel = this->m_pDrawsLabel;
if ( m_pDrawsLabel )
{
cocos2d::CCObject::release(m_pDrawsLabel);
this->m_pDrawsLabel = nullptr;
}
v5 = cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v5, "cc_fps_images");
}
v6 = sub_180005910(v8, Buf2);
cocos2d::cc_timeval::operator=(&v9, dword_1801A9B30);
m_pFPSNode = this->m_pFPSNode;
if ( m_pFPSNode )
{
cocos2d::CCObject::release(m_pFPSNode);
this->m_pFPSNode = nullptr;
}
this->m_bDisplayFPS = 0;
sub_180005B70((__int64)v6);
}