//
// GJAccountManager::onRegisterAccountCompleted from 0x987bb4 to 0x987c8c (216 bytes)
//
// 2 xrefs:
// > GJAccountManager::handleIt @ 0x98ba88
// > ??> @ 0xbdad8
//
// 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 12:57:54 +0000
//
__int64 __fastcall GJAccountManager::onRegisterAccountCompleted(GJAccountManager *a1, __int64 a2)
{
void (__fastcall ***v4)(_QWORD); // x0
__int64 v6; // x21
const char *v7; // x0
void (__fastcall *v8)(__int64, _QWORD); // x22
unsigned int v9; // w0
_QWORD v10[3]; // [xsp+30h] [xbp+30h] BYREF
GJAccountManager::removeDLFromActive(a1, "reg_account");
v10[0] = 2;
v10[1] = 0;
v10[2] = 0;
BYTE1(v10[0]) = aReachPathOfLav[24];
if ( sub_9876A0(a2, (__int64)v10) )
{
v4 = *((void (__fastcall ****)(_QWORD))a1 + 49);
if ( v4 )
(**v4)(v4);
}
else
{
v6 = *((_QWORD *)a1 + 49);
if ( v6 )
{
v7 = (const char *)(a2 + 1);
v8 = *(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 8LL);
if ( (*(_BYTE *)a2 & 1) != 0 )
v7 = *(const char **)(a2 + 16);
v9 = atoi(v7);
v8(v6, v9);
}
}
return _stack_chk_guard;
}