//
// GJAccountManager::dataLoaded from 0x1000a2c10 to 0x1000a2dac (412 bytes)
//
// 1 xrefs:
// > GameManager::dataLoaded @ 0x100373f0e
//
// This function is hookable on this platform (idp: pc, 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:20:14 +0000
//
void __fastcall GJAccountManager::dataLoaded(__int64 a1, __int64 a2)
{
unsigned __int8 *v2; // r15
unsigned __int8 *v3; // r14
unsigned int v4; // eax
unsigned int v5; // ecx
__int128 v6; // [rsp+0h] [rbp-50h] BYREF
void *__p; // [rsp+10h] [rbp-40h]
__int128 v8; // [rsp+20h] [rbp-30h] BYREF
__int64 v9; // [rsp+30h] [rbp-20h]
DS_Dictionary::getStringForKey(&v8, a2, "GJA_001");
if ( (*(_BYTE *)(a1 + 328) & 1) != 0 )
operator delete(*(void **)(a1 + 344));
*(_QWORD *)(a1 + 344) = v9;
*(_OWORD *)(a1 + 328) = v8;
*(_DWORD *)(a1 + 352) = DS_Dictionary::getIntegerForKey(a2, "GJA_003");
DS_Dictionary::getStringForKey(&v8, a2, "GJA_002");
v2 = (unsigned __int8 *)(a1 + 448);
if ( (*(_BYTE *)(a1 + 448) & 1) != 0 )
operator delete(*(void **)(a1 + 464));
*(_QWORD *)(a1 + 464) = v9;
*(_OWORD *)v2 = v8;
DS_Dictionary::getStringForKey(&v8, a2, "GJA_005");
v3 = (unsigned __int8 *)(a1 + 368);
if ( (*(_BYTE *)(a1 + 368) & 1) != 0 )
operator delete(*(void **)(a1 + 384));
*(_QWORD *)(a1 + 384) = v9;
*(_OWORD *)v3 = v8;
v4 = *v2;
if ( (v4 & 1) != 0 )
{
if ( !*(_QWORD *)(a1 + 456) )
return;
}
else if ( !(v4 >> 1) )
{
return;
}
v5 = *v3;
if ( (v5 & 1) != 0 )
{
if ( *(_QWORD *)(a1 + 376) )
return;
}
else if ( v5 >> 1 )
{
return;
}
if ( (v4 & 1) != 0 )
{
sub_10001AD30(&v6, *(const void **)(a1 + 464), *(_QWORD *)(a1 + 456));
}
else
{
__p = *(void **)(a1 + 464);
v6 = *(_OWORD *)v2;
}
GJAccountManager::getShaPassword(&v8, &v6);
if ( (*v3 & 1) != 0 )
operator delete(*(void **)(a1 + 384));
*(_QWORD *)(a1 + 384) = v9;
*(_OWORD *)v3 = v8;
if ( (v6 & 1) != 0 )
operator delete(__p);
}