//
// ThreadViewPopup::setSendPending from 0x1400dd9e0 to 0x1400ddab7 (215 bytes)
//
// 11 xrefs:
// > ThreadViewPopup::jumpToLatest @ 0x1400dbd3c
// > ThreadViewPopup::exitSearch @ 0x1400dbeb6
// > ThreadViewPopup::threadSearchFinished @ 0x1400dc156
// > ThreadViewPopup::onSend @ 0x1400de117
// > ThreadViewPopup::threadSendFinished @ 0x1400de619
// > ThreadViewPopup::threadSendFailed @ 0x1400de888
// > ThreadViewPopup::threadMessagesFinished @ 0x1400def76
// > ThreadViewPopup::threadMessagesFinished @ 0x1400df475
// > ThreadViewPopup::threadMessagesFinished @ 0x1400dfae4
// > ThreadViewPopup::threadMessagesFailed @ 0x1400e00da
// > ??> @ 0x1409149fc
//
// 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:29 +0000
//
void __fastcall ThreadViewPopup::setSendPending(__int64 a1, __int64 a2)
{
char v3; // bl
__int64 v4; // rcx
char v5; // cl
_QWORD *v6; // rbx
__int64 v7; // rcx
__int64 v8; // rcx
__int64 v9; // rcx
__int16 v10; // [rsp+30h] [rbp+8h] BYREF
char v11; // [rsp+32h] [rbp+Ah]
v3 = a2;
v4 = *(_QWORD *)(a1 + 904);
if ( v4 )
{
LOBYTE(a2) = a2 ^ 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 936LL))(v4, a2);
if ( v3 )
{
v10 = 32125;
v5 = 125;
}
else
{
v10 = -1;
v5 = -1;
}
v11 = v5;
v6 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 904) + 952LL))(*(_QWORD *)(a1 + 904));
v7 = v6[79];
if ( v7 )
(**(void (__fastcall ***)(__int64, __int16 *))(v7 + 368))(v7 + 368, &v10);
v8 = v6[80];
if ( v8 )
(**(void (__fastcall ***)(__int64, __int16 *))(v8 + 320))(v8 + 320, &v10);
v9 = v6[82];
if ( v9 || (v9 = v6[81]) != 0 )
(**(void (__fastcall ***)(__int64, __int16 *))(v9 + 320))(v9 + 320, &v10);
}
}