{"type": "func", "start": 4300451632, "end": 4300452183, "name": "GameLevelManager::encodeDataTo", "pseudocode": "// \n// GameLevelManager::encodeDataTo from 0x10053af30 to 0x10053b157 (551 bytes)\n// \n// 1 xrefs:\n// > GameManager::encodeDataTo @ 0x10038b260\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 __fastcall GameLevelManager::encodeDataTo(GameLevelManager *a1, DS_Dictionary *a2)\n{\n  cocos2d::CCArray *v3; // r15\n  cocos2d::CCDictionary *m_favoriteLists; // rax\n  cocos2d::CCDictElement *m_pElements; // r12\n  cocos2d::CCObject *m_pObject; // rsi\n\n  DS_Dictionary::setDictForKey(a2, \"GLM_01\", a1->m_mainLevels);\n  GameLevelManager::limitSavedLevels(a1);\n  GameLevelManager::purgeUnusedLevels(a1);\n  GameLevelManager::updateLevelOrders(a1);\n  GameLevelManager::updateLevelOrders(a1);\n  DS_Dictionary::setDictForKey(a2, \"GLM_03\", a1->m_onlineLevels);\n  GameLevelManager::cleanupDailyLevels(a1);\n  DS_Dictionary::setDictForKey(a2, \"GLM_10\", a1->m_dailyLevels);\n  DS_Dictionary::setIntegerForKey_1(a2, \"GLM_11\", a1->m_activeDailyID);\n  DS_Dictionary::setIntegerForKey_1(a2, \"GLM_17\", a1->m_activeWeeklyID);\n  DS_Dictionary::setIntegerForKey_1(a2, \"GLM_23\", a1->m_activeEventID);\n  DS_Dictionary::setDictForKey(a2, \"GLM_16\", a1->m_gauntletLevels);\n  v3 = (cocos2d::CCArray *)sub_10071F9E0(a2, \"GLM_16\");\n  m_favoriteLists = a1->m_favoriteLists;\n  if ( m_favoriteLists )\n  {\n    m_pElements = m_favoriteLists->m_pElements;\n    while ( m_pElements )\n    {\n      m_pObject = m_pElements->m_pObject;\n      m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;\n      sub_10071FCD0(v3, m_pObject);\n    }\n  }\n  DS_Dictionary::setArrayForKey(a2, \"GLM_22\", v3);\n  DS_Dictionary::setBoolMapForKey(a2, \"GLM_09\", &a1->m_availableFilters);\n  if ( !GameManager::sharedState()->m_quickSave )\n  {\n    DS_Dictionary::setDictForKey(a2, \"GLM_07\", a1->m_downloadedLevels);\n    DS_Dictionary::setDictForKey(a2, \"GLM_14\", a1->m_reportedLevels);\n  }\n  DS_Dictionary::setDictForKey(a2, \"GLM_12\", a1->m_likedLevels);\n  DS_Dictionary::setDictForKey(a2, \"GLM_13\", a1->m_ratedLevels);\n  DS_Dictionary::setDictForKey(a2, \"GLM_15\", a1->m_ratedDemons);\n  DS_Dictionary::setDictForKey(a2, \"GLM_06\", a1->m_followedCreators);\n  DS_Dictionary::setDictForKey(a2, \"GLM_08\", a1->m_searchFilters);\n  DS_Dictionary::setDictForKey(a2, \"GLM_18\", a1->m_onlineFolders);\n  DS_Dictionary::setDictForKey(a2, \"GLM_19\", a1->m_localLevelsFolders);\n  DS_Dictionary::setArrayForKey(a2, \"GLM_20\", a1->m_smartTemplates);\n}", "assembly": "; \n; GameLevelManager::encodeDataTo from 0x10053af30 to 0x10053b157 (551 bytes)\n; \n; 1 xrefs:\n; > GameManager::encodeDataTo @ 0x10038b260\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\npush    rbp                                                            ; +0x0, 0x10053af30\nmov     rbp, rsp                                                       ; +0x1, 0x10053af31\npush    r15                                                            ; +0x4, 0x10053af34\npush    r14                                                            ; +0x6, 0x10053af36\npush    r12                                                            ; +0x8, 0x10053af38\npush    rbx                                                            ; +0xa, 0x10053af3a\nmov     rbx, rsi                                                       ; +0xb, 0x10053af3b\nmov     r14, rdi                                                       ; +0xe, 0x10053af3e\nmov     rdx, [rdi+158h]                                                ; +0x11, 0x10053af41\nlea     rsi, aGlm01; \"GLM_01\"                                          ; +0x18, 0x10053af48\nmov     rdi, rbx                                                       ; +0x1f, 0x10053af4f\ncall    DS_Dictionary__setDictForKey                                   ; +0x22, 0x10053af52\nmov     rdi, r14                                                       ; +0x27, 0x10053af57\ncall    GameLevelManager__limitSavedLevels                             ; +0x2a, 0x10053af5a\nmov     rdi, r14                                                       ; +0x2f, 0x10053af5f\ncall    GameLevelManager__purgeUnusedLevels                            ; +0x32, 0x10053af62\nmov     rdi, r14                                                       ; +0x37, 0x10053af67\ncall    GameLevelManager__updateLevelOrders                            ; +0x3a, 0x10053af6a\nmov     rdi, r14                                                       ; +0x3f, 0x10053af6f\ncall    GameLevelManager__updateLevelOrders                            ; +0x42, 0x10053af72\nmov     rdx, [r14+168h]                                                ; +0x47, 0x10053af77\nlea     rsi, aGlm03; \"GLM_03\"                                          ; +0x4e, 0x10053af7e\nmov     rdi, rbx                                                       ; +0x55, 0x10053af85\ncall    DS_Dictionary__setDictForKey                                   ; +0x58, 0x10053af88\nmov     rdi, r14                                                       ; +0x5d, 0x10053af8d\ncall    GameLevelManager__cleanupDailyLevels                           ; +0x60, 0x10053af90\nmov     rdx, [r14+1C0h]                                                ; +0x65, 0x10053af95\nlea     rsi, aGlm10; \"GLM_10\"                                          ; +0x6c, 0x10053af9c\nmov     rdi, rbx                                                       ; +0x73, 0x10053afa3\ncall    DS_Dictionary__setDictForKey                                   ; +0x76, 0x10053afa6\nmov     edx, [r14+1D0h]                                                ; +0x7b, 0x10053afab\nlea     rsi, aGlm11; \"GLM_11\"                                          ; +0x82, 0x10053afb2\nmov     rdi, rbx                                                       ; +0x89, 0x10053afb9\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0x8c, 0x10053afbc\nmov     edx, [r14+1DCh]                                                ; +0x91, 0x10053afc1\nlea     rsi, aGlm17; \"GLM_17\"                                          ; +0x98, 0x10053afc8\nmov     rdi, rbx                                                       ; +0x9f, 0x10053afcf\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0xa2, 0x10053afd2\nmov     edx, [r14+1E8h]                                                ; +0xa7, 0x10053afd7\nlea     rsi, aGlm23; \"GLM_23\"                                          ; +0xae, 0x10053afde\nmov     rdi, rbx                                                       ; +0xb5, 0x10053afe5\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0xb8, 0x10053afe8\nmov     rdx, [r14+1F0h]                                                ; +0xbd, 0x10053afed\nlea     rsi, aGlm16; \"GLM_16\"                                          ; +0xc4, 0x10053aff4\nmov     rdi, rbx                                                       ; +0xcb, 0x10053affb\ncall    DS_Dictionary__setDictForKey                                   ; +0xce, 0x10053affe\ncall    sub_10071F9E0                                                  ; +0xd3, 0x10053b003\nmov     r15, rax                                                       ; +0xd8, 0x10053b008\nmov     rax, [r14+180h]                                                ; +0xdb, 0x10053b00b\ntest    rax, rax                                                       ; +0xe2, 0x10053b012\njz      short loc_10053B03D                                            ; +0xe5, 0x10053b015\nmov     r12, [rax+38h]                                                 ; +0xe7, 0x10053b017\ntest    r12, r12                                                       ; +0xeb, 0x10053b01b\njz      short loc_10053B03D                                            ; +0xee, 0x10053b01e\nmov     rsi, [r12+108h]                                                ; +0xf0, 0x10053b020\nmov     r12, [r12+120h]                                                ; +0xf8, 0x10053b028\nmov     rdi, r15                                                       ; +0x100, 0x10053b030\ncall    sub_10071FCD0                                                  ; +0x103, 0x10053b033\ntest    r12, r12                                                       ; +0x108, 0x10053b038\njnz     short loc_10053B020                                            ; +0x10b, 0x10053b03b\nlea     rsi, aGlm22; \"GLM_22\"                                          ; +0x10d, 0x10053b03d\nmov     rdi, rbx                                                       ; +0x114, 0x10053b044\nmov     rdx, r15                                                       ; +0x117, 0x10053b047\ncall    DS_Dictionary__setArrayForKey                                  ; +0x11a, 0x10053b04a\nlea     rdx, [r14+1F8h]                                                ; +0x11f, 0x10053b04f\nlea     rsi, aGlm09; \"GLM_09\"                                          ; +0x126, 0x10053b056\nmov     rdi, rbx                                                       ; +0x12d, 0x10053b05d\ncall    DS_Dictionary__setBoolMapForKey                                ; +0x130, 0x10053b060\ncall    GameManager__sharedState                                       ; +0x135, 0x10053b065\ncmp     byte ptr [rax+15Ah], 0                                         ; +0x13a, 0x10053b06a\njnz     short loc_10053B09F                                            ; +0x141, 0x10053b071\nmov     rdx, [r14+188h]                                                ; +0x143, 0x10053b073\nlea     rsi, aGlm07; \"GLM_07\"                                          ; +0x14a, 0x10053b07a\nmov     rdi, rbx                                                       ; +0x151, 0x10053b081\ncall    DS_Dictionary__setDictForKey                                   ; +0x154, 0x10053b084\nmov     rdx, [r14+1A8h]                                                ; +0x159, 0x10053b089\nlea     rsi, aGlm14; \"GLM_14\"                                          ; +0x160, 0x10053b090\nmov     rdi, rbx                                                       ; +0x167, 0x10053b097\ncall    DS_Dictionary__setDictForKey                                   ; +0x16a, 0x10053b09a\nmov     rdx, [r14+190h]                                                ; +0x16f, 0x10053b09f\nlea     rsi, aGlm12; \"GLM_12\"                                          ; +0x176, 0x10053b0a6\nmov     rdi, rbx                                                       ; +0x17d, 0x10053b0ad\ncall    DS_Dictionary__setDictForKey                                   ; +0x180, 0x10053b0b0\nmov     rdx, [r14+198h]                                                ; +0x185, 0x10053b0b5\nlea     rsi, aGlm13; \"GLM_13\"                                          ; +0x18c, 0x10053b0bc\nmov     rdi, rbx                                                       ; +0x193, 0x10053b0c3\ncall    DS_Dictionary__setDictForKey                                   ; +0x196, 0x10053b0c6\nmov     rdx, [r14+1A0h]                                                ; +0x19b, 0x10053b0cb\nlea     rsi, aGlm15; \"GLM_15\"                                          ; +0x1a2, 0x10053b0d2\nmov     rdi, rbx                                                       ; +0x1a9, 0x10053b0d9\ncall    DS_Dictionary__setDictForKey                                   ; +0x1ac, 0x10053b0dc\nmov     rdx, [r14+178h]                                                ; +0x1b1, 0x10053b0e1\nlea     rsi, aGlm06; \"GLM_06\"                                          ; +0x1b8, 0x10053b0e8\nmov     rdi, rbx                                                       ; +0x1bf, 0x10053b0ef\ncall    DS_Dictionary__setDictForKey                                   ; +0x1c2, 0x10053b0f2\nmov     rdx, [r14+160h]                                                ; +0x1c7, 0x10053b0f7\nlea     rsi, aGlm08; \"GLM_08\"                                          ; +0x1ce, 0x10053b0fe\nmov     rdi, rbx                                                       ; +0x1d5, 0x10053b105\ncall    DS_Dictionary__setDictForKey                                   ; +0x1d8, 0x10053b108\nmov     rdx, [r14+1B0h]                                                ; +0x1dd, 0x10053b10d\nlea     rsi, aGlm18; \"GLM_18\"                                          ; +0x1e4, 0x10053b114\nmov     rdi, rbx                                                       ; +0x1eb, 0x10053b11b\ncall    DS_Dictionary__setDictForKey                                   ; +0x1ee, 0x10053b11e\nmov     rdx, [r14+1B8h]                                                ; +0x1f3, 0x10053b123\nlea     rsi, aGlm19; \"GLM_19\"                                          ; +0x1fa, 0x10053b12a\nmov     rdi, rbx                                                       ; +0x201, 0x10053b131\ncall    DS_Dictionary__setDictForKey                                   ; +0x204, 0x10053b134\nmov     rdx, [r14+3B0h]                                                ; +0x209, 0x10053b139\nlea     rsi, aGlm20; \"GLM_20\"                                          ; +0x210, 0x10053b140\nmov     rdi, rbx                                                       ; +0x217, 0x10053b147\npop     rbx                                                            ; +0x21a, 0x10053b14a\npop     r12                                                            ; +0x21b, 0x10053b14b\npop     r14                                                            ; +0x21d, 0x10053b14d\npop     r15                                                            ; +0x21f, 0x10053b14f\npop     rbp                                                            ; +0x221, 0x10053b151\njmp     DS_Dictionary__setArrayForKey                                  ; +0x222, 0x10053b152", "xrefs": ["GameManager::encodeDataTo @ 0x10038b260"], "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"}