//
// GameLevelManager::onMuteUserCompleted from 0x4b1c60 to 0x4b1d22 (194 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x4db9d8
// > GameLevelManager::handleIt @ 0x4dba08
//
// 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:03 +0000
//
int __fastcall GameLevelManager::onMuteUserCompleted(GameLevelManager *a1, unsigned __int8 *a2, int a3, int a4)
{
const char *v8; // r1
char *v9; // r0
_BOOL4 v10; // r9
int result; // r0
int v12; // r3
int v13[2]; // [sp+8h] [bp-14h] BYREF
char *v14; // [sp+10h] [bp-Ch]
if ( (*(_BYTE *)a3 & 1) != 0 )
v8 = *(const char **)(a3 + 8);
else
v8 = (const char *)(a3 + 1);
GameLevelManager::removeDLFromActive(a1, v8);
std::string::basic_string(v13, (unsigned __int8 *)a3, 5u, 0xFFFFFFFF);
if ( (v13[0] & 1) != 0 )
v9 = v14;
else
v9 = (char *)v13 + 1;
atoi(v9);
std::string::~string((int)v13);
v13[0] = 0;
v13[1] = 0;
v14 = nullptr;
std::string::__init(v13, "-1", 2u);
v10 = sub_4A9CC4(a2, (unsigned __int8 *)v13);
result = std::string::~string((int)v13);
if ( v10 )
{
if ( a4 )
{
result = *((_DWORD *)a1 + 84);
if ( result )
return (*(int (__fastcall **)(int))(*(_DWORD *)result + 20))(result);
}
}
else
{
result = GameLevelManager::invalidateUserList((int)a1, 4, 1, v12);
if ( a4 )
{
result = *((_DWORD *)a1 + 84);
if ( result )
return (*(int (__fastcall **)(int))(*(_DWORD *)result + 16))(result);
}
}
return result;
}