//
// GJAccountManager::dataLoaded from 0x98a6c8 to 0x98a910 (584 bytes)
//
// 2 xrefs:
// > GameManager::dataLoaded @ 0x7289f0
// > ??> @ 0x57310
//
// 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:56 +0000
//
__int64 __fastcall GJAccountManager::dataLoaded(GJAccountManager *this, DS_Dictionary *a2)
{
__int64 *v4; // x20
__int64 *v5; // x21
__int64 v6; // x2
__int64 v7; // x3
__int64 *v8; // x20
__int64 v9; // x2
__int64 v10; // x3
__int64 v11; // x1
unsigned __int8 v12; // w0
__int64 v13; // x1
__int64 v14; // x1
__int64 v16; // x0
__int64 v17; // x1
__int64 v18; // x2
__int64 v19; // x3
char v20; // w0
__int64 v21; // [xsp+48h] [xbp+48h] BYREF
__int64 v22; // [xsp+50h] [xbp+50h]
void *v23; // [xsp+58h] [xbp+58h]
__int64 v24; // [xsp+60h] [xbp+60h] BYREF
__int64 v25; // [xsp+68h] [xbp+68h]
__int64 v26; // [xsp+70h] [xbp+70h]
v4 = (__int64 *)((char *)this + 328);
DS_Dictionary::getStringForKey(&v24, a2, "GJA_001");
if ( (*((_BYTE *)this + 328) & 1) != 0 )
{
**((_BYTE **)this + 43) = 0;
*((_QWORD *)this + 42) = 0;
}
else
{
*((_BYTE *)this + 329) = 0;
*((_BYTE *)this + 328) = 0;
}
v5 = (__int64 *)((char *)this + 448);
std::string::reserve((__int64 *)this + 41, 0);
v6 = v24;
v7 = v25;
*((_QWORD *)this + 43) = v26;
*v4 = v6;
*((_QWORD *)this + 42) = v7;
*((_DWORD *)this + 88) = DS_Dictionary::getIntegerForKey(a2, "GJA_003");
DS_Dictionary::getStringForKey(&v24, a2, "GJA_002");
if ( (*((_BYTE *)this + 448) & 1) != 0 )
{
**((_BYTE **)this + 58) = 0;
*((_QWORD *)this + 57) = 0;
}
else
{
*((_BYTE *)this + 449) = 0;
*((_BYTE *)this + 448) = 0;
}
v8 = (__int64 *)((char *)this + 368);
std::string::reserve((__int64 *)this + 56, 0);
v9 = v24;
v10 = v25;
*((_QWORD *)this + 58) = v26;
*v5 = v9;
*((_QWORD *)this + 57) = v10;
DS_Dictionary::getStringForKey(&v24, a2, "GJA_005");
if ( (*((_BYTE *)this + 368) & 1) != 0 )
{
**((_BYTE **)this + 48) = 0;
*((_QWORD *)this + 47) = 0;
}
else
{
*((_BYTE *)this + 369) = 0;
*((_BYTE *)this + 368) = 0;
}
std::string::reserve((__int64 *)this + 46, 0);
*((_QWORD *)this + 48) = v26;
v11 = v25;
*v8 = v24;
*((_QWORD *)this + 47) = v11;
v12 = *((_BYTE *)this + 448);
v13 = v12 >> 1;
if ( (v12 & 1) != 0 )
v13 = *((_QWORD *)this + 57);
if ( v13 )
{
v14 = *((_BYTE *)this + 368) >> 1;
if ( (*((_BYTE *)this + 368) & 1) != 0 )
v14 = *((_QWORD *)this + 47);
if ( !v14 )
{
v21 = 0;
v22 = 0;
v23 = nullptr;
if ( (v12 & 1) != 0 )
{
std::string::__init(&v21, *((void **)this + 58), *((_QWORD *)this + 57));
}
else
{
v16 = *v5;
v17 = *((_QWORD *)this + 57);
v23 = *((void **)this + 58);
v21 = v16;
v22 = v17;
}
GJAccountManager::getShaPassword((char *)&v21, &v24);
if ( (*((_BYTE *)this + 368) & 1) != 0 )
{
**((_BYTE **)this + 48) = 0;
*((_QWORD *)this + 47) = 0;
}
else
{
*((_BYTE *)this + 369) = 0;
*((_BYTE *)this + 368) = 0;
}
std::string::reserve((__int64 *)this + 46, 0);
v18 = v24;
v19 = v25;
v20 = v21;
*((_QWORD *)this + 48) = v26;
*v8 = v18;
*((_QWORD *)this + 47) = v19;
if ( (v20 & 1) != 0 )
operator delete(v23);
}
}
return _stack_chk_guard;
}