//
// GJMultiplayerManager::exitLobby from 0x510a0c to 0x510b16 (266 bytes)
//
// 1 xrefs:
// > MPLobbyLayer::tryExitLobby @ 0x535ab2
//
// 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
//
bool GJMultiplayerManager::exitLobby(GJMultiplayerManager *a1, int a2)
{
cocos2d::CCString *v4; // r0
char *CString; // r10
cocos2d::CCString *v6; // r0
const char *v7; // r0
cocos2d::CCString *v8; // r0
char *v9; // r0
char v11; // [sp+1Ch] [bp-14h] BYREF
char *v12; // [sp+20h] [bp-10h] BYREF
const char *v13; // [sp+24h] [bp-Ch] BYREF
char *v14; // [sp+28h] [bp-8h] BYREF
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i_exitLobby", (const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v4);
if ( GJMultiplayerManager::isDLActive(a1, CString) )
return 0;
GJMultiplayerManager::addDLToActive(a1, CString);
GJMultiplayerManager::getBasePostString((GJMultiplayerManager *)&v11, (char *)a1);
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfv",
"3899",
103,
99,
&aO1i2r3e45s7t89[13]);
v7 = cocos2d::CCString::getCString(v6);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&gameID=%i&secret=%s",
(const char *)a2,
v7);
v9 = (char *)cocos2d::CCString::getCString(v8);
sub_774544((int)&v11, v9);
sub_776584((int)&v12, "https://www.geometrydash.com/database/exitMPLobby.php");
sub_775C20(&v13);
sub_776584((int)&v14, CString);
GJMultiplayerManager::ProcessHttpRequest(a1, &v12, &v13, &v14, 58);
sub_774008(&v14);
sub_774008(&v13);
sub_774008(&v12);
sub_774008(&v11);
return 1;
}