//
// GameLevelManager::deleteServerEditorSound from 0x4d0ae0 to 0x4d0c46 (358 bytes)
//
// 1 xrefs:
// > EditorSoundConfigInfoLayer::startServerDelete @ 0x784f76
//
// 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:50:47 +0000
//
int __fastcall GameLevelManager::deleteServerEditorSound(int **a1, const char *a2, unsigned __int8 *a3, _DWORD *a4)
{
cocos2d::CCString *v8; // r0
const char *CString; // r8
size_t v10; // r0
cocos2d::CCString *v11; // r0
int v12; // r0
cocos2d::CCString *v13; // r0
char *v14; // r0
size_t v15; // r0
_BYTE v17[8]; // [sp+10h] [bp-48h] BYREF
int v18[3]; // [sp+18h] [bp-40h] BYREF
char *v19[3]; // [sp+24h] [bp-34h] BYREF
int v20[3]; // [sp+30h] [bp-28h] BYREF
int v21[3]; // [sp+3Ch] [bp-1Ch] BYREF
int v22[3]; // [sp+48h] [bp-10h] BYREF
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"es_del_%i", a2);
memset(v18, 0, sizeof(v18));
CString = (const char *)cocos2d::CCString::getCString(v8);
v10 = strlen(CString);
std::string::__init(v18, CString, v10);
if ( !std::__tree::__count_unique((int)(a1 + 131), (unsigned __int8 *)v18) )
{
std::__tree::__emplace_unique_key_args(
(int)v17,
a1 + 131,
(unsigned __int8 *)v18,
(int)v18);
GameLevelManager::getBasePostString((GameLevelManager *)v19);
v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfv",
"2898",
103,
99,
&a1i2r3e45s789g[11]);
v12 = cocos2d::CCString::getCString(v11);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&soundID=%i&secret=%s",
a2,
v12);
v14 = (char *)cocos2d::CCString::getCString(v13);
std::string::append(v19, v14);
GameLevelManager::appendModReason((int)a1, v19, a3, a4);
memset(v20, 0, sizeof(v20));
std::string::__init(v20, "https://www.boomlings.com/database/deleteGJEditorSound.php", 0x3Au);
if ( ((int)v19[0] & 1) == 0 )
a3 = (unsigned __int8 *)v19 + 1;
v21[0] = 0;
if ( ((int)v19[0] & 1) != 0 )
a3 = (unsigned __int8 *)v19[2];
v21[1] = 0;
v21[2] = 0;
v15 = strlen((const char *)a3);
std::string::__init(v21, a3, v15);
std::string::basic_string(v22, (int)v18);
GameLevelManager::ProcessHttpRequest((GameManager *)a1, v20, (int)v21, (int)v22, 72);
std::string::~string((int)v22);
std::string::~string((int)v21);
std::string::~string((int)v20);
std::string::~string((int)v19);
}
return std::string::~string((int)v18);
}