//
// GJLocalLevelScoreCell::updateBGColor from 0x7391a4 to 0x7392a8 (260 bytes)
//
// 2 xrefs:
// > CustomListView::loadCell @ 0x74d24c
// > ??> @ 0x6ae10
//
// 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 GJLocalLevelScoreCell::updateBGColor(GJLocalLevelScoreCell *this, char a2)
{
__int64 v3; // x0
__int64 v4; // x0
void (__fastcall *v5)(__int64, char *); // x2
__int64 v7; // x0
void (__fastcall *v8)(__int64, char *); // x2
char v9; // [xsp+20h] [xbp+20h] BYREF
char v10; // [xsp+21h] [xbp+21h]
char v11; // [xsp+22h] [xbp+22h]
v3 = *((_QWORD *)this + 69);
if ( v3 && *(_BYTE *)(v3 + 64) )
{
v7 = *((_QWORD *)this + 66);
v8 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v7 + 1216LL);
v9 = -26;
v10 = -106;
v11 = 10;
v8(v7, &v9);
}
else
{
v4 = *((_QWORD *)this + 66);
v5 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v4 + 1216LL);
if ( (a2 & 1) != 0 )
{
v9 = -62;
v10 = 114;
v11 = 62;
}
else
{
v9 = -95;
v10 = 88;
v11 = 44;
}
v5(v4, &v9);
}
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 66) + 1168LL))(*((_QWORD *)this + 66), 0xFFFFFFFFLL);
return _stack_chk_guard;
}