//
// GJAccountManager::onGetAccountBackupURLCompleted from 0x46573c to 0x46580e (210 bytes)
//
// 1 xrefs:
// > GJAccountManager::handleIt @ 0x465c60
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall GJAccountManager::onGetAccountBackupURLCompleted(GJAccountManager *a1, const char **a2)
{
int v4; // r9
int result; // r0
cocos2d::CCString *v6; // r0
char *CString; // r0
int v8; // r8
GJAccountBackupDelegate *m_backupDelegate; // r0
char v10[4]; // [sp+4h] [bp-10h] BYREF
char v11[4]; // [sp+8h] [bp-Ch] BYREF
GJAccountManager::removeDLFromActive(a1, "burl_account");
sub_776584((int)v11, "-1");
v4 = sub_774DBC(a2, v11);
sub_774008(v11);
if ( v4 )
{
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s/database/accounts/backupGJAccountNew.php",
*a2);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_776584((int)v10, CString);
sub_775C20(v11);
v8 = GJAccountManager::backupAccount(a1);
sub_774008(v11);
if ( !v8 )
{
m_backupDelegate = a1->m_backupDelegate;
if ( m_backupDelegate )
m_backupDelegate->backupAccountFailed(m_backupDelegate, GenericError, 0);
}
return sub_774008(v10);
}
else
{
result = (int)a1->m_backupDelegate;
if ( result )
return (*(int (__fastcall **)(int, int, _DWORD))(*(_DWORD *)result + 4))(result, -1, 0);
}
return result;
}