//
// MessageThreadsPage::threadUpdateFailed from 0x1400d7470 to 0x1400d7579 (265 bytes)
//
// 2 xrefs:
// > ??> @ 0x140729990
// > ??> @ 0x14091469c
//
// 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:27 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall MessageThreadsPage::threadUpdateFailed(__int64 a1, __int64 a2, unsigned int a3)
{
int v4; // eax
__int64 *v5; // rdi
const char *v6; // rdx
size_t v7; // r8
__int64 v8; // rbx
__int64 v9; // rdx
__int64 v10; // r8
__int64 v11; // rax
__int128 v12; // [rsp+38h] [rbp-50h] BYREF
__int64 v13; // [rsp+48h] [rbp-40h]
__int64 v14; // [rsp+50h] [rbp-38h]
__int128 v15; // [rsp+58h] [rbp-30h] BYREF
__int64 v16; // [rsp+68h] [rbp-20h]
__int64 v17; // [rsp+70h] [rbp-18h]
if ( a3 <= 0x12 )
{
v4 = 264234;
if ( _bittest(&v4, a3) )
{
v5 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(a1) + 272);
if ( a3 == 1 )
{
v6 = (const char *)&qword_140721390;
}
else if ( a3 == 5 )
{
v6 = "Leave failed";
}
else
{
v6 = "Update failed";
if ( a3 == 18 )
v6 = "Remove failed";
}
v12 = 0;
v13 = 0;
v14 = 15;
LOBYTE(v12) = 0;
v15 = 0;
v16 = 0;
v17 = 0;
v7 = -1;
do
++v7;
while ( v6[v7] );
sub_14003D230(&v15, v6, v7);
v8 = *v5;
v11 = TextAlertPopup::create(&v15, v9, v10, 150, &v12);
(*(void (__fastcall **)(__int64 *, __int64, __int64))(v8 + 456))(v5, v11, 1000);
}
}
}