//
// PlatformToolbox::reportAchievementWithID from 0x4ec498 to 0x4ec570 (216 bytes)
//
// 2 xrefs:
// > AchievementManager::reportPlatformAchievementWithID @ 0x5538e4
// > ??> @ 0x94f68
//
// 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
//
void PlatformToolbox::reportAchievementWithID(const char *a1, int a2)
{
__int64 v3; // x20
__int64 v4; // [xsp+20h] [xbp+20h] BYREF
__int64 v5; // [xsp+28h] [xbp+28h]
__int64 v6; // [xsp+30h] [xbp+30h]
if ( a2 > 99 )
{
if ( (unsigned __int8)cocos2d::JniHelper::getStaticMethodInfo(
&v4,
"com/customRobTop/BaseRobTopActivity",
"unlockAchievement",
"(Ljava/lang/String;)V") )
{
v3 = (*(__int64 (__fastcall **)(__int64, const char *))(*(_QWORD *)v4 + 1336LL))(v4, a1);
_JNIEnv::CallStaticVoidMethod(v4, v5, v6, v3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 184LL))(v4, v3);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 184LL))(v4, v5);
}
}
}