//
// GJAccountManager::onRegisterAccountCompleted from 0x581744 to 0x5817c0 (124 bytes)
//
// 1 xrefs:
// > GJAccountManager::handleIt @ 0x5836f4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:54 +0000
//
int __fastcall GJAccountManager::onRegisterAccountCompleted(GJAccountManager *a1, int a2, int a3, int a4)
{
_BOOL4 v6; // r7
int result; // r0
int v8; // r5
int (__fastcall *v9)(int, int); // r7
const char *v10; // r0
int v11; // r0
int v12[4]; // [sp+0h] [bp-10h] BYREF
v12[3] = a4;
GJAccountManager::removeDLFromActive(a1, "reg_account");
memset(v12, 0, 12);
std::string::__init(v12, a1i2r3e45s789g, 1u);
v6 = sub_58125C((unsigned __int8 *)a2, (unsigned __int8 *)v12);
result = std::string::~string((int)v12);
v8 = *((_DWORD *)a1 + 76);
if ( v6 )
{
if ( v8 )
return (**(int (__fastcall ***)(_DWORD))v8)(*((_DWORD *)a1 + 76));
}
else if ( v8 )
{
v9 = *(int (__fastcall **)(int, int))(*(_DWORD *)v8 + 4);
if ( (*(_BYTE *)a2 & 1) != 0 )
v10 = *(const char **)(a2 + 8);
else
v10 = (const char *)(a2 + 1);
v11 = atoi(v10);
return v9(v8, v11);
}
return result;
}