//
// GJAccountManager::updateAccountSettings from 0x5823b4 to 0x58259c (488 bytes)
//
// 2 xrefs:
// > ParentalPrivacyPopup::startWithScore @ 0x52ff46
// > UpdateAccountSettingsPopup::init @ 0x5d8d4e
//
// 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:52:55 +0000
//
int __fastcall GJAccountManager::updateAccountSettings(
GJAccountManager *a1,
int a2,
int a3,
int a4,
int a5,
int a6,
int a7,
int a8,
int a9,
int a10,
int a11,
int a12,
int a13)
{
int v13; // r2
GJAccountManager *v14; // r0
GJAccountManager *v15; // r0
int v16; // r0
char *v17; // r11
int v18; // r10
int v19; // r9
int v20; // r8
int v21; // r7
int v22; // r6
int v23; // r5
int v24; // r4
cocos2d::CCString *v25; // r0
int CString; // r0
cocos2d::CCString *v27; // r7
const char *v28; // r7
size_t v29; // r0
char *v32; // [sp+34h] [bp-40h]
int v36[3]; // [sp+48h] [bp-2Ch] BYREF
int v37[3]; // [sp+54h] [bp-20h] BYREF
int v38[2]; // [sp+60h] [bp-14h] BYREF
char *v39; // [sp+68h] [bp-Ch]
if ( GJAccountManager::isDLActive(a1, "acc_sett") )
return 0;
v14 = (GJAccountManager *)GJAccountManager::addDLToActive(a1, "acc_sett", v13, (int)"acc_sett");
v15 = (GJAccountManager *)GJAccountManager::sharedState(v14);
v32 = (char *)(*((_DWORD *)v15 + 70) - *((_DWORD *)v15 + 71));
v16 = GJAccountManager::sharedState(v15);
std::string::basic_string(v38, v16 + 292);
if ( (v38[0] & 1) != 0 )
v17 = v39;
else
v17 = (char *)v38 + 1;
if ( (*(_BYTE *)a7 & 1) != 0 )
v18 = *(_DWORD *)(a7 + 8);
else
v18 = a7 + 1;
if ( (*(_BYTE *)a8 & 1) != 0 )
v19 = *(_DWORD *)(a8 + 8);
else
v19 = a8 + 1;
if ( (*(_BYTE *)a9 & 1) != 0 )
v20 = *(_DWORD *)(a9 + 8);
else
v20 = a9 + 1;
if ( (*(_BYTE *)a10 & 1) != 0 )
v21 = *(_DWORD *)(a10 + 8);
else
v21 = a10 + 1;
if ( (*(_BYTE *)a11 & 1) != 0 )
v22 = *(_DWORD *)(a11 + 8);
else
v22 = a11 + 1;
if ( (*(_BYTE *)a12 & 1) != 0 )
v23 = *(_DWORD *)(a12 + 8);
else
v23 = a12 + 1;
if ( (*(_BYTE *)a13 & 1) != 0 )
v24 = *(_DWORD *)(a13 + 8);
else
v24 = a13 + 1;
v25 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%c%s%s%c%c%s",
(const char *)&dword_54 + 3,
"mfv",
"3899",
103,
99,
&a1i2r3e45s789g[11]);
CString = cocos2d::CCString::getCString(v25);
v27 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"accountID=%i&gjp2=%s&mS=%i&frS=%i&cS=%i&gF=%i&gO=%i&yt=%s&twitter=%s"
"&twitch=%s&instagram=%s&tiktok=%s&discord=%s&custom=%s&secret=%s",
v32,
v17,
a2,
a3,
a4,
a5,
a6,
v18,
v19,
v20,
v21,
v22,
v23,
v24,
CString);
std::string::~string((int)v38);
memset(v36, 0, sizeof(v36));
std::string::__init(v36, "https://www.boomlings.com/database/updateGJAccSettings20.php", 0x3Cu);
v28 = (const char *)cocos2d::CCString::getCString(v27);
memset(v37, 0, sizeof(v37));
v29 = strlen(v28);
std::string::__init(v37, v28, v29);
v38[0] = 0;
v38[1] = 0;
v39 = nullptr;
std::string::__init(v38, "acc_sett", 8u);
GJAccountManager::ProcessHttpRequest(a1, (int)v36, (int)v37, (int)v38, 32);
std::string::~string((int)v38);
std::string::~string((int)v37);
std::string::~string((int)v36);
return 1;
}