//
// GJAccountManager::onGetAccountBackupURLCompleted from 0x1004464d8 to 0x100446618 (320 bytes)
//
// 1 xrefs:
// > GJAccountManager::handleIt @ 0x1004454c8
//
// 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:14 +0000
//
void __fastcall GJAccountManager::onGetAccountBackupURLCompleted(__int64 a1, char *a2)
{
_BOOL4 v4; // w0
_BOOL4 v5; // w21
__int64 v6; // x0
void *v7; // x0
char *CString; // x0
char v9; // w0
char v10; // w20
__int64 v11; // x0
void *__dst[2]; // [xsp+10h] [xbp-50h] BYREF
__int64 v13; // [xsp+20h] [xbp-40h]
void *__p[2]; // [xsp+28h] [xbp-38h] BYREF
__int64 v15; // [xsp+38h] [xbp-28h]
GJAccountManager::removeDLFromActive(a1, "burl_account");
sub_100009900(__p, "-1");
v4 = sub_1000045BC(a2, __p);
v5 = v4;
if ( SHIBYTE(v15) < 0 )
{
operator delete(__p[0]);
if ( v5 )
{
LABEL_3:
v6 = *(_QWORD *)(a1 + 416);
if ( v6 )
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v6 + 8LL))(v6, 0xFFFFFFFFLL, 0);
return;
}
}
else if ( v4 )
{
goto LABEL_3;
}
if ( a2[23] < 0 )
a2 = *(char **)a2;
v7 = sub_1003065B0("%s/database/accounts/backupGJAccountNew.php", a2);
CString = (char *)cocos2d::CCString::getCString((__int64)v7);
sub_100009900(__p, CString);
if ( SHIBYTE(v15) < 0 )
{
sub_1000097D0(__dst, __p[0], (unsigned __int64)__p[1]);
}
else
{
*(_OWORD *)__dst = *(_OWORD *)__p;
v13 = v15;
}
v9 = GJAccountManager::backupAccount(a1, __dst);
v10 = v9;
if ( SHIBYTE(v13) < 0 )
{
operator delete(__dst[0]);
if ( (v10 & 1) != 0 )
goto LABEL_17;
LABEL_15:
v11 = *(_QWORD *)(a1 + 416);
if ( v11 )
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v11 + 8LL))(v11, 0xFFFFFFFFLL, 0);
goto LABEL_17;
}
if ( (v9 & 1) == 0 )
goto LABEL_15;
LABEL_17:
if ( SHIBYTE(v15) < 0 )
operator delete(__p[0]);
}