//
// SecretRewardsLayer::getPageColor from 0xa60a98 to 0xa60b3c (164 bytes)
//
// 3 xrefs:
// > SecretRewardsLayer::scrollLayerMoved @ 0xa60c08
// > SecretRewardsLayer::scrollLayerMoved @ 0xa60c2c
// > ??> @ 0x99258
//
// 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 SecretRewardsLayer::getPageColor(SecretRewardsLayer *a1, int a2)
{
unsigned __int8 v3; // [xsp+8h] [xbp-8h]
unsigned __int8 v4; // [xsp+9h] [xbp-7h]
unsigned __int8 v5; // [xsp+Ah] [xbp-6h]
switch ( a2 )
{
case 1:
v3 = 50;
v4 = 50;
v5 = 50;
break;
case 2:
v4 = 0;
v3 = 70;
v5 = 120;
break;
case 3:
v3 = 36;
v4 = 27;
v5 = 40;
break;
default:
v4 = 0;
v3 = 70;
v5 = 75;
break;
}
return (cocos2d::ccColor3B)(v3 | (unsigned __int16)(v4 << 8) | (v5 << 16));
}