//
// GJAccountManager::onRegisterAccountCompleted from 0x100445810 to 0x1004458c8 (184 bytes)
//
// 1 xrefs:
// > GJAccountManager::handleIt @ 0x100445490
//
// 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 11:05:14 +0000
//
void __fastcall GJAccountManager::onRegisterAccountCompleted(__int64 a1, char *a2)
{
_BOOL4 v4; // w21
__int64 v5; // x20
__int64 v6; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v8; // [xsp+1Fh] [xbp-21h]
GJAccountManager::removeDLFromActive(a1, "reg_account");
sub_100009900(__p, "1");
v4 = sub_1000045BC(a2, __p);
if ( v8 < 0 )
operator delete(__p[0]);
v5 = *(_QWORD *)(a1 + 392);
if ( v4 )
{
if ( v5 )
(**(void (__fastcall ***)(__int64))v5)(v5);
}
else if ( v5 )
{
if ( a2[23] < 0 )
a2 = *(char **)a2;
v6 = atoi(a2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 8LL))(v5, v6);
}
}