//
// sub_1004FB318 from 0x1004fb318 to 0x1004fb380 (104 bytes)
//
// 10 xrefs:
// > ThreadViewPopup::onSend @ 0x1004f9de0
// > sub_1004FAE64 @ 0x1004faefc
// > sub_1004FB004 @ 0x1004fb128
// > ThreadViewPopup::threadSearchFinished @ 0x1004fb848
// > ThreadViewPopup::threadSendFinished @ 0x1004fd58c
// > ThreadViewPopup::threadSendFailed @ 0x1004fd654
// > ThreadViewPopup::threadMessagesFinished @ 0x1004fdaf4
// > ThreadViewPopup::threadMessagesFinished @ 0x1004fe03c
// > ThreadViewPopup::threadMessagesFinished @ 0x1004fe4a0
// > ThreadViewPopup::threadMessagesFailed @ 0x1004fe9b4
//
// 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 11:06:50 +0000
//
__int64 __fastcall sub_1004FB318(__int64 a1, int a2)
{
__int64 result; // x0
_QWORD *v5; // x0
int v6; // w1
result = *(_QWORD *)(a1 + 912);
if ( result )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 1056LL))(result, a2 ^ 1u);
v5 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 912) + 1072LL))(*(_QWORD *)(a1 + 912));
if ( a2 )
v6 = 8224125;
else
v6 = 0xFFFFFF;
return ButtonSprite::setColor(v5, v6);
}
return result;
}