//
// setStringForKeyJNI from 0xb0f520 to 0xb0f630 (272 bytes)
//
// 2 xrefs:
// > cocos2d::CCUserDefault::setStringForKey @ 0xb1fe3c
// > ??> @ 0x43f68
//
// 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 setStringForKeyJNI(const char *a1, const char *a2)
{
__int64 v4; // x21
__int64 v5; // x20
__int64 v7; // [xsp+30h] [xbp+30h] BYREF
__int64 v8; // [xsp+38h] [xbp+38h]
__int64 v9; // [xsp+40h] [xbp+40h]
if ( (unsigned __int8)cocos2d::JniHelper::getStaticMethodInfo(
&v7,
"org/cocos2dx/lib/Cocos2dxHelper",
"setStringForKey",
"(Ljava/lang/String;Ljava/lang/String;)V") )
{
v4 = (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v7 + 1336LL))(v7, a1);
v5 = (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v7 + 1336LL))(v7, a2);
_JNIEnv::CallStaticVoidMethod(v7, v8, v9, v4, v5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 184LL))(v7, v8);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 184LL))(v7, v4);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 184LL))(v7, v5);
}
return _stack_chk_guard;
}