{"type": "func", "start": 6442546672, "end": 6442546781, "name": "sub_1800175F0", "pseudocode": "// \n// sub_1800175F0 from 0x1800175f0 to 0x18001765d (109 bytes)\n// \n// 14 xrefs:\n// > sub_180045520 @ 0x18004552d\n// > cocos2d::CCKeyboardDispatcher::~CCKeyboardDispatcher @ 0x1800455a2\n// > cocos2d::CCKeyboardDispatcher::releaseAllKeys @ 0x180047122\n// > sub_1800E6470 @ 0x1800e647e\n// > int `std::collate<char>::do_transform @ 0x1800e663e\n// > sub_1800E7190 @ 0x1800e719b\n// > sub_1800E7FC0 @ 0x1800e7fc7\n// > sub_1800E80F0 @ 0x1800e80fb\n// > sub_1800E8110 @ 0x1800e811b\n// > sub_1800E8EF0 @ 0x1800e8efb\n// > sub_1800E9130 @ 0x1800e913b\n// > sub_1800E9190 @ 0x1800e919b\n// > <???> @ 0x180144293\n// > <???> @ 0x1801b8758\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:21:25 +0000\n// \n\nvoid __fastcall sub_1800175F0(__int64 a1)\n{\n  _QWORD *v2; // rcx\n\n  v2 = *(_QWORD **)a1;\n  if ( v2 )\n  {\n    if ( ((*(_QWORD *)(a1 + 16) - (_QWORD)v2) & 0xFFFFFFFFFFFFFFF8uLL) >= 0x1000 )\n    {\n      if ( (unsigned __int64)v2 - *(v2 - 1) - 8 > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      v2 = (_QWORD *)*(v2 - 1);\n    }\n    j_j_free_0(v2);\n    *(_QWORD *)a1 = 0;\n    *(_QWORD *)(a1 + 8) = 0;\n    *(_QWORD *)(a1 + 16) = 0;\n  }\n}", "assembly": "; \n; sub_1800175F0 from 0x1800175f0 to 0x18001765d (109 bytes)\n; \n; 14 xrefs:\n; > sub_180045520 @ 0x18004552d\n; > cocos2d::CCKeyboardDispatcher::~CCKeyboardDispatcher @ 0x1800455a2\n; > cocos2d::CCKeyboardDispatcher::releaseAllKeys @ 0x180047122\n; > sub_1800E6470 @ 0x1800e647e\n; > int `std::collate<char>::do_transform @ 0x1800e663e\n; > sub_1800E7190 @ 0x1800e719b\n; > sub_1800E7FC0 @ 0x1800e7fc7\n; > sub_1800E80F0 @ 0x1800e80fb\n; > sub_1800E8110 @ 0x1800e811b\n; > sub_1800E8EF0 @ 0x1800e8efb\n; > sub_1800E9130 @ 0x1800e913b\n; > sub_1800E9190 @ 0x1800e919b\n; > <???> @ 0x180144293\n; > <???> @ 0x1801b8758\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:21:25 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800175f0\nsub     rsp, 30h                                                       ; +0x2, 0x1800175f2\nmov     rbx, rcx                                                       ; +0x6, 0x1800175f6\nmov     rcx, [rcx]                                                     ; +0x9, 0x1800175f9\ntest    rcx, rcx                                                       ; +0xc, 0x1800175fc\njz      short loc_18001763F                                            ; +0xf, 0x1800175ff\nmov     rdx, [rbx+10h]                                                 ; +0x11, 0x180017601\nsub     rdx, rcx                                                       ; +0x15, 0x180017605\nand     rdx, 0FFFFFFFFFFFFFFF8h                                        ; +0x18, 0x180017608\ncmp     rdx, 1000h                                                     ; +0x1c, 0x18001760c\njb      short loc_18001762D                                            ; +0x23, 0x180017613\nmov     rax, [rcx-8]                                                   ; +0x25, 0x180017615\nadd     rdx, 27h ; '''                                                 ; +0x29, 0x180017619\nsub     rcx, rax                                                       ; +0x2d, 0x18001761d\nsub     rcx, 8                                                         ; +0x30, 0x180017620\ncmp     rcx, 1Fh                                                       ; +0x34, 0x180017624\nja      short loc_180017645                                            ; +0x38, 0x180017628\nmov     rcx, rax; Block                                                ; +0x3a, 0x18001762a\ncall    j_j_free_0                                                     ; +0x3d, 0x18001762d\nxor     eax, eax                                                       ; +0x42, 0x180017632\nmov     [rbx], rax                                                     ; +0x44, 0x180017634\nmov     [rbx+8], rax                                                   ; +0x47, 0x180017637\nmov     [rbx+10h], rax                                                 ; +0x4b, 0x18001763b\nadd     rsp, 30h                                                       ; +0x4f, 0x18001763f\npop     rbx                                                            ; +0x53, 0x180017643\nretn                                                                   ; +0x54, 0x180017644\nxor     eax, eax                                                       ; +0x55, 0x180017645\nxor     r9d, r9d; LineNo                                               ; +0x57, 0x180017647\nxor     r8d, r8d; FileName                                             ; +0x5a, 0x18001764a\nmov     [rsp+38h+Reserved], rax; Reserved                              ; +0x5d, 0x18001764d\nxor     edx, edx; FunctionName                                         ; +0x62, 0x180017652\nxor     ecx, ecx; Expression                                           ; +0x64, 0x180017654\ncall    cs:_invoke_watson                                              ; +0x66, 0x180017656\ndb 0CCh                                                                ; +0x6c, 0x18001765c", "xrefs": ["sub_180045520 @ 0x18004552d", "cocos2d::CCKeyboardDispatcher::~CCKeyboardDispatcher @ 0x1800455a2", "cocos2d::CCKeyboardDispatcher::releaseAllKeys @ 0x180047122", "sub_1800E6470 @ 0x1800e647e", "int `std::collate<char>::do_transform @ 0x1800e663e", "sub_1800E7190 @ 0x1800e719b", "sub_1800E7FC0 @ 0x1800e7fc7", "sub_1800E80F0 @ 0x1800e80fb", "sub_1800E8110 @ 0x1800e811b", "sub_1800E8EF0 @ 0x1800e8efb", "sub_1800E9130 @ 0x1800e913b", "sub_1800E9190 @ 0x1800e919b", "<???> @ 0x180144293", "<???> @ 0x1801b8758"], "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"}