{"type": "func", "start": 4295598840, "end": 4295599020, "name": "GameLevelManager::updateUsernames", "pseudocode": "// \n// GameLevelManager::updateUsernames from 0x10009a2f8 to 0x10009a3ac (180 bytes)\n// \n// 1 xrefs:\n// > GameLevelManager::dataLoaded @ 0x10009bbe0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GameLevelManager::updateUsernames(GameLevelManager *a1)\n{\n  cocos2d::CCDictionary *m_onlineLevels; // x8\n  cocos2d::CCDictElement *m_pElements; // x20\n  cocos2d::CCObject *m_pObject; // x8\n  unsigned int m_uID; // w21\n  int m_nLuaID; // w23\n  unsigned int m_uReference; // w22\n  unsigned int m_uAutoReleaseCount; // w24\n  void *__p[2]; // [xsp+0h] [xbp-50h] BYREF\n  __int64 v10; // [xsp+10h] [xbp-40h]\n\n  m_onlineLevels = a1->m_onlineLevels;\n  if ( m_onlineLevels )\n  {\n    m_pElements = m_onlineLevels->m_pElements;\n    while ( m_pElements )\n    {\n      while ( 1 )\n      {\n        m_pObject = m_pElements->m_pObject;\n        m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;\n        m_uID = m_pObject[10].m_uID;\n        m_nLuaID = m_pObject[10].m_nLuaID;\n        m_uReference = m_pObject[10].m_uReference;\n        m_uAutoReleaseCount = m_pObject[10].m_uAutoReleaseCount;\n        if ( SHIBYTE(m_pObject[7].m_nZOrder) < 0 )\n        {\n          sub_1000097D0(__p, *(void **)&m_pObject[7].m_uAutoReleaseCount, *(_QWORD *)&m_pObject[7].m_uIndexInArray);\n        }\n        else\n        {\n          *(_OWORD *)__p = *(_OWORD *)&m_pObject[7].m_uAutoReleaseCount;\n          v10 = *(_QWORD *)&m_pObject[7].m_unknown2;\n        }\n        GameLevelManager::storeUserName(a1, m_uID - m_nLuaID, m_uReference - m_uAutoReleaseCount, (char *)__p);\n        if ( SHIBYTE(v10) < 0 )\n          break;\n        if ( !m_pElements )\n          return;\n      }\n      operator delete(__p[0]);\n    }\n  }\n}", "assembly": "; \n; GameLevelManager::updateUsernames from 0x10009a2f8 to 0x10009a3ac (180 bytes)\n; \n; 1 xrefs:\n; > GameLevelManager::dataLoaded @ 0x10009bbe0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x60                                          ; +0x0, 0x10009a2f8\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x4, 0x10009a2fc\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x10009a300\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x10009a304\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x10009a308\nADD             X29, SP, #0x50                                         ; +0x14, 0x10009a30c\nLDR             X8, [X0,#0x168]                                        ; +0x18, 0x10009a310\nCBZ             X8, loc_10009A394                                      ; +0x1c, 0x10009a314\nLDR             X20, [X8,#0x38]                                        ; +0x20, 0x10009a318\nCBZ             X20, loc_10009A394                                     ; +0x24, 0x10009a31c\nMOV             X19, X0                                                ; +0x28, 0x10009a320\nLDR             X8, [X20,#0x108]                                       ; +0x2c, 0x10009a324\nLDR             X20, [X20,#0x120]                                      ; +0x30, 0x10009a328\nLDR             W21, [X8,#0x238]                                       ; +0x34, 0x10009a32c\nLDR             W23, [X8,#0x23C]                                       ; +0x38, 0x10009a330\nLDR             W22, [X8,#0x244]                                       ; +0x3c, 0x10009a334\nLDR             W24, [X8,#0x248]                                       ; +0x40, 0x10009a338\nLDRSB           W9, [X8,#0x1B7]                                        ; +0x44, 0x10009a33c\nTBNZ            W9, #0x1F, loc_10009A358                               ; +0x48, 0x10009a340\nLDR             Q0, [X8,#0x1A0]                                        ; +0x4c, 0x10009a344\nSTR             Q0, [SP,#0x50+__p]                                     ; +0x50, 0x10009a348\nLDR             X8, [X8,#0x1B0]                                        ; +0x54, 0x10009a34c\nSTR             X8, [SP,#0x50+var_40]                                  ; +0x58, 0x10009a350\nB               loc_10009A364                                          ; +0x5c, 0x10009a354\nLDP             X1, X2, [X8,#0x1A0]; __src                             ; +0x60, 0x10009a358\nMOV             X0, SP; __dst                                          ; +0x64, 0x10009a35c\nBL              sub_1000097D0                                          ; +0x68, 0x10009a360\nSUB             W1, W21, W23; int                                      ; +0x6c, 0x10009a364\nSUB             W2, W22, W24; int                                      ; +0x70, 0x10009a368\nMOV             X3, SP; __s                                            ; +0x74, 0x10009a36c\nMOV             X0, X19; int                                           ; +0x78, 0x10009a370\nBL              GameLevelManager__storeUserName                        ; +0x7c, 0x10009a374\nLDRSB           W8, [SP,#0x50+var_40+7]                                ; +0x80, 0x10009a378\nTBNZ            W8, #0x1F, loc_10009A388                               ; +0x84, 0x10009a37c\nCBNZ            X20, loc_10009A324                                     ; +0x88, 0x10009a380\nB               loc_10009A394                                          ; +0x8c, 0x10009a384\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x90, 0x10009a388\nBL              __ZdlPv; operator delete(void *)                       ; +0x94, 0x10009a38c\nCBNZ            X20, loc_10009A324                                     ; +0x98, 0x10009a390\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x9c, 0x10009a394\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xa0, 0x10009a398\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0xa4, 0x10009a39c\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0xa8, 0x10009a3a0\nADD             SP, SP, #0x60 ; '`'                                    ; +0xac, 0x10009a3a4\nRET                                                                    ; +0xb0, 0x10009a3a8", "xrefs": ["GameLevelManager::dataLoaded @ 0x10009bbe0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}