//
// LevelSelectLayer::colorForPage from 0x100403798 to 0x100403824 (140 bytes)
//
// 2 xrefs:
// > LevelSelectLayer::getColorValue @ 0x1004036c8
// > LevelSelectLayer::getColorValue @ 0x1004036d4
//
// 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
//
cocos2d::ccColor3B __fastcall LevelSelectLayer::colorForPage(LevelSelectLayer *a1, int a2)
{
int v2; // w0
int v3; // w19
GameManager *v4; // x0
if ( !a2 || a2 % 22 )
{
while ( (unsigned int)a2 >= 9 )
a2 %= 9;
v3 = dword_100647510[a2];
v4 = GameManager::sharedState();
*(cocos2d::ccColor3B *)&v2 = GameManager::colorForIdx(v4, v3);
}
else
{
return (cocos2d::ccColor3B)3419173;
}
return (cocos2d::ccColor3B)v2;
}