//
// GJAccountManager::handleIt from 0x465b48 to 0x465cd0 (392 bytes)
//
// 2 xrefs:
// > GJAccountManager::onProcessHttpRequestCompleted @ 0x465d20
// > GJAccountManager::handleItND @ 0x465da6
//
// 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::handleIt(int result, const char *a2, int a3, int a4, unsigned int a5)
{
GJAccountManager *v5; // r5
int v6; // r3
int v7; // r3
const char *v8; // [sp+4h] [bp-Ch] BYREF
_DWORD v9[2]; // [sp+8h] [bp-8h] BYREF
v8 = a2;
v9[0] = a3;
v9[1] = a4;
v5 = (GJAccountManager *)result;
if ( !a2 )
result = sub_7753D4(a3, "-1");
if ( a5 == 23 )
{
sub_775C20(&v8);
sub_775C20(v9);
GJAccountManager::onLoginAccountCompleted(v5, (cocos2d::CCArray *)&v8, (int)v9, v7);
goto LABEL_19;
}
if ( a5 > 0x17 )
{
switch ( a5 )
{
case 0x36u:
sub_775C20(&v8);
sub_775C20(v9);
GJAccountManager::onGetAccountBackupURLCompleted(v5, &v8);
break;
case 0x37u:
sub_775C20(&v8);
sub_775C20(v9);
GJAccountManager::onGetAccountSyncURLCompleted(v5, &v8);
break;
case 0x1Au:
sub_775C20(&v8);
sub_775C20(v9);
GJAccountManager::onUpdateAccountSettingsCompleted(v5, (int)&v8);
break;
default:
return result;
}
goto LABEL_19;
}
if ( a5 == 21 )
{
sub_775C20(&v8);
sub_775C20(v9);
GJAccountManager::onSyncAccountCompleted(v5, (cocos2d::CCArray *)&v8);
goto LABEL_19;
}
if ( a5 > 0x15 )
{
sub_775C20(&v8);
sub_775C20(v9);
GJAccountManager::onRegisterAccountCompleted(v5, &v8, (int)v9, v6);
LABEL_19:
sub_774008(v9);
return sub_774008(&v8);
}
if ( a5 == 20 )
{
sub_775C20(&v8);
sub_775C20(v9);
GJAccountManager::onBackupAccountCompleted(v5, &v8);
goto LABEL_19;
}
return result;
}