//
// cocos2d::CCDirector::showFPSLabel from 0xd48e78 to 0xd48f20 (168 bytes)
//
// 2 xrefs:
// > cocos2d::CCDirector::drawScene @ 0xd4a2a0
// > ??> @ 0x4de78
//
// 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:36 +0000
//
__int64 __fastcall cocos2d::CCDirector::showFPSLabel(cocos2d::CCDirector *this)
{
__int64 result; // x0
unsigned int v3; // w1
float v4; // s0
char *v5; // x0
float v6; // s0
result = *((_QWORD *)this + 47);
if ( result )
{
v3 = *((_DWORD *)this + 66) + 1;
v4 = *((float *)this + 55) + *((float *)this + 42);
*((_DWORD *)this + 66) = v3;
*((float *)this + 55) = v4;
if ( v4 > 0.1 )
{
v5 = *((char **)this + 42);
*((_DWORD *)this + 66) = 0;
v6 = (float)v3 / v4;
*((_DWORD *)this + 55) = 0;
*((float *)this + 57) = v6;
snprintf(v5, 0x10u, "FPS: %i", llroundf(v6));
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 47) + 928LL))(
*((_QWORD *)this + 47),
*((_QWORD *)this + 42));
result = *((_QWORD *)this + 47);
}
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 752LL))(result);
}
return result;
}