//
// GJAccountSettingsLayer::updateScoreValues from 0xa3977c to 0xa39cfc (1408 bytes)
//
// 2 xrefs:
// > UpdateAccountSettingsPopup::onClose @ 0xa39d40
// > ??> @ 0xa3858
//
// 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:59:53 +0000
//
__int64 __fastcall GJAccountSettingsLayer::updateScoreValues(GJAccountSettingsLayer *this)
{
cocos2d::CCDictionary **v2; // x0
__int64 *v3; // x0
__int64 *v4; // x20
__int64 v5; // x0
size_t v6; // x1
__int64 *v7; // x0
__int64 v8; // x0
size_t v9; // x1
__int64 *v10; // x0
__int64 v11; // x0
size_t v12; // x1
__int64 *v13; // x0
__int64 v14; // x0
size_t v15; // x1
__int64 *v16; // x0
__int64 v17; // x0
size_t v18; // x1
__int64 *v19; // x0
__int64 v20; // x0
size_t v21; // x1
__int64 *v22; // x0
__int64 v23; // x0
size_t v24; // x1
__int64 *v25; // x0
int v27; // [xsp+64h] [xbp+64h] BYREF
int *v28; // [xsp+68h] [xbp+68h] BYREF
__int64 v29; // [xsp+70h] [xbp+70h] BYREF
size_t v30; // [xsp+78h] [xbp+78h]
void *v31; // [xsp+80h] [xbp+80h]
v2 = (cocos2d::CCDictionary **)GameLevelManager::sharedState(_stack_chk_guard);
v3 = (__int64 *)GameLevelManager::userInfoForAccountID(v2, *((_DWORD *)this + 165));
v4 = v3;
if ( v3 )
{
*((_DWORD *)v3 + 109) = *((_DWORD *)this + 166);
*((_DWORD *)v3 + 110) = *((_DWORD *)this + 167);
*((_DWORD *)v3 + 111) = *((_DWORD *)this + 168);
*((_DWORD *)v3 + 112) = *((_DWORD *)this + 169);
*((_DWORD *)v3 + 113) = *((_DWORD *)this + 170);
v27 = 0;
v28 = &v27;
v5 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
&v27,
(__int64)&unk_116D8A8,
&v28);
v29 = 0;
v30 = 0;
v31 = nullptr;
if ( (*(_BYTE *)(v5 + 40) & 1) != 0 )
{
std::string::__init(&v29, *(void **)(v5 + 56), *(_QWORD *)(v5 + 48));
}
else
{
v6 = *(_QWORD *)(v5 + 48);
v29 = *(_QWORD *)(v5 + 40);
v30 = v6;
v31 = *(void **)(v5 + 56);
}
v7 = v4 + 58;
if ( v4 + 58 != &v29 )
{
if ( (v29 & 1) != 0 )
std::string::assign(v7, v31, v30);
else
std::string::assign(v7, (char *)&v29 + 1, (unsigned __int8)v29 >> 1);
}
if ( (v29 & 1) != 0 )
operator delete(v31);
v28 = &v27;
v27 = 1;
v8 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
&v27,
(__int64)&unk_116D8A8,
&v28);
v29 = 0;
v30 = 0;
v31 = nullptr;
if ( (*(_BYTE *)(v8 + 40) & 1) != 0 )
{
std::string::__init(&v29, *(void **)(v8 + 56), *(_QWORD *)(v8 + 48));
}
else
{
v9 = *(_QWORD *)(v8 + 48);
v29 = *(_QWORD *)(v8 + 40);
v30 = v9;
v31 = *(void **)(v8 + 56);
}
v10 = v4 + 61;
if ( v4 + 61 != &v29 )
{
if ( (v29 & 1) != 0 )
std::string::assign(v10, v31, v30);
else
std::string::assign(v10, (char *)&v29 + 1, (unsigned __int8)v29 >> 1);
}
if ( (v29 & 1) != 0 )
operator delete(v31);
v28 = &v27;
v27 = 2;
v11 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
&v27,
(__int64)&unk_116D8A8,
&v28);
v29 = 0;
v30 = 0;
v31 = nullptr;
if ( (*(_BYTE *)(v11 + 40) & 1) != 0 )
{
std::string::__init(&v29, *(void **)(v11 + 56), *(_QWORD *)(v11 + 48));
}
else
{
v12 = *(_QWORD *)(v11 + 48);
v29 = *(_QWORD *)(v11 + 40);
v30 = v12;
v31 = *(void **)(v11 + 56);
}
v13 = v4 + 64;
if ( v4 + 64 != &v29 )
{
if ( (v29 & 1) != 0 )
std::string::assign(v13, v31, v30);
else
std::string::assign(v13, (char *)&v29 + 1, (unsigned __int8)v29 >> 1);
}
if ( (v29 & 1) != 0 )
operator delete(v31);
v28 = &v27;
v27 = 3;
v14 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
&v27,
(__int64)&unk_116D8A8,
&v28);
v29 = 0;
v30 = 0;
v31 = nullptr;
if ( (*(_BYTE *)(v14 + 40) & 1) != 0 )
{
std::string::__init(&v29, *(void **)(v14 + 56), *(_QWORD *)(v14 + 48));
}
else
{
v15 = *(_QWORD *)(v14 + 48);
v29 = *(_QWORD *)(v14 + 40);
v30 = v15;
v31 = *(void **)(v14 + 56);
}
v16 = v4 + 70;
if ( v4 + 70 != &v29 )
{
if ( (v29 & 1) != 0 )
std::string::assign(v16, v31, v30);
else
std::string::assign(v16, (char *)&v29 + 1, (unsigned __int8)v29 >> 1);
}
if ( (v29 & 1) != 0 )
operator delete(v31);
v28 = &v27;
v27 = 4;
v17 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
&v27,
(__int64)&unk_116D8A8,
&v28);
v29 = 0;
v30 = 0;
v31 = nullptr;
if ( (*(_BYTE *)(v17 + 40) & 1) != 0 )
{
std::string::__init(&v29, *(void **)(v17 + 56), *(_QWORD *)(v17 + 48));
}
else
{
v18 = *(_QWORD *)(v17 + 48);
v29 = *(_QWORD *)(v17 + 40);
v30 = v18;
v31 = *(void **)(v17 + 56);
}
v19 = v4 + 73;
if ( v4 + 73 != &v29 )
{
if ( (v29 & 1) != 0 )
std::string::assign(v19, v31, v30);
else
std::string::assign(v19, (char *)&v29 + 1, (unsigned __int8)v29 >> 1);
}
if ( (v29 & 1) != 0 )
operator delete(v31);
v28 = &v27;
v27 = 5;
v20 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
&v27,
(__int64)&unk_116D8A8,
&v28);
v29 = 0;
v30 = 0;
v31 = nullptr;
if ( (*(_BYTE *)(v20 + 40) & 1) != 0 )
{
std::string::__init(&v29, *(void **)(v20 + 56), *(_QWORD *)(v20 + 48));
}
else
{
v21 = *(_QWORD *)(v20 + 48);
v29 = *(_QWORD *)(v20 + 40);
v30 = v21;
v31 = *(void **)(v20 + 56);
}
v22 = v4 + 67;
if ( v4 + 67 != &v29 )
{
if ( (v29 & 1) != 0 )
std::string::assign(v22, v31, v30);
else
std::string::assign(v22, (char *)&v29 + 1, (unsigned __int8)v29 >> 1);
}
if ( (v29 & 1) != 0 )
operator delete(v31);
v28 = &v27;
v27 = 6;
v23 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
(__int64 **)this + 87,
&v27,
(__int64)&unk_116D8A8,
&v28);
v29 = 0;
v30 = 0;
v31 = nullptr;
if ( (*(_BYTE *)(v23 + 40) & 1) != 0 )
{
std::string::__init(&v29, *(void **)(v23 + 56), *(_QWORD *)(v23 + 48));
}
else
{
v24 = *(_QWORD *)(v23 + 48);
v29 = *(_QWORD *)(v23 + 40);
v30 = v24;
v31 = *(void **)(v23 + 56);
}
v25 = v4 + 76;
if ( v4 + 76 != &v29 )
{
if ( (v29 & 1) != 0 )
std::string::assign(v25, v31, v30);
else
std::string::assign(v25, (char *)&v29 + 1, (unsigned __int8)v29 >> 1);
}
if ( (v29 & 1) != 0 )
operator delete(v31);
}
return _stack_chk_guard;
}