//
// GameManager::unlockIcon from 0x100312c28 to 0x100312ca4 (124 bytes)
//
// 1 xrefs:
// > GameManager::completedAchievement @ 0x100313794
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GameManager::unlockIcon(GameManager *a1, int a2, IconType a3)
{
__int64 v4; // x20
cocos2d::CCDictionary *m_valueKeeper; // x21
cocos2d::CCObject *v6; // x22
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v8; // [xsp+1Fh] [xbp-21h]
v4 = *(_QWORD *)&a2;
m_valueKeeper = a1->m_valueKeeper;
v6 = sub_100268F4C("%i", 1);
GameManager::iconKey(v4, a3, __p);
cocos2d::CCDictionary::setObject_1(m_valueKeeper, v6, __p);
if ( v8 < 0 )
operator delete(__p[0]);
}