//
// AchievementCell::updateBGColor from 0x60ef7c to 0x60f01c (160 bytes)
//
// 2 xrefs:
// > CustomListView::loadCell @ 0x620764
// > ??> @ 0x68f58
//
// 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 AchievementCell::updateBGColor(AchievementCell *a1, int a2)
{
cocos2d::CCLayerColor *m_backgroundLayer; // x0
void (__fastcall *setColor)(cocos2d::CCLayerColor *__hidden, const cocos2d::ccColor3B *); // x2
char v4; // [xsp+20h] [xbp+20h] BYREF
char v5; // [xsp+21h] [xbp+21h]
char v6; // [xsp+22h] [xbp+22h]
m_backgroundLayer = a1->m_backgroundLayer;
setColor = m_backgroundLayer->setColor;
if ( (a2 & 1) != 0 )
{
v4 = -62;
v5 = 114;
v6 = 62;
}
else
{
v4 = -95;
v5 = 88;
v6 = 44;
}
setColor(m_backgroundLayer, (const cocos2d::ccColor3B *)&v4);
}