//
// ThreadDescPopup::threadUpdateFailed from 0x74ca38 to 0x74cb0e (214 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ThreadDescPopup::threadUpdateFailed @ 0x74cb24
//
// 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 ThreadDescPopup::threadUpdateFailed(ThreadDescPopup *this, int a2, int a3)
{
int v3; // r4
int result; // r0
GameToolbox *v5; // r0
int *v6; // r8
int v7; // r3
void (__fastcall *v8)(int *, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v9; // r0
int v10[3]; // [sp+Ch] [bp-20h] BYREF
int v11[3]; // [sp+18h] [bp-14h] BYREF
v3 = *((_DWORD *)this + 180);
if ( v3 && a2 == *(_DWORD *)(v3 + 52) && *((_BYTE *)this + 761) && (a3 == 14 || a3 == 16) )
{
*((_BYTE *)this + 761) = 0;
v5 = ThreadDescPopup::handBackSlot(this);
result = GameToolbox::lastResponseHadServerPopup(v5);
if ( !result )
{
v6 = *(int **)(cocos2d::CCDirector::sharedDirector(nullptr) + 220);
v7 = *v6;
memset(v10, 0, sizeof(v10));
v8 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v7 + 232);
std::string::__init(v10, "Update failed", 0xDu);
memset(v11, 0, sizeof(v11));
std::string::__init(v11, &unk_B6B226, 0);
v9 = TextAlertPopup::create((int)v10, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v11);
v8(v6, v9, 1000);
std::string::~string((int)v11);
return std::string::~string((int)v10);
}
}
else
{
result = *((_DWORD *)this + 181);
if ( result )
return (*(int (__fastcall **)(int, int, int))(*(_DWORD *)result + 732))(result, a2, a3);
}
return result;
}