//
// GameLevelManager::onUpdateDescriptionCompleted from 0x10008cb20 to 0x10008cc4c (300 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x1000897bc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 (***__fastcall GameLevelManager::onUpdateDescriptionCompleted(__int64 a1, _QWORD *a2, char *__s))(void)
{
char *v3; // x21
__int64 v6; // x22
__int64 v7; // x21
cocos2d::CCString *v8; // x0
const char *CString; // x0
_BOOL4 v10; // w20
__int64 (***result)(void); // x0
__int64 (**v12)(void); // x8
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v14; // [xsp+1Fh] [xbp-21h]
v3 = __s;
if ( __s[23] < 0 )
v3 = *(char **)__s;
v6 = *(_QWORD *)(a1 + 608);
sub_100009900(__p, v3);
cocos2d::CCDictionary::removeObjectForKey_1(v6, (char *)__p);
if ( v14 < 0 )
operator delete(__p[0]);
sub_100009900(__p, v3);
v7 = sub_100093338(__p, "_");
if ( v14 < 0 )
operator delete(__p[0]);
if ( (unsigned int)sub_10024A36C(v7) >= 2 )
{
v8 = (cocos2d::CCString *)sub_10024A388(v7, 1);
CString = cocos2d::CCString::getCString(v8);
atoi(CString);
}
sub_100009900(__p, "-1");
v10 = sub_1000045BC(a2, __p);
if ( v14 < 0 )
operator delete(__p[0]);
result = *(__int64 (****)(void))(a1 + 808);
if ( v10 )
{
if ( !result )
return result;
v12 = *result + 1;
}
else
{
if ( !result )
return result;
v12 = *result;
}
return (__int64 (***)(void))(*v12)();
}