//
// CharacterColorPage::checkColor from 0xb518ac to 0xb51914 (104 bytes)
//
// 2 xrefs:
// > CharacterColorPage::onPlayerColor @ 0xb51c04
// > ??> @ 0x76fd8
//
// 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 13:01:59 +0000
//
__int64 __fastcall CharacterColorPage::checkColor(GameManager *a1, unsigned int a2, unsigned int a3)
{
__int64 v6; // x0
unsigned __int8 isColorUnlocked; // w0
unsigned int v8; // w19
__int64 v9; // x0
v6 = GameManager::sharedState(a1);
isColorUnlocked = GameManager::isColorUnlocked(v6, a2, a3);
v8 = isColorUnlocked;
if ( !isColorUnlocked )
{
v9 = *((_QWORD *)a1 + 88);
if ( v9 )
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v9 + 8LL))(v9, a2, a3);
}
return v8;
}