//
// AchievementManager::isAchievementAvailable from 0x3beda4 to 0x3bee0e (106 bytes)
//
// 2 xrefs:
// > GJGarageLayer::achievementForUnlock @ 0x50c272
// > GameStatsManager::getItemUnlockStateLite @ 0x528dd4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:46:29 +0000
//
int __fastcall AchievementManager::isAchievementAvailable(AchievementManager *a1, int a2, int a3, int a4)
{
const char *v4; // r1
int AchievementsWithID; // r4
AchievementManager *v7; // [sp+0h] [bp-10h] BYREF
int v8; // [sp+4h] [bp-Ch]
int v9; // [sp+8h] [bp-8h]
int v10; // [sp+Ch] [bp-4h]
v7 = a1;
v8 = a2;
v9 = a3;
v10 = a4;
if ( (*(_BYTE *)a2 & 1) != 0 )
v4 = *(const char **)(a2 + 8);
else
v4 = (const char *)(a2 + 1);
AchievementsWithID = AchievementManager::getAchievementsWithID(a1, v4);
if ( AchievementsWithID )
{
v7 = nullptr;
v8 = 0;
v9 = 0;
std::string::__init((int *)&v7, "un", 2u);
AchievementsWithID = cocos2d::CCDictionary::objectForKey(AchievementsWithID, &v7) == 0;
std::string::~string((int)&v7);
}
return AchievementsWithID;
}