//
// GameLevelManager::onGetContentStatusCompleted from 0x80d2d4 to 0x80d4c0 (492 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85b4c0
// > ??> @ 0x94ee8
//
// 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:48 +0000
//
__int64 __fastcall GameLevelManager::onGetContentStatusCompleted(GameLevelManager *this, unsigned __int8 *a2, char *a3)
{
const char *v5; // x3
_BOOL4 v6; // w21
cocos2d::CCArray *v8; // x21
cocos2d::CCString *v9; // x0
void (__fastcall ***v10)(_QWORD); // x0
cocos2d::CCString *v11; // x0
int v12; // w3
int v13; // w2
int v14; // w1
cocos2d::CCString *v15; // x0
cocos2d::CCString *v16; // x0
cocos2d::CCString *v17; // x0
__int64 v18[2]; // [xsp+30h] [xbp+30h] BYREF
void *v19; // [xsp+40h] [xbp+40h]
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((const char **)a3 + 2);
GameLevelManager::removeDLFromActive(this, v5);
v18[0] = 0;
*((_BYTE *)this + 912) = 1;
v18[1] = 0;
v19 = nullptr;
std::string::__init(v18, &word_117CE08, 2u);
v6 = sub_7FEA60((__int64)a2, (__int64)v18);
if ( (v18[0] & 1) != 0 )
{
operator delete(v19);
if ( v6 )
return _stack_chk_guard;
}
else if ( v6 )
{
return _stack_chk_guard;
}
v8 = sub_80CFCC(a2, &byte_1169BE0);
if ( (unsigned int)cocos2d::CCArray::count(v8) )
{
v11 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v8, 0);
*((_DWORD *)this + 223) = cocos2d::CCString::intValue(v11);
}
if ( (unsigned int)cocos2d::CCArray::count(v8) > 1 )
{
v9 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v8, 1u);
*((_DWORD *)this + 224) = cocos2d::CCString::intValue(v9);
}
if ( (unsigned int)cocos2d::CCArray::count(v8) > 2 )
{
v17 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v8, 2u);
*((_DWORD *)this + 225) = cocos2d::CCString::intValue(v17);
}
if ( (unsigned int)cocos2d::CCArray::count(v8) > 3 )
{
v16 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v8, 3u);
*((_DWORD *)this + 226) = cocos2d::CCString::intValue(v16);
}
if ( (unsigned int)cocos2d::CCArray::count(v8) > 4 )
{
v15 = (cocos2d::CCString *)cocos2d::CCArray::stringAtIndex(v8, 4u);
*((_DWORD *)this + 227) = cocos2d::CCString::intValue(v15);
}
if ( !*((_BYTE *)this + 932) && (unsigned int)cocos2d::CCArray::count(v8) > 3 )
{
v12 = *((_DWORD *)this + 223);
v13 = *((_DWORD *)this + 224);
v14 = *((_DWORD *)this + 225);
*((_DWORD *)this + 232) = *((_DWORD *)this + 226);
*((_DWORD *)this + 229) = v12;
*((_DWORD *)this + 230) = v13;
*((_DWORD *)this + 231) = v14;
*((_BYTE *)this + 932) = 1;
}
v10 = *((void (__fastcall ****)(_QWORD))this + 180);
if ( v10 )
(**v10)(v10);
return _stack_chk_guard;
}