{"type": "func", "start": 5370248416, "end": 5370249205, "name": "GJLevelList::dataLoaded", "pseudocode": "// \n// GJLevelList::dataLoaded from 0x140177ce0 to 0x140177ff5 (789 bytes)\n// \n// 2 xrefs:\n// > GJObjectDecoder::getDecodedObject @ 0x1402844a3\n// > <???> @ 0x1406cb004\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 GJLevelList::dataLoaded(GJLevelList *a1, DS_Dictionary *a2)\n{\n  int v4; // eax\n  int v5; // eax\n  __int64 StringForKey; // rax\n  __int64 v7; // rax\n  __int64 v8; // rax\n  int v9; // eax\n  int v10; // eax\n  int v11; // eax\n  int v12; // eax\n  GJLevelType v13; // eax\n  int v14; // eax\n  int v15; // eax\n  int v16; // eax\n  int v17; // eax\n  int v18; // eax\n  int v19; // eax\n  int v20; // eax\n  int v21; // eax\n  struct cocos2d::CCDictionary *DictForKey; // rax\n  cocos2d::CCDictionary *v23; // rdi\n  cocos2d::CCDictionary *m_levelsDict; // rcx\n  void **v25; // rax\n  _BYTE v26[32]; // [rsp+28h] [rbp-30h] BYREF\n\n  DS_Dictionary::getIntegerForKey(a2, \"k1\");\n  a1->m_listID = v4;\n  DS_Dictionary::getIntegerForKey(a2, \"k84\");\n  a1->m_folder = v5;\n  StringForKey = DS_Dictionary::getStringForKey(a2, v26, \"k2\");\n  sub_140051590((__int64)&a1->m_listName, StringForKey);\n  sub_14003A830((__int64)v26);\n  v7 = DS_Dictionary::getStringForKey(a2, v26, \"k3\");\n  sub_140051590((__int64)&a1->m_listDesc, v7);\n  sub_14003A830((__int64)v26);\n  v8 = DS_Dictionary::getStringForKey(a2, v26, \"k5\");\n  sub_140051590((__int64)&a1->m_creatorName, v8);\n  sub_14003A830((__int64)v26);\n  DS_Dictionary::getIntegerForKey(a2, \"k60\");\n  a1->m_accountID = v9;\n  DS_Dictionary::getIntegerForKey(a2, \"k7\");\n  a1->m_difficulty = v10;\n  DS_Dictionary::getIntegerForKey(a2, \"k11\");\n  a1->m_downloads = v11;\n  a1->m_uploaded = DS_Dictionary::getBoolForKey(a2, \"k15\");\n  DS_Dictionary::getIntegerForKey(a2, \"k22\");\n  a1->m_likes = v12;\n  DS_Dictionary::getIntegerForKey(a2, \"k21\");\n  a1->m_listType = v13;\n  DS_Dictionary::getIntegerForKey(a2, \"k16\");\n  a1->m_listVersion = v14;\n  a1->m_unlisted = DS_Dictionary::getBoolForKey(a2, \"k79\");\n  a1->m_friendsOnly = DS_Dictionary::getBoolForKey(a2, \"k94\");\n  DS_Dictionary::getIntegerForKey(a2, \"k46\");\n  a1->m_listRevision = v15;\n  a1->m_modified = DS_Dictionary::getBoolForKey(a2, \"k47\");\n  DS_Dictionary::getIntegerForKey(a2, \"k83\");\n  a1->m_listOrder = v16;\n  a1->m_favorite = DS_Dictionary::getBoolForKey(a2, \"k82\");\n  a1->m_featured = DS_Dictionary::getBoolForKey(a2, \"k27\");\n  DS_Dictionary::getIntegerForKey(a2, \"k98\");\n  a1->m_uploadDate = v17;\n  DS_Dictionary::getIntegerForKey(a2, \"k99\");\n  a1->m_updateDate = v18;\n  DS_Dictionary::getIntegerForKey(a2, \"k42\");\n  a1->m_original = v19;\n  a1->m_onlineLevelsLoaded = DS_Dictionary::getBoolForKey(a2, \"k100\");\n  DS_Dictionary::getIntegerForKey(a2, \"k113\");\n  a1->m_diamonds = v20;\n  DS_Dictionary::getIntegerForKey(a2, \"k114\");\n  a1->m_levelsToClaim = v21;\n  DictForKey = DS_Dictionary::getDictForKey(a2, \"k97\", 0);\n  v23 = DictForKey;\n  if ( a1->m_levelsDict != DictForKey )\n  {\n    if ( DictForKey )\n      cocos2d::CCObject::retain(DictForKey);\n    m_levelsDict = a1->m_levelsDict;\n    if ( m_levelsDict )\n      cocos2d::CCObject::release(m_levelsDict);\n    a1->m_levelsDict = v23;\n  }\n  v25 = (void **)DS_Dictionary::getStringForKey(a2, v26, \"k96\");\n  GJLevelList::parseListLevels((__int64)a1, v25);\n}", "assembly": "; \n; GJLevelList::dataLoaded from 0x140177ce0 to 0x140177ff5 (789 bytes)\n; \n; 2 xrefs:\n; > GJObjectDecoder::getDecodedObject @ 0x1402844a3\n; > <???> @ 0x1406cb004\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x140177ce0\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140177ce5\npush    rdi                                                            ; +0xa, 0x140177cea\nsub     rsp, 50h                                                       ; +0xb, 0x140177ceb\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x140177cef\nxor     rax, rsp                                                       ; +0x16, 0x140177cf6\nmov     [rsp+58h+var_10], rax                                          ; +0x19, 0x140177cf9\nmov     rsi, rdx                                                       ; +0x1e, 0x140177cfe\nmov     rbx, rcx                                                       ; +0x21, 0x140177d01\nmov     rcx, rsi                                                       ; +0x24, 0x140177d04\nlea     rdx, aK1; \"k1\"                                                 ; +0x27, 0x140177d07\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x2e, 0x140177d0e\nlea     rdx, aK84; \"k84\"                                               ; +0x34, 0x140177d14\nmov     rcx, rsi                                                       ; +0x3b, 0x140177d1b\nmov     [rbx+158h], eax                                                ; +0x3e, 0x140177d1e\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x44, 0x140177d24\nlea     r8, aK2; \"k2\"                                                  ; +0x4a, 0x140177d2a\nmov     rcx, rsi                                                       ; +0x51, 0x140177d31\nlea     rdx, [rsp+58h+var_30]                                          ; +0x54, 0x140177d34\nmov     [rbx+170h], eax                                                ; +0x59, 0x140177d39\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 *) ; +0x5f, 0x140177d3f\nmov     rdx, rax                                                       ; +0x65, 0x140177d45\nlea     rcx, [rbx+1B0h]                                                ; +0x68, 0x140177d48\ncall    sub_140051590                                                  ; +0x6f, 0x140177d4f\nlea     rcx, [rsp+58h+var_30]                                          ; +0x74, 0x140177d54\ncall    sub_14003A830                                                  ; +0x79, 0x140177d59\nlea     r8, aK3; \"k3\"                                                  ; +0x7e, 0x140177d5e\nmov     rcx, rsi                                                       ; +0x85, 0x140177d65\nlea     rdx, [rsp+58h+var_30]                                          ; +0x88, 0x140177d68\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 *) ; +0x8d, 0x140177d6d\nmov     rdx, rax                                                       ; +0x93, 0x140177d73\nlea     rcx, [rbx+210h]                                                ; +0x96, 0x140177d76\ncall    sub_140051590                                                  ; +0x9d, 0x140177d7d\nlea     rcx, [rsp+58h+var_30]                                          ; +0xa2, 0x140177d82\ncall    sub_14003A830                                                  ; +0xa7, 0x140177d87\nlea     r8, aK5; \"k5\"                                                  ; +0xac, 0x140177d8c\nmov     rcx, rsi                                                       ; +0xb3, 0x140177d93\nlea     rdx, [rsp+58h+var_30]                                          ; +0xb6, 0x140177d96\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 *) ; +0xbb, 0x140177d9b\nmov     rdx, rax                                                       ; +0xc1, 0x140177da1\nlea     rcx, [rbx+190h]                                                ; +0xc4, 0x140177da4\ncall    sub_140051590                                                  ; +0xcb, 0x140177dab\nlea     rcx, [rsp+58h+var_30]                                          ; +0xd0, 0x140177db0\ncall    sub_14003A830                                                  ; +0xd5, 0x140177db5\nlea     rdx, aK60; \"k60\"                                               ; +0xda, 0x140177dba\nmov     rcx, rsi                                                       ; +0xe1, 0x140177dc1\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0xe4, 0x140177dc4\nlea     rdx, aK7; \"k7\"                                                 ; +0xea, 0x140177dca\nmov     rcx, rsi                                                       ; +0xf1, 0x140177dd1\nmov     [rbx+16Ch], eax                                                ; +0xf4, 0x140177dd4\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0xfa, 0x140177dda\nlea     rdx, aK11; \"k11\"                                               ; +0x100, 0x140177de0\nmov     rcx, rsi                                                       ; +0x107, 0x140177de7\nmov     [rbx+168h], eax                                                ; +0x10a, 0x140177dea\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x110, 0x140177df0\nlea     rdx, aK15; \"k15\"                                               ; +0x116, 0x140177df6\nmov     rcx, rsi                                                       ; +0x11d, 0x140177dfd\nmov     [rbx+160h], eax                                                ; +0x120, 0x140177e00\ncall    cs:?getBoolForKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::getBoolForKey(char const *) ; +0x126, 0x140177e06\nlea     rdx, aK22; \"k22\"                                               ; +0x12c, 0x140177e0c\nmov     rcx, rsi                                                       ; +0x133, 0x140177e13\nmov     [rbx+18Bh], al                                                 ; +0x136, 0x140177e16\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x13c, 0x140177e1c\nlea     rdx, aK21; \"k21\"                                               ; +0x142, 0x140177e22\nmov     rcx, rsi                                                       ; +0x149, 0x140177e29\nmov     [rbx+164h], eax                                                ; +0x14c, 0x140177e2c\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x152, 0x140177e32\nlea     rdx, aK16; \"k16\"                                               ; +0x158, 0x140177e38\nmov     rcx, rsi                                                       ; +0x15f, 0x140177e3f\nmov     [rbx+240h], eax                                                ; +0x162, 0x140177e42\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x168, 0x140177e48\nlea     rdx, aK79; \"k79\"                                               ; +0x16e, 0x140177e4e\nmov     rcx, rsi                                                       ; +0x175, 0x140177e55\nmov     [rbx+15Ch], eax                                                ; +0x178, 0x140177e58\ncall    cs:?getBoolForKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::getBoolForKey(char const *) ; +0x17e, 0x140177e5e\nlea     rdx, aK94; \"k94\"                                               ; +0x184, 0x140177e64\nmov     rcx, rsi                                                       ; +0x18b, 0x140177e6b\nmov     [rbx+189h], al                                                 ; +0x18e, 0x140177e6e\ncall    cs:?getBoolForKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::getBoolForKey(char const *) ; +0x194, 0x140177e74\nlea     rdx, aK46; \"k46\"                                               ; +0x19a, 0x140177e7a\nmov     rcx, rsi                                                       ; +0x1a1, 0x140177e81\nmov     [rbx+18Ah], al                                                 ; +0x1a4, 0x140177e84\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x1aa, 0x140177e8a\nlea     rdx, aK47; \"k47\"                                               ; +0x1b0, 0x140177e90\nmov     rcx, rsi                                                       ; +0x1b7, 0x140177e97\nmov     [rbx+174h], eax                                                ; +0x1ba, 0x140177e9a\ncall    cs:?getBoolForKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::getBoolForKey(char const *) ; +0x1c0, 0x140177ea0\nmov     [rbx+18Fh], al                                                 ; +0x1c6, 0x140177ea6\nlea     rdx, aK83; \"k83\"                                               ; +0x1cc, 0x140177eac\nmov     rcx, rsi                                                       ; +0x1d3, 0x140177eb3\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x1d6, 0x140177eb6\nlea     rdx, aK82; \"k82\"                                               ; +0x1dc, 0x140177ebc\nmov     rcx, rsi                                                       ; +0x1e3, 0x140177ec3\nmov     [rbx+178h], eax                                                ; +0x1e6, 0x140177ec6\ncall    cs:?getBoolForKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::getBoolForKey(char const *) ; +0x1ec, 0x140177ecc\nlea     rdx, aK27; \"k27\"                                               ; +0x1f2, 0x140177ed2\nmov     rcx, rsi                                                       ; +0x1f9, 0x140177ed9\nmov     [rbx+18Ch], al                                                 ; +0x1fc, 0x140177edc\ncall    cs:?getBoolForKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::getBoolForKey(char const *) ; +0x202, 0x140177ee2\nlea     rdx, aK98; \"k98\"                                               ; +0x208, 0x140177ee8\nmov     rcx, rsi                                                       ; +0x20f, 0x140177eef\nmov     [rbx+18Dh], al                                                 ; +0x212, 0x140177ef2\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x218, 0x140177ef8\nlea     rdx, aK99; \"k99\"                                               ; +0x21e, 0x140177efe\nmov     rcx, rsi                                                       ; +0x225, 0x140177f05\nmov     [rbx+230h], eax                                                ; +0x228, 0x140177f08\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x22e, 0x140177f0e\nlea     rdx, aK42; \"k42\"                                               ; +0x234, 0x140177f14\nmov     rcx, rsi                                                       ; +0x23b, 0x140177f1b\nmov     [rbx+234h], eax                                                ; +0x23e, 0x140177f1e\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x244, 0x140177f24\nlea     rdx, aK100; \"k100\"                                             ; +0x24a, 0x140177f2a\nmov     rcx, rsi                                                       ; +0x251, 0x140177f31\nmov     [rbx+17Ch], eax                                                ; +0x254, 0x140177f34\ncall    cs:?getBoolForKey@DS_Dictionary@@QEAA_NPEBD@Z; DS_Dictionary::getBoolForKey(char const *) ; +0x25a, 0x140177f3a\nlea     rdx, aK113; \"k113\"                                             ; +0x260, 0x140177f40\nmov     rcx, rsi                                                       ; +0x267, 0x140177f47\nmov     [rbx+18Eh], al                                                 ; +0x26a, 0x140177f4a\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x270, 0x140177f50\nlea     rdx, aK114; \"k114\"                                             ; +0x276, 0x140177f56\nmov     rcx, rsi                                                       ; +0x27d, 0x140177f5d\nmov     [rbx+180h], eax                                                ; +0x280, 0x140177f60\ncall    cs:?getIntegerForKey@DS_Dictionary@@QEAAHPEBD@Z; DS_Dictionary::getIntegerForKey(char const *) ; +0x286, 0x140177f66\nxor     r8d, r8d                                                       ; +0x28c, 0x140177f6c\nlea     rdx, aK97; \"k97\"                                               ; +0x28f, 0x140177f6f\nmov     rcx, rsi                                                       ; +0x296, 0x140177f76\nmov     [rbx+184h], eax                                                ; +0x299, 0x140177f79\ncall    cs:?getDictForKey@DS_Dictionary@@QEAAPEAVCCDictionary@cocos2d@@PEBD_N@Z; DS_Dictionary::getDictForKey(char const *,bool) ; +0x29f, 0x140177f7f\nmov     rdi, rax                                                       ; +0x2a5, 0x140177f85\ncmp     [rbx+238h], rax                                                ; +0x2a8, 0x140177f88\njz      short loc_140177FB8                                            ; +0x2af, 0x140177f8f\ntest    rax, rax                                                       ; +0x2b1, 0x140177f91\njz      short loc_140177F9F                                            ; +0x2b4, 0x140177f94\nmov     rcx, rax                                                       ; +0x2b6, 0x140177f96\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x2b9, 0x140177f99\nmov     rcx, [rbx+238h]                                                ; +0x2bf, 0x140177f9f\ntest    rcx, rcx                                                       ; +0x2c6, 0x140177fa6\njz      short loc_140177FB1                                            ; +0x2c9, 0x140177fa9\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x2cb, 0x140177fab\nmov     [rbx+238h], rdi                                                ; +0x2d1, 0x140177fb1\nlea     r8, aK96; \"k96\"                                                ; +0x2d8, 0x140177fb8\nmov     rcx, rsi                                                       ; +0x2df, 0x140177fbf\nlea     rdx, [rsp+58h+var_30]                                          ; +0x2e2, 0x140177fc2\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 *) ; +0x2e7, 0x140177fc7\nmov     rdx, rax                                                       ; +0x2ed, 0x140177fcd\nmov     rcx, rbx                                                       ; +0x2f0, 0x140177fd0\ncall    GJLevelList__parseListLevels                                   ; +0x2f3, 0x140177fd3\nmov     rcx, [rsp+58h+var_10]                                          ; +0x2f8, 0x140177fd8\nxor     rcx, rsp; StackCookie                                          ; +0x2fd, 0x140177fdd\ncall    __security_check_cookie                                        ; +0x300, 0x140177fe0\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x305, 0x140177fe5\nmov     rsi, [rsp+58h+arg_18]                                          ; +0x30a, 0x140177fea\nadd     rsp, 50h                                                       ; +0x30f, 0x140177fef\npop     rdi                                                            ; +0x313, 0x140177ff3\nretn                                                                   ; +0x314, 0x140177ff4", "xrefs": ["GJObjectDecoder::getDecodedObject @ 0x1402844a3", "<???> @ 0x1406cb004"], "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"}