//
// GJAccountManager::dataLoaded from 0x582d84 to 0x582f30 (428 bytes)
//
// 1 xrefs:
// > GameManager::dataLoaded @ 0x41ccc2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:55 +0000
//
int __fastcall GJAccountManager::dataLoaded(GJAccountManager *this, DS_Dictionary *a2)
{
int *v3; // r8
int v5; // r0
int v6; // r1
int v7; // r2
int *v8; // r6
int v9; // r0
int v10; // r1
int v11; // r2
int v12; // r0
int v13; // r1
int v14; // r2
int result; // r0
int v16; // r3
int v17; // r3
int v18; // r3
int v20; // r0
int v21; // r1
int v22; // r2
int v23[3]; // [sp+4h] [bp-1Ch] BYREF
int v24; // [sp+10h] [bp-10h] BYREF
int v25; // [sp+14h] [bp-Ch]
int v26; // [sp+18h] [bp-8h]
v3 = (int *)((char *)this + 268);
DS_Dictionary::getStringForKey((DS_Dictionary *)&v24, (const char *)a2);
if ( (*((_BYTE *)this + 268) & 1) != 0 )
{
**((_BYTE **)this + 69) = 0;
*((_DWORD *)this + 68) = 0;
}
else
{
*((_BYTE *)this + 269) = 0;
*((_BYTE *)this + 268) = 0;
}
std::string::reserve(v3, 0);
v5 = v24;
v6 = v25;
v7 = v26;
v24 = 0;
v25 = 0;
v26 = 0;
*v3 = v5;
v3[1] = v6;
v3[2] = v7;
std::string::~string((int)&v24);
*((_DWORD *)this + 70) = DS_Dictionary::getIntegerForKey(a2, "GJA_003");
DS_Dictionary::getStringForKey((DS_Dictionary *)&v24, (const char *)a2);
if ( (*((_BYTE *)this + 336) & 1) != 0 )
{
**((_BYTE **)this + 86) = 0;
*((_DWORD *)this + 85) = 0;
}
else
{
*((_BYTE *)this + 337) = 0;
*((_BYTE *)this + 336) = 0;
}
v8 = (int *)((char *)this + 292);
std::string::reserve((int *)this + 84, 0);
v9 = v24;
v10 = v25;
v11 = v26;
v24 = 0;
v25 = 0;
v26 = 0;
*((_DWORD *)this + 84) = v9;
*((_DWORD *)this + 85) = v10;
*((_DWORD *)this + 86) = v11;
std::string::~string((int)&v24);
DS_Dictionary::getStringForKey((DS_Dictionary *)&v24, (const char *)a2);
if ( (*((_BYTE *)this + 292) & 1) != 0 )
{
**((_BYTE **)this + 75) = 0;
*((_DWORD *)this + 74) = 0;
}
else
{
*((_BYTE *)this + 293) = 0;
*((_BYTE *)this + 292) = 0;
}
std::string::reserve((int *)this + 73, 0);
v12 = v24;
v13 = v25;
v14 = v26;
v24 = 0;
v25 = 0;
v26 = 0;
*v8 = v12;
*((_DWORD *)this + 74) = v13;
*((_DWORD *)this + 75) = v14;
result = std::string::~string((int)&v24);
v16 = *((unsigned __int8 *)this + 336);
if ( (v16 & 1) != 0 )
v17 = *((_DWORD *)this + 85);
else
v17 = v16 >> 1;
if ( v17 )
{
v18 = *((unsigned __int8 *)this + 292);
if ( !((v18 & 1) != 0 ? *((_DWORD *)this + 74) : v18 >> 1) )
{
std::string::basic_string(v23, (int)this + 336);
GJAccountManager::getShaPassword(&v24, (int)v23);
if ( (*((_BYTE *)this + 292) & 1) != 0 )
{
**((_BYTE **)this + 75) = 0;
*((_DWORD *)this + 74) = 0;
}
else
{
*((_BYTE *)this + 293) = 0;
*((_BYTE *)this + 292) = 0;
}
std::string::reserve((int *)this + 73, 0);
v20 = v24;
v21 = v25;
v22 = v26;
v24 = 0;
v25 = 0;
v26 = 0;
*v8 = v20;
*((_DWORD *)this + 74) = v21;
*((_DWORD *)this + 75) = v22;
std::string::~string((int)&v24);
return std::string::~string((int)v23);
}
}
return result;
}