//
// MenuGameLayer::getBGColor from 0x1004f8cf0 to 0x1004f8d6f (127 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:31:27 +0000
//
__int64 __fastcall MenuGameLayer::getBGColor(__int64 a1, int a2)
{
int v2; // eax
int v4; // ebx
__int64 v5; // rax
if ( (unsigned int)a2 > 7 )
{
LABEL_2:
v2 = a2 + 7;
if ( a2 >= 0 )
v2 = a2;
a2 -= v2 & 0xFFFFFFF8;
}
switch ( a2 )
{
case 0:
return 16737792;
case 1:
v4 = 7;
goto LABEL_14;
case 2:
v4 = 8;
goto LABEL_14;
case 3:
v4 = 9;
goto LABEL_14;
case 4:
v4 = 10;
goto LABEL_14;
case 5:
v4 = 11;
goto LABEL_14;
case 6:
v4 = 1;
goto LABEL_14;
case 7:
v4 = 3;
LABEL_14:
v5 = GameManager::sharedState();
return GameManager::colorForIdx(v5, v4);
default:
goto LABEL_2;
}
}