//
// MenuGameLayer::updateColor from 0x6c90fc to 0x6c9234 (312 bytes)
//
// 4 xrefs:
// > MenuGameLayer::init @ 0x6ca35c
// > ??> @ 0xa7cd0
// > MenuGameLayer::init @ 0x6ca34c
// > ??> @ 0x122dd18
//
// 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
//
void MenuGameLayer::updateColor(MenuGameLayer *a1, float a2)
{
int v3; // w0
int v4; // w1
unsigned __int8 v5; // w3
cocos2d::CCSprite *m_backgroundSprite; // x0
cocos2d::CCTintTo *v7; // x0
GJGroundLayer *m_groundLayer; // x0
float v9; // s8
cocos2d::CCTintTo *v10; // x0
cocos2d::CCSprite *m_ground2Sprite; // x0
cocos2d::CCTintTo *v12; // x0
unsigned __int8 v13; // [xsp+58h] [xbp+58h]
unsigned __int8 v14; // [xsp+59h] [xbp+59h]
unsigned __int8 v15; // [xsp+5Ah] [xbp+5Ah]
*(cocos2d::ccColor3B *)&v3 = MenuGameLayer::getBGColor(a1, a1->m_initCount);
v4 = v3;
v5 = BYTE1(v3);
m_backgroundSprite = a1->m_backgroundSprite;
++a1->m_initCount;
v14 = v5;
v13 = v4;
v15 = BYTE2(v4);
cocos2d::CCNode::stopAllActions(m_backgroundSprite);
v7 = cocos2d::CCTintTo::create(4.0, v13, v14, v15);
cocos2d::CCNode::runAction(a1->m_backgroundSprite, v7);
m_groundLayer = a1->m_groundLayer;
if ( m_groundLayer->m_ground2Sprite )
v9 = 0.6;
else
v9 = 0.8;
cocos2d::CCNode::stopAllActions(m_groundLayer->m_ground1Sprite);
v10 = cocos2d::CCTintTo::create(
4.0,
(unsigned int)(float)(v9 * (float)v13),
(unsigned int)(float)(v9 * (float)v14),
(unsigned int)(float)(v9 * (float)v15));
cocos2d::CCNode::runAction(a1->m_groundLayer->m_ground1Sprite, v10);
m_ground2Sprite = a1->m_groundLayer->m_ground2Sprite;
if ( m_ground2Sprite )
{
cocos2d::CCNode::stopAllActions(m_ground2Sprite);
v12 = cocos2d::CCTintTo::create(4.0, (unsigned int)(float)v13, (unsigned int)(float)v14, (unsigned int)(float)v15);
cocos2d::CCNode::runAction(a1->m_groundLayer->m_ground2Sprite, v12);
}
}