//
// CommentCell::updateBGColor from 0x100249640 to 0x1002496db (155 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 CommentCell::updateBGColor(CommentCell *a1, int a2)
{
cocos2d::CCLayerColor *m_backgroundLayer; // rdi
__int16 v4; // [rsp+0h] [rbp-10h] BYREF
char v5; // [rsp+2h] [rbp-Eh]
__int16 v6; // [rsp+4h] [rbp-Ch] BYREF
char v7; // [rsp+6h] [rbp-Ah]
__int16 v8; // [rsp+8h] [rbp-8h] BYREF
char v9; // [rsp+Ah] [rbp-6h]
__int16 v10; // [rsp+Ch] [rbp-4h] BYREF
char v11; // [rsp+Eh] [rbp-2h]
m_backgroundLayer = a1->m_backgroundLayer;
if ( a1->m_compactMode )
{
if ( (a2 & 1) != 0 )
{
v5 = 39;
v4 = 20368;
((void (__fastcall *)(cocos2d::CCLayerColor *, __int16 *))m_backgroundLayer->setColor)(m_backgroundLayer, &v4);
}
else
{
v7 = 42;
v6 = 21916;
((void (__fastcall *)(cocos2d::CCLayerColor *, __int16 *))m_backgroundLayer->setColor)(m_backgroundLayer, &v6);
}
}
else if ( (a2 & 1) != 0 )
{
v9 = 62;
v8 = 29378;
((void (__fastcall *)(cocos2d::CCLayerColor *, __int16 *))m_backgroundLayer->setColor)(m_backgroundLayer, &v8);
}
else
{
v11 = 44;
v10 = 22689;
((void (__fastcall *)(cocos2d::CCLayerColor *, __int16 *))m_backgroundLayer->setColor)(m_backgroundLayer, &v10);
}
}