//
// GameCell::updateBGColor from 0x3c0bb8 to 0x3c0c1a (98 bytes)
//
// 0 xrefs:
//
// 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:46:30 +0000
//
int __fastcall GameCell::updateBGColor(GameCell *this, int a2)
{
int v3; // r0
void (__fastcall *v4)(int, _DWORD *); // r3
_DWORD v6[2]; // [sp+0h] [bp-8h] BYREF
v6[0] = this;
v6[1] = a2;
v3 = *((_DWORD *)this + 102);
v4 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v3 + 608);
if ( (a2 & 1) != 0 )
{
LOWORD(v6[0]) = -1;
BYTE2(v6[0]) = -1;
}
else
{
LOBYTE(v6[0]) = a2 & 1;
BYTE2(v6[0]) = a2 & 1;
}
if ( (a2 & 1) == 0 )
BYTE1(v6[0]) = -1;
v4(v3, v6);
return (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 102) + 584))(*((_DWORD *)this + 102), 255);
}