//
// GameManager::unlockColor from 0x4191a8 to 0x419206 (94 bytes)
//
// 1 xrefs:
// > GameManager::completedAchievement @ 0x419264
//
// 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:47:42 +0000
//
int __fastcall GameManager::unlockColor(int a1, int a2, int a3, int a4)
{
int v6; // r8
cocos2d::CCObject *v8; // r7
int v10[4]; // [sp+0h] [bp-10h] BYREF
v10[0] = a1;
v10[1] = a2;
v10[2] = a3;
v10[3] = a4;
v6 = *(_DWORD *)(a1 + 320);
v8 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)&dword_0 + 1);
GameManager::colorKey(v10, a1, a2, a3);
cocos2d::CCDictionary::setObject(v6, v8);
return std::string::~string((int)v10);
}