//
// localStorageGetItem from 0x5ad6f4 to 0x5ad78a (150 bytes)
//
// 0 xrefs:
//
// 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
//
const char *__fastcall localStorageGetItem(const char *a1)
{
jstring v3; // r0
int v4; // r0
const std::string *v5; // r1
cocos2d::CCString *v6; // r6
char v7; // [sp+4h] [bp-14h] BYREF
_JNIEnv *v8[3]; // [sp+8h] [bp-10h] BYREF
if ( !cocos2d::JniHelper::getStaticMethodInfo(
v8,
"org/cocos2dx/lib/Cocos2dxLocalStorage",
"getItem",
"(Ljava/lang/String;)Ljava/lang/String;") )
return nullptr;
v3 = _JNIEnv::NewStringUTF(v8[0], a1);
v4 = _JNIEnv::CallStaticObjectMethod((int)v8[0], (int)v8[1], (int)v8[2], (int)v3);
cocos2d::JniHelper::jstring2string(&v7, v4);
v6 = (cocos2d::CCString *)cocos2d::CCString::create((cocos2d::CCString *)&v7, v5);
sub_774008(&v7);
_JNIEnv::DeleteLocalRef((int)v8[0]);
_JNIEnv::DeleteLocalRef((int)v8[0]);
_JNIEnv::DeleteLocalRef((int)v8[0]);
if ( v6 )
return cocos2d::CCString::getCString(v6);
else
return nullptr;
}