//
// ArtistCell::updateBGColor from 0x335c14 to 0x335c7c (104 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x33bc72
//
// 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 ArtistCell::updateBGColor(ArtistCell *a1, int a2)
{
cocos2d::CCLayerColor *m_backgroundLayer; // r0
char v4; // r2
void (__fastcall *setColor)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // r3
char v6; // r2
int v7; // r2
_DWORD v8[3]; // [sp+0h] [bp-Ch] BYREF
v8[0] = a1;
v8[1] = a2;
m_backgroundLayer = a1->m_backgroundLayer;
if ( (a2 & 1) != 0 )
v4 = -62;
else
v4 = -95;
setColor = m_backgroundLayer->setColor;
LOBYTE(v8[0]) = v4;
if ( (a2 & 1) != 0 )
v6 = 114;
else
v6 = 88;
BYTE1(v8[0]) = v6;
if ( (a2 & 1) != 0 )
v7 = 62;
else
v7 = 44;
BYTE2(v8[0]) = v7;
((void (__fastcall *)(cocos2d::CCLayerColor *, _DWORD *, int))setColor)(m_backgroundLayer, v8, v7);
a1->m_backgroundLayer->setOpacity(a1->m_backgroundLayer, 255);
}