//
// GameLevelManager::updateUsernames from 0x3c0150 to 0x3c01d4 (132 bytes)
//
// 1 xrefs:
// > GameLevelManager::dataLoaded @ 0x3d8f7c
//
// 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 GameLevelManager::updateUsernames(GameLevelManager *a1)
{
cocos2d::CCDictionary *m_onlineLevels; // r3
cocos2d::CCDictElement *m_pElements; // r3
cocos2d::CCDictElement *next; // r5
const char *v5; // r9
const char *v6; // r8
cocos2d::CCDictElement *v7; // r2
GameLevelManager *v8; // [sp+0h] [bp-Ch] BYREF
v8 = a1;
m_onlineLevels = a1->m_onlineLevels;
if ( m_onlineLevels )
{
m_pElements = m_onlineLevels->m_pElements;
if ( m_pElements )
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
else
next = nullptr;
while ( m_pElements )
{
v5 = (const char *)(m_pElements->m_pObject[6].m_nTag - m_pElements->m_pObject[6].m_uReference);
v6 = (const char *)(m_pElements->m_pObject[6].m_eObjType - m_pElements->m_pObject[6].m_uIndexInArray);
sub_775C20(&v8, &m_pElements->m_pObject[5].m_uUnknown);
GameLevelManager::storeUserName(a1, v5, v6, (char **)&v8);
sub_774008(&v8);
if ( next )
v7 = (cocos2d::CCDictElement *)next->hh.next;
else
v7 = nullptr;
m_pElements = next;
next = v7;
}
}
}