//
// RenameThreadPopup::threadUpdateFailed from 0x74c878 to 0x74c94a (210 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'RenameThreadPopup::threadUpdateFailed @ 0x74c960
//
// 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 RenameThreadPopup::threadUpdateFailed(RenameThreadPopup *this, int a2, int a3)
{
int result; // r0
GameToolbox *v4; // r0
int *v5; // r8
int v6; // r3
void (__fastcall *v7)(int *, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v8; // r0
int v9[3]; // [sp+Ch] [bp-20h] BYREF
int v10[3]; // [sp+18h] [bp-14h] BYREF
if ( a3 == 2 && a2 == *(_DWORD *)(*((_DWORD *)this + 179) + 52) && *((_BYTE *)this + 740) )
{
*((_BYTE *)this + 740) = 0;
v4 = RenameThreadPopup::handBackSlot(this);
result = GameToolbox::lastResponseHadServerPopup(v4);
if ( !result )
{
v5 = *(int **)(cocos2d::CCDirector::sharedDirector(nullptr) + 220);
v6 = *v5;
memset(v9, 0, sizeof(v9));
v7 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v6 + 232);
std::string::__init(v9, "Rename failed", 0xDu);
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);
v7(v5, v8, 1000);
std::string::~string((int)v10);
return std::string::~string((int)v9);
}
}
else
{
result = *((_DWORD *)this + 180);
if ( result )
return (*(int (__fastcall **)(int))(*(_DWORD *)result + 732))(result);
}
return result;
}