//
// SecretRewardsLayer::getPageColor from 0xb9a298 to 0xb9a33c (164 bytes)
//
// 3 xrefs:
// > SecretRewardsLayer::scrollLayerMoved @ 0xb9a408
// > SecretRewardsLayer::scrollLayerMoved @ 0xb9a42c
// > ??> @ 0xca240
//
// This function is hookable on this platform (idp: arm, 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 13:02:43 +0000
//
unsigned __int64 __fastcall SecretRewardsLayer::getPageColor(SecretRewardsLayer *this, 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 v3 | (unsigned __int64)(unsigned __int16)(v4 << 8) | ((unsigned __int64)v5 << 16);
}