//
// MenuGameLayer::getBGColor from 0x1004f9e60 to 0x1004f9edf (127 bytes)
//
// 0 xrefs:
//
// 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 __fastcall MenuGameLayer::getBGColor(MenuGameLayer *a1, int a2)
{
int v2; // eax
int v3; // eax
int v4; // ebx
GameManager *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 (cocos2d::ccColor3B)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();
*(cocos2d::ccColor3B *)&v3 = GameManager::colorForIdx(v5, v4);
return (cocos2d::ccColor3B)v3;
default:
goto LABEL_2;
}
}