//
// GameLevelManager::onUpdateDescriptionCompleted from 0x80fa50 to 0x80fc1c (460 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85b654
// > ??> @ 0xc7af8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:54:49 +0000
//
__int64 __fastcall GameLevelManager::onUpdateDescriptionCompleted(__int64 a1, __int64 a2, char *a3)
{
char *v5; // x19
size_t v6; // x0
__int64 v7; // x23
size_t v8; // x0
cocos2d::CCArray *v9; // x19
unsigned int v10; // w23
cocos2d::CCString *v11; // x0
const char *CString; // x0
_BOOL4 v13; // w19
__int64 v14; // x0
__int64 v16; // [xsp+40h] [xbp+40h] BYREF
__int64 v17; // [xsp+48h] [xbp+48h]
void *v18; // [xsp+50h] [xbp+50h]
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((char **)a3 + 2);
v16 = 0;
v17 = 0;
v18 = nullptr;
v6 = strlen(v5);
v7 = *(_QWORD *)(a1 + 1088);
std::string::__init(&v16, v5, v6);
cocos2d::CCDictionary::removeObjectForKey(v7, &v16);
if ( (v16 & 1) != 0 )
operator delete(v18);
v16 = 0;
v17 = 0;
v18 = nullptr;
v8 = strlen(v5);
std::string::__init(&v16, v5, v8);
v9 = sub_80CFCC((unsigned __int8 *)&v16, &byte_11528B0);
if ( (v16 & 1) != 0 )
operator delete(v18);
v10 = 0;
if ( (unsigned int)cocos2d::CCArray::count(v9) > 1 )
{
v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v9, 1u);
CString = (const char *)cocos2d::CCString::getCString(v11);
v10 = atoi(CString);
}
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, &word_117CE08, 2u);
v13 = sub_7FEA60(a2, (__int64)&v16);
if ( (v16 & 1) != 0 )
operator delete(v18);
v14 = *(_QWORD *)(a1 + 1360);
if ( v13 )
{
if ( v14 )
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v14 + 8LL))(v14, v10, 27);
}
else if ( v14 )
{
(**(void (__fastcall ***)(__int64, _QWORD, __int64))v14)(v14, v10, 27);
}
return _stack_chk_guard;
}