//
// CustomSFXCell::updateBGColor from 0x7386d8 to 0x73880c (308 bytes)
//
// 3 xrefs:
// > CustomListView::reloadAll @ 0x749104
// > CustomListView::loadCell @ 0x74d33c
// > ??> @ 0xb53d8
//
// 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 CustomSFXCell::updateBGColor(CustomSFXCell *this, __int64 a2)
{
__int64 v3; // x2
int v4; // w21
int v5; // w0
__int64 v6; // x3
char v7; // w2
__int64 v8; // x0
void (__fastcall *v9)(__int64, char *); // x3
int v11; // w21
int v12; // w0
__int64 v13; // x0
void (__fastcall *v14)(__int64, char *); // x2
__int64 v15; // [xsp+38h] [xbp+38h]
char v16; // [xsp+40h] [xbp+40h] BYREF
char v17; // [xsp+41h] [xbp+41h]
char v18; // [xsp+42h] [xbp+42h]
if ( !*((_BYTE *)this + 570) )
{
v6 = *((_QWORD *)this + 66);
v7 = 50;
if ( (a2 & 1) != 0 )
goto LABEL_8;
LABEL_7:
v7 = 75;
goto LABEL_8;
}
v3 = *((_QWORD *)this + 70);
if ( v3 )
{
v4 = *(_DWORD *)(v3 + 56);
v15 = a2;
v5 = (*(__int64 (__fastcall **)(CustomSFXCell *))(*(_QWORD *)this + 1160LL))(this);
LOBYTE(a2) = v15;
if ( v4 == v5 )
{
v11 = *(_DWORD *)(*((_QWORD *)this + 70) + 76LL);
v12 = (*(__int64 (__fastcall **)(CustomSFXCell *, __int64))(*(_QWORD *)this + 1168LL))(this, v15);
LOBYTE(a2) = v15;
if ( v11 == v12 )
{
v13 = *((_QWORD *)this + 66);
v14 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v13 + 1216LL);
v16 = -56;
v17 = -116;
v18 = 50;
v14(v13, &v16);
goto LABEL_9;
}
}
}
if ( (a2 & 1) == 0 )
{
v6 = *((_QWORD *)this + 66);
goto LABEL_7;
}
v6 = *((_QWORD *)this + 66);
v7 = 100;
LABEL_8:
v8 = v6;
v9 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v6 + 1216LL);
v16 = v7;
v17 = v7;
v18 = v7;
v9(v8, &v16);
LABEL_9:
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 66) + 1168LL))(*((_QWORD *)this + 66), 0xFFFFFFFFLL);
return _stack_chk_guard;
}