//
// NewThreadPopup::setSendPending from 0x74843c to 0x74848c (80 bytes)
//
// 3 xrefs:
// > NewThreadPopup::threadSendFailed @ 0x74b69e
// > NewThreadPopup::onSend @ 0x755148
// > NewThreadPopup::threadSendFinished @ 0x75ce8a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:44 +0000
//
int __fastcall NewThreadPopup::setSendPending(NewThreadPopup *this, int a2)
{
int result; // r0
_DWORD *v5; // r0
char v6; // r3
int v7; // [sp+4h] [bp-8h]
HIBYTE(v7) = HIBYTE(a2);
*((_BYTE *)this + 556) = a2;
result = *((_DWORD *)this + 140);
if ( result )
{
(*(void (__fastcall **)(int, int))(*(_DWORD *)result + 528))(result, a2 ^ 1);
v5 = (_DWORD *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 140) + 536))(*((_DWORD *)this + 140));
if ( a2 )
{
v6 = 125;
LOWORD(v7) = 32125;
}
else
{
v6 = -1;
LOWORD(v7) = -1;
}
BYTE2(v7) = v6;
return ButtonSprite::setColor(v5, v7);
}
return result;
}