// // cocos2d::gettimeofday from 0x18007e470 to 0x18007e4e7 (119 bytes) // // 6 xrefs: // > cocos2d::CCTime::gettimeofdayCocos2d @ 0x1800729bb // > cocos2d::CCProfilingBeginTimingBlock @ 0x1800944e7 // > cocos2d::CCProfilingEndTimingBlock @ 0x180094533 // > cocos2d::CCProfilingResetTimingBlock @ 0x1800946e1 // > @ 0x1801438a8 // > @ 0x1801b4ee4 // // 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 // __int64 __fastcall cocos2d::gettimeofday(cocos2d *this, struct timeval *a2, struct cocos2d::timezone *a3) { signed int LowPart; // r9d int v5; // eax double v6; // xmm3_8 LARGE_INTEGER PerformanceCount; // [rsp+30h] [rbp+8h] BYREF LARGE_INTEGER Frequency; // [rsp+40h] [rbp+18h] BYREF if ( this ) { QueryPerformanceFrequency(&Frequency); QueryPerformanceCounter(&PerformanceCount); LowPart = Frequency.LowPart; v5 = PerformanceCount.QuadPart / Frequency.QuadPart; v6 = (double)(int)PerformanceCount.LowPart; *(_DWORD *)this = v5; *((_DWORD *)this + 1) = (int)(v6 * 1000000.0 / (double)LowPart - (double)v5 * 1000000.0); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source