//
// GameLevelManager::storeUserInfo from 0x84a11c to 0x84a21c (256 bytes)
//
// 2 xrefs:
// > GameLevelManager::onGetGJUserInfoCompleted @ 0x84a314
// > ??> @ 0x77878
//
// 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:55:23 +0000
//
__int64 __fastcall GameLevelManager::storeUserInfo(cocos2d::CCDictionary **this, GJUserScore *a2)
{
int v4; // w2
char v5; // w0
char *v6; // x2
int v7; // w23
int v8; // w19
__int64 v9; // x0
__int64 v10; // x1
__int64 v12; // [xsp+40h] [xbp+40h] BYREF
__int64 v13; // [xsp+48h] [xbp+48h]
void *v14; // [xsp+50h] [xbp+50h]
if ( a2 )
{
v4 = *((_DWORD *)a2 + 94);
if ( v4 > 0 )
{
cocos2d::CCDictionary::setObject(*(this + 140), a2, v4);
v12 = 0;
v5 = *((_BYTE *)a2 + 320);
v6 = (char *)a2 + 320;
v13 = 0;
v14 = nullptr;
v7 = *((_DWORD *)a2 + 93);
v8 = *((_DWORD *)a2 + 94);
if ( (v5 & 1) != 0 )
{
std::string::__init(&v12, *((void **)v6 + 2), *((_QWORD *)v6 + 1));
}
else
{
v9 = *(_QWORD *)v6;
v10 = *((_QWORD *)v6 + 1);
v14 = *((void **)v6 + 2);
v12 = v9;
v13 = v10;
}
GameLevelManager::storeUserName(this, v7, v8, (char *)&v12);
if ( (v12 & 1) != 0 )
operator delete(v14);
}
}
return _stack_chk_guard;
}