//
// GJAccountSettingsLayer::updateScoreValues from 0x1002d74e8 to 0x1002d7844 (860 bytes)
//
// 1 xrefs:
// > UpdateAccountSettingsPopup::onClose @ 0x1002d80d8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJAccountSettingsLayer::updateScoreValues(GJAccountSettingsLayer *a1)
{
GameLevelManager *v2; // x0
GJUserScore *v3; // x0
GJUserScore *v4; // x19
_DWORD *v5; // x0
_DWORD *v6; // x0
_DWORD *v7; // x0
_DWORD *v8; // x0
_DWORD *v9; // x0
_DWORD *v10; // x0
_DWORD *v11; // x0
std::string __p; // [xsp+0h] [xbp-110h] BYREF
std::string v13; // [xsp+20h] [xbp-F0h] BYREF
std::string v14; // [xsp+40h] [xbp-D0h] BYREF
std::string v15; // [xsp+60h] [xbp-B0h] BYREF
std::string v16; // [xsp+80h] [xbp-90h] BYREF
std::string __dst; // [xsp+A0h] [xbp-70h] BYREF
int v18; // [xsp+BCh] [xbp-54h] BYREF
std::string __str; // [xsp+C0h] [xbp-50h] BYREF
int *v20; // [xsp+E8h] [xbp-28h] BYREF
v2 = GameLevelManager::sharedState();
v3 = GameLevelManager::userInfoForAccountID(v2, a1->m_accountID);
if ( v3 )
{
v4 = v3;
v3->m_messageState = a1->m_messageStatus;
*(_QWORD *)&v3->m_friendStatus = *(_QWORD *)&a1->m_friendStatus;
v18 = 0;
v20 = &v18;
v5 = sub_10006E5E0((__int64)&a1->m_links, &v18, (__int64)&unk_100644A1A, &v20);
if ( *((char *)v5 + 63) < 0 )
sub_1000097D0(&__str, *((void **)v5 + 5), *((_QWORD *)v5 + 6));
else
__str = *(std::string *)(v5 + 10);
std::string::operator=((std::string *)&v4->m_youtubeURL, &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
v18 = 1;
v20 = &v18;
v6 = sub_10006E5E0((__int64)&a1->m_links, &v18, (__int64)&unk_100644A1A, &v20);
if ( *((char *)v6 + 63) < 0 )
sub_1000097D0(&__dst, *((void **)v6 + 5), *((_QWORD *)v6 + 6));
else
__dst = *(std::string *)(v6 + 10);
std::string::operator=((std::string *)&v4->m_twitterURL, &__dst);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
v18 = 2;
v20 = &v18;
v7 = sub_10006E5E0((__int64)&a1->m_links, &v18, (__int64)&unk_100644A1A, &v20);
if ( *((char *)v7 + 63) < 0 )
sub_1000097D0(&v16, *((void **)v7 + 5), *((_QWORD *)v7 + 6));
else
v16 = *(std::string *)(v7 + 10);
std::string::operator=((std::string *)&v4->m_twitchURL, &v16);
if ( SHIBYTE(v16.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v16.__r_.__value_.__l.__data_);
v18 = 3;
v20 = &v18;
v8 = sub_10006E5E0((__int64)&a1->m_links, &v18, (__int64)&unk_100644A1A, &v20);
if ( *((char *)v8 + 63) < 0 )
sub_1000097D0(&v15, *((void **)v8 + 5), *((_QWORD *)v8 + 6));
else
v15 = *(std::string *)(v8 + 10);
std::string::operator=((std::string *)&v4->m_instagramURL, &v15);
if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v15.__r_.__value_.__l.__data_);
v18 = 4;
v20 = &v18;
v9 = sub_10006E5E0((__int64)&a1->m_links, &v18, (__int64)&unk_100644A1A, &v20);
if ( *((char *)v9 + 63) < 0 )
sub_1000097D0(&v14, *((void **)v9 + 5), *((_QWORD *)v9 + 6));
else
v14 = *(std::string *)(v9 + 10);
std::string::operator=((std::string *)&v4->m_tiktokURL, &v14);
if ( SHIBYTE(v14.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v14.__r_.__value_.__l.__data_);
v18 = 5;
v20 = &v18;
v10 = sub_10006E5E0((__int64)&a1->m_links, &v18, (__int64)&unk_100644A1A, &v20);
if ( *((char *)v10 + 63) < 0 )
sub_1000097D0(&v13, *((void **)v10 + 5), *((_QWORD *)v10 + 6));
else
v13 = *(std::string *)(v10 + 10);
std::string::operator=((std::string *)&v4->m_discordUsername, &v13);
if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v13.__r_.__value_.__l.__data_);
v18 = 6;
v20 = &v18;
v11 = sub_10006E5E0((__int64)&a1->m_links, &v18, (__int64)&unk_100644A1A, &v20);
if ( *((char *)v11 + 63) < 0 )
sub_1000097D0(&__p, *((void **)v11 + 5), *((_QWORD *)v11 + 6));
else
__p = *(std::string *)(v11 + 10);
std::string::operator=((std::string *)&v4->m_customString, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}
}