//
// ThreadOptionsPopup::threadUpdateFailed from 0x74bfd0 to 0x74c0d6 (262 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ThreadOptionsPopup::threadUpdateFailed @ 0x74c0fc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:47 +0000
//
int __fastcall ThreadOptionsPopup::threadUpdateFailed(ThreadOptionsPopup *this, int a2, int a3)
{
int result; // r0
GameToolbox *v6; // r0
const char *v7; // r5
int *v8; // r8
int v9; // r3
void (__fastcall *v10)(int *, cocos2d::CCNode *, int); // r9
size_t v11; // r0
cocos2d::CCNode *v12; // r0
int v13[3]; // [sp+Ch] [bp-20h] BYREF
int v14[3]; // [sp+18h] [bp-14h] BYREF
if ( a2 == *(_DWORD *)(*((_DWORD *)this + 180) + 52) && a3 == *((_DWORD *)this + 182) )
{
*((_DWORD *)this + 182) = 0;
v6 = ThreadOptionsPopup::handBackSlot(this);
result = GameToolbox::lastResponseHadServerPopup(v6);
if ( !result )
{
switch ( a3 )
{
case 18:
v7 = "Remove failed";
break;
case 5:
v7 = "Leave failed";
break;
case 1:
if ( *((_DWORD *)this + 183) )
v7 = "Clear failed";
else
v7 = "Leave failed";
break;
default:
v7 = "Action failed";
break;
}
v8 = *(int **)(cocos2d::CCDirector::sharedDirector(nullptr) + 220);
v9 = *v8;
memset(v13, 0, sizeof(v13));
v10 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v9 + 232);
v11 = strlen(v7);
std::string::__init(v13, v7, v11);
memset(v14, 0, sizeof(v14));
std::string::__init(v14, &unk_B6B226, 0);
v12 = TextAlertPopup::create((int)v13, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v14);
v10(v8, v12, 1000);
std::string::~string((int)v14);
return std::string::~string((int)v13);
}
}
else
{
result = *((_DWORD *)this + 181);
if ( result )
return (*(int (__fastcall **)(int))(*(_DWORD *)result + 732))(result);
}
return result;
}