//
// GJMultiplayerManager::exitLobby from 0x642174 to 0x642294 (288 bytes)
//
// 1 xrefs:
// > MPLobbyLayer::tryExitLobby @ 0x66a7d6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:55:29 +0000
//
int __fastcall GJMultiplayerManager::exitLobby(GJMultiplayerManager *this, const char *a2)
{
cocos2d::CCString *v4; // r0
const char *CString; // r10
int v6; // r2
int v7; // r3
char *v8; // r2
int v9; // r3
cocos2d::CCString *v10; // r0
int v11; // r0
cocos2d::CCString *v12; // r0
char *v13; // r0
size_t v14; // r0
_DWORD v16[3]; // [sp+14h] [bp-34h] BYREF
int v17[3]; // [sp+20h] [bp-28h] BYREF
int v18[3]; // [sp+2Ch] [bp-1Ch] BYREF
int v19[3]; // [sp+38h] [bp-10h] BYREF
v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i_exitLobby", a2);
CString = (const char *)cocos2d::CCString::getCString(v4);
if ( GJMultiplayerManager::isDLActive(this, CString) )
return 0;
GJMultiplayerManager::addDLToActive(this, CString, v6, v7);
GJMultiplayerManager::getBasePostString((GJMultiplayerManager *)v16, (int)this, v8, v9);
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfv",
"3899",
103,
99,
&a1i2r3e45s789g[11]);
v11 = cocos2d::CCString::getCString(v10);
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"&gameID=%i&secret=%s", a2, v11);
v13 = (char *)cocos2d::CCString::getCString(v12);
std::string::append(v16, v13);
memset(v17, 0, sizeof(v17));
std::string::__init(v17, "https://www.geometrydash.com/database/exitMPLobby.php", 0x35u);
std::string::basic_string(v18, (int)v16);
memset(v19, 0, sizeof(v19));
v14 = strlen(CString);
std::string::__init(v19, CString, v14);
GJMultiplayerManager::ProcessHttpRequest(this, v17, (int)v18, (int)v19, 64);
std::string::~string((int)v19);
std::string::~string((int)v18);
std::string::~string((int)v17);
std::string::~string((int)v16);
return 1;
}