//
// CharacterColorPage::activeColorForMode from 0xa247b0 to 0xa24820 (112 bytes)
//
// 5 xrefs:
// > CharacterColorPage::updateColorMode @ 0xa24858
// > CharacterColorPage::updateColorMode @ 0xa24868
// > CharacterColorPage::updateColorMode @ 0xa24878
// > CharacterColorPage::onPlayerColor @ 0xa25624
// > ??> @ 0xb9028
//
// 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
//
int CharacterColorPage::activeColorForMode(CharacterColorPage *a1, int a2)
{
int result; // w0
GameManager *v3; // x0
GameManager *v4; // x0
GameManager *v5; // x0
if ( a2 == 1 )
{
v5 = GameManager::sharedState();
return v5->m_playerColor2.random - v5->m_playerColor2.seed;
}
else if ( a2 == 2 )
{
v4 = GameManager::sharedState();
return v4->m_playerGlowColor.random - v4->m_playerGlowColor.seed;
}
else
{
result = 0;
if ( !a2 )
{
v3 = GameManager::sharedState();
return v3->m_playerColor.random - v3->m_playerColor.seed;
}
}
return result;
}