//
// cocos2d::JniHelper::getPlatformTimestamp from 0x7edbc8 to 0x7edc38 (112 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::update @ 0x5bd760
// > GJBaseGameLayer::update @ 0x5bd830
// > EditorSFXManager::playAction @ 0x780082
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:01 +0000
//
__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;
_JNIEnv::DeleteLocalRef((int)v9);
v7 = (double)v5 / 1000.0;
}
else
{
_android_log_print(3, "JniHelper", "JniHelper::getPlatformTimestamp: failed to find SystemClock.uptimeMillis");
v7 = 0.0;
}
return *(_QWORD *)&v7;
}