//
// cocos2d::CCApplication::logTimeElapsed from 0x180073240 to 0x1800732b1 (113 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b4428
//
// 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::CCApplication::logTimeElapsed(__int64 a1, __int64 a2)
{
unsigned __int64 v3; // rdx
_QWORD *v4; // rcx
QueryPerformanceCounter(&PerformanceCount);
v3 = *(_QWORD *)(a2 + 24);
if ( v3 > 0xF )
{
v4 = *(_QWORD **)a2;
if ( v3 + 1 >= 0x1000 )
{
if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )
invalid_parameter_noinfo_noreturn();
v4 = (_QWORD *)*(v4 - 1);
}
j_j_free_0(v4);
}
*(_QWORD *)(a2 + 16) = 0;
*(_QWORD *)(a2 + 24) = 15;
*(_BYTE *)a2 = 0;
}