{"type": "func", "start": 5371241824, "end": 5371242062, "name": "GJGameLevel::createFromFullSaveString", "pseudocode": "// \n// GJGameLevel::createFromFullSaveString from 0x14026a560 to 0x14026a64e (238 bytes)\n// \n// 5 xrefs:\n// > AutoBackupPopup::onRestore @ 0x1400cbaaf\n// > LocalLevelManager::tryRecoverAutoSaves @ 0x14046d39f\n// > LocalLevelManager::importLevelsFromFile @ 0x14046ee6e\n// > LocalLevelManager::filesPicked @ 0x14046f36f\n// > <???> @ 0x14091c9f4\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:51 +0000\n// \n\n// Hidden C++ exception states: #wind=2\ncocos2d::CCObject *__fastcall GJGameLevel::createFromFullSaveString(__int64 a1)\n{\n  DS_Dictionary *v3; // rdi\n  cocos2d::CCObject *v4; // rsi\n  int v5; // eax\n  __int64 v6; // rax\n  cocos2d::CCObject *v7; // rbx\n  DS_Dictionary *v8; // [rsp+30h] [rbp+8h]\n  void *v9; // [rsp+30h] [rbp+8h]\n\n  if ( !*(_QWORD *)(a1 + 16) )\n    return nullptr;\n  v8 = (DS_Dictionary *)operator new(0xF0u);\n  v3 = DS_Dictionary::DS_Dictionary(v8);\n  v4 = nullptr;\n  if ( (unsigned __int8)DS_Dictionary::loadRootSubDictFromString(v3, a1) )\n  {\n    DS_Dictionary::getIntegerForKey(v3, \"kCEK\");\n    if ( v5 == 4 )\n    {\n      v9 = operator new(0x840u);\n      v6 = GJGameLevel::GJGameLevel((__int64)v9);\n      v7 = (cocos2d::CCObject *)v6;\n      if ( v6 )\n      {\n        if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v6 + 72LL))(v6) )\n        {\n          cocos2d::CCObject::autorelease(v7);\n        }\n        else\n        {\n          (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);\n          v7 = nullptr;\n        }\n      }\n      v4 = v7;\n      GJGameLevel::dataLoaded((__int64)v7, v3);\n    }\n  }\n  if ( v3 )\n  {\n    DS_Dictionary::~DS_Dictionary(v3);\n    j_j_free(v3);\n  }\n  return v4;\n}", "assembly": "; \n; GJGameLevel::createFromFullSaveString from 0x14026a560 to 0x14026a64e (238 bytes)\n; \n; 5 xrefs:\n; > AutoBackupPopup::onRestore @ 0x1400cbaaf\n; > LocalLevelManager::tryRecoverAutoSaves @ 0x14046d39f\n; > LocalLevelManager::importLevelsFromFile @ 0x14046ee6e\n; > LocalLevelManager::filesPicked @ 0x14046f36f\n; > <???> @ 0x14091c9f4\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:51 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14026a560\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14026a565\npush    rdi                                                            ; +0xa, 0x14026a56a\nsub     rsp, 20h                                                       ; +0xb, 0x14026a56b\nmov     rbx, rcx                                                       ; +0xf, 0x14026a56f\ncmp     qword ptr [rcx+10h], 0                                         ; +0x12, 0x14026a572\njnz     short loc_14026A58B                                            ; +0x17, 0x14026a577\nxor     eax, eax                                                       ; +0x19, 0x14026a579\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x1b, 0x14026a57b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x20, 0x14026a580\nadd     rsp, 20h                                                       ; +0x25, 0x14026a585\npop     rdi                                                            ; +0x29, 0x14026a589\nretn                                                                   ; +0x2a, 0x14026a58a\nmov     ecx, 0F0h; Size                                                ; +0x2b, 0x14026a58b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x30, 0x14026a590\nmov     [rsp+28h+arg_0], rax                                           ; +0x35, 0x14026a595\nmov     rcx, rax                                                       ; +0x3a, 0x14026a59a\ncall    cs:??0DS_Dictionary@@QEAA@XZ; DS_Dictionary::DS_Dictionary(void) ; +0x3d, 0x14026a59d\nmov     rdi, rax                                                       ; +0x43, 0x14026a5a3\nmov     rdx, rbx                                                       ; +0x46, 0x14026a5a6\nmov     rcx, rax                                                       ; +0x49, 0x14026a5a9\ncall    cs:?loadRootSubDictFromString@DS_Dictionary@@QEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; DS_Dictionary::loadRootSubDictFromString(std::string const &) ; +0x4c, 0x14026a5ac\nxor     esi, esi                                                       ; +0x52, 0x14026a5b2\ntest    al, al                                                         ; +0x54, 0x14026a5b4\njz      short loc_14026A620                                            ; +0x56, 0x14026a5b6\nlea     rdx, aKcek; \"kCEK\"                                             ; +0x58, 0x14026a5b8\nmov     rcx, rdi                                                       ; +0x5f, 0x14026a5bf\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x62, 0x14026a5c2\ncmp     eax, 4                                                         ; +0x68, 0x14026a5c8\njnz     short loc_14026A620                                            ; +0x6b, 0x14026a5cb\nmov     ecx, 840h; Size                                                ; +0x6d, 0x14026a5cd\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x72, 0x14026a5d2\nmov     [rsp+28h+arg_0], rax                                           ; +0x77, 0x14026a5d7\nmov     rcx, rax                                                       ; +0x7c, 0x14026a5dc\ncall    GJGameLevel__GJGameLevel                                       ; +0x7f, 0x14026a5df\nmov     rbx, rax                                                       ; +0x84, 0x14026a5e4\ntest    rax, rax                                                       ; +0x87, 0x14026a5e7\njz      short loc_14026A612                                            ; +0x8a, 0x14026a5ea\nmov     rax, [rax]                                                     ; +0x8c, 0x14026a5ec\nmov     rcx, rbx                                                       ; +0x8f, 0x14026a5ef\ncall    qword ptr [rax+48h]                                            ; +0x92, 0x14026a5f2\nmov     rcx, rbx                                                       ; +0x95, 0x14026a5f5\ntest    al, al                                                         ; +0x98, 0x14026a5f8\njz      short loc_14026A604                                            ; +0x9a, 0x14026a5fa\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x9c, 0x14026a5fc\njmp     short loc_14026A612                                            ; +0xa2, 0x14026a602\nmov     rax, [rbx]                                                     ; +0xa4, 0x14026a604\nmov     edx, 1                                                         ; +0xa7, 0x14026a607\ncall    qword ptr [rax+8]                                              ; +0xac, 0x14026a60c\nmov     rbx, rsi                                                       ; +0xaf, 0x14026a60f\nmov     rsi, rbx                                                       ; +0xb2, 0x14026a612\nmov     rdx, rdi                                                       ; +0xb5, 0x14026a615\nmov     rcx, rbx                                                       ; +0xb8, 0x14026a618\ncall    GJGameLevel__dataLoaded                                        ; +0xbb, 0x14026a61b\ntest    rdi, rdi                                                       ; +0xc0, 0x14026a620\njz      short loc_14026A63B                                            ; +0xc3, 0x14026a623\nmov     rcx, rdi                                                       ; +0xc5, 0x14026a625\ncall    cs:??1DS_Dictionary@@QEAA@XZ; DS_Dictionary::~DS_Dictionary(void) ; +0xc8, 0x14026a628\nmov     edx, 0F0h                                                      ; +0xce, 0x14026a62e\nmov     rcx, rdi; Block                                                ; +0xd3, 0x14026a633\ncall    j_j_free                                                       ; +0xd6, 0x14026a636\nmov     rax, rsi                                                       ; +0xdb, 0x14026a63b\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xde, 0x14026a63e\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xe3, 0x14026a643\nadd     rsp, 20h                                                       ; +0xe8, 0x14026a648\npop     rdi                                                            ; +0xec, 0x14026a64c\nretn                                                                   ; +0xed, 0x14026a64d", "xrefs": ["AutoBackupPopup::onRestore @ 0x1400cbaaf", "LocalLevelManager::tryRecoverAutoSaves @ 0x14046d39f", "LocalLevelManager::importLevelsFromFile @ 0x14046ee6e", "LocalLevelManager::filesPicked @ 0x14046f36f", "<???> @ 0x14091c9f4"], "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"}