//
// ThreadDescPopup::finishSave from 0x74c964 to 0x74ca2a (198 bytes)
//
// 2 xrefs:
// > ThreadDescPopup::threadUpdateFinished @ 0x7549f8
// > ThreadDescPopup::threadUpdateFinished @ 0x754a10
//
// 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::finishSave(ThreadDescPopup *this, const char *a2)
{
int *v4; // r9
int v5; // r3
void (__fastcall *v6)(int *, cocos2d::CCNode *, int); // r10
size_t v7; // r0
cocos2d::CCNode *v8; // r0
GameLevelManager *v9; // r0
int v10; // r0
int v11; // r3
int v13[3]; // [sp+Ch] [bp-1Ch] BYREF
int v14[3]; // [sp+18h] [bp-10h] BYREF
*((_BYTE *)this + 761) = 0;
v4 = *(int **)(cocos2d::CCDirector::sharedDirector(this) + 220);
v5 = *v4;
memset(v13, 0, sizeof(v13));
v6 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v5 + 232);
v7 = strlen(a2);
std::string::__init(v13, a2, v7);
memset(v14, 0, sizeof(v14));
std::string::__init(v14, &unk_B6B226, 0);
v8 = TextAlertPopup::create((int)v13, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v14);
v6(v4, v8, 1000);
std::string::~string((int)v14);
v9 = (GameLevelManager *)std::string::~string((int)v13);
if ( *((_DWORD *)this + 181) )
{
v10 = GameLevelManager::sharedState(v9);
v11 = *((_DWORD *)this + 181);
if ( v11 )
v11 += 524;
*(_DWORD *)(v10 + 840) = v11;
}
return (*(int (__fastcall **)(ThreadDescPopup *, _DWORD))(*(_DWORD *)this + 684))(this, 0);
}