//
// sub_100153D58 from 0x100153d58 to 0x100153dbc (100 bytes)
//
// 1 xrefs:
// > CharacterColorPage::onPlayerColor @ 0x100153b28
//
// 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 10:59:40 +0000
//
__int64 __fastcall sub_100153D58(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x0
__int64 isColorUnlocked; // x21
__int64 v8; // x0
v6 = GameManager::sharedState(a1);
isColorUnlocked = GameManager::isColorUnlocked(v6, a2, a3);
if ( (isColorUnlocked & 1) == 0 )
{
v8 = *(_QWORD *)(a1 + 704);
if ( v8 )
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v8 + 8LL))(v8, a2, a3);
}
return isColorUnlocked;
}