//
// WorldSelectLayer::colorForPage from 0x4fd178 to 0x4fd1c6 (78 bytes)
//
// 2 xrefs:
// > WorldSelectLayer::getColorValue @ 0x4fd212
// > WorldSelectLayer::getColorValue @ 0x4fd22e
//
// 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 WorldSelectLayer::colorForPage(WorldSelectLayer *a1, int a2)
{
unsigned __int8 v2; // r3
char v3; // r3
unsigned __int8 v6; // [sp+4h] [bp-4h]
unsigned __int8 v7; // [sp+5h] [bp-3h]
if ( a2 )
{
v2 = -106;
if ( a2 != 1 )
{
v6 = -106;
v7 = -106;
return (cocos2d::ccColor3B)(v6 | (unsigned __int16)(v7 << 8) | (v2 << 16));
}
v6 = -106;
v3 = 25;
}
else
{
v6 = 25;
v3 = 125;
}
v7 = v3;
v2 = -1;
return (cocos2d::ccColor3B)(v6 | (unsigned __int16)(v7 << 8) | (v2 << 16));
}