//
// cocos2d::JniHelper::jstring2string from 0xb0fd70 to 0xb0fe5c (236 bytes)
//
// 7 xrefs:
// > localStorageGetItem @ 0xaaf028
// > Java_org_cocos2dx_lib_Cocos2dxHelper_nativeSetApkPath @ 0xb0e134
// > getPackageNameJNI @ 0xb0e6cc
// > getFileDirectoryJNI @ 0xb0e820
// > getCurrentLanguageJNI @ 0xb0e974
// > getStringForKeyJNI @ 0xb0f028
// > ??> @ 0xaad90
//
// 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
//
_QWORD *__usercall cocos2d::JniHelper::jstring2string@(__int64 a1@, _QWORD *a2@)
{
char *v4; // x22
__int64 v6; // [xsp+38h] [xbp+38h] BYREF
__int64 v7; // [xsp+40h] [xbp+40h] BYREF
if ( a1 )
{
v6 = 0;
if ( (unsigned __int8)sub_B0F8FC((cocos2d::JniHelper *)&v6) )
{
v4 = (char *)(*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v6 + 1352LL))(v6, a1, 0);
sub_D153B8((int)&v7, v4);
(*(void (__fastcall **)(__int64, __int64, char *))(*(_QWORD *)v6 + 1360LL))(v6, a1, v4);
*a2 = v7;
}
else
{
sub_D153B8((int)a2, nullptr);
}
}
else
{
sub_D153B8((int)a2, &byte_F288A0);
}
return a2;
}