{"type": "func", "start": 5370951488, "end": 5370952771, "name": "GameLevelManager::replayPlatformerSaveJournal", "pseudocode": "// \n// GameLevelManager::replayPlatformerSaveJournal from 0x140223740 to 0x140223c43 (1283 bytes)\n// \n// 3 xrefs:\n// > LoadingLayer::loadAssets @ 0x14046a234\n// > <???> @ 0x14091bc98\n// > <???> @ 0x14091bca4\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:25 +0000\n// \n\n// Hidden C++ exception states: #wind=6\nint __fastcall GameLevelManager::replayPlatformerSaveJournal(__int64 a1)\n{\n  __int64 v1; // rsi\n  _Mtx_t v2; // r14\n  DS_Dictionary *v3; // r13\n  const char *v4; // r12\n  const char *v5; // r15\n  const char *v6; // rdx\n  __int64 v7; // rcx\n  __int64 v8; // rax\n  int v9; // ebx\n  unsigned __int64 v10; // rdx\n  unsigned __int64 i; // rcx\n  const char *v12; // rax\n  int IntegerForKey; // edi\n  __int64 SavedLevel; // rbx\n  __int64 v15; // rcx\n  __int64 v16; // rax\n  cocos2d::CCArray *v17; // r15\n  unsigned int v18; // esi\n  struct cocos2d::CCObject *v19; // r14\n  void **v20; // rax\n  int v21; // edi\n  int v22; // edi\n  __int64 SavedGauntletLevel; // rax\n  __int64 v24; // rbx\n  __int64 v25; // rbx\n  __int64 j; // rcx\n  void **v27; // rdx\n  __int64 StringForKey; // rax\n  __int64 v29; // rbx\n  __int64 v30; // rdi\n  const char *v31; // rdx\n  DS_Dictionary *v33; // [rsp+20h] [rbp-A9h]\n  const char *v34; // [rsp+20h] [rbp-A9h]\n  _Mtx_t v36; // [rsp+30h] [rbp-99h]\n  __int128 v37; // [rsp+38h] [rbp-91h] BYREF\n  __int64 v38; // [rsp+48h] [rbp-81h]\n  const char *v39; // [rsp+50h] [rbp-79h] BYREF\n  const char *v40; // [rsp+58h] [rbp-71h]\n  _Mtx_t v41; // [rsp+68h] [rbp-61h]\n  void *Src[2]; // [rsp+70h] [rbp-59h] BYREF\n  size_t Size; // [rsp+80h] [rbp-49h]\n  unsigned __int64 v44; // [rsp+88h] [rbp-41h]\n  _QWORD Buf2[4]; // [rsp+90h] [rbp-39h] BYREF\n  void *v46[4]; // [rsp+B0h] [rbp-19h] BYREF\n  _QWORD Buf1[4]; // [rsp+D0h] [rbp+7h] BYREF\n\n  v1 = a1;\n  v2 = qword_14090A8C8;\n  v36 = qword_14090A8C8;\n  v41 = qword_14090A8C8;\n  if ( Mtx_lock(qword_14090A8C8) )\n  {\n    std::_Throw_Cpp_error(5);\n    __debugbreak();\n  }\n  if ( *((_DWORD *)v2 + 19) == 0x7FFFFFFF )\n  {\n    *((_DWORD *)v2 + 19) = 2147483646;\n    std::_Throw_Cpp_error(6);\n  }\n  v33 = (DS_Dictionary *)operator new(0xF0u);\n  v3 = DS_Dictionary::DS_Dictionary(v33);\n  if ( !sub_140222A60((__int64)v3) )\n  {\n    if ( v3 )\n    {\n      DS_Dictionary::~DS_Dictionary(v3);\n      j_j_free(v3);\n    }\n    return Mtx_unlock(v2);\n  }\n  v37 = 0;\n  v38 = 0;\n  DS_Dictionary::getAllKeys(v3, &v39);\n  v4 = v39;\n  v5 = v40;\n  v34 = v40;\n  if ( v39 == v40 )\n    goto LABEL_56;\n  do\n  {\n    v6 = v4;\n    if ( *((_QWORD *)v4 + 3) > 0xFu )\n      v6 = *(const char **)v4;\n    if ( DS_Dictionary::stepIntoSubDictWithKey(v3, v6) )\n    {\n      if ( dword_14090BFC0 <= DS_Dictionary::getIntegerForKey(v3, \"sq\") )\n        dword_14090BFC0 = DS_Dictionary::getIntegerForKey(v3, \"sq\");\n      v8 = GJAccountManager::sharedState(v7);\n      v9 = 1640531535 * (*(_DWORD *)(v8 + 364) - *(_DWORD *)(v8 + 360));\n      v10 = *((_QWORD *)v4 + 2);\n      for ( i = 0; i < v10; ++i )\n      {\n        v12 = v4;\n        if ( *((_QWORD *)v4 + 3) > 0xFu )\n          v12 = *(const char **)v4;\n        v9 = 16777619 * (v9 ^ (unsigned __int8)v12[i]);\n      }\n      if ( DS_Dictionary::getIntegerForKey(v3, \"ow\") != (v9 & 0x7FFFFFFF) )\n      {\n        DS_Dictionary::stepOutOfSubDict(v3);\n        sub_140075F50((__int64 *)&v37, (__int64)v4);\n        goto LABEL_54;\n      }\n      IntegerForKey = DS_Dictionary::getIntegerForKey(v3, \"t\");\n      DS_Dictionary::getStringForKey(v3, Src, \"cs\");\n      SavedLevel = 0;\n      if ( IntegerForKey == 2 )\n      {\n        DS_Dictionary::getStringForKey(v3, Buf2, \"uid\");\n        v16 = LocalLevelManager::sharedState(v15);\n        v17 = *(cocos2d::CCArray **)(v16 + 368);\n        if ( v17 && Buf2[2] )\n        {\n          v18 = 0;\n          if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(v16 + 368)) )\n          {\n            while ( 1 )\n            {\n              v19 = cocos2d::CCArray::objectAtIndex(v17, v18);\n              if ( !*((_QWORD *)v19 + 201) )\n              {\n                v20 = GameToolbox::gen_random(v46, 0x10u);\n                sub_140059C40((__int64)v19 + 1592, (__int64)v20);\n                sub_14003D310((__int64)v46);\n              }\n              sub_14003F4F0((__int64)Buf1, (__int64)v19 + 1592);\n              v21 = sub_14003D160(Buf1, Buf2);\n              sub_14003D310((__int64)Buf1);\n              if ( !v21 )\n                break;\n              if ( ++v18 >= cocos2d::CCArray::count(v17) )\n                goto LABEL_30;\n            }\n            SavedLevel = (__int64)v19;\n          }\nLABEL_30:\n          v1 = a1;\n        }\n        sub_14003D310((__int64)Buf2);\n        v5 = v34;\nLABEL_46:\n        if ( !SavedLevel )\n        {\nLABEL_53:\n          DS_Dictionary::stepOutOfSubDict(v3);\n          sub_14003D310((__int64)Src);\n          goto LABEL_54;\n        }\nLABEL_47:\n        if ( Size )\n        {\n          if ( (void **)(SavedLevel + 1632) != Src )\n          {\n            v27 = Src;\n            if ( v44 > 0xF )\n              v27 = (void **)Src[0];\n            sub_1400405A0((void **)(SavedLevel + 1632), v27, Size);\n          }\n          *(_DWORD *)(SavedLevel + 1696) = DS_Dictionary::getIntegerForKey(v3, \"cv\");\n          *(_DWORD *)(SavedLevel + 1700) = DS_Dictionary::getIntegerForKey(v3, \"fv\");\n          StringForKey = DS_Dictionary::getStringForKey(v3, v46, \"rs\");\n          sub_140059C40(SavedLevel + 1664, StringForKey);\n          sub_14003D310((__int64)v46);\n          *(_BYTE *)(SavedLevel + 1704) = DS_Dictionary::getBoolForKey(v3, \"ps\");\n        }\n        goto LABEL_53;\n      }\n      v22 = DS_Dictionary::getIntegerForKey(v3, \"id\");\n      if ( (int)DS_Dictionary::getIntegerForKey(v3, \"did\") <= 0 )\n      {\n        if ( !DS_Dictionary::getBoolForKey(v3, \"g\") )\n        {\nLABEL_37:\n          SavedLevel = GameLevelManager::getSavedLevel(v1);\n          if ( SavedLevel )\n            goto LABEL_47;\n          v24 = *(_QWORD *)(v1 + 944);\n          if ( v24 )\n          {\n            v25 = *(_QWORD *)(v24 + 56);\n            if ( v25 )\n            {\n              for ( j = *(_QWORD *)(v25 + 288); ; j = *(_QWORD *)(j + 288) )\n              {\n                SavedLevel = *(_QWORD *)(v25 + 264);\n                if ( *(_DWORD *)(SavedLevel + 328) - *(_DWORD *)(SavedLevel + 332) == v22 )\n                  break;\n                v25 = j;\n                if ( !j )\n                  goto LABEL_45;\n              }\n              if ( SavedLevel )\n                goto LABEL_47;\n            }\n          }\nLABEL_45:\n          SavedLevel = GameLevelManager::getSavedGauntletLevel(v1);\n          goto LABEL_46;\n        }\n        SavedGauntletLevel = GameLevelManager::getSavedGauntletLevel(v1);\n      }\n      else\n      {\n        SavedGauntletLevel = GameLevelManager::getSavedDailyLevel(v1);\n      }\n      SavedLevel = SavedGauntletLevel;\n      if ( SavedGauntletLevel )\n        goto LABEL_47;\n      goto LABEL_37;\n    }\nLABEL_54:\n    v4 += 32;\n  }\n  while ( v4 != v5 );\n  v2 = v36;\nLABEL_56:\n  v30 = *((_QWORD *)&v37 + 1);\n  v29 = v37;\n  if ( (_QWORD)v37 != *((_QWORD *)&v37 + 1) )\n  {\n    do\n    {\n      v31 = (const char *)v29;\n      if ( *(_QWORD *)(v29 + 24) > 0xFu )\n        v31 = *(const char **)v29;\n      DS_Dictionary::removeKey(v3, v31);\n      v29 += 32;\n    }\n    while ( v29 != v30 );\n    sub_140222B40((__int64)v3);\n  }\n  if ( v3 )\n  {\n    DS_Dictionary::~DS_Dictionary(v3);\n    j_j_free(v3);\n  }\n  sub_1400760C0((__int64 *)&v39);\n  sub_1400760C0((__int64 *)&v37);\n  return Mtx_unlock(v2);\n}", "assembly": "; \n; GameLevelManager::replayPlatformerSaveJournal from 0x140223740 to 0x140223c43 (1283 bytes)\n; \n; 3 xrefs:\n; > LoadingLayer::loadAssets @ 0x14046a234\n; > <???> @ 0x14091bc98\n; > <???> @ 0x14091bca4\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:25 +0000\n; \nmov     [rsp-8+arg_8], rbx                                             ; +0x0, 0x140223740\nmov     [rsp-8+arg_10], rsi                                            ; +0x5, 0x140223745\nmov     [rsp-8+arg_18], rdi                                            ; +0xa, 0x14022374a\npush    rbp                                                            ; +0xf, 0x14022374f\npush    r12                                                            ; +0x10, 0x140223750\npush    r13                                                            ; +0x12, 0x140223752\npush    r14                                                            ; +0x14, 0x140223754\npush    r15                                                            ; +0x16, 0x140223756\nlea     rbp, [rsp-37h]                                                 ; +0x18, 0x140223758\nsub     rsp, 100h                                                      ; +0x1d, 0x14022375d\nmov     rax, cs:__security_cookie                                      ; +0x24, 0x140223764\nxor     rax, rsp                                                       ; +0x2b, 0x14022376b\nmov     [rbp+57h+var_30], rax                                          ; +0x2e, 0x14022376e\nmov     rsi, rcx                                                       ; +0x32, 0x140223772\nmov     [rsp+120h+var_F8], rcx                                         ; +0x35, 0x140223775\nxor     ebx, ebx                                                       ; +0x3a, 0x14022377a\nmov     r14, cs:qword_14090A8C8                                        ; +0x3c, 0x14022377c\nmov     [rsp+120h+var_F0], r14                                         ; +0x43, 0x140223783\nmov     [rbp+57h+var_B8], r14                                          ; +0x48, 0x140223788\nmov     rcx, r14; _Mtx_t                                               ; +0x4c, 0x14022378c\ncall    cs:_Mtx_lock                                                   ; +0x4f, 0x14022378f\ntest    eax, eax                                                       ; +0x55, 0x140223795\njz      short loc_1402237A5                                            ; +0x57, 0x140223797\nmov     ecx, 5                                                         ; +0x59, 0x140223799\ncall    cs:?_Throw_Cpp_error@std@@YAXH@Z; std::_Throw_Cpp_error(int)   ; +0x5e, 0x14022379e\nint     3; Trap to Debugger                                            ; +0x64, 0x1402237a4\nmov     eax, [r14+4Ch]                                                 ; +0x65, 0x1402237a5\ncmp     eax, 7FFFFFFFh                                                 ; +0x69, 0x1402237a9\njnz     short loc_1402237C2                                            ; +0x6e, 0x1402237ae\ndec     eax                                                            ; +0x70, 0x1402237b0\nmov     [r14+4Ch], eax                                                 ; +0x72, 0x1402237b2\nmov     ecx, 6                                                         ; +0x76, 0x1402237b6\ncall    cs:?_Throw_Cpp_error@std@@YAXH@Z; std::_Throw_Cpp_error(int)   ; +0x7b, 0x1402237bb\nnop                                                                    ; +0x81, 0x1402237c1\nmov     ecx, 0F0h; Size                                                ; +0x82, 0x1402237c2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x87, 0x1402237c7\nmov     [rsp+120h+var_100], rax                                        ; +0x8c, 0x1402237cc\nmov     rcx, rax                                                       ; +0x91, 0x1402237d1\ncall    cs:??0DS_Dictionary@@QEAA@XZ; DS_Dictionary::DS_Dictionary(void) ; +0x94, 0x1402237d4\nmov     r13, rax                                                       ; +0x9a, 0x1402237da\nmov     rcx, rax                                                       ; +0x9d, 0x1402237dd\ncall    sub_140222A60                                                  ; +0xa0, 0x1402237e0\ntest    al, al                                                         ; +0xa5, 0x1402237e5\njnz     short loc_14022380D                                            ; +0xa7, 0x1402237e7\ntest    r13, r13                                                       ; +0xa9, 0x1402237e9\njz      loc_140223C0D                                                  ; +0xac, 0x1402237ec\nmov     rcx, r13                                                       ; +0xb2, 0x1402237f2\ncall    cs:??1DS_Dictionary@@QEAA@XZ; DS_Dictionary::~DS_Dictionary(void) ; +0xb5, 0x1402237f5\nmov     edx, 0F0h                                                      ; +0xbb, 0x1402237fb\nmov     rcx, r13; Block                                                ; +0xc0, 0x140223800\ncall    j_j_free                                                       ; +0xc3, 0x140223803\njmp     loc_140223C0D                                                  ; +0xc8, 0x140223808\nxorps   xmm0, xmm0                                                     ; +0xcd, 0x14022380d\nmovdqu  [rsp+120h+var_E8], xmm0                                        ; +0xd0, 0x140223810\nmov     [rsp+120h+var_D8], rbx                                         ; +0xd6, 0x140223816\nlea     rdx, [rbp+57h+var_D0]                                          ; +0xdb, 0x14022381b\nmov     rcx, r13                                                       ; +0xdf, 0x14022381f\ncall    cs:?getAllKeys@DS_Dictionary@@QEAA?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@XZ; DS_Dictionary::getAllKeys(void) ; +0xe2, 0x140223822\nnop                                                                    ; +0xe8, 0x140223828\nmov     r12, [rbp+57h+var_D0]                                          ; +0xe9, 0x140223829\nmov     r15, [rbp+57h+var_C8]                                          ; +0xed, 0x14022382d\nmov     [rsp+120h+var_100], r15                                        ; +0xf1, 0x140223831\ncmp     r12, r15                                                       ; +0xf6, 0x140223836\njz      loc_140223BA6                                                  ; +0xf9, 0x140223839\nnop                                                                    ; +0xff, 0x14022383f\nmov     rdx, r12                                                       ; +0x100, 0x140223840\ncmp     qword ptr [r12+18h], 0Fh                                       ; +0x103, 0x140223843\njbe     short loc_14022384F                                            ; +0x109, 0x140223849\nmov     rdx, [r12]                                                     ; +0x10b, 0x14022384b\nmov     rcx, r13                                                       ; +0x10f, 0x14022384f\ncall    cs:?stepIntoSubDictWithKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::stepIntoSubDictWithKey(char const *) ; +0x112, 0x140223852\ntest    al, al                                                         ; +0x118, 0x140223858\njz      loc_140223B94                                                  ; +0x11a, 0x14022385a\nlea     rdx, aSq; \"sq\"                                                 ; +0x120, 0x140223860\nmov     rcx, r13                                                       ; +0x127, 0x140223867\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x12a, 0x14022386a\ncmp     cs:dword_14090BFC0, eax                                        ; +0x130, 0x140223870\njg      short loc_14022388E                                            ; +0x136, 0x140223876\nlea     rdx, aSq; \"sq\"                                                 ; +0x138, 0x140223878\nmov     rcx, r13                                                       ; +0x13f, 0x14022387f\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x142, 0x140223882\nmov     cs:dword_14090BFC0, eax                                        ; +0x148, 0x140223888\ncall    GJAccountManager__sharedState                                  ; +0x14e, 0x14022388e\nmov     ecx, [rax+16Ch]                                                ; +0x153, 0x140223893\nsub     ecx, [rax+168h]                                                ; +0x159, 0x140223899\nimul    ebx, ecx, 61C8864Fh                                            ; +0x15f, 0x14022389f\nmov     rdx, [r12+10h]                                                 ; +0x165, 0x1402238a5\nxor     ecx, ecx                                                       ; +0x16a, 0x1402238aa\ntest    rdx, rdx                                                       ; +0x16c, 0x1402238ac\njz      short loc_1402238D7                                            ; +0x16f, 0x1402238af\nmov     r8, [r12+18h]                                                  ; +0x171, 0x1402238b1\nmov     rax, r12                                                       ; +0x176, 0x1402238b6\ncmp     r8, 0Fh                                                        ; +0x179, 0x1402238b9\njbe     short loc_1402238C3                                            ; +0x17d, 0x1402238bd\nmov     rax, [r12]                                                     ; +0x17f, 0x1402238bf\nmovzx   eax, byte ptr [rax+rcx]                                        ; +0x183, 0x1402238c3\nxor     eax, ebx                                                       ; +0x187, 0x1402238c7\nimul    ebx, eax, 1000193h                                             ; +0x189, 0x1402238c9\ninc     rcx                                                            ; +0x18f, 0x1402238cf\ncmp     rcx, rdx                                                       ; +0x192, 0x1402238d2\njb      short loc_1402238B6                                            ; +0x195, 0x1402238d5\nlea     rdx, aOw; \"ow\"                                                 ; +0x197, 0x1402238d7\nmov     rcx, r13                                                       ; +0x19e, 0x1402238de\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x1a1, 0x1402238e1\nbtr     ebx, 1Fh                                                       ; +0x1a7, 0x1402238e7\nmov     rcx, r13                                                       ; +0x1ab, 0x1402238eb\ncmp     eax, ebx                                                       ; +0x1ae, 0x1402238ee\njz      short loc_14022390A                                            ; +0x1b0, 0x1402238f0\ncall    cs:?stepOutOfSubDict@DS_Dictionary@@QEAAXXZ; DS_Dictionary::stepOutOfSubDict(void) ; +0x1b2, 0x1402238f2\nmov     rdx, r12                                                       ; +0x1b8, 0x1402238f8\nlea     rcx, [rsp+120h+var_E8]                                         ; +0x1bb, 0x1402238fb\ncall    sub_140075F50                                                  ; +0x1c0, 0x140223900\njmp     loc_140223B94                                                  ; +0x1c5, 0x140223905\nlea     rdx, aT; \"t\"                                                   ; +0x1ca, 0x14022390a\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x1d1, 0x140223911\nmov     edi, eax                                                       ; +0x1d7, 0x140223917\nlea     r8, aCs; \"cs\"                                                  ; +0x1d9, 0x140223919\nlea     rdx, [rbp+57h+Src]                                             ; +0x1e0, 0x140223920\nmov     rcx, r13                                                       ; +0x1e4, 0x140223924\ncall    cs:?getStringForKey@DS_Dictionary@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z; DS_Dictionary::getStringForKey(char const *) ; +0x1e7, 0x140223927\nnop                                                                    ; +0x1ed, 0x14022392d\nxor     ebx, ebx                                                       ; +0x1ee, 0x14022392e\nmov     rcx, r13                                                       ; +0x1f0, 0x140223930\ncmp     edi, 2                                                         ; +0x1f3, 0x140223933\njnz     loc_140223A16                                                  ; +0x1f6, 0x140223936\nlea     r8, aUid; \"uid\"                                                ; +0x1fc, 0x14022393c\nlea     rdx, [rbp+57h+Buf2]                                            ; +0x203, 0x140223943\ncall    cs:?getStringForKey@DS_Dictionary@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z; DS_Dictionary::getStringForKey(char const *) ; +0x207, 0x140223947\nnop                                                                    ; +0x20d, 0x14022394d\ncall    LocalLevelManager__sharedState                                 ; +0x20e, 0x14022394e\nmov     r15, [rax+170h]                                                ; +0x213, 0x140223953\ntest    r15, r15                                                       ; +0x21a, 0x14022395a\njz      loc_140223A03                                                  ; +0x21d, 0x14022395d\ncmp     [rbp+57h+var_80], rbx                                          ; +0x223, 0x140223963\njz      loc_140223A03                                                  ; +0x227, 0x140223967\nxor     esi, esi                                                       ; +0x22d, 0x14022396d\nmov     rcx, r15                                                       ; +0x22f, 0x14022396f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x232, 0x140223972\ntest    eax, eax                                                       ; +0x238, 0x140223978\njz      loc_1402239FE                                                  ; +0x23a, 0x14022397a\nmov     edx, esi                                                       ; +0x240, 0x140223980\nmov     rcx, r15                                                       ; +0x242, 0x140223982\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x245, 0x140223985\nmov     r14, rax                                                       ; +0x24b, 0x14022398b\ncmp     qword ptr [rax+648h], 0                                        ; +0x24e, 0x14022398e\njnz     short loc_1402239BE                                            ; +0x256, 0x140223996\nmov     edx, 10h                                                       ; +0x258, 0x140223998\nlea     rcx, [rbp+57h+var_70]; Src                                     ; +0x25d, 0x14022399d\ncall    GameToolbox__gen_random                                        ; +0x261, 0x1402239a1\nmov     rdx, rax                                                       ; +0x266, 0x1402239a6\nlea     rcx, [r14+638h]                                                ; +0x269, 0x1402239a9\ncall    sub_140059C40                                                  ; +0x270, 0x1402239b0\nlea     rcx, [rbp+57h+var_70]                                          ; +0x275, 0x1402239b5\ncall    sub_14003D310                                                  ; +0x279, 0x1402239b9\nlea     rdx, [r14+638h]                                                ; +0x27e, 0x1402239be\nlea     rcx, [rbp+57h+Buf1]                                            ; +0x285, 0x1402239c5\ncall    sub_14003F4F0                                                  ; +0x289, 0x1402239c9\nlea     rdx, [rbp+57h+Buf2]; Buf2                                      ; +0x28e, 0x1402239ce\nlea     rcx, [rbp+57h+Buf1]; Buf1                                      ; +0x292, 0x1402239d2\ncall    sub_14003D160                                                  ; +0x296, 0x1402239d6\nmov     edi, eax                                                       ; +0x29b, 0x1402239db\nlea     rcx, [rbp+57h+Buf1]                                            ; +0x29d, 0x1402239dd\ncall    sub_14003D310                                                  ; +0x2a1, 0x1402239e1\ntest    edi, edi                                                       ; +0x2a6, 0x1402239e6\njz      short loc_1402239FB                                            ; +0x2a8, 0x1402239e8\ninc     esi                                                            ; +0x2aa, 0x1402239ea\nmov     rcx, r15                                                       ; +0x2ac, 0x1402239ec\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x2af, 0x1402239ef\ncmp     esi, eax                                                       ; +0x2b5, 0x1402239f5\njb      short loc_140223980                                            ; +0x2b7, 0x1402239f7\njmp     short loc_1402239FE                                            ; +0x2b9, 0x1402239f9\nmov     rbx, r14                                                       ; +0x2bb, 0x1402239fb\nmov     rsi, [rsp+120h+var_F8]                                         ; +0x2be, 0x1402239fe\nlea     rcx, [rbp+57h+Buf2]                                            ; +0x2c3, 0x140223a03\ncall    sub_14003D310                                                  ; +0x2c7, 0x140223a07\nmov     r15, [rsp+120h+var_100]                                        ; +0x2cc, 0x140223a0c\njmp     loc_140223ADA                                                  ; +0x2d1, 0x140223a11\nlea     rdx, aId_0; \"id\"                                               ; +0x2d6, 0x140223a16\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x2dd, 0x140223a1d\nmov     edi, eax                                                       ; +0x2e3, 0x140223a23\nlea     rdx, aDid; \"did\"                                               ; +0x2e5, 0x140223a25\nmov     rcx, r13                                                       ; +0x2ec, 0x140223a2c\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x2ef, 0x140223a2f\ntest    eax, eax                                                       ; +0x2f5, 0x140223a35\njle     short loc_140223A45                                            ; +0x2f7, 0x140223a37\nmov     edx, eax                                                       ; +0x2f9, 0x140223a39\nmov     rcx, rsi                                                       ; +0x2fb, 0x140223a3b\ncall    GameLevelManager__getSavedDailyLevel                           ; +0x2fe, 0x140223a3e\njmp     short loc_140223A63                                            ; +0x303, 0x140223a43\nlea     rdx, aG_0; \"g\"                                                 ; +0x305, 0x140223a45\nmov     rcx, r13                                                       ; +0x30c, 0x140223a4c\ncall    cs:?getBoolForKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::getBoolForKey(char const *) ; +0x30f, 0x140223a4f\ntest    al, al                                                         ; +0x315, 0x140223a55\njz      short loc_140223A6B                                            ; +0x317, 0x140223a57\nmov     edx, edi                                                       ; +0x319, 0x140223a59\nmov     rcx, rsi                                                       ; +0x31b, 0x140223a5b\ncall    GameLevelManager__getSavedGauntletLevel                        ; +0x31e, 0x140223a5e\nmov     rbx, rax                                                       ; +0x323, 0x140223a63\ntest    rax, rax                                                       ; +0x326, 0x140223a66\njnz     short loc_140223AE3                                            ; +0x329, 0x140223a69\nmov     edx, edi                                                       ; +0x32b, 0x140223a6b\nmov     rcx, rsi                                                       ; +0x32d, 0x140223a6d\ncall    GameLevelManager__getSavedLevel                                ; +0x330, 0x140223a70\nmov     rbx, rax                                                       ; +0x335, 0x140223a75\ntest    rax, rax                                                       ; +0x338, 0x140223a78\njnz     short loc_140223AE3                                            ; +0x33b, 0x140223a7b\nmov     rbx, [rsi+3B0h]                                                ; +0x33d, 0x140223a7d\ntest    rbx, rbx                                                       ; +0x344, 0x140223a84\njz      short loc_140223ACD                                            ; +0x347, 0x140223a87\nmov     rbx, [rbx+38h]                                                 ; +0x349, 0x140223a89\ntest    rbx, rbx                                                       ; +0x34d, 0x140223a8d\njz      short loc_140223ACD                                            ; +0x350, 0x140223a90\nmov     rcx, [rbx+120h]                                                ; +0x352, 0x140223a92\nnop     dword ptr [rax+00000000h]                                      ; +0x359, 0x140223a99\nmov     rbx, [rbx+108h]                                                ; +0x360, 0x140223aa0\nmov     eax, [rbx+148h]                                                ; +0x367, 0x140223aa7\nsub     eax, [rbx+14Ch]                                                ; +0x36d, 0x140223aad\ncmp     eax, edi                                                       ; +0x373, 0x140223ab3\njz      short loc_140223AC8                                            ; +0x375, 0x140223ab5\nmov     rbx, rcx                                                       ; +0x377, 0x140223ab7\ntest    rcx, rcx                                                       ; +0x37a, 0x140223aba\njz      short loc_140223ACD                                            ; +0x37d, 0x140223abd\nmov     rcx, [rcx+120h]                                                ; +0x37f, 0x140223abf\njmp     short loc_140223AA0                                            ; +0x386, 0x140223ac6\ntest    rbx, rbx                                                       ; +0x388, 0x140223ac8\njnz     short loc_140223AE3                                            ; +0x38b, 0x140223acb\nmov     edx, edi                                                       ; +0x38d, 0x140223acd\nmov     rcx, rsi                                                       ; +0x38f, 0x140223acf\ncall    GameLevelManager__getSavedGauntletLevel                        ; +0x392, 0x140223ad2\nmov     rbx, rax                                                       ; +0x397, 0x140223ad7\ntest    rbx, rbx                                                       ; +0x39a, 0x140223ada\njz      loc_140223B81                                                  ; +0x39d, 0x140223add\nmov     r8, [rbp+57h+Size]; Size                                       ; +0x3a3, 0x140223ae3\ntest    r8, r8                                                         ; +0x3a7, 0x140223ae7\njz      loc_140223B81                                                  ; +0x3aa, 0x140223aea\nlea     rcx, [rbx+660h]; void *                                        ; +0x3b0, 0x140223af0\nlea     rax, [rbp+57h+Src]                                             ; +0x3b7, 0x140223af7\ncmp     rcx, rax                                                       ; +0x3bb, 0x140223afb\njz      short loc_140223B13                                            ; +0x3be, 0x140223afe\nlea     rdx, [rbp+57h+Src]                                             ; +0x3c0, 0x140223b00\ncmp     [rbp+57h+var_98], 0Fh                                          ; +0x3c4, 0x140223b04\ncmova   rdx, [rbp+57h+Src]; Src                                        ; +0x3c9, 0x140223b09\ncall    sub_1400405A0                                                  ; +0x3ce, 0x140223b0e\nlea     rdx, aCv; \"cv\"                                                 ; +0x3d3, 0x140223b13\nmov     rcx, r13                                                       ; +0x3da, 0x140223b1a\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x3dd, 0x140223b1d\nmov     [rbx+6A0h], eax                                                ; +0x3e3, 0x140223b23\nlea     rdx, aFv; \"fv\"                                                 ; +0x3e9, 0x140223b29\nmov     rcx, r13                                                       ; +0x3f0, 0x140223b30\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x3f3, 0x140223b33\nmov     [rbx+6A4h], eax                                                ; +0x3f9, 0x140223b39\nlea     r8, aRs_0; \"rs\"                                                ; +0x3ff, 0x140223b3f\nlea     rdx, [rbp+57h+var_70]                                          ; +0x406, 0x140223b46\nmov     rcx, r13                                                       ; +0x40a, 0x140223b4a\ncall    cs:?getStringForKey@DS_Dictionary@@QEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD@Z; DS_Dictionary::getStringForKey(char const *) ; +0x40d, 0x140223b4d\nlea     rcx, [rbx+680h]                                                ; +0x413, 0x140223b53\nmov     rdx, rax                                                       ; +0x41a, 0x140223b5a\ncall    sub_140059C40                                                  ; +0x41d, 0x140223b5d\nlea     rcx, [rbp+57h+var_70]                                          ; +0x422, 0x140223b62\ncall    sub_14003D310                                                  ; +0x426, 0x140223b66\nlea     rdx, aPs; \"ps\"                                                 ; +0x42b, 0x140223b6b\nmov     rcx, r13                                                       ; +0x432, 0x140223b72\ncall    cs:?getBoolForKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::getBoolForKey(char const *) ; +0x435, 0x140223b75\nmov     [rbx+6A8h], al                                                 ; +0x43b, 0x140223b7b\nmov     rcx, r13                                                       ; +0x441, 0x140223b81\ncall    cs:?stepOutOfSubDict@DS_Dictionary@@QEAAXXZ; DS_Dictionary::stepOutOfSubDict(void) ; +0x444, 0x140223b84\nnop                                                                    ; +0x44a, 0x140223b8a\nlea     rcx, [rbp+57h+Src]                                             ; +0x44b, 0x140223b8b\ncall    sub_14003D310                                                  ; +0x44f, 0x140223b8f\nadd     r12, 20h ; ' '                                                 ; +0x454, 0x140223b94\ncmp     r12, r15                                                       ; +0x458, 0x140223b98\njnz     loc_140223840                                                  ; +0x45b, 0x140223b9b\nmov     r14, [rsp+120h+var_F0]                                         ; +0x461, 0x140223ba1\nmov     rbx, qword ptr [rsp+120h+var_E8]                               ; +0x466, 0x140223ba6\nmov     rdi, qword ptr [rsp+120h+var_E8+8]                             ; +0x46b, 0x140223bab\ncmp     rbx, rdi                                                       ; +0x470, 0x140223bb0\njz      short loc_140223BDC                                            ; +0x473, 0x140223bb3\nmov     rdx, rbx                                                       ; +0x475, 0x140223bb5\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x478, 0x140223bb8\njbe     short loc_140223BC2                                            ; +0x47d, 0x140223bbd\nmov     rdx, [rbx]                                                     ; +0x47f, 0x140223bbf\nmov     rcx, r13                                                       ; +0x482, 0x140223bc2\ncall    cs:?removeKey@DS_Dictionary@@QEAAXPEBD@Z; DS_Dictionary::removeKey(char const *) ; +0x485, 0x140223bc5\nadd     rbx, 20h ; ' '                                                 ; +0x48b, 0x140223bcb\ncmp     rbx, rdi                                                       ; +0x48f, 0x140223bcf\njnz     short loc_140223BB5                                            ; +0x492, 0x140223bd2\nmov     rcx, r13                                                       ; +0x494, 0x140223bd4\ncall    sub_140222B40                                                  ; +0x497, 0x140223bd7\ntest    r13, r13                                                       ; +0x49c, 0x140223bdc\njz      short loc_140223BF8                                            ; +0x49f, 0x140223bdf\nmov     rcx, r13                                                       ; +0x4a1, 0x140223be1\ncall    cs:??1DS_Dictionary@@QEAA@XZ; DS_Dictionary::~DS_Dictionary(void) ; +0x4a4, 0x140223be4\nmov     edx, 0F0h                                                      ; +0x4aa, 0x140223bea\nmov     rcx, r13; Block                                                ; +0x4af, 0x140223bef\ncall    j_j_free                                                       ; +0x4b2, 0x140223bf2\nnop                                                                    ; +0x4b7, 0x140223bf7\nlea     rcx, [rbp+57h+var_D0]                                          ; +0x4b8, 0x140223bf8\ncall    sub_1400760C0                                                  ; +0x4bc, 0x140223bfc\nnop                                                                    ; +0x4c1, 0x140223c01\nlea     rcx, [rsp+120h+var_E8]                                         ; +0x4c2, 0x140223c02\ncall    sub_1400760C0                                                  ; +0x4c7, 0x140223c07\nnop                                                                    ; +0x4cc, 0x140223c0c\nmov     rcx, r14; _Mtx_t                                               ; +0x4cd, 0x140223c0d\ncall    cs:_Mtx_unlock                                                 ; +0x4d0, 0x140223c10\nmov     rcx, [rbp+57h+var_30]                                          ; +0x4d6, 0x140223c16\nxor     rcx, rsp; StackCookie                                          ; +0x4da, 0x140223c1a\ncall    __security_check_cookie                                        ; +0x4dd, 0x140223c1d\nlea     r11, [rsp+120h+var_20]                                         ; +0x4e2, 0x140223c22\nmov     rbx, [r11+38h]                                                 ; +0x4ea, 0x140223c2a\nmov     rsi, [r11+40h]                                                 ; +0x4ee, 0x140223c2e\nmov     rdi, [r11+48h]                                                 ; +0x4f2, 0x140223c32\nmov     rsp, r11                                                       ; +0x4f6, 0x140223c36\npop     r15                                                            ; +0x4f9, 0x140223c39\npop     r14                                                            ; +0x4fb, 0x140223c3b\npop     r13                                                            ; +0x4fd, 0x140223c3d\npop     r12                                                            ; +0x4ff, 0x140223c3f\npop     rbp                                                            ; +0x501, 0x140223c41\nretn                                                                   ; +0x502, 0x140223c42", "xrefs": ["LoadingLayer::loadAssets @ 0x14046a234", "<???> @ 0x14091bc98", "<???> @ 0x14091bca4"], "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"}