//
// AchievementManager::areAchievementsEarned from 0x100864170 to 0x1008641d3 (99 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:36:42 +0000
//
bool __fastcall AchievementManager::areAchievementsEarned(__int64 a1, __int64 a2)
{
unsigned int v2; // r15d
__int64 v3; // rax
__int64 CString; // rax
int v5; // eax
bool v6; // cc
bool result; // al
if ( !(unsigned int)sub_1007FEF90(a2) )
return 1;
v2 = 0;
while ( 1 )
{
v3 = sub_1007FEFE0(a2, v2);
CString = cocos2d::CCString::getCString(v3);
v5 = AchievementManager::percentForAchievement(a1, CString);
v6 = v5 < 100;
result = v5 >= 100;
if ( v6 )
break;
if ( ++v2 >= (unsigned int)sub_1007FEF90(a2) )
return 1;
}
return result;
}