//
// CharacterColorPage::activeColorForMode from 0x10073dde0 to 0x10073de36 (86 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:36:28 +0000
//
__int64 __fastcall CharacterColorPage::activeColorForMode(__int64 a1, int a2)
{
__int64 result; // rax
__int64 v3; // rax
__int64 v4; // rax
__int64 v5; // rax
if ( a2 == 2 )
{
v5 = GameManager::sharedState();
return (unsigned int)(*(_DWORD *)(v5 + 836) - *(_DWORD *)(v5 + 840));
}
else if ( a2 == 1 )
{
v4 = GameManager::sharedState();
return (unsigned int)(*(_DWORD *)(v4 + 824) - *(_DWORD *)(v4 + 828));
}
else
{
result = 0;
if ( !a2 )
{
v3 = GameManager::sharedState();
return (unsigned int)(*(_DWORD *)(v3 + 812) - *(_DWORD *)(v3 + 816));
}
}
return result;
}