//
// StatsCell::updateBGColor from 0x100246d50 to 0x100246d9f (79 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 __fastcall StatsCell::updateBGColor(StatsCell *a1, int a2)
{
cocos2d::CCLayerColor *m_backgroundLayer; // rdi
__int16 v3; // [rsp+8h] [rbp-8h] BYREF
char v4; // [rsp+Ah] [rbp-6h]
__int16 v5; // [rsp+Ch] [rbp-4h] BYREF
char v6; // [rsp+Eh] [rbp-2h]
m_backgroundLayer = a1->m_backgroundLayer;
if ( (a2 & 1) != 0 )
{
v4 = 62;
v3 = 29378;
((void (__fastcall *)(cocos2d::CCLayerColor *, __int16 *))m_backgroundLayer->setColor)(m_backgroundLayer, &v3);
}
else
{
v6 = 44;
v5 = 22689;
((void (__fastcall *)(cocos2d::CCLayerColor *, __int16 *))m_backgroundLayer->setColor)(m_backgroundLayer, &v5);
}
}