// // cocos2d::gettimeofday from 0x180081450 to 0x1800814c7 (119 bytes) // // 6 xrefs: // > cocos2d::CCTime::gettimeofdayCocos2d @ 0x180074efb // > cocos2d::CCProfilingBeginTimingBlock @ 0x180097c0a // > cocos2d::CCProfilingEndTimingBlock @ 0x180097c53 // > cocos2d::CCProfilingResetTimingBlock @ 0x180097e32 // > @ 0x18014cf68 // > @ 0x1801bf1cc // // This function is hookable on this platform (idp: pc, 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 11:22:02 +0000 // __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