//
// GameLevelManager::onUploadEditorSoundCompleted from 0x4d0fc4 to 0x4d1000 (60 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x4db09a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:50:47 +0000
//
int (***__fastcall GameLevelManager::onUploadEditorSoundCompleted(int a1, int a2, unsigned __int8 *a3))(void)
{
const char *v5; // r0
int v6; // r1
int (***result)(void); // r0
int (*v8)(void); // r3
std::__tree::__erase_unique((int **)(a1 + 524), a3);
if ( (*(_BYTE *)a2 & 1) != 0 )
v5 = *(const char **)(a2 + 8);
else
v5 = (const char *)(a2 + 1);
v6 = atoi(v5);
result = *(int (****)(void))(a1 + 868);
if ( v6 > 0 )
{
if ( !result )
return result;
v8 = **result;
}
else
{
if ( !result )
return result;
v8 = (*result)[1];
}
return (int (***)(void))v8();
}