//
// GJGarageLayer::descriptionForUnlock from 0x402a6c to 0x402af6 (138 bytes)
//
// 1 xrefs:
// > ItemInfoPopup::init @ 0x4052b4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall GJGarageLayer::descriptionForUnlock(int a1, int a2, int a3)
{
AchievementManager *v6; // r0
AchievementManager *v7; // r0
cocos2d::CCDictionary *AchievementsWithID; // r8
cocos2d::CCString *v9; // r0
char *CString; // r0
char *v12; // [sp+Ch] [bp-Ch] BYREF
std::string v13; // [sp+10h] [bp-8h] BYREF
v6 = AchievementManager::sharedState();
AchievementManager::achievementForUnlock((int)&v12, (int)v6, a2, a3);
v7 = AchievementManager::sharedState();
AchievementsWithID = AchievementManager::getAchievementsWithID(v7, v12);
sub_776584((int)&v13, "unachievedDescription");
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(AchievementsWithID, &v13);
CString = (char *)cocos2d::CCString::getCString(v9);
sub_776584(a1, CString);
sub_774008(&v13);
sub_774008(&v12);
return a1;
}