//
// RenameThreadPopup::threadUpdateFinished from 0x10094fba0 to 0x10094fd2c (396 bytes)
//
// 2 xrefs:
// > sub_10094FD50 @ 0x10094fd5c
// > ??> @ 0x100bc77f0
//
// 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:38 +0000
//
void __fastcall RenameThreadPopup::threadUpdateFinished(__int64 a1, int a2, int a3, __m128 a4)
{
__int64 v5; // rax
unsigned int v6; // ecx
__int64 v7; // rax
unsigned int v8; // eax
__int64 v9; // rdi
__int64 v10; // rax
__int64 v11; // rdi
std::string::pointer data; // rsi
__int64 v13; // rax
__int64 v14; // rcx
__int64 v15; // rdx
_DWORD *v16; // rax
std::string __str; // [rsp+0h] [rbp-20h] BYREF
if ( a3 == 2 && *(_DWORD *)(*(_QWORD *)(a1 + 1024) + 56LL) == a2 && *(_BYTE *)(a1 + 1072) )
{
*(_BYTE *)(a1 + 1072) = 0;
v5 = GameLevelManager::sharedState();
v6 = *(unsigned __int8 *)(v5 + 544);
if ( (v6 & 1) != 0 )
{
if ( *(_QWORD *)(v5 + 552) )
{
LABEL_6:
v7 = GameLevelManager::sharedState() + 544;
if ( (*(_BYTE *)v7 & 1) == 0 )
goto LABEL_7;
goto LABEL_14;
}
}
else if ( v6 >> 1 )
{
goto LABEL_6;
}
v7 = a1 + 1048;
if ( (*(_BYTE *)(a1 + 1048) & 1) == 0 )
{
LABEL_7:
__str.__r_.__value_.__r.__words[2] = *(_QWORD *)(v7 + 16);
a4 = *(__m128 *)v7;
*(_OWORD *)&__str.__r_.__value_.__l.0 = *(_OWORD *)v7;
v8 = (unsigned int)__str.__r_.__value_.__l.0;
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_8;
goto LABEL_15;
}
LABEL_14:
sub_10001AD30(&__str, *(const void **)(v7 + 16), *(_QWORD *)(v7 + 8));
v8 = (unsigned int)__str.__r_.__value_.__l.0;
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) == 0 )
{
LABEL_8:
if ( !(v8 >> 1) )
goto LABEL_22;
goto LABEL_16;
}
LABEL_15:
if ( !__str.__r_.__value_.__l.__size_ )
{
LABEL_22:
if ( *(_QWORD *)(a1 + 1032) )
{
v13 = GameLevelManager::sharedState();
v14 = *(_QWORD *)(a1 + 1032);
v15 = v14 + 672;
if ( !v14 )
v15 = 0;
*(_QWORD *)(v13 + 1264) = v15;
}
else
{
v16 = cocos2d::CCNotificationCenter::sharedNotificationCenter();
cocos2d::CCNotificationCenter::postNotification((__int64)v16, "ThreadsChangedNotification", 0);
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
return;
}
LABEL_16:
std::string::operator=((std::string *)(*(_QWORD *)(a1 + 1024) + 88LL), &__str);
v10 = *(_QWORD *)(a1 + 1032);
if ( v10 )
{
v11 = *(_QWORD *)(v10 + 888);
if ( v11 )
{
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
data = __str.__r_.__value_.__l.__data_;
else
data = __str.__r_.__value_.__s.__data_;
*(double *)a4.i64 = (*(double (__fastcall **)(__int64, std::string::pointer))(*(_QWORD *)v11 + 928LL))(
v11,
data);
ThreadViewPopup::layoutTitleRow(*(_QWORD *)(a1 + 1032), a4);
}
}
goto LABEL_22;
}
v9 = *(_QWORD *)(a1 + 1032);
if ( v9 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1456LL))(v9);
}