//
// CharacterColorPage::checkColor from 0x10012a328 to 0x10012a38c (100 bytes)
//
// 1 xrefs:
// > CharacterColorPage::onPlayerColor @ 0x10012a0f8
//
// 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 CharacterColorPage::checkColor(CharacterColorPage *a1, int a2, UnlockType a3)
{
__int64 v3; // x19
__int64 v4; // x20
GameManager *v6; // x0
bool isColorUnlocked; // w21
CharacterColorDelegate *m_delegate; // x0
v3 = *(_QWORD *)&a3;
v4 = *(_QWORD *)&a2;
v6 = GameManager::sharedState();
isColorUnlocked = GameManager::isColorUnlocked(v6, v4, (UnlockType)v3);
if ( !isColorUnlocked )
{
m_delegate = a1->m_delegate;
if ( m_delegate )
((void (__fastcall *)(CharacterColorDelegate *, __int64, __int64))m_delegate->showUnlockPopup)(m_delegate, v4, v3);
}
return isColorUnlocked;
}