//
// ThreadDescPopup::threadUpdateFinished from 0x1009537f0 to 0x10095392b (315 bytes)
//
// 2 xrefs:
// > sub_100953930 @ 0x10095393c
// > ??> @ 0x100bc88f8
//
// This function is hookable on this platform (idp: pc, 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 12:38:39 +0000
//
void __fastcall ThreadDescPopup::threadUpdateFinished(__int64 a1, int a2, int a3, __m128 a4)
{
__int64 v4; // rax
__int64 v5; // rax
__int64 v6; // rdi
__int64 v7; // rbx
v4 = *(_QWORD *)(a1 + 1032);
if ( !v4 || *(_DWORD *)(v4 + 56) != a2 || *(_BYTE *)(a1 + 1113) != 1 )
{
LABEL_11:
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));
if ( *(_QWORD *)(a1 + 1040) )
ThreadViewPopup::layoutTitleRow(*(_QWORD *)(a1 + 1040), a4);
if ( *(_BYTE *)(a1 + 1112) == 1 )
{
*(_BYTE *)(a1 + 1113) = 0;
v5 = GameLevelManager::sharedState();
if ( GameLevelManager::updateThread(
v5,
*(_DWORD *)(*(_QWORD *)(a1 + 1032) + 56LL),
14,
(std::string *)(a1 + 1064)) )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 1016;
*(_BYTE *)(a1 + 1113) = 1;
}
}
else
{
sub_100953660(a1, "Icon updated");
}
return;
}
goto LABEL_11;
}
std::string::operator=((std::string *)(v4 + 216), (const std::string *)(a1 + 1064));
v7 = *(_QWORD *)(a1 + 1040);
sub_100953660(a1, "Description updated");
if ( v7 )
sub_1009319C0(v7);
}