//
// GJAccountManager::onOpenRegisterCompleted from 0x9899d0 to 0x989a20 (80 bytes)
//
// 2 xrefs:
// > GJAccountManager::handleIt @ 0x98b894
// > ??> @ 0xf3d90
//
// 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:55 +0000
//
__int64 *__fastcall GJAccountManager::onOpenRegisterCompleted(__int64 *result, __int64 *a2)
{
unsigned __int64 v2; // x3
size_t v3; // x2
const void *v4; // x1
v2 = *(_BYTE *)a2 >> 1;
if ( (*(_BYTE *)a2 & 1) != 0 )
v2 = a2[1];
if ( v2 > 0xF )
{
result += 59;
if ( a2 != result )
{
if ( (*(_BYTE *)a2 & 1) != 0 )
{
v3 = a2[1];
v4 = (const void *)a2[2];
}
else
{
v3 = *(_BYTE *)a2 >> 1;
v4 = (char *)a2 + 1;
}
return std::string::assign(result, v4, v3);
}
}
return result;
}