//
// GameLevelManager::updateUsernames from 0x4d23c8 to 0x4d244e (134 bytes)
//
// 1 xrefs:
// > GameLevelManager::dataLoaded @ 0x4dd6f6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:50:48 +0000
//
int __fastcall GameLevelManager::updateUsernames(int this)
{
unsigned __int8 *v1; // r7
int v2; // r3
int v3; // r3
int v4; // r5
const char *v5; // r9
char *v6; // r8
int v7; // r2
int v8[3]; // [sp+0h] [bp-14h] BYREF
v1 = (unsigned __int8 *)this;
v2 = *(_DWORD *)(this + 544);
if ( v2 )
{
v3 = *(_DWORD *)(v2 + 52);
if ( v3 )
v4 = *(_DWORD *)(v3 + 272);
else
v4 = 0;
while ( v3 )
{
v5 = (const char *)(*(_DWORD *)(*(_DWORD *)(v3 + 260) + 404) - *(_DWORD *)(*(_DWORD *)(v3 + 260) + 408));
v6 = (char *)(*(_DWORD *)(*(_DWORD *)(v3 + 260) + 416) - *(_DWORD *)(*(_DWORD *)(v3 + 260) + 420));
std::string::basic_string(v8, *(_DWORD *)(v3 + 260) + 316);
GameLevelManager::storeUserName(v1, v5, v6, (unsigned __int8 *)v8);
this = std::string::~string((int)v8);
if ( v4 )
v7 = *(_DWORD *)(v4 + 272);
else
v7 = 0;
v3 = v4;
v4 = v7;
}
}
return this;
}