//
// SmartTemplateCell::updateBGColor from 0x10010b4cc to 0x10010b59c (208 bytes)
//
// 2 xrefs:
// > CustomListView::loadCell @ 0x1001012c8
// > CustomListView::reloadAll @ 0x10010bdb4
//
// 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 SmartTemplateCell::updateBGColor(SmartTemplateCell *a1, int a2)
{
void (*setColor)(void); // x8
if ( GameLevelManager::sharedState()->m_smartTemplate
&& GameLevelManager::sharedState()->m_smartTemplate->m_nameIndex == a1->m_smartTemplate->m_nameIndex )
{
setColor = (void (*)(void))a1->m_backgroundLayer->setColor;
}
else
{
setColor = (void (*)(void))a1->m_backgroundLayer->setColor;
}
setColor();
((void (__fastcall *)(cocos2d::CCLayerColor *, __int64))a1->m_backgroundLayer->setOpacity)(a1->m_backgroundLayer, 255);
}