//
// RenameThreadPopup::threadUpdateFailed from 0x1400fa910 to 0x1400faa3e (302 bytes)
//
// 2 xrefs:
// > ??> @ 0x14072cc60
// > ??> @ 0x140915428
//
// 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 11:26:40 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall RenameThreadPopup::threadUpdateFailed(__int64 a1, int a2, int a3)
{
__int64 v3; // rcx
__int64 *v4; // rdi
__int64 v5; // rbx
__int64 v6; // rdx
__int64 v7; // r8
__int64 v8; // rax
__int64 v9; // rcx
_WORD v10[8]; // [rsp+30h] [rbp-48h] BYREF
__int64 v11; // [rsp+40h] [rbp-38h]
__int64 v12; // [rsp+48h] [rbp-30h]
__int128 v13; // [rsp+50h] [rbp-28h] BYREF
__int64 v14; // [rsp+60h] [rbp-18h]
__int64 v15; // [rsp+68h] [rbp-10h]
if ( a3 == 2 && a2 == *(_DWORD *)(*(_QWORD *)(a1 + 8) + 56LL) && *(_BYTE *)(a1 + 64) )
{
*(_BYTE *)(a1 + 64) = 0;
RenameThreadPopup::handBackSlot(a1 - 1000);
if ( !byte_1409097D9 )
{
v4 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(v3) + 272);
v13 = 0;
v14 = 0;
v15 = 15;
LOBYTE(v13) = 0;
v10[7] = 0;
v11 = 13;
v12 = 15;
strcpy((char *)v10, "Rename failed");
v5 = *v4;
v8 = TextAlertPopup::create(v10, v6, v7, 150, &v13);
(*(void (__fastcall **)(__int64 *, __int64, __int64))(v5 + 456))(v4, v8, 1000);
}
}
else
{
v9 = *(_QWORD *)(a1 + 16);
if ( v9 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)(v9 + 672) + 72LL))(v9 + 672);
}
}