//
// cocos2d::JniHelper::getPlatformTimestamp from 0x5e3810 to 0x5e3882 (114 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::update @ 0x4970ec
// > GJBaseGameLayer::update @ 0x4971ce
//
// 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::JniHelper::getPlatformTimestamp(cocos2d::JniHelper *this, int a2, int a3, int a4)
{
int v4; // r3
__int64 v5; // r6
int v6; // r1
double v7; // d7
char *v9; // [sp+0h] [bp-10h] BYREF
int v10; // [sp+4h] [bp-Ch]
int v11; // [sp+8h] [bp-8h]
int v12; // [sp+Ch] [bp-4h]
v9 = (char *)this;
v10 = a2;
v11 = a3;
v12 = a4;
if ( cocos2d::JniHelper::getStaticMethodInfo(&v9, "android/os/SystemClock", "uptimeMillis", (int)"()J") )
{
LODWORD(v5) = _JNIEnv::CallStaticLongMethod((int)v9, v10, v11, v4);
HIDWORD(v5) = v6;
(*(void (__fastcall **)(char *, int))(*(_DWORD *)v9 + 92))(v9, v10);
v7 = (double)v5 / 1000.0;
}
else
{
_android_log_print(3, "JniHelper", "JniHelper::getPlatformTimestamp: failed to find SystemClock.uptimeMillis");
v7 = 0.0;
}
return *(_QWORD *)&v7;
}