{"type": "func", "start": 6442973296, "end": 6442973444, "name": "sub_18007F870", "pseudocode": "// \n// sub_18007F870 from 0x18007f870 to 0x18007f904 (148 bytes)\n// \n// 18 xrefs:\n// > DS_Dictionary::DS_Dictionary @ 0x180017239\n// > DS_Dictionary::DS_Dictionary @ 0x180017274\n// > DS_Dictionary::setArrayForKey @ 0x18001e768\n// > DS_Dictionary::setBoolForKey @ 0x18001e93f\n// > DS_Dictionary::setFloatForKey @ 0x18001ef4f\n// > DS_Dictionary::setIntegerForKey @ 0x18001f1e1\n// > DS_Dictionary::setRectArrayForKey @ 0x18001f615\n// > DS_Dictionary::setRectArrayForKey @ 0x18001f903\n// > DS_Dictionary::setRectForKey @ 0x18001fc31\n// > DS_Dictionary::setStringArrayForKey @ 0x18001fe8f\n// > DS_Dictionary::setStringArrayForKey @ 0x18001ff4b\n// > DS_Dictionary::setStringForKey @ 0x1800200d1\n// > DS_Dictionary::setSubDictForKey @ 0x1800201e3\n// > DS_Dictionary::setSubDictForKey @ 0x18002033f\n// > DS_Dictionary::setVec2ArrayForKey @ 0x180020535\n// > DS_Dictionary::setVec2ArrayForKey @ 0x1800207d5\n// > DS_Dictionary::setVec2ForKey @ 0x180020abf\n// > <???> @ 0x1801b5028\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\n_QWORD *__fastcall sub_18007F870(_QWORD **a1, _QWORD *a2, __int64 a3)\n{\n  _QWORD *v3; // rcx\n  _DWORD *v6; // rax\n\n  v3 = *a1;\n  if ( v3 && (*(_DWORD *)v3 & 7u) <= 1 )\n  {\n    v6 = (_DWORD *)sub_18007F9D0(v3, *(_QWORD *)(*v3 & 0xFFFFFFFFFFFFFFE0uLL), 2);\n    *a2 = v6;\n    if ( v6 && ((*v6 & 7) == 1 || (*v6 & 7u) - 5 <= 1) )\n    {\n      sub_180085720(v6 + 4, v6, 16, a3);\n      return a2;\n    }\n  }\n  else\n  {\n    *a2 = 0;\n  }\n  return a2;\n}", "assembly": "; \n; sub_18007F870 from 0x18007f870 to 0x18007f904 (148 bytes)\n; \n; 18 xrefs:\n; > DS_Dictionary::DS_Dictionary @ 0x180017239\n; > DS_Dictionary::DS_Dictionary @ 0x180017274\n; > DS_Dictionary::setArrayForKey @ 0x18001e768\n; > DS_Dictionary::setBoolForKey @ 0x18001e93f\n; > DS_Dictionary::setFloatForKey @ 0x18001ef4f\n; > DS_Dictionary::setIntegerForKey @ 0x18001f1e1\n; > DS_Dictionary::setRectArrayForKey @ 0x18001f615\n; > DS_Dictionary::setRectArrayForKey @ 0x18001f903\n; > DS_Dictionary::setRectForKey @ 0x18001fc31\n; > DS_Dictionary::setStringArrayForKey @ 0x18001fe8f\n; > DS_Dictionary::setStringArrayForKey @ 0x18001ff4b\n; > DS_Dictionary::setStringForKey @ 0x1800200d1\n; > DS_Dictionary::setSubDictForKey @ 0x1800201e3\n; > DS_Dictionary::setSubDictForKey @ 0x18002033f\n; > DS_Dictionary::setVec2ArrayForKey @ 0x180020535\n; > DS_Dictionary::setVec2ArrayForKey @ 0x1800207d5\n; > DS_Dictionary::setVec2ForKey @ 0x180020abf\n; > <???> @ 0x1801b5028\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_0], rbx                                               ; +0x0, 0x18007f870\npush    rdi                                                            ; +0x5, 0x18007f875\nsub     rsp, 20h                                                       ; +0x6, 0x18007f876\nmov     rcx, [rcx]                                                     ; +0xa, 0x18007f87a\nmov     rdi, r8                                                        ; +0xd, 0x18007f87d\nmov     rbx, rdx                                                       ; +0x10, 0x18007f880\ntest    rcx, rcx                                                       ; +0x13, 0x18007f883\njz      short loc_18007F8EF                                            ; +0x16, 0x18007f886\nmov     eax, [rcx]                                                     ; +0x18, 0x18007f888\nand     eax, 7                                                         ; +0x1a, 0x18007f88a\ninc     eax                                                            ; +0x1d, 0x18007f88d\ncmp     eax, 1                                                         ; +0x1f, 0x18007f88f\njz      short loc_18007F899                                            ; +0x22, 0x18007f892\ncmp     eax, 2                                                         ; +0x24, 0x18007f894\njnz     short loc_18007F8EF                                            ; +0x27, 0x18007f897\nmov     rax, [rcx]                                                     ; +0x29, 0x18007f899\nmov     r8d, 2                                                         ; +0x2c, 0x18007f89c\nand     rax, 0FFFFFFFFFFFFFFE0h                                        ; +0x32, 0x18007f8a2\nmov     rdx, [rax]                                                     ; +0x36, 0x18007f8a6\ncall    sub_18007F9D0                                                  ; +0x39, 0x18007f8a9\nmov     [rbx], rax                                                     ; +0x3e, 0x18007f8ae\ntest    rax, rax                                                       ; +0x41, 0x18007f8b1\njz      short loc_18007F8F6                                            ; +0x44, 0x18007f8b4\nmov     edx, [rax]                                                     ; +0x46, 0x18007f8b6\nand     edx, 7                                                         ; +0x48, 0x18007f8b8\ninc     edx                                                            ; +0x4b, 0x18007f8bb\nsub     edx, 2                                                         ; +0x4d, 0x18007f8bd\njz      short loc_18007F8CC                                            ; +0x50, 0x18007f8c0\nsub     edx, 4                                                         ; +0x52, 0x18007f8c2\njz      short loc_18007F8CC                                            ; +0x55, 0x18007f8c5\ncmp     edx, 1                                                         ; +0x57, 0x18007f8c7\njnz     short loc_18007F8F6                                            ; +0x5a, 0x18007f8ca\nlea     rcx, [rax+10h]                                                 ; +0x5c, 0x18007f8cc\nmov     r9, rdi                                                        ; +0x60, 0x18007f8d0\nmov     r8d, 10h                                                       ; +0x63, 0x18007f8d3\nmov     rdx, rax                                                       ; +0x69, 0x18007f8d9\ncall    sub_180085720                                                  ; +0x6c, 0x18007f8dc\nmov     rax, rbx                                                       ; +0x71, 0x18007f8e1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x74, 0x18007f8e4\nadd     rsp, 20h                                                       ; +0x79, 0x18007f8e9\npop     rdi                                                            ; +0x7d, 0x18007f8ed\nretn                                                                   ; +0x7e, 0x18007f8ee\nmov     qword ptr [rdx], 0                                             ; +0x7f, 0x18007f8ef\nmov     rax, rbx                                                       ; +0x86, 0x18007f8f6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x89, 0x18007f8f9\nadd     rsp, 20h                                                       ; +0x8e, 0x18007f8fe\npop     rdi                                                            ; +0x92, 0x18007f902\nretn                                                                   ; +0x93, 0x18007f903", "xrefs": ["DS_Dictionary::DS_Dictionary @ 0x180017239", "DS_Dictionary::DS_Dictionary @ 0x180017274", "DS_Dictionary::setArrayForKey @ 0x18001e768", "DS_Dictionary::setBoolForKey @ 0x18001e93f", "DS_Dictionary::setFloatForKey @ 0x18001ef4f", "DS_Dictionary::setIntegerForKey @ 0x18001f1e1", "DS_Dictionary::setRectArrayForKey @ 0x18001f615", "DS_Dictionary::setRectArrayForKey @ 0x18001f903", "DS_Dictionary::setRectForKey @ 0x18001fc31", "DS_Dictionary::setStringArrayForKey @ 0x18001fe8f", "DS_Dictionary::setStringArrayForKey @ 0x18001ff4b", "DS_Dictionary::setStringForKey @ 0x1800200d1", "DS_Dictionary::setSubDictForKey @ 0x1800201e3", "DS_Dictionary::setSubDictForKey @ 0x18002033f", "DS_Dictionary::setVec2ArrayForKey @ 0x180020535", "DS_Dictionary::setVec2ArrayForKey @ 0x1800207d5", "DS_Dictionary::setVec2ForKey @ 0x180020abf", "<???> @ 0x1801b5028"], "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"}