//
// GJAccountSettingsLayer::updateScoreValues from 0x10028d4c0 to 0x10028dc1f (1887 bytes)
//
// 3 xrefs:
// > UpdateAccountSettingsPopup::onClose @ 0x10028fc6a
// > UpdateAccountSettingsPopup::keyBackClicked @ 0x10028ff0a
// > sub_10028FF60 @ 0x10028ffad
//
// 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:27:48 +0000
//
void __fastcall GJAccountSettingsLayer::updateScoreValues(__int64 a1, double a2)
{
__int64 v2; // rax
__int64 v3; // rax
__int64 v4; // rbx
__int64 *v5; // r12
int *v6; // rax
_QWORD *v7; // r13
char *v8; // r15
char *v9; // rbx
__int64 v10; // rax
__int64 v11; // rax
_QWORD *v12; // r13
char *v13; // r15
int v14; // eax
char *v15; // rbx
__int64 v16; // rax
__int64 v17; // rax
_QWORD *v18; // r13
char *v19; // r15
int v20; // eax
char *v21; // rbx
__int64 v22; // rax
__int64 v23; // rax
_QWORD *v24; // r13
char *v25; // r15
int v26; // eax
char *v27; // rbx
__int64 v28; // rax
__int64 v29; // rax
_QWORD *v30; // r13
char *v31; // r15
int v32; // eax
char *v33; // rbx
__int64 v34; // rax
__int64 v35; // rax
_QWORD *v36; // r13
char *v37; // r15
int v38; // eax
char *v39; // rbx
__int64 v40; // rax
__int64 v41; // rax
char *v42; // r15
int v43; // eax
char *v44; // rbx
__int64 v45; // rax
std::string __str; // [rsp+0h] [rbp-110h] BYREF
std::string v47; // [rsp+20h] [rbp-F0h] BYREF
std::string v48; // [rsp+40h] [rbp-D0h] BYREF
std::string v49; // [rsp+60h] [rbp-B0h] BYREF
std::string v50; // [rsp+80h] [rbp-90h] BYREF
std::string v51; // [rsp+A0h] [rbp-70h] BYREF
std::string v52; // [rsp+C0h] [rbp-50h] BYREF
__int64 v53; // [rsp+E0h] [rbp-30h]
v2 = GameLevelManager::sharedState(a2);
v3 = GameLevelManager::userInfoForAccountID(v2, *(unsigned int *)(a1 + 660));
if ( v3 )
{
v4 = v3;
*(_OWORD *)(v3 + 436) = *(_OWORD *)(a1 + 664);
*(_DWORD *)(v3 + 452) = *(_DWORD *)(a1 + 680);
v5 = (__int64 *)(a1 + 704);
v6 = *(int **)(a1 + 704);
v7 = (_QWORD *)(a1 + 704);
v8 = (char *)(a1 + 704);
v53 = v4;
if ( v6 )
{
while ( 1 )
{
while ( 1 )
{
v8 = (char *)v6;
if ( v6[8] <= 0 )
break;
v6 = *(int **)v6;
v7 = v8;
if ( !*(_QWORD *)v8 )
goto LABEL_9;
}
if ( v6[8] >= 0 )
break;
v6 = *((int **)v6 + 1);
if ( !v6 )
{
v7 = v8 + 8;
goto LABEL_9;
}
}
}
else
{
LABEL_9:
v9 = v8;
v8 = (char *)operator new(0x40u);
*((_DWORD *)v8 + 8) = 0;
*(_OWORD *)(v8 + 40) = 0;
*((_QWORD *)v8 + 7) = 0;
*(_OWORD *)v8 = 0;
*((_QWORD *)v8 + 2) = v9;
*v7 = v8;
v10 = **(_QWORD **)(a1 + 696);
if ( v10 )
*(_QWORD *)(a1 + 696) = v10;
sub_10001B680(*(__int64 **)(a1 + 704), (__int64 *)v8);
++*(_QWORD *)(a1 + 712);
v4 = v53;
}
if ( (v8[40] & 1) != 0 )
sub_10001AD30(&__str, *((const void **)v8 + 7), *((_QWORD *)v8 + 6));
else
__str = *(std::string *)(v8 + 40);
std::string::operator=((std::string *)(v4 + 464), &__str);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
v11 = *v5;
v12 = (_QWORD *)(a1 + 704);
v13 = (char *)(a1 + 704);
LABEL_19:
if ( v11 )
{
do
{
v13 = (char *)v11;
v14 = *(_DWORD *)(v11 + 32);
if ( v14 >= 2 )
{
v11 = *(_QWORD *)v13;
v12 = v13;
goto LABEL_19;
}
if ( v14 == 1 )
goto LABEL_27;
v11 = *((_QWORD *)v13 + 1);
}
while ( v11 );
v12 = v13 + 8;
}
v15 = v13;
v13 = (char *)operator new(0x40u);
*((_DWORD *)v13 + 8) = 1;
*(_OWORD *)(v13 + 40) = 0;
*((_QWORD *)v13 + 7) = 0;
*(_OWORD *)v13 = 0;
*((_QWORD *)v13 + 2) = v15;
*v12 = v13;
v16 = **(_QWORD **)(a1 + 696);
if ( v16 )
*(_QWORD *)(a1 + 696) = v16;
sub_10001B680(*(__int64 **)(a1 + 704), (__int64 *)v13);
++*(_QWORD *)(a1 + 712);
v4 = v53;
LABEL_27:
if ( (v13[40] & 1) != 0 )
sub_10001AD30(&v47, *((const void **)v13 + 7), *((_QWORD *)v13 + 6));
else
v47 = *(std::string *)(v13 + 40);
std::string::operator=((std::string *)(v4 + 488), &v47);
if ( (*(_BYTE *)&v47.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v47.__r_.__value_.__l.__data_);
v17 = *v5;
v18 = (_QWORD *)(a1 + 704);
v19 = (char *)(a1 + 704);
LABEL_34:
if ( v17 )
{
do
{
v19 = (char *)v17;
v20 = *(_DWORD *)(v17 + 32);
if ( v20 >= 3 )
{
v17 = *(_QWORD *)v19;
v18 = v19;
goto LABEL_34;
}
if ( v20 == 2 )
goto LABEL_42;
v17 = *((_QWORD *)v19 + 1);
}
while ( v17 );
v18 = v19 + 8;
}
v21 = v19;
v19 = (char *)operator new(0x40u);
*((_DWORD *)v19 + 8) = 2;
*(_OWORD *)(v19 + 40) = 0;
*((_QWORD *)v19 + 7) = 0;
*(_OWORD *)v19 = 0;
*((_QWORD *)v19 + 2) = v21;
*v18 = v19;
v22 = **(_QWORD **)(a1 + 696);
if ( v22 )
*(_QWORD *)(a1 + 696) = v22;
sub_10001B680(*(__int64 **)(a1 + 704), (__int64 *)v19);
++*(_QWORD *)(a1 + 712);
v4 = v53;
LABEL_42:
if ( (v19[40] & 1) != 0 )
sub_10001AD30(&v48, *((const void **)v19 + 7), *((_QWORD *)v19 + 6));
else
v48 = *(std::string *)(v19 + 40);
std::string::operator=((std::string *)(v4 + 512), &v48);
if ( (*(_BYTE *)&v48.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v48.__r_.__value_.__l.__data_);
v23 = *v5;
v24 = (_QWORD *)(a1 + 704);
v25 = (char *)(a1 + 704);
LABEL_49:
if ( v23 )
{
do
{
v25 = (char *)v23;
v26 = *(_DWORD *)(v23 + 32);
if ( v26 >= 4 )
{
v23 = *(_QWORD *)v25;
v24 = v25;
goto LABEL_49;
}
if ( v26 == 3 )
goto LABEL_57;
v23 = *((_QWORD *)v25 + 1);
}
while ( v23 );
v24 = v25 + 8;
}
v27 = v25;
v25 = (char *)operator new(0x40u);
*((_DWORD *)v25 + 8) = 3;
*(_OWORD *)(v25 + 40) = 0;
*((_QWORD *)v25 + 7) = 0;
*(_OWORD *)v25 = 0;
*((_QWORD *)v25 + 2) = v27;
*v24 = v25;
v28 = **(_QWORD **)(a1 + 696);
if ( v28 )
*(_QWORD *)(a1 + 696) = v28;
sub_10001B680(*(__int64 **)(a1 + 704), (__int64 *)v25);
++*(_QWORD *)(a1 + 712);
v4 = v53;
LABEL_57:
if ( (v25[40] & 1) != 0 )
sub_10001AD30(&v49, *((const void **)v25 + 7), *((_QWORD *)v25 + 6));
else
v49 = *(std::string *)(v25 + 40);
std::string::operator=((std::string *)(v4 + 560), &v49);
if ( (*(_BYTE *)&v49.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v49.__r_.__value_.__l.__data_);
v29 = *v5;
v30 = (_QWORD *)(a1 + 704);
v31 = (char *)(a1 + 704);
LABEL_64:
if ( v29 )
{
do
{
v31 = (char *)v29;
v32 = *(_DWORD *)(v29 + 32);
if ( v32 >= 5 )
{
v29 = *(_QWORD *)v31;
v30 = v31;
goto LABEL_64;
}
if ( v32 == 4 )
goto LABEL_72;
v29 = *((_QWORD *)v31 + 1);
}
while ( v29 );
v30 = v31 + 8;
}
v33 = v31;
v31 = (char *)operator new(0x40u);
*((_DWORD *)v31 + 8) = 4;
*(_OWORD *)(v31 + 40) = 0;
*((_QWORD *)v31 + 7) = 0;
*(_OWORD *)v31 = 0;
*((_QWORD *)v31 + 2) = v33;
*v30 = v31;
v34 = **(_QWORD **)(a1 + 696);
if ( v34 )
*(_QWORD *)(a1 + 696) = v34;
sub_10001B680(*(__int64 **)(a1 + 704), (__int64 *)v31);
++*(_QWORD *)(a1 + 712);
v4 = v53;
LABEL_72:
if ( (v31[40] & 1) != 0 )
sub_10001AD30(&v50, *((const void **)v31 + 7), *((_QWORD *)v31 + 6));
else
v50 = *(std::string *)(v31 + 40);
std::string::operator=((std::string *)(v4 + 584), &v50);
if ( (*(_BYTE *)&v50.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v50.__r_.__value_.__l.__data_);
v35 = *v5;
v36 = (_QWORD *)(a1 + 704);
v37 = (char *)(a1 + 704);
LABEL_79:
if ( v35 )
{
do
{
v37 = (char *)v35;
v38 = *(_DWORD *)(v35 + 32);
if ( v38 >= 6 )
{
v35 = *(_QWORD *)v37;
v36 = v37;
goto LABEL_79;
}
if ( v38 == 5 )
goto LABEL_87;
v35 = *((_QWORD *)v37 + 1);
}
while ( v35 );
v36 = v37 + 8;
}
v39 = v37;
v37 = (char *)operator new(0x40u);
*((_DWORD *)v37 + 8) = 5;
*(_OWORD *)(v37 + 40) = 0;
*((_QWORD *)v37 + 7) = 0;
*(_OWORD *)v37 = 0;
*((_QWORD *)v37 + 2) = v39;
*v36 = v37;
v40 = **(_QWORD **)(a1 + 696);
if ( v40 )
*(_QWORD *)(a1 + 696) = v40;
sub_10001B680(*(__int64 **)(a1 + 704), (__int64 *)v37);
++*(_QWORD *)(a1 + 712);
v4 = v53;
LABEL_87:
if ( (v37[40] & 1) != 0 )
sub_10001AD30(&v51, *((const void **)v37 + 7), *((_QWORD *)v37 + 6));
else
v51 = *(std::string *)(v37 + 40);
std::string::operator=((std::string *)(v4 + 536), &v51);
if ( (*(_BYTE *)&v51.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v51.__r_.__value_.__l.__data_);
v41 = *v5;
v42 = (char *)(a1 + 704);
LABEL_94:
if ( v41 )
{
do
{
v42 = (char *)v41;
v43 = *(_DWORD *)(v41 + 32);
if ( v43 >= 7 )
{
v41 = *(_QWORD *)v42;
v5 = (__int64 *)v42;
goto LABEL_94;
}
if ( v43 == 6 )
goto LABEL_102;
v41 = *((_QWORD *)v42 + 1);
}
while ( v41 );
v5 = (__int64 *)(v42 + 8);
}
v44 = v42;
v42 = (char *)operator new(0x40u);
*((_DWORD *)v42 + 8) = 6;
*(_OWORD *)(v42 + 40) = 0;
*((_QWORD *)v42 + 7) = 0;
*(_OWORD *)v42 = 0;
*((_QWORD *)v42 + 2) = v44;
*v5 = (__int64)v42;
v45 = **(_QWORD **)(a1 + 696);
if ( v45 )
*(_QWORD *)(a1 + 696) = v45;
sub_10001B680(*(__int64 **)(a1 + 704), (__int64 *)v42);
++*(_QWORD *)(a1 + 712);
v4 = v53;
LABEL_102:
if ( (v42[40] & 1) != 0 )
sub_10001AD30(&v52, *((const void **)v42 + 7), *((_QWORD *)v42 + 6));
else
v52 = *(std::string *)(v42 + 40);
std::string::operator=((std::string *)(v4 + 608), &v52);
if ( (*(_BYTE *)&v52.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v52.__r_.__value_.__l.__data_);
}
}