//
// GameLevelManager::downloadUserMessage from 0x3d1840 to 0x3d1952 (274 bytes)
//
// 1 xrefs:
// > GJMessagePopup::init @ 0x4ae2b0
//
// 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::downloadUserMessage(GameLevelManager *a1, int a2, bool a3)
{
_BOOL4 v5; // r5
char *MessageKey; // r10
cocos2d::CCString *v7; // r0
const char *CString; // r0
cocos2d::CCString *v9; // r0
char *v10; // 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
v5 = a3;
MessageKey = (char *)GameLevelManager::getMessageKey(a1, a2);
if ( !GameLevelManager::isDLActive(a1, MessageKey) )
{
GameLevelManager::addDLToActive(a1, MessageKey);
GameLevelManager::getBasePostString((GameLevelManager *)&v11);
v7 = (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(v7);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&messageID=%i&secret=%s",
(const char *)a2,
CString);
v10 = (char *)cocos2d::CCString::getCString(v9);
sub_774544((int)&v11, v10);
if ( v5 )
sub_774544((int)&v11, "&isSender=1");
sub_776584((int)&v12, "https://www.boomlings.com/database/downloadGJMessage20.php");
sub_776584((int)&v13, v11);
sub_776584((int)&v14, MessageKey);
GameLevelManager::ProcessHttpRequest(a1, &v12, &v13, &v14, 38);
sub_774008(&v14);
sub_774008(&v13);
sub_774008(&v12);
sub_774008(&v11);
}
}