//
// NewThreadPopup::setSendPending from 0x1400f1f40 to 0x1400f201d (221 bytes)
//
// 4 xrefs:
// > NewThreadPopup::onSend @ 0x1400f3388
// > NewThreadPopup::threadSendFinished @ 0x1400f3434
// > NewThreadPopup::threadSendFailed @ 0x1400f3c23
// > ??> @ 0x140915164
//
// 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:37 +0000
//
void __fastcall NewThreadPopup::setSendPending(__int64 a1, __int64 a2)
{
__int64 v3; // rcx
char v4; // bl
char v5; // cl
__int64 v6; // rcx
_QWORD *v7; // rbx
__int64 v8; // rcx
__int64 v9; // rcx
__int64 v10; // rcx
__int16 v11; // [rsp+30h] [rbp+8h] BYREF
char v12; // [rsp+32h] [rbp+Ah]
__int16 v13; // [rsp+38h] [rbp+10h]
*(_BYTE *)(a1 + 744) = a2;
v3 = *(_QWORD *)(a1 + 752);
v4 = a2;
if ( v3 )
{
LOBYTE(a2) = a2 ^ 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 936LL))(v3, a2);
if ( v4 )
{
v13 = 32125;
v5 = 125;
}
else
{
v13 = -1;
v5 = -1;
}
v12 = v5;
v6 = *(_QWORD *)(a1 + 752);
v11 = v13;
v7 = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 952LL))(v6);
v8 = v7[79];
if ( v8 )
(**(void (__fastcall ***)(__int64, __int16 *))(v8 + 368))(v8 + 368, &v11);
v9 = v7[80];
if ( v9 )
(**(void (__fastcall ***)(__int64, __int16 *))(v9 + 320))(v9 + 320, &v11);
v10 = v7[82];
if ( v10 || (v10 = v7[81]) != 0 )
(**(void (__fastcall ***)(__int64, __int16 *))(v10 + 320))(v10 + 320, &v11);
}
}