//
// CommentCell::updateBGColor from 0x10022f7a0 to 0x10022f83b (155 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:27:09 +0000
//
__int64 __fastcall CommentCell::updateBGColor(__int64 a1, char a2)
{
__int64 v3; // rdi
__int16 v5; // [rsp+0h] [rbp-10h] BYREF
char v6; // [rsp+2h] [rbp-Eh]
__int16 v7; // [rsp+4h] [rbp-Ch] BYREF
char v8; // [rsp+6h] [rbp-Ah]
__int16 v9; // [rsp+8h] [rbp-8h] BYREF
char v10; // [rsp+Ah] [rbp-6h]
__int16 v11; // [rsp+Ch] [rbp-4h] BYREF
char v12; // [rsp+Eh] [rbp-2h]
v3 = *(_QWORD *)(a1 + 528);
if ( *(_BYTE *)(a1 + 594) == 1 )
{
if ( (a2 & 1) != 0 )
{
v6 = 39;
v5 = 20368;
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v3 + 1216LL))(v3, &v5);
}
else
{
v8 = 42;
v7 = 21916;
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v3 + 1216LL))(v3, &v7);
}
}
else if ( (a2 & 1) != 0 )
{
v10 = 62;
v9 = 29378;
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v3 + 1216LL))(v3, &v9);
}
else
{
v12 = 44;
v11 = 22689;
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v3 + 1216LL))(v3, &v11);
}
}