//
// cocos2d::CCDirector::removeStatsLabel from 0x1800c28a0 to 0x1800c2976 (214 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c3540
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:25 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall cocos2d::CCDirector::removeStatsLabel(cocos2d::CCDirector *this)
{
cocos2d::CCObject *v2; // rcx
cocos2d::CCObject *v3; // rcx
cocos2d::CCObject *v4; // rcx
cocos2d::CCDictionary **v5; // rax
_QWORD *v6; // rdi
cocos2d::CCObject *v7; // rcx
_QWORD v8[7]; // [rsp+20h] [rbp-38h] BYREF
int v9; // [rsp+70h] [rbp+18h] BYREF
v2 = *((cocos2d::CCObject **)this + 29);
if ( v2 && *((_QWORD *)this + 30) )
{
cocos2d::CCObject::release(v2);
*((_QWORD *)this + 29) = 0;
v3 = *((cocos2d::CCObject **)this + 30);
if ( v3 )
{
cocos2d::CCObject::release(v3);
*((_QWORD *)this + 30) = 0;
}
v4 = *((cocos2d::CCObject **)this + 31);
if ( v4 )
{
cocos2d::CCObject::release(v4);
*((_QWORD *)this + 31) = 0;
}
v5 = (cocos2d::CCDictionary **)cocos2d::CCTextureCache::sharedTextureCache();
cocos2d::CCTextureCache::removeTextureForKey(v5, "cc_fps_images");
}
v6 = sub_180005A10(v8, (char *)Text);
cocos2d::cc_timeval::operator=(&v9, dword_1801B3BA8);
v7 = *((cocos2d::CCObject **)this + 47);
if ( v7 )
{
cocos2d::CCObject::release(v7);
*((_QWORD *)this + 47) = 0;
}
*((_BYTE *)this + 368) = 0;
sub_180005C70((__int64)v6);
}