//
// GameLevelManager::onUploadEditorSoundCompleted from 0x845980 to 0x8459fc (124 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85b2c4
// > ??> @ 0x7ef28
//
// 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:20 +0000
//
__int64 __fastcall GameLevelManager::onUploadEditorSoundCompleted(__int64 a1, __int64 a2, __int64 a3)
{
const char *v5; // x0
bool v6; // cc
__int64 result; // x0
std::__tree::__erase_unique((__int64 **)(a1 + 720), a3);
v5 = (const char *)(a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v5 = *(const char **)(a2 + 16);
v6 = atoi(v5) <= 0;
result = *(_QWORD *)(a1 + 1320);
if ( v6 )
{
if ( result )
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 8LL))(result);
}
else if ( result )
{
return (**(__int64 (__fastcall ***)(__int64))result)(result);
}
return result;
}