//
// SmartTemplateCell::updateBGColor from 0x73a3f0 to 0x73a51c (300 bytes)
//
// 3 xrefs:
// > CustomListView::reloadAll @ 0x748efc
// > CustomListView::loadCell @ 0x74d36c
// > ??> @ 0xff0d0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:52:40 +0000
//
__int64 __fastcall SmartTemplateCell::updateBGColor(SmartTemplateCell *this, char a2)
{
GameLevelManager *v4; // x0
__int64 v5; // x0
void (__fastcall *v6)(__int64, char *); // x2
__int64 v8; // x0
void (__fastcall *v9)(__int64, char *); // x2
char v10; // [xsp+30h] [xbp+30h] BYREF
char v11; // [xsp+31h] [xbp+31h]
char v12; // [xsp+32h] [xbp+32h]
v4 = *(GameLevelManager **)(GameLevelManager::sharedState(_stack_chk_guard) + 1528);
if ( v4
&& *(_DWORD *)(*(_QWORD *)(GameLevelManager::sharedState(v4) + 1528) + 192LL) == *(_DWORD *)(*((_QWORD *)this + 69)
+ 192LL) )
{
v8 = *((_QWORD *)this + 66);
v9 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v8 + 1216LL);
v10 = -26;
v11 = -106;
v12 = 10;
v9(v8, &v10);
}
else
{
v5 = *((_QWORD *)this + 66);
v6 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v5 + 1216LL);
if ( (a2 & 1) != 0 )
{
v10 = -62;
v11 = 114;
v12 = 62;
}
else
{
v10 = -95;
v11 = 88;
v12 = 44;
}
v6(v5, &v10);
}
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 66) + 1168LL))(*((_QWORD *)this + 66), 0xFFFFFFFFLL);
return _stack_chk_guard;
}