//
// cocos2d::CCDirector::showStats from 0x1800bfe50 to 0x1800bfeeb (155 bytes)
//
// 3 xrefs:
// > cocos2d::CCDirector::drawScene @ 0x1800be461
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b93f0
//
// 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::showStats(cocos2d::CCDirector *this)
{
bool v1; // zf
float v3; // xmm0_4
v1 = !this->m_bDisplayStats;
v3 = this->m_fDeltaTime + this->m_fAccumDt;
this->m_fAccumDt = v3;
if ( !v1 && this->m_pDrawsLabel )
{
if ( v3 > 0.5 )
{
this->m_fAccumDt = 0.0;
sub_180009530(this->m_pszFPS, "%4lu", g_uNumberOfDraws);
((void (__fastcall *)(cocos2d::CCLabelProtocol *, char *))this->m_pDrawsLabel->setString)(
&this->m_pDrawsLabel->cocos2d::CCLabelProtocol,
this->m_pszFPS);
}
((void (__fastcall *)(cocos2d::CCLabelAtlas *))this->m_pDrawsLabel->visit)(this->m_pDrawsLabel);
}
g_uNumberOfDraws = 0;
}