//
// SmartTemplateCell::updateBGColor from 0x1002351b0 to 0x100235260 (176 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:27:12 +0000
//
__int64 __fastcall SmartTemplateCell::updateBGColor(__int64 a1, char a2, double a3)
{
__int64 *v4; // rdi
__int64 v5; // rax
__int16 *v6; // rsi
__int16 v8; // [rsp+4h] [rbp-1Ch] BYREF
char v9; // [rsp+6h] [rbp-1Ah]
__int16 v10; // [rsp+8h] [rbp-18h] BYREF
char v11; // [rsp+Ah] [rbp-16h]
__int16 v12; // [rsp+Ch] [rbp-14h] BYREF
char v13; // [rsp+Eh] [rbp-12h]
if ( *(_QWORD *)(GameLevelManager::sharedState(a3) + 1528)
&& *(_DWORD *)(*(_QWORD *)(GameLevelManager::sharedState(a3) + 1528) + 192LL) == *(_DWORD *)(*(_QWORD *)(a1 + 552)
+ 192LL) )
{
v4 = *(__int64 **)(a1 + 528);
v9 = 10;
v8 = -26906;
v5 = *v4;
v6 = &v8;
}
else
{
v4 = *(__int64 **)(a1 + 528);
if ( (a2 & 1) != 0 )
{
v11 = 62;
v10 = 29378;
v5 = *v4;
v6 = &v10;
}
else
{
v13 = 44;
v12 = 22689;
v5 = *v4;
v6 = &v12;
}
}
(*(void (__fastcall **)(__int64 *, __int16 *))(v5 + 1216))(v4, v6);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 528) + 1168LL))(*(_QWORD *)(a1 + 528), 255);
}