//
// SmartTemplateCell::updateBGColor from 0x42691c to 0x4269c0 (164 bytes)
//
// 2 xrefs:
// > CustomListView::reloadAll @ 0x431288
// > CustomListView::loadCell @ 0x43427e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:48:04 +0000
//
int __fastcall SmartTemplateCell::updateBGColor(SmartTemplateCell *this, int a2, int a3)
{
char v4; // r7
GameLevelManager *v5; // r0
int v6; // r0
void (__fastcall *v7)(int, _DWORD *, int); // r3
int v8; // r2
_DWORD v10[3]; // [sp+0h] [bp-Ch] BYREF
v10[0] = this;
v10[1] = a2;
v10[2] = a3;
v4 = a2;
v5 = (GameLevelManager *)GameLevelManager::sharedState(this);
if ( *((_DWORD *)v5 + 244)
&& *(_DWORD *)(*(_DWORD *)(GameLevelManager::sharedState(v5) + 976) + 120) == *(_DWORD *)(*((_DWORD *)this + 105)
+ 120) )
{
v6 = *((_DWORD *)this + 102);
v7 = *(void (__fastcall **)(int, _DWORD *, int))(*(_DWORD *)v6 + 608);
LOWORD(v10[0]) = -26906;
v8 = 10;
}
else
{
v6 = *((_DWORD *)this + 102);
v7 = *(void (__fastcall **)(int, _DWORD *, int))(*(_DWORD *)v6 + 608);
if ( (v4 & 1) != 0 )
{
LOWORD(v10[0]) = 29378;
v8 = 62;
}
else
{
LOWORD(v10[0]) = 22689;
v8 = 44;
}
}
BYTE2(v10[0]) = v8;
v7(v6, v10, v8);
return (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 102) + 584))(*((_DWORD *)this + 102), 255);
}