{"type": "func", "start": 4300583984, "end": 4300584240, "name": "GameLevelManager::updateSavedLevelList", "pseudocode": "// \n// GameLevelManager::updateSavedLevelList from 0x10055b430 to 0x10055b530 (256 bytes)\n// \n// 2 xrefs:\n// > LevelListCell::onClick @ 0x1002432ae\n// > GameLevelManager::onGetLevelListsCompleted @ 0x10052f7a8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:32:07 +0000\n// \n\nvoid __fastcall GameLevelManager::updateSavedLevelList(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rax\n  __int64 SavedLevelList; // rax\n  std::string *v4; // rbx\n  __int128 v5; // [rsp+0h] [rbp-30h] BYREF\n  void *__p; // [rsp+10h] [rbp-20h]\n\n  v2 = GameLevelManager::sharedState();\n  SavedLevelList = GameLevelManager::getSavedLevelList(v2, *(unsigned int *)(a2 + 344));\n  if ( SavedLevelList )\n  {\n    v4 = (std::string *)SavedLevelList;\n    *(_OWORD *)(SavedLevelList + 348) = *(_OWORD *)(a2 + 348);\n    *(_DWORD *)(SavedLevelList + 364) = *(_DWORD *)(a2 + 364);\n    *(_BYTE *)(SavedLevelList + 397) = *(_BYTE *)(a2 + 397);\n    std::string::operator=((std::string *)(SavedLevelList + 408), (const std::string *)(a2 + 408));\n    std::string::operator=(v4 + 18, (const std::string *)(a2 + 432));\n    std::string::operator=(v4 + 21, (const std::string *)(a2 + 504));\n    v4[22].__r_.__value_.__r.__words[0] = *(_QWORD *)(a2 + 528);\n    if ( (*(_BYTE *)(a2 + 480) & 1) != 0 )\n    {\n      sub_10001AD30(&v5, *(const void **)(a2 + 496), *(_QWORD *)(a2 + 488));\n    }\n    else\n    {\n      __p = *(void **)(a2 + 496);\n      v5 = *(_OWORD *)(a2 + 480);\n    }\n    GJLevelList::parseListLevels(v4, &v5);\n    if ( (v5 & 1) != 0 )\n      operator delete(__p);\n  }\n}", "assembly": "; \n; GameLevelManager::updateSavedLevelList from 0x10055b430 to 0x10055b530 (256 bytes)\n; \n; 2 xrefs:\n; > LevelListCell::onClick @ 0x1002432ae\n; > GameLevelManager::onGetLevelListsCompleted @ 0x10052f7a8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:32:07 +0000\n; \npush    rbp                                                            ; +0x0, 0x10055b430\nmov     rbp, rsp                                                       ; +0x1, 0x10055b431\npush    r14                                                            ; +0x4, 0x10055b434\npush    rbx                                                            ; +0x6, 0x10055b436\nsub     rsp, 20h                                                       ; +0x7, 0x10055b437\nmov     r14, rsi                                                       ; +0xb, 0x10055b43b\ncall    GameLevelManager__sharedState                                  ; +0xe, 0x10055b43e\nmov     esi, [r14+158h]                                                ; +0x13, 0x10055b443\nmov     rdi, rax                                                       ; +0x1a, 0x10055b44a\ncall    GameLevelManager__getSavedLevelList                            ; +0x1d, 0x10055b44d\ntest    rax, rax                                                       ; +0x22, 0x10055b452\njz      loc_10055B527                                                  ; +0x25, 0x10055b455\nmov     rbx, rax                                                       ; +0x2b, 0x10055b45b\nmovups  xmm0, xmmword ptr [r14+15Ch]                                   ; +0x2e, 0x10055b45e\nmovups  xmmword ptr [rax+15Ch], xmm0                                   ; +0x36, 0x10055b466\nmov     eax, [r14+16Ch]                                                ; +0x3d, 0x10055b46d\nmov     [rbx+16Ch], eax                                                ; +0x44, 0x10055b474\nmovzx   eax, byte ptr [r14+18Dh]                                       ; +0x4a, 0x10055b47a\nmov     [rbx+18Dh], al                                                 ; +0x52, 0x10055b482\nlea     rsi, [r14+198h]; __str                                         ; +0x58, 0x10055b488\nlea     rdi, [rbx+198h]; this                                          ; +0x5f, 0x10055b48f\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x66, 0x10055b496\nlea     rsi, [r14+1B0h]; __str                                         ; +0x6b, 0x10055b49b\nlea     rdi, [rbx+1B0h]; this                                          ; +0x72, 0x10055b4a2\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x79, 0x10055b4a9\nlea     rsi, [r14+1F8h]; __str                                         ; +0x7e, 0x10055b4ae\nmov     rdi, rbx                                                       ; +0x85, 0x10055b4b5\nadd     rdi, 1F8h; this                                                ; +0x88, 0x10055b4b8\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x8f, 0x10055b4bf\nmov     rax, [r14+210h]                                                ; +0x94, 0x10055b4c4\nmov     [rbx+210h], rax                                                ; +0x9b, 0x10055b4cb\ntest    byte ptr [r14+1E0h], 1                                         ; +0xa2, 0x10055b4d2\njnz     short loc_10055B4F5                                            ; +0xaa, 0x10055b4da\nadd     r14, 1E0h                                                      ; +0xac, 0x10055b4dc\nmov     rax, [r14+10h]                                                 ; +0xb3, 0x10055b4e3\nmov     [rbp+__p], rax                                                 ; +0xb7, 0x10055b4e7\nmovups  xmm0, xmmword ptr [r14]                                        ; +0xbb, 0x10055b4eb\nmovaps  [rbp+var_30], xmm0                                             ; +0xbf, 0x10055b4ef\njmp     short loc_10055B50C                                            ; +0xc3, 0x10055b4f3\nmov     rdx, [r14+1E8h]                                                ; +0xc5, 0x10055b4f5\nmov     rsi, [r14+1F0h]                                                ; +0xcc, 0x10055b4fc\nlea     rdi, [rbp+var_30]                                              ; +0xd3, 0x10055b503\ncall    sub_10001AD30                                                  ; +0xd7, 0x10055b507\nlea     rsi, [rbp+var_30]                                              ; +0xdc, 0x10055b50c\nmov     rdi, rbx                                                       ; +0xe0, 0x10055b510\ncall    GJLevelList__parseListLevels                                   ; +0xe3, 0x10055b513\ntest    byte ptr [rbp+var_30], 1                                       ; +0xe8, 0x10055b518\njz      short loc_10055B527                                            ; +0xec, 0x10055b51c\nmov     rdi, [rbp+__p]; __p                                            ; +0xee, 0x10055b51e\ncall    __ZdlPv; operator delete(void *)                               ; +0xf2, 0x10055b522\nadd     rsp, 20h                                                       ; +0xf7, 0x10055b527\npop     rbx                                                            ; +0xfb, 0x10055b52b\npop     r14                                                            ; +0xfc, 0x10055b52c\npop     rbp                                                            ; +0xfe, 0x10055b52e\nretn                                                                   ; +0xff, 0x10055b52f", "xrefs": ["LevelListCell::onClick @ 0x1002432ae", "GameLevelManager::onGetLevelListsCompleted @ 0x10052f7a8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}