//
// sub_10050C060 from 0x10050c060 to 0x10050c0cc (108 bytes)
//
// 3 xrefs:
// > sub_10050A580 @ 0x10050ae30
// > NewThreadPopup::threadSendFinished @ 0x10050c100
// > NewThreadPopup::threadSendFailed @ 0x10050c594
//
// 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:07:00 +0000
//
__int64 __fastcall sub_10050C060(__int64 a1, int a2)
{
__int64 result; // x0
_QWORD *v5; // x0
int v6; // w1
*(_BYTE *)(a1 + 736) = a2;
result = *(_QWORD *)(a1 + 744);
if ( result )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 1056LL))(result, a2 ^ 1u);
v5 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 744) + 1072LL))(*(_QWORD *)(a1 + 744));
if ( a2 )
v6 = 8224125;
else
v6 = 0xFFFFFF;
return ButtonSprite::setColor(v5, v6);
}
return result;
}