//
// GameLevelManager::updateUsernames from 0x10054e4e0 to 0x10054e5ce (238 bytes)
//
// 1 xrefs:
// > GameLevelManager::dataLoaded @ 0x100550fb2
//
// 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:32:02 +0000
//
void __fastcall GameLevelManager::updateUsernames(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // r13
__int64 v3; // rax
int v4; // r15d
int v5; // r12d
std::string v6[2]; // [rsp+0h] [rbp-40h] BYREF
v1 = *(_QWORD *)(a1 + 760);
if ( v1 )
{
v2 = *(_QWORD *)(v1 + 56);
while ( v2 )
{
v3 = *(_QWORD *)(v2 + 264);
v2 = *(_QWORD *)(v2 + 288);
v4 = *(_DWORD *)(v3 + 576) - *(_DWORD *)(v3 + 580);
v5 = *(_DWORD *)(v3 + 588) - *(_DWORD *)(v3 + 592);
if ( (*(_BYTE *)(v3 + 416) & 1) != 0 )
sub_10001AD30(v6, *(const void **)(v3 + 432), *(_QWORD *)(v3 + 424));
else
v6[0] = *(std::string *)(v3 + 416);
GameLevelManager::storeUserName(a1, v4, v5, v6);
if ( (*(_BYTE *)&v6[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v6[0].__r_.__value_.__l.__data_);
}
}
}