//
// WorldSelectLayer::colorForPage from 0xaa6158 to 0xaa61d4 (124 bytes)
//
// 3 xrefs:
// > WorldSelectLayer::getColorValue @ 0xaa6214
// > WorldSelectLayer::getColorValue @ 0xaa623c
// > ??> @ 0xf8530
//
// 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:00:51 +0000
//
unsigned __int64 __fastcall WorldSelectLayer::colorForPage(WorldSelectLayer *this, int a2)
{
unsigned __int8 v3; // [xsp+8h] [xbp-8h]
unsigned __int8 v4; // [xsp+9h] [xbp-7h]
unsigned __int8 v5; // [xsp+Ah] [xbp-6h]
if ( a2 )
{
v3 = -106;
if ( a2 == 1 )
{
v4 = 25;
v5 = -1;
}
else
{
v4 = -106;
v5 = -106;
}
}
else
{
v3 = 25;
v4 = 125;
v5 = -1;
}
return v3 | (unsigned __int64)(unsigned __int16)(v4 << 8) | ((unsigned __int64)v5 << 16);
}