//
// ThreadViewPopup::setSendPending from 0xc65c68 to 0xc65ce8 (128 bytes)
//
// 11 xrefs:
// > ThreadViewPopup::jumpToLatest @ 0xc65d54
// > ThreadViewPopup::threadMessagesFailed @ 0xc65e9c
// > ThreadViewPopup::exitSearch @ 0xc86690
// > ThreadViewPopup::threadSearchFinished @ 0xc8916c
// > ThreadViewPopup::onSend @ 0xc89abc
// > ThreadViewPopup::threadSendFinished @ 0xc89e3c
// > ThreadViewPopup::threadSendFailed @ 0xc8a1b8
// > ThreadViewPopup::threadMessagesFinished @ 0xc8a428
// > ThreadViewPopup::threadMessagesFinished @ 0xc8a978
// > ThreadViewPopup::threadMessagesFinished @ 0xc8b000
// > ??> @ 0xb6860
//
// 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 13:05:24 +0000
//
__int64 __fastcall ThreadViewPopup::setSendPending(__int64 this, unsigned __int8 a2)
{
int v2; // w20
__int64 v3; // x1
__int64 v4; // x19
_QWORD *v5; // x0
__int64 v6; // [xsp+28h] [xbp+28h]
v2 = a2;
v3 = *(_QWORD *)(this + 912);
if ( v3 )
{
v4 = this;
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v3 + 1056LL))(*(_QWORD *)(this + 912), v2 ^ 1u);
v5 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 912) + 1072LL))(*(_QWORD *)(v4 + 912));
if ( v2 )
{
LOWORD(v6) = 32125;
BYTE2(v6) = 125;
}
else
{
LOWORD(v6) = -1;
BYTE2(v6) = -1;
}
return ButtonSprite::setColor(v5, v6);
}
return this;
}