//
// GJMultiplayerManager::onExitLobbyCompleted from 0xac4b5c to 0xac4c5c (256 bytes)
//
// 2 xrefs:
// > GJMultiplayerManager::handleIt @ 0xac6394
// > ??> @ 0x46bb8
//
// 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 13:01:06 +0000
//
__int64 __fastcall GJMultiplayerManager::onExitLobbyCompleted(GJMultiplayerManager *this, __int64 a2, char *a3)
{
const char *v5; // x3
const char *v6; // x0
unsigned int v7; // w22
__int64 v8; // x0
void (__fastcall ***v10)(_QWORD, _QWORD, __int64); // x0
_QWORD v12[3]; // [xsp+40h] [xbp+40h] BYREF
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((const char **)a3 + 2);
GJMultiplayerManager::removeDLFromActive(this, v5);
v6 = a3 + 1;
if ( (*a3 & 1) != 0 )
v6 = *((const char **)a3 + 2);
v7 = atoi(v6);
v12[0] = 3222788;
v12[1] = 0;
v12[2] = 0;
if ( sub_AC471C(a2, (__int64)v12) )
{
v8 = *((_QWORD *)this + 45);
if ( v8 )
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v8 + 8LL))(v8, v7, 64);
}
else
{
v10 = *((void (__fastcall ****)(_QWORD, _QWORD, __int64))this + 45);
if ( v10 )
(**v10)(v10, v7, 64);
}
return _stack_chk_guard;
}