//
// GameLevelManager::deleteServerLevel from 0x3d06c4 to 0x3d0832 (366 bytes)
//
// 1 xrefs:
// > LevelInfoLayer::onOwnerDelete @ 0x3b2976
//
// 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
//
void GameLevelManager::deleteServerLevel(GameLevelManager *a1, int a2)
{
char *LevelKey; // r0
cocos2d::CCDictionary *m_friendReqAndUserBlocks; // r9
char *v6; // r11
int v7; // r6
cocos2d::CCDictionary *v8; // r9
cocos2d::CCNode *v9; // r6
cocos2d::CCString *v10; // r0
char *CString; // r0
cocos2d::CCString *v12; // r0
char *v13; // r0
int v14; // [sp+24h] [bp-20h] BYREF
char *v15; // [sp+28h] [bp-1Ch] BYREF
char *v16; // [sp+2Ch] [bp-18h] BYREF
char *v17; // [sp+30h] [bp-14h] BYREF
const char *v18; // [sp+34h] [bp-10h] BYREF
std::string v19; // [sp+38h] [bp-Ch] BYREF
LevelKey = (char *)GameLevelManager::getLevelKey(a1, a2);
m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks;
v6 = LevelKey;
sub_776584((int)&v19, LevelKey);
v7 = cocos2d::CCDictionary::objectForKey(m_friendReqAndUserBlocks, &v19);
sub_774008(&v19);
if ( !v7 )
{
v8 = a1->m_friendReqAndUserBlocks;
v9 = cocos2d::CCNode::create();
sub_776584((int)&v19, v6);
cocos2d::CCDictionary::setObject((int)v8, v9);
sub_774008(&v19);
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfv",
"2898",
103,
99,
&aO1i2r3e45s7t89[13]);
CString = (char *)cocos2d::CCString::getCString(v10);
sub_776584((int)&v14, CString);
sub_776584((int)&v15, "https://www.boomlings.com/database/deleteGJLevelUser20.php");
GameLevelManager::getBasePostString((GameLevelManager *)&v16);
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&levelID=%i&secret=%s",
(const char *)a2,
v14);
v13 = (char *)cocos2d::CCString::getCString(v12);
sub_774544((int)&v16, v13);
sub_776584((int)&v17, v15);
sub_776584((int)&v18, v16);
sub_776584((int)&v19, v6);
GameLevelManager::ProcessHttpRequest(a1, &v17, &v18, (char **)&v19, 7);
sub_774008(&v19);
sub_774008(&v18);
sub_774008(&v17);
sub_774008(&v16);
sub_774008(&v15);
sub_774008(&v14);
}
}