//
// GameCell::updateBGColor from 0x2e1a34 to 0x2e1a96 (98 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
//
void GameCell::updateBGColor(GameCell *a1, int a2)
{
cocos2d::CCLayerColor *m_backgroundLayer; // r0
void (__fastcall *setColor)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // r3
_DWORD v5[2]; // [sp+0h] [bp-8h] BYREF
v5[0] = a1;
v5[1] = a2;
m_backgroundLayer = a1->m_backgroundLayer;
setColor = m_backgroundLayer->setColor;
if ( (a2 & 1) != 0 )
{
LOWORD(v5[0]) = -1;
BYTE2(v5[0]) = -1;
}
else
{
LOBYTE(v5[0]) = a2 & 1;
BYTE2(v5[0]) = a2 & 1;
}
if ( (a2 & 1) == 0 )
BYTE1(v5[0]) = -1;
setColor(m_backgroundLayer, (const cocos2d::ccColor3B *)v5);
a1->m_backgroundLayer->setOpacity(a1->m_backgroundLayer, 255);
}