//
// GJMultiplayerManager::onExitLobbyCompleted from 0x10065a060 to 0x10065a138 (216 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
char __fastcall GJMultiplayerManager::onExitLobbyCompleted(GJMultiplayerManager *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
UploadActionDelegate *m_uploadDelegate; // rdi
char result; // al
UploadActionDelegate_vtbl *p_uploadActionFailed; // rax
_WORD __s2[23]; // [rsp+1h] [rbp-2Fh] BYREF
if ( (*(_BYTE *)a3 & 1) != 0 )
{
GJMultiplayerManager::removeDLFromActive(a1, *(const char **)(a3 + 16));
if ( (*(_BYTE *)a3 & 1) != 0 )
goto LABEL_3;
}
else
{
GJMultiplayerManager::removeDLFromActive(a1, (const char *)(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);
m_uploadDelegate = a1->m_uploadDelegate;
result = v10 || v11 != 0;
if ( result )
{
if ( !m_uploadDelegate )
return result;
p_uploadActionFailed = m_uploadDelegate->__vftable;
}
else
{
if ( !m_uploadDelegate )
return result;
p_uploadActionFailed = (UploadActionDelegate_vtbl *)&m_uploadDelegate->uploadActionFailed;
}
return ((__int64 (__fastcall *)(UploadActionDelegate *, _QWORD, __int64))p_uploadActionFailed->uploadActionFinished)(
m_uploadDelegate,
v6,
58);
}