//
// cocos2d::JniHelper::getStaticMethodInfo from 0xb0fae8 to 0xb0fc2c (324 bytes)
//
// 69 xrefs:
// > PlatformToolbox::getUniqueUserID @ 0x4ebc44
// > PlatformToolbox::isNetworkAvailable @ 0x4ebdb8
// > PlatformToolbox::onNativePause @ 0x4ebe58
// > PlatformToolbox::onNativeResume @ 0x4ebee8
// > PlatformToolbox::onToggleKeyboard @ 0x4ebf78
// > PlatformToolbox::setKeyboardState @ 0x4ec00c
// > PlatformToolbox::onGameLaunch @ 0x4ec0a0
// > PlatformToolbox::setBlockBackButton @ 0x4ec134
// > PlatformToolbox::shouldResumeSound @ 0x4ec1cc
// > PlatformToolbox::reportLoadingFinished @ 0x4ec26c
// > PlatformToolbox::isSignedInGooglePlay @ 0x4ec310
// > PlatformToolbox::signInGooglePlay @ 0x4ec3b0
// > PlatformToolbox::signOutGooglePlay @ 0x4ec440
// > PlatformToolbox::reportAchievementWithID @ 0x4ec4fc
// > PlatformToolbox::showAchievements @ 0x4ec5a8
// > PlatformToolbox::sendMail @ 0x4ec648
// > PlatformToolbox::tryShowRateDialog @ 0x4ec788
// > PlatformToolbox::openAppPage @ 0x4ec850
// > PlatformToolbox::saveAndEncryptStringToFile @ 0x4ec944
// > PlatformToolbox::loadAndDecryptFileToString @ 0x4ecb68
// > PlatformToolbox::copyToClipboard @ 0x4ed31c
// > PlatformToolbox::getDeviceRefreshRate @ 0x4ed448
// > AdToolbox::queueRefreshBanner @ 0x4ed4c8
// > AdToolbox::enableBannerNoRefresh @ 0x4ed540
// > AdToolbox::enableBanner @ 0x4ed5b8
// > AdToolbox::disableBanner @ 0x4ed630
// > AdToolbox::showInterstitial @ 0x4ed6a8
// > AdToolbox::cacheInterstitial @ 0x4ed720
// > AdToolbox::hasCachedInterstitial @ 0x4ed798
// > AdToolbox::showRewardedVideo @ 0x4ed820
// > AdToolbox::cacheRewardedVideo @ 0x4ed898
// > AdToolbox::hasCachedRewardedVideo @ 0x4ed910
// > AdToolbox::showDebug @ 0x4ed9a0
// > localStorageInit @ 0xaaeb7c
// > localStorageFree @ 0xaaee20
// > localStorageSetItem @ 0xaaeeac
// > localStorageGetItem @ 0xaaefb8
// > localStorageRemoveItem @ 0xaaf158
// > cocos2d::CCApplication::setAnimationInterval @ 0xb0ad64
// > cocos2d::CCApplication::openURL @ 0xb0ade4
// > cocos2d::CCImage::initWithString @ 0xb0d44c
// > cocos2d::CCImage::initWithStringShadowStroke @ 0xb0d870
// > getFontSizeAccordingHeightJni @ 0xb0de74
// > getStringWithEllipsisJni @ 0xb0df44
// > showDialogJNI @ 0xb0e324
// > showEditTextDialogJNI @ 0xb0e478
// > terminateProcessJNI @ 0xb0e5ac
// > getPackageNameJNI @ 0xb0e65c
// > getFileDirectoryJNI @ 0xb0e7b0
// > getCurrentLanguageJNI @ 0xb0e904
// > enableAccelerometerJNI @ 0xb0ea38
// > setAccelerometerIntervalJNI @ 0xb0eacc
// > disableAccelerometerJNI @ 0xb0eb64
// > getBoolForKeyJNI @ 0xb0ec00
// > getIntegerForKeyJNI @ 0xb0ecec
// > getFloatForKeyJNI @ 0xb0edcc
// > getDoubleForKeyJNI @ 0xb0eeb4
// > getStringForKeyJNI @ 0xb0efbc
// > setBoolForKeyJNI @ 0xb0f1fc
// > setIntegerForKeyJNI @ 0xb0f2d8
// > setFloatForKeyJNI @ 0xb0f3b4
// > setDoubleForKeyJNI @ 0xb0f48c
// > setStringForKeyJNI @ 0xb0f564
// > cocos2d::JniHelper::getPlatformTimestamp @ 0xb0fe98
// > openKeyboardJNI @ 0xb0ff60
// > closeKeyboardJNI @ 0xb0fff0
// > getDPIJNI @ 0xb103ac
// > cocos2d::CCTextureETC::loadTexture @ 0xb36fbc
// > ??> @ 0x6bf40
//
// 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 cocos2d::JniHelper::getStaticMethodInfo(_QWORD *a1, const char *a2, const char *a3, __int64 a4)
{
int v8; // w1
__int64 result; // x0
__int64 v10; // x0
__int64 v11; // x24
__int64 v12; // x1
__int64 v13; // x2
__int64 v14; // [xsp+48h] [xbp+48h] BYREF
__int64 v15; // [xsp+50h] [xbp+50h] BYREF
v14 = 0;
v8 = (unsigned __int8)sub_B0F8FC((cocos2d::JniHelper *)&v14);
result = 0;
if ( v8 )
{
v10 = v14;
v15 = v14;
if ( !v14 )
{
if ( !(unsigned __int8)sub_B0F8FC((cocos2d::JniHelper *)&v15) )
{
v11 = 0;
LABEL_5:
v12 = (*(__int64 (__fastcall **)(__int64, __int64, const char *, __int64))(*(_QWORD *)v14 + 904LL))(
v14,
v11,
a3,
a4);
if ( v12 )
{
v13 = v14;
a1[1] = v11;
*a1 = v13;
a1[2] = v12;
return 1;
}
else
{
__android_log_print(3, "JniHelper", "Failed to find static method id of %s", a3);
return 0;
}
}
v10 = v15;
}
v11 = (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v10 + 48LL))(v10, a2);
if ( !v11 )
__android_log_print(3, "JniHelper", "Failed to find class of %s", a2);
goto LABEL_5;
}
return result;
}