{"type": "func", "start": 4300534960, "end": 4300535623, "name": "GameLevelManager::encodeDataTo", "pseudocode": "// \n// GameLevelManager::encodeDataTo from 0x10054f4b0 to 0x10054f747 (663 bytes)\n// \n// 1 xrefs:\n// > GameManager::encodeDataTo @ 0x100375704\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 12:32:02 +0000\n// \n\nvoid __fastcall GameLevelManager::encodeDataTo(__int64 a1, __int64 a2)\n{\n  __int64 v3; // r15\n  __int64 v4; // rax\n  __int64 v5; // r12\n  __int64 v6; // rsi\n\n  DS_Dictionary::setDictForKey(a2, \"GLM_01\", *(_QWORD *)(a1 + 744));\n  GameLevelManager::limitSavedLevels(a1);\n  GameLevelManager::purgeUnusedLevels(a1);\n  GameLevelManager::updateLevelOrders(a1);\n  GameLevelManager::updateLevelOrders(a1);\n  DS_Dictionary::setDictForKey(a2, \"GLM_03\", *(_QWORD *)(a1 + 760));\n  GameLevelManager::cleanupDailyLevels(a1);\n  DS_Dictionary::setDictForKey(a2, \"GLM_10\", *(_QWORD *)(a1 + 848));\n  DS_Dictionary::setIntegerForKey_1(a2, (__int64)\"GLM_11\", *(unsigned int *)(a1 + 864));\n  DS_Dictionary::setIntegerForKey_1(a2, (__int64)\"GLM_17\", *(unsigned int *)(a1 + 876));\n  DS_Dictionary::setIntegerForKey_1(a2, (__int64)\"GLM_23\", *(unsigned int *)(a1 + 888));\n  DS_Dictionary::setIntegerForKey_1(a2, (__int64)\"GLM_24\", *(unsigned int *)(a1 + 916));\n  DS_Dictionary::setIntegerForKey_1(a2, (__int64)\"GLM_25\", *(unsigned int *)(a1 + 920));\n  DS_Dictionary::setIntegerForKey_1(a2, (__int64)\"GLM_26\", *(unsigned int *)(a1 + 924));\n  DS_Dictionary::setIntegerForKey_1(a2, (__int64)\"GLM_27\", *(unsigned int *)(a1 + 928));\n  DS_Dictionary::setIntegerForKey_1(a2, (__int64)\"GLM_28\", *(unsigned __int8 *)(a1 + 932));\n  DS_Dictionary::setDictForKey(a2, \"GLM_16\", *(_QWORD *)(a1 + 936));\n  v3 = sub_1007FE900(a2);\n  v4 = *(_QWORD *)(a1 + 784);\n  if ( v4 )\n  {\n    v5 = *(_QWORD *)(v4 + 56);\n    while ( v5 )\n    {\n      v6 = *(_QWORD *)(v5 + 264);\n      v5 = *(_QWORD *)(v5 + 288);\n      sub_1007FEBF0(v3, v6);\n    }\n  }\n  DS_Dictionary::setArrayForKey(a2, \"GLM_22\", v3);\n  DS_Dictionary::setBoolMapForKey(a2, \"GLM_09\", (_QWORD *)(a1 + 944));\n  if ( !*(_BYTE *)(GameManager::sharedState() + 346) )\n  {\n    DS_Dictionary::setDictForKey(a2, \"GLM_07\", *(_QWORD *)(a1 + 792));\n    DS_Dictionary::setDictForKey(a2, \"GLM_14\", *(_QWORD *)(a1 + 824));\n  }\n  DS_Dictionary::setDictForKey(a2, \"GLM_12\", *(_QWORD *)(a1 + 800));\n  DS_Dictionary::setDictForKey(a2, \"GLM_13\", *(_QWORD *)(a1 + 808));\n  DS_Dictionary::setDictForKey(a2, \"GLM_15\", *(_QWORD *)(a1 + 816));\n  DS_Dictionary::setDictForKey(a2, \"GLM_06\", *(_QWORD *)(a1 + 776));\n  DS_Dictionary::setDictForKey(a2, \"GLM_08\", *(_QWORD *)(a1 + 752));\n  DS_Dictionary::setDictForKey(a2, \"GLM_18\", *(_QWORD *)(a1 + 832));\n  DS_Dictionary::setDictForKey(a2, \"GLM_19\", *(_QWORD *)(a1 + 840));\n  DS_Dictionary::setArrayForKey(a2, \"GLM_20\", *(_QWORD *)(a1 + 1520));\n}", "assembly": "; \n; GameLevelManager::encodeDataTo from 0x10054f4b0 to 0x10054f747 (663 bytes)\n; \n; 1 xrefs:\n; > GameManager::encodeDataTo @ 0x100375704\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 12:32:02 +0000\n; \npush    rbp                                                            ; +0x0, 0x10054f4b0\nmov     rbp, rsp                                                       ; +0x1, 0x10054f4b1\npush    r15                                                            ; +0x4, 0x10054f4b4\npush    r14                                                            ; +0x6, 0x10054f4b6\npush    r12                                                            ; +0x8, 0x10054f4b8\npush    rbx                                                            ; +0xa, 0x10054f4ba\nmov     rbx, rsi                                                       ; +0xb, 0x10054f4bb\nmov     r14, rdi                                                       ; +0xe, 0x10054f4be\nmov     rdx, [rdi+2E8h]                                                ; +0x11, 0x10054f4c1\nlea     rsi, aGlm01; \"GLM_01\"                                          ; +0x18, 0x10054f4c8\nmov     rdi, rbx                                                       ; +0x1f, 0x10054f4cf\ncall    DS_Dictionary__setDictForKey                                   ; +0x22, 0x10054f4d2\nmov     rdi, r14                                                       ; +0x27, 0x10054f4d7\ncall    GameLevelManager__limitSavedLevels                             ; +0x2a, 0x10054f4da\nmov     rdi, r14                                                       ; +0x2f, 0x10054f4df\ncall    GameLevelManager__purgeUnusedLevels                            ; +0x32, 0x10054f4e2\nmov     rdi, r14                                                       ; +0x37, 0x10054f4e7\ncall    GameLevelManager__updateLevelOrders                            ; +0x3a, 0x10054f4ea\nmov     rdi, r14                                                       ; +0x3f, 0x10054f4ef\ncall    GameLevelManager__updateLevelOrders                            ; +0x42, 0x10054f4f2\nmov     rdx, [r14+2F8h]                                                ; +0x47, 0x10054f4f7\nlea     rsi, aGlm03; \"GLM_03\"                                          ; +0x4e, 0x10054f4fe\nmov     rdi, rbx                                                       ; +0x55, 0x10054f505\ncall    DS_Dictionary__setDictForKey                                   ; +0x58, 0x10054f508\nmov     rdi, r14                                                       ; +0x5d, 0x10054f50d\ncall    GameLevelManager__cleanupDailyLevels                           ; +0x60, 0x10054f510\nmov     rdx, [r14+350h]                                                ; +0x65, 0x10054f515\nlea     rsi, aGlm10; \"GLM_10\"                                          ; +0x6c, 0x10054f51c\nmov     rdi, rbx                                                       ; +0x73, 0x10054f523\ncall    DS_Dictionary__setDictForKey                                   ; +0x76, 0x10054f526\nmov     edx, [r14+360h]                                                ; +0x7b, 0x10054f52b\nlea     rsi, aGlm11; \"GLM_11\"                                          ; +0x82, 0x10054f532\nmov     rdi, rbx                                                       ; +0x89, 0x10054f539\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0x8c, 0x10054f53c\nmov     edx, [r14+36Ch]                                                ; +0x91, 0x10054f541\nlea     rsi, aGlm17; \"GLM_17\"                                          ; +0x98, 0x10054f548\nmov     rdi, rbx                                                       ; +0x9f, 0x10054f54f\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0xa2, 0x10054f552\nmov     edx, [r14+378h]                                                ; +0xa7, 0x10054f557\nlea     rsi, aGlm23; \"GLM_23\"                                          ; +0xae, 0x10054f55e\nmov     rdi, rbx                                                       ; +0xb5, 0x10054f565\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0xb8, 0x10054f568\nmov     edx, [r14+394h]                                                ; +0xbd, 0x10054f56d\nlea     rsi, aGlm24; \"GLM_24\"                                          ; +0xc4, 0x10054f574\nmov     rdi, rbx                                                       ; +0xcb, 0x10054f57b\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0xce, 0x10054f57e\nmov     edx, [r14+398h]                                                ; +0xd3, 0x10054f583\nlea     rsi, aGlm25; \"GLM_25\"                                          ; +0xda, 0x10054f58a\nmov     rdi, rbx                                                       ; +0xe1, 0x10054f591\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0xe4, 0x10054f594\nmov     edx, [r14+39Ch]                                                ; +0xe9, 0x10054f599\nlea     rsi, aGlm26; \"GLM_26\"                                          ; +0xf0, 0x10054f5a0\nmov     rdi, rbx                                                       ; +0xf7, 0x10054f5a7\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0xfa, 0x10054f5aa\nmov     edx, [r14+3A0h]                                                ; +0xff, 0x10054f5af\nlea     rsi, aGlm27; \"GLM_27\"                                          ; +0x106, 0x10054f5b6\nmov     rdi, rbx                                                       ; +0x10d, 0x10054f5bd\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0x110, 0x10054f5c0\nmovzx   edx, byte ptr [r14+3A4h]                                       ; +0x115, 0x10054f5c5\nlea     rsi, aGlm28; \"GLM_28\"                                          ; +0x11d, 0x10054f5cd\nmov     rdi, rbx                                                       ; +0x124, 0x10054f5d4\ncall    DS_Dictionary__setIntegerForKey_1                              ; +0x127, 0x10054f5d7\nmov     rdx, [r14+3A8h]                                                ; +0x12c, 0x10054f5dc\nlea     rsi, aGlm16; \"GLM_16\"                                          ; +0x133, 0x10054f5e3\nmov     rdi, rbx                                                       ; +0x13a, 0x10054f5ea\ncall    DS_Dictionary__setDictForKey                                   ; +0x13d, 0x10054f5ed\ncall    sub_1007FE900                                                  ; +0x142, 0x10054f5f2\nmov     r15, rax                                                       ; +0x147, 0x10054f5f7\nmov     rax, [r14+310h]                                                ; +0x14a, 0x10054f5fa\ntest    rax, rax                                                       ; +0x151, 0x10054f601\njz      short loc_10054F62D                                            ; +0x154, 0x10054f604\nmov     r12, [rax+38h]                                                 ; +0x156, 0x10054f606\ntest    r12, r12                                                       ; +0x15a, 0x10054f60a\njz      short loc_10054F62D                                            ; +0x15d, 0x10054f60d\nnop                                                                    ; +0x15f, 0x10054f60f\nmov     rsi, [r12+108h]                                                ; +0x160, 0x10054f610\nmov     r12, [r12+120h]                                                ; +0x168, 0x10054f618\nmov     rdi, r15                                                       ; +0x170, 0x10054f620\ncall    sub_1007FEBF0                                                  ; +0x173, 0x10054f623\ntest    r12, r12                                                       ; +0x178, 0x10054f628\njnz     short loc_10054F610                                            ; +0x17b, 0x10054f62b\nlea     rsi, aGlm22; \"GLM_22\"                                          ; +0x17d, 0x10054f62d\nmov     rdi, rbx                                                       ; +0x184, 0x10054f634\nmov     rdx, r15                                                       ; +0x187, 0x10054f637\ncall    DS_Dictionary__setArrayForKey                                  ; +0x18a, 0x10054f63a\nlea     rdx, [r14+3B0h]                                                ; +0x18f, 0x10054f63f\nlea     rsi, aGlm09; \"GLM_09\"                                          ; +0x196, 0x10054f646\nmov     rdi, rbx                                                       ; +0x19d, 0x10054f64d\ncall    DS_Dictionary__setBoolMapForKey                                ; +0x1a0, 0x10054f650\ncall    GameManager__sharedState                                       ; +0x1a5, 0x10054f655\ncmp     byte ptr [rax+15Ah], 0                                         ; +0x1aa, 0x10054f65a\njnz     short loc_10054F68F                                            ; +0x1b1, 0x10054f661\nmov     rdx, [r14+318h]                                                ; +0x1b3, 0x10054f663\nlea     rsi, aGlm07; \"GLM_07\"                                          ; +0x1ba, 0x10054f66a\nmov     rdi, rbx                                                       ; +0x1c1, 0x10054f671\ncall    DS_Dictionary__setDictForKey                                   ; +0x1c4, 0x10054f674\nmov     rdx, [r14+338h]                                                ; +0x1c9, 0x10054f679\nlea     rsi, aGlm14; \"GLM_14\"                                          ; +0x1d0, 0x10054f680\nmov     rdi, rbx                                                       ; +0x1d7, 0x10054f687\ncall    DS_Dictionary__setDictForKey                                   ; +0x1da, 0x10054f68a\nmov     rdx, [r14+320h]                                                ; +0x1df, 0x10054f68f\nlea     rsi, aGlm12; \"GLM_12\"                                          ; +0x1e6, 0x10054f696\nmov     rdi, rbx                                                       ; +0x1ed, 0x10054f69d\ncall    DS_Dictionary__setDictForKey                                   ; +0x1f0, 0x10054f6a0\nmov     rdx, [r14+328h]                                                ; +0x1f5, 0x10054f6a5\nlea     rsi, aGlm13; \"GLM_13\"                                          ; +0x1fc, 0x10054f6ac\nmov     rdi, rbx                                                       ; +0x203, 0x10054f6b3\ncall    DS_Dictionary__setDictForKey                                   ; +0x206, 0x10054f6b6\nmov     rdx, [r14+330h]                                                ; +0x20b, 0x10054f6bb\nlea     rsi, aGlm15; \"GLM_15\"                                          ; +0x212, 0x10054f6c2\nmov     rdi, rbx                                                       ; +0x219, 0x10054f6c9\ncall    DS_Dictionary__setDictForKey                                   ; +0x21c, 0x10054f6cc\nmov     rdx, [r14+308h]                                                ; +0x221, 0x10054f6d1\nlea     rsi, aGlm06; \"GLM_06\"                                          ; +0x228, 0x10054f6d8\nmov     rdi, rbx                                                       ; +0x22f, 0x10054f6df\ncall    DS_Dictionary__setDictForKey                                   ; +0x232, 0x10054f6e2\nmov     rdx, [r14+2F0h]                                                ; +0x237, 0x10054f6e7\nlea     rsi, aGlm08; \"GLM_08\"                                          ; +0x23e, 0x10054f6ee\nmov     rdi, rbx                                                       ; +0x245, 0x10054f6f5\ncall    DS_Dictionary__setDictForKey                                   ; +0x248, 0x10054f6f8\nmov     rdx, [r14+340h]                                                ; +0x24d, 0x10054f6fd\nlea     rsi, aGlm18; \"GLM_18\"                                          ; +0x254, 0x10054f704\nmov     rdi, rbx                                                       ; +0x25b, 0x10054f70b\ncall    DS_Dictionary__setDictForKey                                   ; +0x25e, 0x10054f70e\nmov     rdx, [r14+348h]                                                ; +0x263, 0x10054f713\nlea     rsi, aGlm19; \"GLM_19\"                                          ; +0x26a, 0x10054f71a\nmov     rdi, rbx                                                       ; +0x271, 0x10054f721\ncall    DS_Dictionary__setDictForKey                                   ; +0x274, 0x10054f724\nmov     rdx, [r14+5F0h]                                                ; +0x279, 0x10054f729\nlea     rsi, aGlm20; \"GLM_20\"                                          ; +0x280, 0x10054f730\nmov     rdi, rbx                                                       ; +0x287, 0x10054f737\npop     rbx                                                            ; +0x28a, 0x10054f73a\npop     r12                                                            ; +0x28b, 0x10054f73b\npop     r14                                                            ; +0x28d, 0x10054f73d\npop     r15                                                            ; +0x28f, 0x10054f73f\npop     rbp                                                            ; +0x291, 0x10054f741\njmp     DS_Dictionary__setArrayForKey                                  ; +0x292, 0x10054f742", "xrefs": ["GameManager::encodeDataTo @ 0x100375704"], "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"}