//
// GJMultiplayerManager::onExitLobbyCompleted from 0x50fea4 to 0x50ff10 (108 bytes)
//
// 1 xrefs:
// > GJMultiplayerManager::handleIt @ 0x51044a
//
// 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
//
UploadActionDelegate *__fastcall GJMultiplayerManager::onExitLobbyCompleted(
GJMultiplayerManager *a1,
int a2,
const char **a3,
int a4)
{
int v7; // r6
int v8; // r7
UploadActionDelegate *result; // r0
_DWORD v10[2]; // [sp+8h] [bp-8h] BYREF
v10[0] = a3;
v10[1] = a4;
GJMultiplayerManager::removeDLFromActive(a1, *a3);
v7 = atoi(*a3);
sub_776584((int)v10, "-1");
v8 = sub_774DBC(a2, v10);
sub_774008(v10);
result = a1->m_uploadDelegate;
if ( v8 )
{
if ( result )
return (UploadActionDelegate *)((int (__fastcall *)(UploadActionDelegate *, int, int, void (__fastcall *)(UploadActionDelegate *__hidden, int, int)))result->uploadActionFinished)(
result,
v7,
58,
result->uploadActionFinished);
}
else if ( result )
{
return (UploadActionDelegate *)((int (__fastcall *)(UploadActionDelegate *, int, int, void (__fastcall *)(UploadActionDelegate *__hidden, int, int)))result->uploadActionFailed)(
result,
v7,
58,
result->uploadActionFailed);
}
return result;
}