//
// GameLevelManager::onMuteUserCompleted from 0x80ce74 to 0x80cfcc (344 bytes)
//
// 3 xrefs:
// > GameLevelManager::handleIt @ 0x85a400
// > GameLevelManager::handleIt @ 0x85a480
// > ??> @ 0xc78d0
//
// 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:54:48 +0000
//
__int64 __fastcall GameLevelManager::onMuteUserCompleted(
GameLevelManager *this,
__int64 a2,
char *a3,
unsigned __int8 a4)
{
int v6; // w23
const char *v7; // x4
char *v8; // x25
unsigned int v9; // w24
__int64 v10; // x0
__int64 v12; // x0
__int64 v14[2]; // [xsp+60h] [xbp+60h] BYREF
char *v15; // [xsp+70h] [xbp+70h]
v6 = a4;
v7 = a3 + 1;
if ( (*a3 & 1) != 0 )
v7 = *((const char **)a3 + 2);
GameLevelManager::removeDLFromActive(this, v7);
std::string::basic_string(v14, (__int64)a3, 5u, 0xFFFFFFFFFFFFFFFFLL);
if ( (v14[0] & 1) != 0 )
{
v8 = v15;
v9 = atoi(v15);
operator delete(v8);
}
else
{
v9 = atoi((const char *)v14 + 1);
}
v14[0] = 3222788;
v14[1] = 0;
v15 = nullptr;
if ( sub_7FEA60(a2, (__int64)v14) )
{
if ( v6 )
{
v10 = *((_QWORD *)this + 57);
if ( v10 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v10 + 40LL))(v10, v9);
}
}
else
{
GameLevelManager::invalidateUserList((__int64)this, 4u, 1u);
if ( v6 )
{
v12 = *((_QWORD *)this + 57);
if ( v12 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 32LL))(v12, v9);
}
}
return _stack_chk_guard;
}