//
// MessageThreadsPage::threadUpdateFailed from 0x7491fc to 0x7492d0 (212 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'MessageThreadsPage::threadUpdateFailed @ 0x7492f0
//
// 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:44 +0000
//
cocos2d::CCDirector *__fastcall MessageThreadsPage::threadUpdateFailed(cocos2d::CCDirector *this, int a2, int a3)
{
int v4; // r8
void (__fastcall *v5)(int, cocos2d::CCNode *, int); // r9
const char *v6; // r5
size_t v7; // r0
cocos2d::CCNode *v8; // r0
int v9[3]; // [sp+Ch] [bp-20h] BYREF
int v10[3]; // [sp+18h] [bp-14h] BYREF
if ( (a3 & 0xFFFFFFFD) == 1 || a3 == 5 || a3 == 11 || a3 == 18 )
{
v4 = *(_DWORD *)(cocos2d::CCDirector::sharedDirector(this) + 220);
v5 = *(void (__fastcall **)(int, cocos2d::CCNode *, int))(*(_DWORD *)v4 + 232);
switch ( a3 )
{
case 1:
v6 = "Delete failed";
break;
case 5:
v6 = "Leave failed";
break;
case 18:
v6 = "Remove failed";
break;
default:
v6 = "Update failed";
break;
}
memset(v9, 0, sizeof(v9));
v7 = strlen(v6);
std::string::__init(v9, v6, v7);
memset(v10, 0, sizeof(v10));
std::string::__init(v10, &unk_B6B226, 0);
v8 = TextAlertPopup::create((int)v9, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v10);
v5(v4, v8, 1000);
std::string::~string((int)v10);
return (cocos2d::CCDirector *)std::string::~string((int)v9);
}
return this;
}