//
// GJMultiplayerManager::onExitLobbyCompleted from 0x1007396c0 to 0x100739798 (216 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:36:26 +0000
//
char __fastcall GJMultiplayerManager::onExitLobbyCompleted(__int64 a1, unsigned __int8 *a2, __int64 a3)
{
const char *v5; // r14
unsigned int v6; // r14d
const void *v7; // rdi
unsigned __int64 v8; // rcx
size_t v9; // rdx
bool v10; // r15
int v11; // eax
__int64 (__fastcall ***v12)(_QWORD, _QWORD, _QWORD); // rdi
char result; // al
__int64 (__fastcall **v14)(_QWORD, _QWORD, __int64); // rax
_WORD __s2[23]; // [rsp+1h] [rbp-2Fh] BYREF
if ( (*(_BYTE *)a3 & 1) != 0 )
{
GJMultiplayerManager::removeDLFromActive(a1, *(_QWORD *)(a3 + 16));
if ( (*(_BYTE *)a3 & 1) != 0 )
goto LABEL_3;
}
else
{
GJMultiplayerManager::removeDLFromActive(a1, a3 + 1);
if ( (*(_BYTE *)a3 & 1) != 0 )
{
LABEL_3:
v5 = *(const char **)(a3 + 16);
goto LABEL_6;
}
}
v5 = (const char *)(a3 + 1);
LABEL_6:
v6 = atoi(v5);
strcpy((char *)__s2, "-1");
v7 = a2 + 1;
v8 = *a2 >> 1;
if ( (*a2 & 1) != 0 )
{
v7 = *((const void **)a2 + 2);
v8 = *((_QWORD *)a2 + 1);
}
v9 = 2;
if ( v8 < 2 )
v9 = v8;
v10 = v8 != 2;
v11 = memcmp(v7, __s2, v9);
v12 = *(__int64 (__fastcall ****)(_QWORD, _QWORD, _QWORD))(a1 + 360);
result = v10 || v11 != 0;
if ( result )
{
if ( !v12 )
return result;
v14 = *v12;
}
else
{
if ( !v12 )
return result;
v14 = *v12 + 1;
}
return (*v14)(v12, v6, 64);
}