//
// ThreadViewPopup::setSendPending from 0x746f70 to 0x746fbc (76 bytes)
//
// 10 xrefs:
// > ThreadViewPopup::jumpToLatest @ 0x7495c0
// > ThreadViewPopup::threadMessagesFailed @ 0x749684
// > ThreadViewPopup::exitSearch @ 0x75be22
// > ThreadViewPopup::threadSearchFinished @ 0x75d5be
// > ThreadViewPopup::onSend @ 0x75ddbe
// > ThreadViewPopup::threadSendFinished @ 0x75e02e
// > ThreadViewPopup::threadSendFailed @ 0x75e0f0
// > ThreadViewPopup::threadMessagesFinished @ 0x75e482
// > ThreadViewPopup::threadMessagesFinished @ 0x75e76c
// > ThreadViewPopup::threadMessagesFinished @ 0x75eb28
//
// 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:43 +0000
//
int __fastcall ThreadViewPopup::setSendPending(ThreadViewPopup *this, int a2)
{
int result; // r0
_DWORD *v5; // r0
char v6; // r3
int v7; // [sp+4h] [bp-8h]
HIBYTE(v7) = HIBYTE(a2);
result = *((_DWORD *)this + 169);
if ( result )
{
(*(void (__fastcall **)(int, int))(*(_DWORD *)result + 528))(result, a2 ^ 1);
v5 = (_DWORD *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 169) + 536))(*((_DWORD *)this + 169));
if ( a2 )
{
v6 = 125;
LOWORD(v7) = 32125;
}
else
{
v6 = -1;
LOWORD(v7) = -1;
}
BYTE2(v7) = v6;
return ButtonSprite::setColor(v5, v7);
}
return result;
}