//
// CustomSFXCell::updateBGColor from 0x425b0c to 0x425bd8 (204 bytes)
//
// 2 xrefs:
// > CustomListView::reloadAll @ 0x431334
// > CustomListView::loadCell @ 0x434078
//
// 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 CustomSFXCell::updateBGColor(CustomSFXCell *this, int a2)
{
char v3; // r7
int v4; // r3
int v5; // r8
int v6; // r8
int v7; // r0
void (__fastcall *v8)(int, _DWORD *); // r3
int v9; // r0
void (__fastcall *v10)(int, _DWORD *); // r2
char v11; // r3
_DWORD v13[2]; // [sp+0h] [bp-8h] BYREF
v13[0] = this;
v13[1] = a2;
v3 = a2;
if ( !*((_BYTE *)this + 430) )
{
v9 = *((_DWORD *)this + 102);
v10 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 608);
if ( (a2 & 1) != 0 )
{
v11 = 50;
LABEL_10:
LOBYTE(v13[0]) = v11;
BYTE1(v13[0]) = v11;
BYTE2(v13[0]) = v11;
v10(v9, v13);
return (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 102) + 584))(*((_DWORD *)this + 102), 255);
}
LABEL_9:
v11 = 75;
goto LABEL_10;
}
v4 = *((_DWORD *)this + 106);
if ( !v4
|| (v5 = *(_DWORD *)(v4 + 52), v5 != (*(int (__fastcall **)(CustomSFXCell *))(*(_DWORD *)this + 580))(this))
|| (v6 = *(_DWORD *)(*((_DWORD *)this + 106) + 72),
v6 != (*(int (__fastcall **)(CustomSFXCell *))(*(_DWORD *)this + 584))(this)) )
{
v9 = *((_DWORD *)this + 102);
if ( (v3 & 1) != 0 )
{
v10 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 608);
v11 = 100;
goto LABEL_10;
}
v10 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 608);
goto LABEL_9;
}
v7 = *((_DWORD *)this + 102);
v8 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v7 + 608);
LOWORD(v13[0]) = -29496;
BYTE2(v13[0]) = 50;
v8(v7, v13);
return (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 102) + 584))(*((_DWORD *)this + 102), 255);
}