//
// GameManager::isColorUnlocked from 0x1003785c0 to 0x100378646 (134 bytes)
//
// 6 xrefs:
// > GameManager::checkUsedIcons @ 0x10037ef03
// > GameManager::checkUsedIcons @ 0x10037ef88
// > GameManager::checkUsedIcons @ 0x10037f013
// > CharacterColorPage::updateColorMode @ 0x10065e11f
// > CharacterColorPage::onPlayerColor @ 0x10065e512
// > CharacterColorPage::checkColor @ 0x10065e80f
//
// 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!
bool __fastcall GameManager::isColorUnlocked(GameManager *a1, int a2, UnlockType a3)
{
double v3; // xmm0_8
bool v4; // r14
cocos2d::CCDictionary *m_valueKeeper; // r12
cocos2d::CCString *v7; // rax
bool v8; // r12
GameStatsManager *v9; // rax
size_t v11[8]; // [rsp+0h] [rbp-40h] BYREF
v4 = 1;
if ( a2 >= 4 )
{
m_valueKeeper = a1->m_valueKeeper;
GameManager::colorKey(v11, v3, *(__int64 *)&a2, a2, a3);
v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)m_valueKeeper, (__int64)v11);
v8 = cocos2d::CCString::boolValue(v7);
if ( (v11[0] & 1) != 0 )
operator delete((void *)v11[2]);
if ( !v8 )
{
v9 = GameStatsManager::sharedState();
return GameStatsManager::isItemUnlocked(v9, a3, a2);
}
}
return v4;
}