//
// NewThreadPopup::setSendPending from 0xc67f70 to 0xc67ff4 (132 bytes)
//
// 4 xrefs:
// > NewThreadPopup::threadSendFailed @ 0xc6bac0
// > NewThreadPopup::onSend @ 0xc7bae4
// > NewThreadPopup::threadSendFinished @ 0xc87fc0
// > ??> @ 0xd9570
//
// 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:26 +0000
//
__int64 __fastcall NewThreadPopup::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;
*(_BYTE *)(this + 736) = a2;
v3 = *(_QWORD *)(this + 744);
if ( v3 )
{
v4 = this;
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v3 + 1056LL))(*(_QWORD *)(this + 744), v2 ^ 1u);
v5 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 744) + 1072LL))(*(_QWORD *)(v4 + 744));
if ( v2 )
{
LOWORD(v6) = 32125;
BYTE2(v6) = 125;
}
else
{
LOWORD(v6) = -1;
BYTE2(v6) = -1;
}
return ButtonSprite::setColor(v5, v6);
}
return this;
}