//
// cocos2d::CCTime::timersubCocos2d from 0x180074f10 to 0x180074f61 (81 bytes)
//
// 1 xrefs:
// > ??> @ 0x18014cf68
//
// 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:21:58 +0000
//
double __fastcall cocos2d::CCTime::timersubCocos2d(struct cocos2d::cc_timeval *a1, struct cocos2d::cc_timeval *a2)
{
if ( a1 && a2 )
return (double)*((int *)a2 + 1) / 1000.0
+ (double)*(int *)a2 * 1000.0
- ((double)*((int *)a1 + 1) / 1000.0
+ (double)*(int *)a1 * 1000.0);
else
return 0.0;
}