//
// MemberListPopup::threadUpdateFailed from 0x1400eec90 to 0x1400eed9b (267 bytes)
//
// 2 xrefs:
// > ??> @ 0x140728648
// > ??> @ 0x140915050
//
// 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:35 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall MemberListPopup::threadUpdateFailed(__int64 a1, int a2, unsigned int a3)
{
__int64 result; // rax
__int64 *v4; // rdi
__int64 v5; // rbx
__int64 v6; // rdx
__int64 v7; // r8
__int64 v8; // rax
_WORD v9[8]; // [rsp+30h] [rbp-48h] BYREF
__int64 v10; // [rsp+40h] [rbp-38h]
__int64 v11; // [rsp+48h] [rbp-30h]
__int128 v12; // [rsp+50h] [rbp-28h] BYREF
__int64 v13; // [rsp+60h] [rbp-18h]
__int64 v14; // [rsp+68h] [rbp-10h]
result = *(_QWORD *)(a1 + 24);
if ( a2 == *(_DWORD *)(result + 56) && a3 <= 0xD )
{
result = 10448;
if ( _bittest((const int *)&result, a3) )
{
*(_BYTE *)(a1 + 88) = 0;
*(_QWORD *)(a1 + 92) = 0;
*(_DWORD *)(a1 + 100) = 0;
*(_BYTE *)(a1 + 72) = 0;
if ( !byte_1409097D9 )
{
v4 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(a1) + 272);
v12 = 0;
v13 = 0;
v14 = 15;
LOBYTE(v12) = 0;
v9[7] = 0;
v10 = 13;
v11 = 15;
strcpy((char *)v9, "Action failed");
v5 = *v4;
v8 = TextAlertPopup::create(v9, v6, v7, 150, &v12);
return (*(__int64 (__fastcall **)(__int64 *, __int64, __int64))(v5 + 456))(v4, v8, 1000);
}
}
}
return result;
}