//
// AchievementManager::isAchievementAvailable from 0x6433e8 to 0x6434b0 (200 bytes)
//
// 3 xrefs:
// > GJGarageLayer::achievementForUnlock @ 0x8bb7bc
// > GameStatsManager::getItemUnlockStateLite @ 0x8e7b54
// > ??> @ 0x516d0
//
// 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:18 +0000
//
bool __fastcall AchievementManager::isAchievementAvailable(AchievementManager *a1, char *a2)
{
const char *v3; // x1
char v4; // t1
__int64 AchievementsWithID; // x0
_BOOL4 v6; // w20
_QWORD v8[2]; // [xsp+20h] [xbp+20h] BYREF
void *v9; // [xsp+30h] [xbp+30h]
v4 = *a2;
v3 = a2 + 1;
if ( (v4 & 1) != 0 )
v3 = *((const char **)a2 + 2);
AchievementsWithID = AchievementManager::getAchievementsWithID(a1, v3);
if ( AchievementsWithID )
{
v8[0] = 7238916;
v8[1] = 0;
v9 = nullptr;
v6 = cocos2d::CCDictionary::objectForKey(AchievementsWithID, v8) == 0;
if ( (v8[0] & 1) != 0 )
operator delete(v9);
}
else
{
return 0;
}
return v6;
}