// // AchievementManager::reportAchievementWithID from 0x685830 to 0x685974 (324 bytes) // // 2 xrefs: // > GameManager::reportAchievementWithID @ 0x721fb0 // > @ 0xc2c38 // // 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:30 +0000 // __int64 __fastcall AchievementManager::reportAchievementWithID( AchievementManager *this, char *a2, signed int a3, unsigned __int8 a4) { unsigned int v7; // w23 __int64 v9; // x26 cocos2d::CCObject *v10; // x25 size_t v11; // x0 _BOOL8 v12; // x0 AchievementManager *v13; // x0 __int64 v14[2]; // [xsp+50h] [xbp+50h] BYREF void *v15; // [xsp+60h] [xbp+60h] v7 = a4; if ( !AchievementManager::isAchievementEarned(this, a2) ) { if ( (int)AchievementManager::percentForAchievement(this, a2) < a3 ) { if ( a3 > 100 ) a3 = 100; v9 = *((_QWORD *)this + 44); v10 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(unsigned int)a3); v14[0] = 0; v14[1] = 0; v15 = nullptr; v11 = strlen(a2); std::string::__init(v14, a2, v11); cocos2d::CCDictionary::setObject(v9, v10); if ( (v14[0] & 1) != 0 ) operator delete(v15); AchievementManager::reportPlatformAchievementWithID(this, a2, a3); } v12 = a3 > 99; if ( (unsigned int)v12 > v7 ) { v13 = (AchievementManager *)AchievementManager::sharedState((AchievementManager *)v12); AchievementManager::notifyAchievementWithID(v13, a2); } } return _stack_chk_guard; }