//
// GJAccountManager::syncAccount from 0x100447a8c to 0x100447c08 (380 bytes)
//
// 1 xrefs:
// > GJAccountManager::onGetAccountSyncURLCompleted @ 0x10044672c
//
// 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 11:05:15 +0000
//
bool __fastcall GJAccountManager::syncAccount(__int64 a1, __int128 *a2)
{
__int64 DLObject; // x19
void *v5; // x0
__int64 v6; // x0
void *v7; // x0
const char *CString; // x0
void *v9; // x0
const std::string::value_type *v10; // x0
std::string *v11; // x1
void *__p[2]; // [xsp+30h] [xbp-80h] BYREF
char v14; // [xsp+47h] [xbp-69h]
void *v15[2]; // [xsp+48h] [xbp-68h] BYREF
char v16; // [xsp+5Fh] [xbp-51h]
__int128 __dst; // [xsp+60h] [xbp-50h] BYREF
__int64 v18; // [xsp+70h] [xbp-40h]
std::string v19; // [xsp+78h] [xbp-38h] BYREF
DLObject = GJAccountManager::getDLObject(a1, "sync_account");
if ( !DLObject )
{
v5 = cocos2d::CCNode::create();
GJAccountManager::addDLToActive(a1, "sync_account", (__int64)v5);
v6 = GameLevelManager::sharedState();
GameLevelManager::getBasePostString(v6, &v19);
v7 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfv", "3899", 103, 99, "9");
CString = (const char *)cocos2d::CCString::getCString((__int64)v7);
v9 = sub_1003065B0("&secret=%s", CString);
v10 = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v9);
std::string::append(&v19, v10);
if ( *((char *)a2 + 23) < 0 )
{
sub_1000097D0(&__dst, *(void **)a2, *((_QWORD *)a2 + 1));
}
else
{
__dst = *a2;
v18 = *((_QWORD *)a2 + 2);
}
if ( (v19.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v11 = &v19;
else
v11 = (std::string *)v19.__r_.__value_.__r.__words[0];
sub_100009900(v15, (char *)v11);
sub_100009900(__p, "SyncAccount");
GJAccountManager::ProcessHttpRequest(
a1,
(const std::string::value_type *)&__dst,
(char *)v15,
(const std::string::value_type *)__p,
23);
if ( v14 < 0 )
operator delete(__p[0]);
if ( v16 < 0 )
operator delete(v15[0]);
if ( SHIBYTE(v18) < 0 )
operator delete((void *)__dst);
if ( SHIBYTE(v19.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v19.__r_.__value_.__l.__data_);
}
return DLObject == 0;
}