//
// cocos2d::CCDirector::showStats from 0xd4a0a8 to 0xd4a14c (164 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::drawScene @ 0xd4a2ac
// > ??> @ 0x6e1e8
//
// This function is hookable on this platform (idp: arm, 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 13:07:37 +0000
//
__int64 __fastcall cocos2d::CCDirector::showStats(__int64 this)
{
int v1; // w1
float v2; // s0
__int64 v3; // x1
__int64 v4; // x19
char *v5; // x0
v1 = *(unsigned __int8 *)(this + 217);
v2 = *(float *)(this + 224) + *(float *)(this + 168);
*(float *)(this + 224) = v2;
if ( v1 )
{
v3 = *(_QWORD *)(this + 248);
if ( v3 )
{
v4 = this;
if ( v2 > 0.5 )
{
v5 = *(char **)(this + 336);
*(_DWORD *)(v4 + 224) = 0;
sprintf(v5, "%4lu", (unsigned int)g_uNumberOfDraws);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v4 + 248) + 1080LL))(
*(_QWORD *)(v4 + 248),
*(_QWORD *)(v4 + 336));
v3 = *(_QWORD *)(v4 + 248);
}
this = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 752LL))(v3);
}
}
g_uNumberOfDraws = 0;
return this;
}