{"type": "func", "start": 5370995344, "end": 5370995583, "name": "GameLevelManager::saveLevelList", "pseudocode": "// \n// GameLevelManager::saveLevelList from 0x14022e290 to 0x14022e37f (239 bytes)\n// \n// 2 xrefs:\n// > LevelListLayer::onFavorite @ 0x14042f64d\n// > <???> @ 0x14091be54\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 11:28:29 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GameLevelManager::saveLevelList(__int64 a1, __int64 a2)\n{\n  cocos2d::CCString *v4; // rax\n  const char *CString; // rax\n  size_t v6; // r8\n  void *v7; // rcx\n  void *Block[2]; // [rsp+30h] [rbp-38h] BYREF\n  __int128 v9; // [rsp+40h] [rbp-28h]\n\n  v4 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, *(unsigned int *)(a2 + 344));\n  CString = cocos2d::CCString::getCString(v4);\n  *(_OWORD *)Block = 0;\n  v9 = 0;\n  v6 = -1;\n  do\n    ++v6;\n  while ( CString[v6] );\n  sub_14003D230(Block, CString, v6);\n  cocos2d::CCDictionary::setObject(*(_QWORD *)(a1 + 880), a2, Block);\n  if ( *((_QWORD *)&v9 + 1) > 0xFu )\n  {\n    v7 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v9 + 1) + 1LL) >= 0x1000 )\n    {\n      v7 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n    }\n    j_j_free(v7);\n  }\n}", "assembly": "; \n; GameLevelManager::saveLevelList from 0x14022e290 to 0x14022e37f (239 bytes)\n; \n; 2 xrefs:\n; > LevelListLayer::onFavorite @ 0x14042f64d\n; > <???> @ 0x14091be54\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 11:28:29 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14022e290\npush    rdi                                                            ; +0x5, 0x14022e295\nsub     rsp, 60h                                                       ; +0x6, 0x14022e296\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14022e29a\nxor     rax, rsp                                                       ; +0x11, 0x14022e2a1\nmov     [rsp+68h+var_18], rax                                          ; +0x14, 0x14022e2a4\nmov     rbx, rdx                                                       ; +0x19, 0x14022e2a9\nmov     rdi, rcx                                                       ; +0x1c, 0x14022e2ac\nmov     edx, [rdx+158h]                                                ; +0x1f, 0x14022e2af\nlea     rcx, word_1406ED6F8                                            ; +0x25, 0x14022e2b5\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2c, 0x14022e2bc\nmov     rcx, rax                                                       ; +0x32, 0x14022e2c2\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x35, 0x14022e2c5\nxorps   xmm0, xmm0                                                     ; +0x3b, 0x14022e2cb\nmovups  xmmword ptr [rsp+68h+Block], xmm0                              ; +0x3e, 0x14022e2ce\nxorps   xmm1, xmm1                                                     ; +0x43, 0x14022e2d3\nmovdqu  [rsp+68h+var_28], xmm1                                         ; +0x46, 0x14022e2d6\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x4c, 0x14022e2dc\ninc     r8                                                             ; +0x53, 0x14022e2e3\ncmp     byte ptr [rax+r8], 0                                           ; +0x56, 0x14022e2e6\njnz     short loc_14022E2E3                                            ; +0x5b, 0x14022e2eb\nmov     rdx, rax                                                       ; +0x5d, 0x14022e2ed\nlea     rcx, [rsp+68h+Block]                                           ; +0x60, 0x14022e2f0\ncall    sub_14003D230                                                  ; +0x65, 0x14022e2f5\nnop                                                                    ; +0x6a, 0x14022e2fa\nlea     r8, [rsp+68h+Block]                                            ; +0x6b, 0x14022e2fb\nmov     rdx, rbx                                                       ; +0x70, 0x14022e300\nmov     rcx, [rdi+370h]                                                ; +0x73, 0x14022e303\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x7a, 0x14022e30a\nnop                                                                    ; +0x80, 0x14022e310\nmov     rdx, qword ptr [rsp+68h+var_28+8]                              ; +0x81, 0x14022e311\ncmp     rdx, 0Fh                                                       ; +0x86, 0x14022e316\njbe     short loc_14022E364                                            ; +0x8a, 0x14022e31a\ninc     rdx                                                            ; +0x8c, 0x14022e31c\nmov     rcx, [rsp+68h+Block]; Block                                    ; +0x8f, 0x14022e31f\nmov     rax, rcx                                                       ; +0x94, 0x14022e324\ncmp     rdx, 1000h                                                     ; +0x97, 0x14022e327\njb      short loc_14022E35F                                            ; +0x9e, 0x14022e32e\nadd     rdx, 27h ; '''                                                 ; +0xa0, 0x14022e330\nmov     rcx, [rcx-8]                                                   ; +0xa4, 0x14022e334\nsub     rax, rcx                                                       ; +0xa8, 0x14022e338\nsub     rax, 8                                                         ; +0xab, 0x14022e33b\ncmp     rax, 1Fh                                                       ; +0xaf, 0x14022e33f\njbe     short loc_14022E35F                                            ; +0xb3, 0x14022e343\nmov     [rsp+68h+Reserved], 0; Reserved                                ; +0xb5, 0x14022e345\nxor     r9d, r9d; LineNo                                               ; +0xbe, 0x14022e34e\nxor     r8d, r8d; FileName                                             ; +0xc1, 0x14022e351\nxor     edx, edx; FunctionName                                         ; +0xc4, 0x14022e354\nxor     ecx, ecx; Expression                                           ; +0xc6, 0x14022e356\ncall    cs:_invoke_watson                                              ; +0xc8, 0x14022e358\ndb 0CCh                                                                ; +0xce, 0x14022e35e\ncall    j_j_free                                                       ; +0xcf, 0x14022e35f\nmov     rcx, [rsp+68h+var_18]                                          ; +0xd4, 0x14022e364\nxor     rcx, rsp; StackCookie                                          ; +0xd9, 0x14022e369\ncall    __security_check_cookie                                        ; +0xdc, 0x14022e36c\nmov     rbx, [rsp+68h+arg_10]                                          ; +0xe1, 0x14022e371\nadd     rsp, 60h                                                       ; +0xe9, 0x14022e379\npop     rdi                                                            ; +0xed, 0x14022e37d\nretn                                                                   ; +0xee, 0x14022e37e", "xrefs": ["LevelListLayer::onFavorite @ 0x14042f64d", "<???> @ 0x14091be54"], "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"}