//
// GameManager::isColorUnlocked from 0x1003afb6c to 0x1003afbf4 (136 bytes)
//
// 5 xrefs:
// > CharacterColorPage::updateColorMode @ 0x1001538f0
// > sub_100153D58 @ 0x100153d80
// > sub_1003B3600 @ 0x1003b3624
// > sub_1003B3600 @ 0x1003b3668
// > sub_1003B3600 @ 0x1003b36ac
//
// 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 11:03:53 +0000
//
__int64 __fastcall GameManager::isColorUnlocked(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v5; // x21
__int64 v6; // x0
_BOOL8 v7; // x0
bool v8; // w21
__int64 v10; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v12; // [xsp+1Fh] [xbp-21h]
if ( (int)a2 < 4 )
return 1;
v5 = *(_QWORD *)(a1 + 424);
sub_1003AFA38(a2, a3, __p);
v6 = cocos2d::CCDictionary::valueForKey(v5, __p);
v7 = cocos2d::CCString::boolValue(v6);
v8 = v7;
if ( v12 < 0 )
{
operator delete(__p[0]);
if ( v8 )
return 1;
}
else if ( v7 )
{
return 1;
}
v10 = GameStatsManager::sharedState(v7);
return GameStatsManager::isItemUnlocked(v10, a3, a2);
}