//
// MessageThreadsPage::updateFilterButtons from 0x1400d7d60 to 0x1400d7eea (394 bytes)
//
// 6 xrefs:
// > MessageThreadsPage::init @ 0x1400d5202
// > MessageThreadsPage::onSelectFilter @ 0x1400d7f13
// > ??> @ 0x140892238
// > ??> @ 0x140892248
// > ??> @ 0x140914708
// > ??> @ 0x140914714
//
// 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 11:26:27 +0000
//
void __fastcall MessageThreadsPage::updateFilterButtons(__int64 a1)
{
int v1; // esi
__int64 v3; // rdi
__int64 v4; // r14
__int64 v5; // rdx
__int64 v6; // rdi
int v7; // esi
__int64 v8; // rdi
__int64 v9; // r14
__int64 v10; // rdx
__int64 v11; // rdi
int v12; // esi
__int64 v13; // rbx
__int64 v14; // rdi
__int64 v15; // rdx
__int64 v16; // rbx
v1 = *(_DWORD *)(a1 + 856);
v3 = *(_QWORD *)(a1 + 864);
if ( v3 )
{
v4 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 472LL))(v3, 1);
v6 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 472LL))(v3, 2);
if ( v4 )
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v4 + 336LL))(v4, v1 == 0);
if ( v6 )
{
LOBYTE(v5) = v1 != 0;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 336LL))(v6, v5);
}
}
v7 = *(_DWORD *)(a1 + 856);
v8 = *(_QWORD *)(a1 + 872);
if ( v8 )
{
v9 = (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v8 + 472LL))(*(_QWORD *)(a1 + 872), 1);
v11 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 472LL))(v8, 2);
if ( v9 )
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v9 + 336LL))(v9, v7 == 1);
if ( v11 )
{
LOBYTE(v10) = v7 != 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 336LL))(v11, v10);
}
}
v12 = *(_DWORD *)(a1 + 856);
v13 = *(_QWORD *)(a1 + 880);
if ( v13 )
{
v14 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 472LL))(v13, 1);
v16 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 472LL))(v13, 2);
if ( v14 )
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v14 + 336LL))(v14, v12 == 2);
if ( v16 )
{
LOBYTE(v15) = v12 != 2;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 336LL))(v16, v15);
}
}
}