//
// LevelSelectLayer::colorForPage from 0x100422070 to 0x1004220e8 (120 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:30:16 +0000
//
__int64 __fastcall LevelSelectLayer::colorForPage(__int64 a1, signed int a2)
{
int v3; // ebx
__int64 v4; // rax
if ( a2 && a2 == 22 * (a2 / 22) )
return 3419173;
while ( (unsigned int)a2 >= 9 )
a2 %= 9;
v3 = dword_100A0A308[a2];
v4 = GameManager::sharedState();
return GameManager::colorForIdx(v4, v3);
}