//
// GJMultiplayerManager::handleIt from 0x5103e0 to 0x5104a8 (200 bytes)
//
// 2 xrefs:
// > GJMultiplayerManager::onProcessHttpRequestCompleted @ 0x5104f8
// > GJMultiplayerManager::handleItND @ 0x51057e
//
// 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
//
int __fastcall GJMultiplayerManager::handleIt(int result, int a2, const char *a3, const char *a4, int a5)
{
GJMultiplayerManager *v5; // r7
int v6; // r3
int v7; // r3
int v8; // [sp+4h] [bp-Ch] BYREF
const char *v9[2]; // [sp+8h] [bp-8h] BYREF
v8 = a2;
v9[0] = a3;
v9[1] = a4;
v5 = (GJMultiplayerManager *)result;
if ( !a2 )
result = sub_7753D4((int)a3, "-1");
switch ( a5 )
{
case 57:
sub_775C20(&v8);
sub_775C20(v9);
GJMultiplayerManager::onJoinLobbyCompleted(v5, (cocos2d::CCArray *)&v8, v9);
break;
case 58:
sub_775C20(&v8);
sub_775C20(v9);
GJMultiplayerManager::onExitLobbyCompleted(v5, (int)&v8, v9, v6);
break;
case 13:
sub_775C20(&v8);
sub_775C20(v9);
GJMultiplayerManager::onUploadCommentCompleted(v5, (int)&v8, v9, v7);
break;
default:
return result;
}
sub_774008(v9);
return sub_774008(&v8);
}