//
// AchievementManager::notifyAchievementWithID from 0x10010e734 to 0x10010e850 (284 bytes)
//
// 1 xrefs:
// > AchievementManager::reportAchievementWithID @ 0x10010e9e0
//
// 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 10:59:07 +0000
//
void __fastcall AchievementManager::notifyAchievementWithID(__int64 a1, char *a2)
{
__int64 v2; // x19
__int64 v3; // x0
__int64 v4; // x19
__int64 v5; // x0
__int64 CString; // x20
__int64 v7; // x0
__int64 v8; // x21
__int64 v9; // x0
__int64 v10; // x19
__int64 v11; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v13; // [xsp+1Fh] [xbp-21h]
if ( (*(_BYTE *)(a1 + 360) & 1) == 0 )
{
v2 = *(_QWORD *)(a1 + 328);
sub_100009900(__p, a2);
v3 = cocos2d::CCDictionary::objectForKey(v2, __p);
v4 = v3;
if ( v13 < 0 )
{
operator delete(__p[0]);
if ( !v4 )
return;
}
else if ( !v3 )
{
return;
}
sub_100009900(__p, "title");
v5 = cocos2d::CCDictionary::valueForKey(v4, __p);
CString = cocos2d::CCString::getCString(v5);
if ( v13 < 0 )
operator delete(__p[0]);
sub_100009900(__p, "achievedDescription");
v7 = cocos2d::CCDictionary::valueForKey(v4, __p);
v8 = cocos2d::CCString::getCString(v7);
if ( v13 < 0 )
operator delete(__p[0]);
sub_100009900(__p, "icon");
v9 = cocos2d::CCDictionary::valueForKey(v4, __p);
v10 = cocos2d::CCString::getCString(v9);
if ( v13 < 0 )
operator delete(__p[0]);
v11 = AchievementNotifier::sharedState();
AchievementNotifier::notifyAchievement(v11, CString, v8, v10, 0);
}
}