{"type": "func", "start": 4295618168, "end": 4295618372, "name": "GameLevelManager::updateSavedLevelList", "pseudocode": "// \n// GameLevelManager::updateSavedLevelList from 0x10009ee78 to 0x10009ef44 (204 bytes)\n// \n// 2 xrefs:\n// > GameLevelManager::onGetLevelListsCompleted @ 0x1000914a4\n// > LevelListCell::onClick @ 0x100112ed8\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::updateSavedLevelList(GameLevelManager *a1, GJLevelList *a2)\n{\n  GameLevelManager *v3; // x0\n  GJLevelList *SavedLevelList; // x0\n  GJLevelList *v5; // x19\n  void *__p[2]; // [xsp+0h] [xbp-30h] BYREF\n  char *longStorage; // [xsp+10h] [xbp-20h]\n\n  v3 = GameLevelManager::sharedState();\n  SavedLevelList = GameLevelManager::getSavedLevelList(v3, a2->m_listID);\n  if ( SavedLevelList )\n  {\n    v5 = SavedLevelList;\n    *(_OWORD *)&SavedLevelList->m_listVersion = *(_OWORD *)&a2->m_listVersion;\n    SavedLevelList->m_accountID = a2->m_accountID;\n    SavedLevelList->m_featured = a2->m_featured;\n    std::string::operator=((std::string *)&SavedLevelList->m_creatorName, (const std::string *)&a2->m_creatorName);\n    std::string::operator=((std::string *)&v5->m_listName, (const std::string *)&a2->m_listName);\n    std::string::operator=((std::string *)&v5->m_listDesc, (const std::string *)&a2->m_listDesc);\n    *(_QWORD *)&v5->m_uploadDate = *(_QWORD *)&a2->m_uploadDate;\n    if ( a2->m_levelsString.m_data.m_short.shortStorage.__elems_[22] < 0 )\n    {\n      sub_1000097D0(__p, (void *)a2->m_levelsString.m_data.m_long.capacitym1, a2->m_levelsString.m_data.m_long.size);\n    }\n    else\n    {\n      *(_OWORD *)__p = *(_OWORD *)&a2->m_levelsString.m_data.m_short.sizex2;\n      longStorage = a2->m_levelsString.m_data.m_long.longStorage;\n    }\n    GJLevelList::parseListLevels(v5, __p);\n    if ( SHIBYTE(longStorage) < 0 )\n      operator delete(__p[0]);\n  }\n}", "assembly": "; \n; GameLevelManager::updateSavedLevelList from 0x10009ee78 to 0x10009ef44 (204 bytes)\n; \n; 2 xrefs:\n; > GameLevelManager::onGetLevelListsCompleted @ 0x1000914a4\n; > LevelListCell::onClick @ 0x100112ed8\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, #0x40                                          ; +0x0, 0x10009ee78\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x10009ee7c\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x10009ee80\nADD             X29, SP, #0x30                                         ; +0xc, 0x10009ee84\nMOV             X20, X1                                                ; +0x10, 0x10009ee88\nBL              GameLevelManager__sharedState                          ; +0x14, 0x10009ee8c\nLDR             W1, [X20,#0x158]                                       ; +0x18, 0x10009ee90\nBL              GameLevelManager__getSavedLevelList                    ; +0x1c, 0x10009ee94\nCBZ             X0, loc_10009EF34                                      ; +0x20, 0x10009ee98\nMOV             X19, X0                                                ; +0x24, 0x10009ee9c\nADD             X8, X20, #0x15C                                        ; +0x28, 0x10009eea0\nADD             X9, X0, #0x15C                                         ; +0x2c, 0x10009eea4\nLDR             Q0, [X8]                                               ; +0x30, 0x10009eea8\nSTR             Q0, [X9]                                               ; +0x34, 0x10009eeac\nLDR             W8, [X20,#0x16C]                                       ; +0x38, 0x10009eeb0\nSTR             W8, [X0,#0x16C]                                        ; +0x3c, 0x10009eeb4\nLDRB            W8, [X20,#0x18D]                                       ; +0x40, 0x10009eeb8\nSTRB            W8, [X0,#0x18D]                                        ; +0x44, 0x10009eebc\nADD             X0, X0, #0x190; this                                   ; +0x48, 0x10009eec0\nADD             X1, X20, #0x190; __str                                 ; +0x4c, 0x10009eec4\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x50, 0x10009eec8\nADD             X0, X19, #0x1A8; this                                  ; +0x54, 0x10009eecc\nADD             X1, X20, #0x1A8; __str                                 ; +0x58, 0x10009eed0\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x5c, 0x10009eed4\nADD             X0, X19, #0x1F0; this                                  ; +0x60, 0x10009eed8\nADD             X1, X20, #0x1F0; __str                                 ; +0x64, 0x10009eedc\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x68, 0x10009eee0\nLDR             D0, [X20,#0x208]                                       ; +0x6c, 0x10009eee4\nSTR             D0, [X19,#0x208]                                       ; +0x70, 0x10009eee8\nLDRSB           W8, [X20,#0x1EF]                                       ; +0x74, 0x10009eeec\nTBNZ            W8, #0x1F, loc_10009EF0C                               ; +0x78, 0x10009eef0\nADD             X8, X20, #0x1D8                                        ; +0x7c, 0x10009eef4\nLDR             Q0, [X8]                                               ; +0x80, 0x10009eef8\nSTR             Q0, [SP,#0x30+__p]                                     ; +0x84, 0x10009eefc\nLDR             X8, [X8,#0x10]                                         ; +0x88, 0x10009ef00\nSTR             X8, [SP,#0x30+var_20]                                  ; +0x8c, 0x10009ef04\nB               loc_10009EF18                                          ; +0x90, 0x10009ef08\nLDP             X1, X2, [X20,#0x1D8]; __src                            ; +0x94, 0x10009ef0c\nMOV             X0, SP; __dst                                          ; +0x98, 0x10009ef10\nBL              sub_1000097D0                                          ; +0x9c, 0x10009ef14\nMOV             X1, SP                                                 ; +0xa0, 0x10009ef18\nMOV             X0, X19                                                ; +0xa4, 0x10009ef1c\nBL              GJLevelList__parseListLevels                           ; +0xa8, 0x10009ef20\nLDRSB           W8, [SP,#0x30+var_20+7]                                ; +0xac, 0x10009ef24\nTBZ             W8, #0x1F, loc_10009EF34                               ; +0xb0, 0x10009ef28\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0xb4, 0x10009ef2c\nBL              __ZdlPv; operator delete(void *)                       ; +0xb8, 0x10009ef30\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xbc, 0x10009ef34\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xc0, 0x10009ef38\nADD             SP, SP, #0x40 ; '@'                                    ; +0xc4, 0x10009ef3c\nRET                                                                    ; +0xc8, 0x10009ef40", "xrefs": ["GameLevelManager::onGetLevelListsCompleted @ 0x1000914a4", "LevelListCell::onClick @ 0x100112ed8"], "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"}