//
// GJAccountManager::onBackupAccountCompleted from 0x100445ab0 to 0x100445c8c (476 bytes)
//
// 1 xrefs:
// > GJAccountManager::handleIt @ 0x100445420
//
// 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::onBackupAccountCompleted(__int64 a1, char *a2)
{
_BOOL4 v4; // w0
_BOOL4 v5; // w21
__int64 v6; // x0
void (__fastcall *v7)(__int64, __int64, _QWORD); // x8
__int64 v8; // x1
void *v9; // x0
char *CString; // x0
_BOOL4 v11; // w0
_BOOL4 v12; // w21
void (__fastcall ***v13)(_QWORD); // x0
const char *v14; // x0
int v15; // w21
__int64 v16; // x0
__int64 v17; // x0
void (__fastcall ***v18)(_QWORD); // x0
__int64 v19; // x19
__int64 v20; // x2
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v22; // [xsp+1Fh] [xbp-21h]
GJAccountManager::removeDLFromActive(a1, "bak_account");
sub_100009900(__p, "-1");
v4 = sub_1000045BC(a2, __p);
v5 = v4;
if ( v22 < 0 )
{
operator delete(__p[0]);
if ( v5 )
{
LABEL_3:
v6 = *(_QWORD *)(a1 + 416);
if ( v6 )
{
v7 = *(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v6 + 8LL);
v8 = 0xFFFFFFFFLL;
LABEL_12:
v7(v6, v8, 0);
return;
}
return;
}
}
else if ( v4 )
{
goto LABEL_3;
}
v9 = sub_1003065B0("%i", -2);
CString = (char *)cocos2d::CCString::getCString((__int64)v9);
sub_100009900(__p, CString);
v11 = sub_1000045BC(a2, __p);
v12 = v11;
if ( (v22 & 0x80000000) == 0 )
{
if ( v11 )
goto LABEL_8;
LABEL_15:
sub_100009900(__p, "1");
if ( sub_1000045BC(a2, __p) )
{
if ( v22 < 0 )
operator delete(__p[0]);
}
else
{
v14 = a2;
if ( a2[23] < 0 )
v14 = *(const char **)a2;
v15 = atoi(v14);
if ( v22 < 0 )
operator delete(__p[0]);
if ( v15 < 0 )
{
v19 = *(_QWORD *)(a1 + 416);
if ( v19 )
{
if ( a2[23] < 0 )
a2 = *(char **)a2;
v20 = atoi(a2);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v19 + 8LL))(v19, 4294967293LL, v20);
}
return;
}
}
v16 = GameLevelManager::sharedState();
sub_1000AD8CC(v16, "bak_account");
v17 = LocalLevelManager::sharedState();
LocalLevelManager::markLevelsAsUnmodified(v17);
v18 = *(void (__fastcall ****)(_QWORD))(a1 + 416);
if ( v18 )
(**v18)(v18);
return;
}
operator delete(__p[0]);
if ( !v12 )
goto LABEL_15;
LABEL_8:
std::string::assign((std::string *)(a1 + 448), "");
v13 = *(void (__fastcall ****)(_QWORD))(a1 + 408);
if ( v13 )
(**v13)(v13);
v6 = *(_QWORD *)(a1 + 416);
if ( v6 )
{
v7 = *(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v6 + 8LL);
v8 = 4294967294LL;
goto LABEL_12;
}
}