//
// getDoubleForKeyJNI from 0x5e3040 to 0x5e30a4 (100 bytes)
//
// 1 xrefs:
// > cocos2d::CCUserDefault::getDoubleForKey @ 0x5ebd40
//
// 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 getDoubleForKeyJNI(const char *a1, double a2)
{
jstring v5; // r0
int v6; // r1
_JNIEnv *v8[3]; // [sp+0h] [bp-14h] BYREF
if ( cocos2d::JniHelper::getStaticMethodInfo(
v8,
"org/cocos2dx/lib/Cocos2dxHelper",
"getDoubleForKey",
"(Ljava/lang/String;D)D") )
{
v5 = _JNIEnv::NewStringUTF(v8[0], a1);
LODWORD(a2) = _JNIEnv::CallStaticDoubleMethod((int)v8[0], (int)v8[1], (int)v8[2], (int)v5);
HIDWORD(a2) = v6;
_JNIEnv::DeleteLocalRef((int)v8[0]);
_JNIEnv::DeleteLocalRef((int)v8[0]);
}
return *(_QWORD *)&a2;
}