//
// WorldSelectLayer::colorForPage from 0x62cd48 to 0x62cd96 (78 bytes)
//
// 2 xrefs:
// > WorldSelectLayer::getColorValue @ 0x62cde2
// > WorldSelectLayer::getColorValue @ 0x62cdfe
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:14 +0000
//
int __fastcall WorldSelectLayer::colorForPage(WorldSelectLayer *this, int a2)
{
unsigned __int8 v2; // r3
char v3; // r3
unsigned __int8 v5; // [sp+4h] [bp-4h]
unsigned __int8 v6; // [sp+5h] [bp-3h]
if ( a2 )
{
v2 = -106;
if ( a2 != 1 )
{
v5 = -106;
v6 = -106;
return v5 | (unsigned __int16)(v6 << 8) | (v2 << 16);
}
v5 = -106;
v3 = 25;
}
else
{
v5 = 25;
v3 = 125;
}
v6 = v3;
v2 = -1;
return v5 | (unsigned __int16)(v6 << 8) | (v2 << 16);
}