//
// PlatformToolbox::reportAchievementWithID from 0x640498 to 0x640570 (216 bytes)
//
// 2 xrefs:
// > AchievementManager::reportPlatformAchievementWithID @ 0x685730
// > ??> @ 0xc4d08
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:50:16 +0000
//
__int64 __fastcall PlatformToolbox::reportAchievementWithID(PlatformToolbox *this, const char *a2)
{
__int64 v4; // x20
__int64 v5; // [xsp+20h] [xbp+20h] BYREF
__int64 v6; // [xsp+28h] [xbp+28h]
__int64 v7; // [xsp+30h] [xbp+30h]
if ( (int)a2 > 99
&& (unsigned __int8)cocos2d::JniHelper::getStaticMethodInfo(
&v5,
"com/customRobTop/BaseRobTopActivity",
"unlockAchievement",
"(Ljava/lang/String;)V") )
{
v4 = (*(__int64 (__fastcall **)(__int64, PlatformToolbox *))(*(_QWORD *)v5 + 1336LL))(v5, this);
_JNIEnv::CallStaticVoidMethod(v5, v6, v7, v4);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 184LL))(v5, v4);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 184LL))(v5, v6);
}
return _stack_chk_guard;
}