//
// GameCell::updateBGColor from 0x56ce7c to 0x56cf2c (176 bytes)
//
// 1 xrefs:
// > ??> @ 0x9df20
//
// 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 GameCell::updateBGColor(GameCell *a1, int a2)
{
cocos2d::CCLayerColor *m_backgroundLayer; // x0
void (__fastcall *setColor)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // x2
char v5; // [xsp+30h] [xbp+30h] BYREF
__int16 v6; // [xsp+31h] [xbp+31h]
m_backgroundLayer = a1->m_backgroundLayer;
setColor = m_backgroundLayer->setColor;
if ( (a2 & 1) != 0 )
{
v5 = -1;
v6 = -1;
}
else
{
v5 = 0;
v6 = 255;
}
setColor(m_backgroundLayer, (const cocos2d::ccColor3B *)&v5);
a1->m_backgroundLayer->setOpacity(a1->m_backgroundLayer, 0xFFFFFFFFLL);
}