{"type": "func", "start": 5373343632, "end": 5373343806, "name": "LocalLevelManager::encodeDataTo", "pseudocode": "// \n// LocalLevelManager::encodeDataTo from 0x14046b790 to 0x14046b83e (174 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407b3c08\n// > <???> @ 0x1409280a0\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:32:36 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nvoid __fastcall LocalLevelManager::encodeDataTo(__int64 a1, DS_Dictionary *a2)\n{\n  __int64 v4; // rax\n  void *v5; // [rsp+30h] [rbp+8h]\n\n  v4 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v5 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v4 = qword_14090BFD0;\n  }\n  if ( *(_QWORD *)(v4 + 560) )\n    PlayLayer::writePersistentSave();\n  DS_Dictionary::setArrayForKey(a2, \"LLM_01\", *(struct cocos2d::CCArray **)(a1 + 368));\n  DS_Dictionary::setIntegerForKey(a2, \"LLM_02\", 51);\n  DS_Dictionary::setArrayForKey(a2, \"LLM_03\", *(struct cocos2d::CCArray **)(a1 + 376));\n}", "assembly": "; \n; LocalLevelManager::encodeDataTo from 0x14046b790 to 0x14046b83e (174 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407b3c08\n; > <???> @ 0x1409280a0\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:32:36 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14046b790\npush    rdi                                                            ; +0x5, 0x14046b795\nsub     rsp, 20h                                                       ; +0x6, 0x14046b796\nmov     rbx, rdx                                                       ; +0xa, 0x14046b79a\nmov     rdi, rcx                                                       ; +0xd, 0x14046b79d\nmov     rax, cs:qword_14090BFD0                                        ; +0x10, 0x14046b7a0\ntest    rax, rax                                                       ; +0x17, 0x14046b7a7\njnz     short loc_14046B7DE                                            ; +0x1a, 0x14046b7aa\nmov     ecx, 6E8h; Size                                                ; +0x1c, 0x14046b7ac\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x21, 0x14046b7b1\nmov     [rsp+28h+arg_0], rax                                           ; +0x26, 0x14046b7b6\nmov     rcx, rax                                                       ; +0x2b, 0x14046b7bb\ncall    GameManager__GameManager                                       ; +0x2e, 0x14046b7be\nnop                                                                    ; +0x33, 0x14046b7c3\nmov     cs:qword_14090BFD0, rax                                        ; +0x34, 0x14046b7c4\nmov     rcx, [rax]                                                     ; +0x3b, 0x14046b7cb\nmov     rdx, [rcx+48h]                                                 ; +0x3e, 0x14046b7ce\nmov     rcx, rax                                                       ; +0x42, 0x14046b7d2\ncall    rdx                                                            ; +0x45, 0x14046b7d5\nmov     rax, cs:qword_14090BFD0                                        ; +0x47, 0x14046b7d7\nmov     rcx, [rax+230h]                                                ; +0x4e, 0x14046b7de\ntest    rcx, rcx                                                       ; +0x55, 0x14046b7e5\njz      short loc_14046B7EF                                            ; +0x58, 0x14046b7e8\ncall    PlayLayer__writePersistentSave                                 ; +0x5a, 0x14046b7ea\nmov     r8, [rdi+170h]                                                 ; +0x5f, 0x14046b7ef\nlea     rdx, aLlm01; \"LLM_01\"                                          ; +0x66, 0x14046b7f6\nmov     rcx, rbx                                                       ; +0x6d, 0x14046b7fd\ncall    cs:?setArrayForKey@DS_Dictionary@@QEAAXPEBDPEAVCCArray@cocos2d@@@Z; DS_Dictionary::setArrayForKey(char const *,cocos2d::CCArray *) ; +0x70, 0x14046b800\nmov     r8d, 33h ; '3'                                                 ; +0x76, 0x14046b806\nlea     rdx, aLlm02; \"LLM_02\"                                          ; +0x7c, 0x14046b80c\nmov     rcx, rbx                                                       ; +0x83, 0x14046b813\ncall    cs:?setIntegerForKey@DS_Dictionary@@QEAAXPEBDH@Z; DS_Dictionary::setIntegerForKey(char const *,int) ; +0x86, 0x14046b816\nmov     r8, [rdi+178h]                                                 ; +0x8c, 0x14046b81c\nlea     rdx, aLlm03; \"LLM_03\"                                          ; +0x93, 0x14046b823\nmov     rcx, rbx                                                       ; +0x9a, 0x14046b82a\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9d, 0x14046b82d\nadd     rsp, 20h                                                       ; +0xa2, 0x14046b832\npop     rdi                                                            ; +0xa6, 0x14046b836\njmp     cs:?setArrayForKey@DS_Dictionary@@QEAAXPEBDPEAVCCArray@cocos2d@@@Z; DS_Dictionary::setArrayForKey(char const *,cocos2d::CCArray *) ; +0xa7, 0x14046b837", "xrefs": ["<???> @ 0x1407b3c08", "<???> @ 0x1409280a0"], "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"}