//
// CommentCell::updateBGColor from 0x10012cbf4 to 0x10012cca4 (176 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x100125f00
//
// 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 10:59:21 +0000
//
__int64 __fastcall CommentCell::updateBGColor(__int64 a1, char a2)
{
int v2; // w8
__int64 v3; // x0
__int16 v5; // [xsp+0h] [xbp-10h] BYREF
char v6; // [xsp+2h] [xbp-Eh]
__int16 v7; // [xsp+4h] [xbp-Ch] BYREF
char v8; // [xsp+6h] [xbp-Ah]
__int16 v9; // [xsp+8h] [xbp-8h] BYREF
char v10; // [xsp+Ah] [xbp-6h]
__int16 v11; // [xsp+Ch] [xbp-4h] BYREF
char v12; // [xsp+Eh] [xbp-2h]
v2 = *(unsigned __int8 *)(a1 + 594);
v3 = *(_QWORD *)(a1 + 528);
if ( v2 == 1 )
{
if ( (a2 & 1) != 0 )
{
v12 = 39;
v11 = 20368;
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v3 + 1216LL))(v3, &v11);
}
else
{
v10 = 42;
v9 = 21916;
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v3 + 1216LL))(v3, &v9);
}
}
else if ( (a2 & 1) != 0 )
{
v8 = 62;
v7 = 29378;
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v3 + 1216LL))(v3, &v7);
}
else
{
v6 = 44;
v5 = 22689;
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v3 + 1216LL))(v3, &v5);
}
}