//
// sub_1004794C0 from 0x1004794c0 to 0x1004794fe (62 bytes)
//
// 4 xrefs:
// > cocos2d::CCKeyboardDispatcher::dispatchKeyboardMSG @ 0x1001e5db3
// > cocos2d::CCTouchDispatcher::touches @ 0x1004c8025
// > cocos2d::CCMouseDispatcher::dispatchScrollMSG @ 0x10059e033
// > sub_10059E250 @ 0x10059e273
//
// 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 12:30:36 +0000
//
__int64 __fastcall sub_1004794C0(__int64 a1)
{
__int64 result; // rax
timeb v2; // [rsp+8h] [rbp-18h] BYREF
ftime(&v2);
result = v2.millitm;
*(double *)(a1 + 152) = (double)v2.millitm / 1000.0 + (double)SLODWORD(v2.time);
return result;
}