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