//
// MenuGameLayer::getBGColor from 0x3a947c to 0x3a952a (174 bytes)
//
// 3 xrefs:
// > MenuGameLayer::getBGColor @ 0x3a94f2
// > MenuGameLayer::updateColor @ 0x3a9542
// > MenuGameLayer::init @ 0x3aa206
//
// 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 MenuGameLayer::getBGColor(MenuGameLayer *a1, int a2)
{
GameManager *v2; // r0
int v3; // r1
int v4; // r0
__int16 v7; // [sp+4h] [bp-8h]
unsigned __int8 v8; // [sp+6h] [bp-6h]
switch ( a2 )
{
case 0:
v7 = 26112;
v8 = -1;
return (cocos2d::ccColor3B)((unsigned __int8)v7 | (unsigned __int16)(HIBYTE(v7) << 8) | (v8 << 16));
case 1:
v2 = GameManager::sharedState();
v3 = 7;
goto LABEL_10;
case 2:
v2 = GameManager::sharedState();
v3 = 8;
goto LABEL_10;
case 3:
v2 = GameManager::sharedState();
v3 = 9;
goto LABEL_10;
case 4:
v2 = GameManager::sharedState();
v3 = 10;
goto LABEL_10;
case 5:
v2 = GameManager::sharedState();
v3 = 11;
goto LABEL_10;
case 6:
v2 = GameManager::sharedState();
v3 = 1;
goto LABEL_10;
case 7:
v2 = GameManager::sharedState();
v3 = 3;
LABEL_10:
*(cocos2d::ccColor3B *)&v4 = GameManager::colorForIdx(v2, v3);
break;
default:
*(cocos2d::ccColor3B *)&v4 = MenuGameLayer::getBGColor(a1, a2 % 8);
break;
}
v7 = v4;
v8 = BYTE2(v4);
return (cocos2d::ccColor3B)((unsigned __int8)v7 | (unsigned __int16)(HIBYTE(v7) << 8) | (v8 << 16));
}