//
// GJMultiplayerManager::onExitLobbyCompleted from 0x641330 to 0x6413b6 (134 bytes)
//
// 1 xrefs:
// > GJMultiplayerManager::handleIt @ 0x641e12
//
// 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:55:28 +0000
//
int (***__fastcall GJMultiplayerManager::onExitLobbyCompleted(
GJMultiplayerManager *a1,
unsigned __int8 *a2,
int a3,
int a4))(void)
{
const char *v7; // r1
const char *v8; // r0
_BOOL4 v9; // r7
int (***result)(void); // r0
int (*v11)(void); // r3
GJMultiplayerManager *v12; // [sp+0h] [bp-10h] BYREF
unsigned __int8 *v13; // [sp+4h] [bp-Ch]
int v14; // [sp+8h] [bp-8h]
int v15; // [sp+Ch] [bp-4h]
v12 = a1;
v13 = a2;
v14 = a3;
v15 = a4;
if ( (*(_BYTE *)a3 & 1) != 0 )
v7 = *(const char **)(a3 + 8);
else
v7 = (const char *)(a3 + 1);
GJMultiplayerManager::removeDLFromActive(a1, v7);
if ( (*(_BYTE *)a3 & 1) != 0 )
v8 = *(const char **)(a3 + 8);
else
v8 = (const char *)(a3 + 1);
v12 = nullptr;
v13 = nullptr;
v14 = 0;
atoi(v8);
std::string::__init((int *)&v12, "-1", 2u);
v9 = sub_641032(a2, (unsigned __int8 *)&v12);
std::string::~string((int)&v12);
result = *((int (****)(void))a1 + 71);
if ( v9 )
{
if ( !result )
return result;
v11 = (*result)[1];
}
else
{
if ( !result )
return result;
v11 = **result;
}
return (int (***)(void))v11();
}