//
// ThreadDescPopup::threadUpdateFinished from 0x100513d3c to 0x100513e24 (232 bytes)
//
// 2 xrefs:
// > sub_100513E24 @ 0x100513e28
// > ??> @ 0x10099b578
//
// 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:04 +0000
//
void __fastcall ThreadDescPopup::threadUpdateFinished(__int64 a1, int a2, int a3)
{
__int64 v4; // x8
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x20
v4 = *(_QWORD *)(a1 + 1032);
if ( !v4 || *(_DWORD *)(v4 + 56) != a2 || *(_BYTE *)(a1 + 1113) != 1 )
{
LABEL_10:
v6 = *(_QWORD *)(a1 + 1040);
if ( v6 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1456LL))(v6);
return;
}
if ( a3 != 14 )
{
if ( a3 == 16 )
{
std::string::operator=((std::string *)(v4 + 240), (const std::string *)(a1 + 1088));
v5 = *(_QWORD *)(a1 + 1040);
if ( v5 )
ThreadViewPopup::layoutTitleRow(v5);
if ( *(_BYTE *)(a1 + 1112) == 1 )
sub_100513BD8(a1);
else
sub_100513C28(a1, "Icon updated");
return;
}
goto LABEL_10;
}
std::string::operator=((std::string *)(v4 + 216), (const std::string *)(a1 + 1064));
v7 = *(_QWORD *)(a1 + 1040);
sub_100513C28(a1, "Description updated");
if ( v7 )
sub_1004FB598(v7);
}