//
// GameLevelManager::updateDescription from 0x3d3604 to 0x3d3764 (352 bytes)
//
// 1 xrefs:
// > EditLevelLayer::FLAlert_Clicked @ 0x3b818e
//
// 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 GameLevelManager::updateDescription(GameLevelManager *a1, const char *a2, int *a3)
{
char *DescKey; // r0
cocos2d::CCDictionary *m_friendReqAndUserBlocks; // r8
char *v8; // r10
int v9; // r8
cocos2d::CCNode *v10; // r8
int v11; // r9
cocos2d::CCString *v12; // r0
const char *CString; // r0
cocos2d::CCString *v14; // r0
char *v15; // r0
int v17; // [sp+14h] [bp-28h]
char *v18; // [sp+24h] [bp-18h] BYREF
char *v19; // [sp+28h] [bp-14h] BYREF
const char *v20; // [sp+2Ch] [bp-10h] BYREF
std::string v21; // [sp+30h] [bp-Ch] BYREF
DescKey = (char *)GameLevelManager::getDescKey(a1, (int)a2);
m_friendReqAndUserBlocks = a1->m_friendReqAndUserBlocks;
v8 = DescKey;
sub_776584((int)&v21, DescKey);
v9 = cocos2d::CCDictionary::objectForKey(m_friendReqAndUserBlocks, &v21);
sub_774008(&v21);
if ( v9 )
return 0;
v17 = (int)a1->m_friendReqAndUserBlocks;
v10 = cocos2d::CCNode::create();
sub_776584((int)&v21, v8);
cocos2d::CCDictionary::setObject(v17, v10);
sub_774008(&v21);
sub_775C20(&v21);
GameLevelManager::removeDelimiterChars((int)a1, (int)&v21, 0);
sub_774008(&v21);
GameLevelManager::getBasePostString((GameLevelManager *)&v18);
v11 = *a3;
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfd",
"2893",
103,
98,
&aO1i2r3e45s7t89[10]);
CString = cocos2d::CCString::getCString(v12);
v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&levelID=%i&levelDesc=%s&secret=%s",
a2,
v11,
CString);
v15 = (char *)cocos2d::CCString::getCString(v14);
sub_774544((int)&v18, v15);
sub_776584((int)&v19, "https://www.boomlings.com/database/updateGJDesc20.php");
sub_776584((int)&v20, v18);
sub_776584((int)&v21, v8);
GameLevelManager::ProcessHttpRequest(a1, &v19, &v20, (char **)&v21, 24);
sub_774008(&v21);
sub_774008(&v20);
sub_774008(&v19);
sub_774008(&v18);
return 1;
}