{"type": "func", "start": 4300482816, "end": 4300483509, "name": "GameLevelManager::updateSavedLevelList", "pseudocode": "// \n// GameLevelManager::updateSavedLevelList from 0x100542900 to 0x100542bb5 (693 bytes)\n// \n// 2 xrefs:\n// > LevelListCell::onClick @ 0x100259518\n// > GameLevelManager::onGetLevelListsCompleted @ 0x10052a958\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  GJLevelList *SavedLevelList; // rax\n  char *v3; // r14\n  GJLevelList *v4; // r14\n  __int128 v5; // xmm0\n  __int128 v6; // [rsp+0h] [rbp-30h] BYREF\n  void *__p; // [rsp+10h] [rbp-20h]\n\n  if ( qword_1009A28E0 )\n  {\n    SavedLevelList = GameLevelManager::getSavedLevelList((GameLevelManager *)qword_1009A28E0, a2->m_listID);\n    if ( !SavedLevelList )\n      return;\n  }\n  else\n  {\n    v3 = (char *)operator new(0x3C8u);\n    cocos2d::CCNode::CCNode((__int64)v3);\n    *(_QWORD *)v3 = off_100960890;\n    *(_OWORD *)(v3 + 328) = 0;\n    *((_QWORD *)v3 + 40) = v3 + 328;\n    *((_QWORD *)v3 + 62) = 0;\n    *((_OWORD *)v3 + 32) = 0;\n    *(_OWORD *)(v3 + 344) = 0;\n    *(_OWORD *)(v3 + 360) = 0;\n    *(_OWORD *)(v3 + 376) = 0;\n    *(_OWORD *)(v3 + 392) = 0;\n    *(_OWORD *)(v3 + 408) = 0;\n    *(_OWORD *)(v3 + 424) = 0;\n    *(_OWORD *)(v3 + 440) = 0;\n    *(_OWORD *)(v3 + 456) = 0;\n    *(_OWORD *)(v3 + 472) = 0;\n    *((_DWORD *)v3 + 122) = 0;\n    *((_QWORD *)v3 + 63) = v3 + 512;\n    *((_OWORD *)v3 + 33) = 0;\n    *((_OWORD *)v3 + 34) = 0;\n    *((_OWORD *)v3 + 35) = 0;\n    *((_OWORD *)v3 + 36) = 0;\n    *(_OWORD *)(v3 + 696) = 0;\n    *(_OWORD *)(v3 + 680) = 0;\n    *(_OWORD *)(v3 + 664) = 0;\n    *(_OWORD *)(v3 + 648) = 0;\n    *(_OWORD *)(v3 + 632) = 0;\n    *(_OWORD *)(v3 + 616) = 0;\n    *(_OWORD *)(v3 + 600) = 0;\n    v3[712] = 0;\n    *((_OWORD *)v3 + 48) = 0;\n    *((_OWORD *)v3 + 47) = 0;\n    *((_OWORD *)v3 + 46) = 0;\n    *((_OWORD *)v3 + 45) = 0;\n    *(_OWORD *)(v3 + 945) = 0;\n    *(_OWORD *)(v3 + 936) = 0;\n    *(_OWORD *)(v3 + 920) = 0;\n    *(_OWORD *)(v3 + 904) = 0;\n    *(_OWORD *)(v3 + 888) = 0;\n    *(_OWORD *)(v3 + 872) = 0;\n    *(_OWORD *)(v3 + 856) = 0;\n    *(_OWORD *)(v3 + 840) = 0;\n    *(_OWORD *)(v3 + 824) = 0;\n    *(_OWORD *)(v3 + 808) = 0;\n    *(_OWORD *)(v3 + 792) = 0;\n    qword_1009A28E0 = (__int64)v3;\n    GameLevelManager::init((GameLevelManager *)v3);\n    SavedLevelList = GameLevelManager::getSavedLevelList((GameLevelManager *)qword_1009A28E0, a2->m_listID);\n    if ( !SavedLevelList )\n      return;\n  }\n  v4 = SavedLevelList;\n  v5 = *(_OWORD *)&a2->m_listVersion;\n  *(_OWORD *)&SavedLevelList->m_listVersion = v5;\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 *)&v4->m_listName, (const std::string *)&a2->m_listName);\n  std::string::operator=((std::string *)&v4->m_listDesc, (const std::string *)&a2->m_listDesc);\n  *(_QWORD *)&v4->m_uploadDate = *(_QWORD *)&a2->m_uploadDate;\n  if ( (a2->m_levelsString.m_data.m_short.sizex2 & 1) != 0 )\n  {\n    sub_100006B70(\n      &v6,\n      a2->m_levelsString.m_data.m_long.longStorage,\n      a2->m_levelsString.m_data.m_long.size,\n      *(double *)&v5);\n  }\n  else\n  {\n    __p = a2->m_levelsString.m_data.m_long.longStorage;\n    v6 = *(_OWORD *)&a2->m_levelsString.m_data.m_short.sizex2;\n  }\n  GJLevelList::parseListLevels(v4, &v6);\n  if ( (v6 & 1) != 0 )\n    operator delete(__p);\n}", "assembly": "; \n; GameLevelManager::updateSavedLevelList from 0x100542900 to 0x100542bb5 (693 bytes)\n; \n; 2 xrefs:\n; > LevelListCell::onClick @ 0x100259518\n; > GameLevelManager::onGetLevelListsCompleted @ 0x10052a958\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\npush    rbp                                                            ; +0x0, 0x100542900\nmov     rbp, rsp                                                       ; +0x1, 0x100542901\npush    r14                                                            ; +0x4, 0x100542904\npush    rbx                                                            ; +0x6, 0x100542906\nsub     rsp, 20h                                                       ; +0x7, 0x100542907\nmov     rbx, rsi                                                       ; +0xb, 0x10054290b\nmov     rdi, cs:qword_1009A28E0                                        ; +0xe, 0x10054290e\ntest    rdi, rdi                                                       ; +0x15, 0x100542915\njz      short loc_100542933                                            ; +0x18, 0x100542918\nmov     esi, [rbx+158h]                                                ; +0x1a, 0x10054291a\ncall    GameLevelManager__getSavedLevelList                            ; +0x20, 0x100542920\ntest    rax, rax                                                       ; +0x25, 0x100542925\njnz     loc_100542AE3                                                  ; +0x28, 0x100542928\njmp     loc_100542BAC                                                  ; +0x2e, 0x10054292e\nmov     edi, 3C8h; __sz                                                ; +0x33, 0x100542933\ncall    __Znwm; operator new(ulong)                                    ; +0x38, 0x100542938\nmov     r14, rax                                                       ; +0x3d, 0x10054293d\nmov     rdi, rax                                                       ; +0x40, 0x100542940\ncall    cocos2d__CCNode__CCNode                                        ; +0x43, 0x100542943\nlea     rax, off_100960890                                             ; +0x48, 0x100542948\nmov     [r14], rax                                                     ; +0x4f, 0x10054294f\nlea     rax, [r14+148h]                                                ; +0x52, 0x100542952\nxorps   xmm0, xmm0                                                     ; +0x59, 0x100542959\nmovups  xmmword ptr [r14+148h], xmm0                                   ; +0x5c, 0x10054295c\nmov     [r14+140h], rax                                                ; +0x64, 0x100542964\nmov     qword ptr [r14+1F0h], 0                                        ; +0x6b, 0x10054296b\nmov     rax, r14                                                       ; +0x76, 0x100542976\nadd     rax, 200h                                                      ; +0x79, 0x100542979\nmovups  xmmword ptr [r14+200h], xmm0                                   ; +0x7f, 0x10054297f\nmovups  xmmword ptr [r14+158h], xmm0                                   ; +0x87, 0x100542987\nmovups  xmmword ptr [r14+168h], xmm0                                   ; +0x8f, 0x10054298f\nmovups  xmmword ptr [r14+178h], xmm0                                   ; +0x97, 0x100542997\nmovups  xmmword ptr [r14+188h], xmm0                                   ; +0x9f, 0x10054299f\nmovups  xmmword ptr [r14+198h], xmm0                                   ; +0xa7, 0x1005429a7\nmovups  xmmword ptr [r14+1A8h], xmm0                                   ; +0xaf, 0x1005429af\nmovups  xmmword ptr [r14+1B8h], xmm0                                   ; +0xb7, 0x1005429b7\nmovups  xmmword ptr [r14+1C8h], xmm0                                   ; +0xbf, 0x1005429bf\nmovups  xmmword ptr [r14+1D8h], xmm0                                   ; +0xc7, 0x1005429c7\nmov     dword ptr [r14+1E8h], 0                                        ; +0xcf, 0x1005429cf\nmov     [r14+1F8h], rax                                                ; +0xda, 0x1005429da\nmovups  xmmword ptr [r14+210h], xmm0                                   ; +0xe1, 0x1005429e1\nmovups  xmmword ptr [r14+220h], xmm0                                   ; +0xe9, 0x1005429e9\nmovups  xmmword ptr [r14+230h], xmm0                                   ; +0xf1, 0x1005429f1\nmovups  xmmword ptr [r14+240h], xmm0                                   ; +0xf9, 0x1005429f9\nmovups  xmmword ptr [r14+2B8h], xmm0                                   ; +0x101, 0x100542a01\nmovups  xmmword ptr [r14+2A8h], xmm0                                   ; +0x109, 0x100542a09\nmovups  xmmword ptr [r14+298h], xmm0                                   ; +0x111, 0x100542a11\nmovups  xmmword ptr [r14+288h], xmm0                                   ; +0x119, 0x100542a19\nmovups  xmmword ptr [r14+278h], xmm0                                   ; +0x121, 0x100542a21\nmovups  xmmword ptr [r14+268h], xmm0                                   ; +0x129, 0x100542a29\nmovups  xmmword ptr [r14+258h], xmm0                                   ; +0x131, 0x100542a31\nmov     byte ptr [r14+2C8h], 0                                         ; +0x139, 0x100542a39\nmovups  xmmword ptr [r14+300h], xmm0                                   ; +0x141, 0x100542a41\nmovups  xmmword ptr [r14+2F0h], xmm0                                   ; +0x149, 0x100542a49\nmovups  xmmword ptr [r14+2E0h], xmm0                                   ; +0x151, 0x100542a51\nmovups  xmmword ptr [r14+2D0h], xmm0                                   ; +0x159, 0x100542a59\nmovups  xmmword ptr [r14+3B1h], xmm0                                   ; +0x161, 0x100542a61\nmovups  xmmword ptr [r14+3A8h], xmm0                                   ; +0x169, 0x100542a69\nmovups  xmmword ptr [r14+398h], xmm0                                   ; +0x171, 0x100542a71\nmovups  xmmword ptr [r14+388h], xmm0                                   ; +0x179, 0x100542a79\nmovups  xmmword ptr [r14+378h], xmm0                                   ; +0x181, 0x100542a81\nmovups  xmmword ptr [r14+368h], xmm0                                   ; +0x189, 0x100542a89\nmovups  xmmword ptr [r14+358h], xmm0                                   ; +0x191, 0x100542a91\nmovups  xmmword ptr [r14+348h], xmm0                                   ; +0x199, 0x100542a99\nmovups  xmmword ptr [r14+338h], xmm0                                   ; +0x1a1, 0x100542aa1\nmovups  xmmword ptr [r14+328h], xmm0                                   ; +0x1a9, 0x100542aa9\nmovups  xmmword ptr [r14+318h], xmm0                                   ; +0x1b1, 0x100542ab1\nmov     cs:qword_1009A28E0, r14                                        ; +0x1b9, 0x100542ab9\nmov     rdi, r14                                                       ; +0x1c0, 0x100542ac0\ncall    GameLevelManager__init                                         ; +0x1c3, 0x100542ac3\nmov     rdi, cs:qword_1009A28E0                                        ; +0x1c8, 0x100542ac8\nmov     esi, [rbx+158h]                                                ; +0x1cf, 0x100542acf\ncall    GameLevelManager__getSavedLevelList                            ; +0x1d5, 0x100542ad5\ntest    rax, rax                                                       ; +0x1da, 0x100542ada\njz      loc_100542BAC                                                  ; +0x1dd, 0x100542add\nmov     r14, rax                                                       ; +0x1e3, 0x100542ae3\nmovups  xmm0, xmmword ptr [rbx+15Ch]                                   ; +0x1e6, 0x100542ae6\nmovups  xmmword ptr [rax+15Ch], xmm0                                   ; +0x1ed, 0x100542aed\nmov     eax, [rbx+16Ch]                                                ; +0x1f4, 0x100542af4\nmov     [r14+16Ch], eax                                                ; +0x1fa, 0x100542afa\nmovzx   eax, byte ptr [rbx+18Dh]                                       ; +0x201, 0x100542b01\nmov     [r14+18Dh], al                                                 ; +0x208, 0x100542b08\nlea     rsi, [rbx+190h]; __str                                         ; +0x20f, 0x100542b0f\nlea     rdi, [r14+190h]; this                                          ; +0x216, 0x100542b16\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x21d, 0x100542b1d\nlea     rsi, [rbx+1A8h]; __str                                         ; +0x222, 0x100542b22\nlea     rdi, [r14+1A8h]; this                                          ; +0x229, 0x100542b29\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x230, 0x100542b30\nlea     rsi, [rbx+1F0h]; __str                                         ; +0x235, 0x100542b35\nmov     rdi, r14                                                       ; +0x23c, 0x100542b3c\nadd     rdi, 1F0h; this                                                ; +0x23f, 0x100542b3f\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x246, 0x100542b46\nmov     rax, [rbx+208h]                                                ; +0x24b, 0x100542b4b\nmov     [r14+208h], rax                                                ; +0x252, 0x100542b52\ntest    byte ptr [rbx+1D8h], 1                                         ; +0x259, 0x100542b59\njnz     short loc_100542B7A                                            ; +0x260, 0x100542b60\nadd     rbx, 1D8h                                                      ; +0x262, 0x100542b62\nmov     rax, [rbx+10h]                                                 ; +0x269, 0x100542b69\nmov     [rbp+__p], rax                                                 ; +0x26d, 0x100542b6d\nmovups  xmm0, xmmword ptr [rbx]                                        ; +0x271, 0x100542b71\nmovaps  [rbp+var_30], xmm0                                             ; +0x274, 0x100542b74\njmp     short loc_100542B91                                            ; +0x278, 0x100542b78\nmov     rdx, [rbx+1E0h]                                                ; +0x27a, 0x100542b7a\nmov     rsi, [rbx+1E8h]                                                ; +0x281, 0x100542b81\nlea     rdi, [rbp+var_30]                                              ; +0x288, 0x100542b88\ncall    sub_100006B70                                                  ; +0x28c, 0x100542b8c\nlea     rsi, [rbp+var_30]                                              ; +0x291, 0x100542b91\nmov     rdi, r14                                                       ; +0x295, 0x100542b95\ncall    GJLevelList__parseListLevels                                   ; +0x298, 0x100542b98\ntest    byte ptr [rbp+var_30], 1                                       ; +0x29d, 0x100542b9d\njz      short loc_100542BAC                                            ; +0x2a1, 0x100542ba1\nmov     rdi, [rbp+__p]; __p                                            ; +0x2a3, 0x100542ba3\ncall    __ZdlPv; operator delete(void *)                               ; +0x2a7, 0x100542ba7\nadd     rsp, 20h                                                       ; +0x2ac, 0x100542bac\npop     rbx                                                            ; +0x2b0, 0x100542bb0\npop     r14                                                            ; +0x2b1, 0x100542bb1\npop     rbp                                                            ; +0x2b3, 0x100542bb3\nretn                                                                   ; +0x2b4, 0x100542bb4", "xrefs": ["LevelListCell::onClick @ 0x100259518", "GameLevelManager::onGetLevelListsCompleted @ 0x10052a958"], "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"}