//
// GameLevelManager::onRequestThreadMembersCompleted from 0x84e3ac to 0x84e56c (448 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85b98c
// > ??> @ 0x7ca50
//
// 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:55:25 +0000
//
__int64 __fastcall GameLevelManager::onRequestThreadMembersCompleted(_QWORD *a1, __int64 a2, char *a3)
{
char *v6; // x19
__int64 v7; // x25
size_t v8; // x0
__int64 v9; // x0
char *v10; // x1
unsigned int v11; // w19
_BOOL4 v12; // w21
__int64 v13; // x0
__int64 v15; // x0
__int64 v16; // [xsp+50h] [xbp+50h] BYREF
__int64 v17; // [xsp+58h] [xbp+58h]
void *v18; // [xsp+60h] [xbp+60h]
v6 = a3 + 1;
v7 = a1[136];
if ( (*a3 & 1) != 0 )
v6 = *((char **)a3 + 2);
v16 = 0;
v17 = 0;
v18 = nullptr;
v8 = strlen(v6);
std::string::__init(&v16, v6, v8);
cocos2d::CCDictionary::removeObjectForKey(v7, &v16);
if ( (v16 & 1) != 0 )
{
operator delete(v18);
v9 = std::string::find((__int64)a3, 0x5Fu, 0);
if ( v9 != -1 )
goto LABEL_5;
LABEL_17:
v11 = 0;
goto LABEL_8;
}
v9 = std::string::find((__int64)a3, 0x5Fu, 0);
if ( v9 == -1 )
goto LABEL_17;
LABEL_5:
v10 = a3 + 1;
if ( (*a3 & 1) != 0 )
v10 = *((char **)a3 + 2);
v11 = atoi(&v10[v9 + 1]);
LABEL_8:
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, &word_117CE08, 2u);
v12 = sub_7FEA60(a2, (__int64)&v16);
if ( (v16 & 1) != 0 )
{
operator delete(v18);
if ( v12 )
{
LABEL_10:
v13 = a1[158];
if ( v13 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v13 + 88LL))(v13, v11);
return _stack_chk_guard;
}
}
else if ( v12 )
{
goto LABEL_10;
}
GameLevelManager::storeThreadManifest(a1, v11, a2);
v15 = a1[158];
if ( v15 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v15 + 80LL))(v15, v11);
return _stack_chk_guard;
}