//
// MemberListPopup::threadUpdateFailed from 0xc6b910 to 0xc6ba8c (380 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'MemberListPopup::threadUpdateFailed @ 0xc6ba94
// > ??> @ 0xb41a8
// > ??> @ 0x14ef338
//
// This function is hookable on this platform (idp: arm, 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 13:05:27 +0000
//
__int64 __fastcall MemberListPopup::threadUpdateFailed(MemberListPopup *this, int a2, int a3)
{
cocos2d::CCDirector *ResponseHadServerPopup; // x0
__int64 *v5; // x20
__int64 v6; // x3
void (__fastcall *v7)(__int64 *, __int64, __int64); // x23
__int64 v8; // x0
__int64 v9[2]; // [xsp+48h] [xbp+48h] BYREF
void *v10; // [xsp+58h] [xbp+58h]
__int64 v11[2]; // [xsp+60h] [xbp+60h] BYREF
void *v12; // [xsp+70h] [xbp+70h]
if ( *(_DWORD *)(*((_QWORD *)this + 100) + 56LL) == a2
&& (a3 == 4 || (unsigned int)(a3 - 6) <= 1 || ((a3 - 11) & 0xFFFFFFFD) == 0) )
{
*((_BYTE *)this + 864) = 0;
*((_DWORD *)this + 217) = 0;
*((_DWORD *)this + 218) = 0;
*((_DWORD *)this + 219) = 0;
*((_BYTE *)this + 848) = 0;
ResponseHadServerPopup = (cocos2d::CCDirector *)(unsigned __int8)GameToolbox::lastResponseHadServerPopup(this);
if ( !(_BYTE)ResponseHadServerPopup )
{
v5 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(ResponseHadServerPopup) + 272);
v6 = *v5;
v9[0] = 0;
v9[1] = 0;
v7 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v6 + 464);
v10 = nullptr;
std::string::__init(v9, "Action failed", 0xDu);
v11[0] = 0;
v11[1] = 0;
v12 = nullptr;
std::string::__init(v11, &byte_11B8890, 0);
v8 = TextAlertPopup::create((char *)v9, 150, (char *)v11, 0.5, 0.6);
v7(v5, v8, 1000);
if ( (v11[0] & 1) != 0 )
operator delete(v12);
if ( (v9[0] & 1) != 0 )
operator delete(v10);
}
}
return _stack_chk_guard;
}