//
// cocos2d::CCDirector::removeStatsLabel from 0x7caf18 to 0x7cafb0 (152 bytes)
//
// 1 xrefs:
// > GameManager::reloadAllStep2 @ 0x415a5c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:30 +0000
//
void __fastcall cocos2d::CCDirector::removeStatsLabel(cocos2d::CCDirector *this)
{
_DWORD *v2; // r0
_DWORD *v3; // r0
cocos2d::CCTextureCache *v4; // r0
cocos2d::CCTextureCache *v5; // r0
float v6[2]; // [sp+0h] [bp-1Ch] BYREF
_DWORD v7[2]; // [sp+8h] [bp-14h] BYREF
void *v8; // [sp+10h] [bp-Ch]
v2 = *((_DWORD **)this + 48);
if ( v2 && *((_DWORD *)this + 49) )
{
cocos2d::CCObject::release(v2);
v3 = *((_DWORD **)this + 49);
*((_DWORD *)this + 48) = 0;
if ( v3 )
{
cocos2d::CCObject::release(v3);
*((_DWORD *)this + 49) = 0;
}
v4 = *((cocos2d::CCTextureCache **)this + 50);
if ( v4 )
{
v4 = (cocos2d::CCTextureCache *)cocos2d::CCObject::release(v4);
*((_DWORD *)this + 50) = 0;
}
v5 = (cocos2d::CCTextureCache *)cocos2d::CCTextureCache::sharedTextureCache(v4);
cocos2d::CCTextureCache::removeTextureForKey(v5, "cc_fps_images");
}
v7[1] = 0;
v8 = nullptr;
v7[0] = 0;
cocos2d::CCPoint::CCPoint(v6, (const cocos2d::CCPoint *)&unk_D2F154);
cocos2d::CCDirector::toggleShowFPS((int)this, 0, (int)v7, v6);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
}