//
// GameLevelManager::getGJUserInfo from 0x822844 to 0x822aa0 (604 bytes)
//
// 5 xrefs:
// > ParentalPrivacyPopup::init @ 0x8f3a38
// > ProfilePage::onUpdate @ 0xa54980
// > ProfilePage::updateUserScoreFinished @ 0xa54c00
// > ProfilePage::init @ 0xa5c62c
// > ??> @ 0xe2eb8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:55:02 +0000
//
__int64 __fastcall GameLevelManager::getGJUserInfo(GameLevelManager *this, const char *a2)
{
unsigned int v3; // w23
char *UserInfoKey; // x21
unsigned int v6; // w24
cocos2d::CCString *v7; // x0
__int64 CString; // x0
cocos2d::CCString *v9; // x0
size_t v10; // x0
const char *v11; // x1
size_t v12; // x0
size_t v13; // x0
char *v14; // [xsp+48h] [xbp+48h]
char *v15; // [xsp+48h] [xbp+48h]
__int64 v16[2]; // [xsp+58h] [xbp+58h] BYREF
void *v17; // [xsp+68h] [xbp+68h]
__int64 v18[2]; // [xsp+70h] [xbp+70h] BYREF
void *v19; // [xsp+80h] [xbp+80h]
__int64 v20[2]; // [xsp+88h] [xbp+88h] BYREF
void *v21; // [xsp+98h] [xbp+98h]
__int64 v22[2]; // [xsp+A0h] [xbp+A0h] BYREF
void *v23; // [xsp+B0h] [xbp+B0h]
v3 = (unsigned int)a2;
UserInfoKey = (char *)GameLevelManager::getUserInfoKey(this, a2);
if ( !GameLevelManager::isDLActive(this, UserInfoKey) )
{
GameLevelManager::addDLToActive(this, UserInfoKey);
GameLevelManager::getBasePostString(v16);
v6 = GameLevelManager::notificationMask(this);
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)off_50 + 7,
"mfd",
"2893",
103,
98,
"7");
CString = cocos2d::CCString::getCString(v7);
v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"&targetAccountID=%i¬ifMask=%i&secret=%s",
(const char *)v3,
v6,
CString);
v14 = (char *)cocos2d::CCString::getCString(v9);
v10 = strlen(v14);
std::string::append((__int64)v16, v14, v10);
v18[0] = 0;
v18[1] = 0;
v19 = nullptr;
std::string::__init(v18, "https://www.boomlings.com/database/getGJUserInfo20.php", 0x36u);
v11 = (char *)v16 + 1;
if ( (v16[0] & 1) != 0 )
v11 = (const char *)v17;
v15 = (char *)v11;
v20[0] = 0;
v20[1] = 0;
v21 = nullptr;
v12 = strlen(v11);
std::string::__init(v20, v15, v12);
v22[0] = 0;
v22[1] = 0;
v23 = nullptr;
v13 = strlen(UserInfoKey);
std::string::__init(v22, UserInfoKey, v13);
GameLevelManager::ProcessHttpRequest(this, v18, (__int64)v20, (char *)v22, 33);
if ( (v22[0] & 1) != 0 )
operator delete(v23);
if ( (v20[0] & 1) != 0 )
operator delete(v21);
if ( (v18[0] & 1) != 0 )
operator delete(v19);
if ( (v16[0] & 1) != 0 )
operator delete(v17);
}
return _stack_chk_guard;
}