//
// CharacterColorPage::checkColor from 0x69cff8 to 0x69d024 (44 bytes)
//
// 1 xrefs:
// > CharacterColorPage::onPlayerColor @ 0x69d250
//
// 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:56:20 +0000
//
int __fastcall CharacterColorPage::checkColor(GameManager *a1, int a2, int a3)
{
int v6; // r0
int v7; // r3
int isColorUnlocked; // r4
int v9; // r0
v6 = GameManager::sharedState(a1);
isColorUnlocked = GameManager::isColorUnlocked(v6, a2, a3, v7);
if ( !isColorUnlocked )
{
v9 = *((_DWORD *)a1 + 137);
if ( v9 )
(*(void (__fastcall **)(int, int, int))(*(_DWORD *)v9 + 4))(v9, a2, a3);
}
return isColorUnlocked;
}