//
// GJAccountManager::onRegisterAccountCompleted from 0x464530 to 0x46459e (110 bytes)
//
// 1 xrefs:
// > GJAccountManager::handleIt @ 0x465bb6
//
// 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::onRegisterAccountCompleted(GJAccountManager *a1, const char **a2, int a3, int a4)
{
int v6; // r7
int result; // r0
GJAccountRegisterDelegate *m_accountRegisterDelegate; // r4
int v9; // r0
_DWORD v10[2]; // [sp+8h] [bp-8h] BYREF
v10[0] = a3;
v10[1] = a4;
GJAccountManager::removeDLFromActive(a1, "reg_account");
sub_776584((int)v10, (char *)&aO1i2r3e45s7t89[1]);
v6 = sub_774DBC(a2, v10);
result = sub_774008(v10);
m_accountRegisterDelegate = a1->m_accountRegisterDelegate;
if ( v6 )
{
if ( m_accountRegisterDelegate )
{
v9 = atoi(*a2);
return ((int (__fastcall *)(GJAccountRegisterDelegate *, int))m_accountRegisterDelegate->registerAccountFailed)(
m_accountRegisterDelegate,
v9);
}
}
else if ( m_accountRegisterDelegate )
{
return ((int (__fastcall *)(GJAccountRegisterDelegate *))m_accountRegisterDelegate->registerAccountFinished)(a1->m_accountRegisterDelegate);
}
return result;
}