//
// GameLevelManager::onGetSongUsageCompleted from 0x4c23b8 to 0x4c246e (182 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x4db21a
//
// 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:25 +0000
//
int __fastcall GameLevelManager::onGetSongUsageCompleted(GameLevelManager *a1, unsigned __int8 *a2, int a3)
{
const char *v6; // r1
const char *v7; // r1
int SplitIntFromKey; // r8
_BOOL4 v9; // r9
int result; // r0
void (__fastcall ***v11)(_DWORD, int, int *); // r5
void (__fastcall *v12)(_DWORD, int, int *); // r9
int v13[3]; // [sp+0h] [bp-14h] BYREF
if ( (*(_BYTE *)a3 & 1) != 0 )
v6 = *(const char **)(a3 + 8);
else
v6 = (const char *)(a3 + 1);
GameLevelManager::removeDLFromActive(a1, v6);
if ( (*(_BYTE *)a3 & 1) != 0 )
v7 = *(const char **)(a3 + 8);
else
v7 = (const char *)(a3 + 1);
memset(v13, 0, sizeof(v13));
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v7, 1u);
std::string::__init(v13, "-1", 2u);
v9 = sub_4A9CC4(a2, (unsigned __int8 *)v13);
result = std::string::~string((int)v13);
v11 = *((void (__fastcall ****)(_DWORD, int, int *))a1 + 236);
if ( v9 )
{
if ( v11 )
return ((int (__fastcall *)(void (__fastcall ***)(_DWORD, int, int *), int))(*v11)[1])(v11, SplitIntFromKey);
}
else if ( v11 )
{
v12 = **v11;
std::string::basic_string(v13, (int)a2);
v12(v11, SplitIntFromKey, v13);
return std::string::~string((int)v13);
}
return result;
}