//
// GameLevelManager::onUploadLevelListCompleted from 0x10009169c to 0x100091778 (220 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x100089a00
//
// 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::onUploadLevelListCompleted(__int64 a1, const char *a2, const char *a3)
{
const char *v3; // x21
int v6; // w21
__int64 result; // x0
__int64 v8; // x20
GJLevelList *v9; // x0
GJLevelList *v10; // x1
__int64 v11; // x19
GJLevelList *LocalLevelList; // x1
v3 = a3;
sub_1000B3B54(a1 + 320, a3);
if ( v3[23] < 0 )
v3 = *(const char **)v3;
v6 = atoi(v3);
if ( a2[23] < 0 )
a2 = *(const char **)a2;
result = atoi(a2);
v8 = result;
if ( (result & 0x80000000) != 0 )
{
v11 = *(_QWORD *)(a1 + 760);
if ( v11 )
{
LocalLevelList = GameLevelManager::getLocalLevelList((GameLevelManager *)result, v6);
return (*(__int64 (__fastcall **)(__int64, GJLevelList *, __int64))(*(_QWORD *)v11 + 8LL))(
v11,
LocalLevelList,
v8);
}
}
else
{
v9 = GameLevelManager::getLocalLevelList((GameLevelManager *)result, v6);
v10 = v9;
if ( v9 )
{
v9->m_listID = v8;
v9->m_uploaded = 1;
}
result = *(_QWORD *)(a1 + 760);
if ( result )
return (**(__int64 (__fastcall ***)(__int64, GJLevelList *))result)(result, v10);
}
return result;
}