{"type": "func", "start": 6442855920, "end": 6442856109, "name": "sub_180062DF0", "pseudocode": "// \n// sub_180062DF0 from 0x180062df0 to 0x180062ead (189 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180100560\n// > <???> @ 0x1801bd7bc\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:51 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_180062DF0(cocos2d::CCObject **this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n  void *v6; // rcx\n  void *v7; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 88, *(this - 1), cocos2d::CCMouseDispatcher::~CCMouseDispatcher);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0(this - 1);\n    return (cocos2d::CCObject *)(this - 1);\n  }\n  else\n  {\n    *this = (cocos2d::CCObject *)&cocos2d::CCMouseDispatcher::`vftable';\n    v5 = *(this + 7);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    v6 = *(this + 9);\n    if ( v6 )\n      sub_1800A1E70(v6);\n    v7 = *(this + 10);\n    if ( v7 )\n      sub_1800A1E70(v7);\n    cocos2d::CCObject::~CCObject((cocos2d::CCObject *)this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return (cocos2d::CCObject *)this;\n  }\n}", "assembly": "; \n; sub_180062DF0 from 0x180062df0 to 0x180062ead (189 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180100560\n; > <???> @ 0x1801bd7bc\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:51 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180062df0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180062df5\npush    rdi                                                            ; +0xa, 0x180062dfa\nsub     rsp, 20h                                                       ; +0xb, 0x180062dfb\nmov     esi, edx                                                       ; +0xf, 0x180062dff\nmov     rbx, rcx                                                       ; +0x11, 0x180062e01\ntest    dl, 2                                                          ; +0x14, 0x180062e04\njz      short loc_180062E4A                                            ; +0x17, 0x180062e07\nlea     r9, ??1CCMouseDispatcher@cocos2d@@UEAA@XZ; cocos2d::CCMouseDispatcher::~CCMouseDispatcher(void) ; +0x19, 0x180062e09\nmov     r8, [rcx-8]                                                    ; +0x20, 0x180062e10\nmov     edx, 58h ; 'X'                                                 ; +0x24, 0x180062e14\ncall    sub_1800E49F8                                                  ; +0x29, 0x180062e19\ntest    sil, 1                                                         ; +0x2e, 0x180062e1e\njz      short loc_180062E36                                            ; +0x32, 0x180062e22\nimul    rdx, [rbx-8], 58h ; 'X'                                        ; +0x34, 0x180062e24\nadd     rdx, 8                                                         ; +0x39, 0x180062e29\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x180062e2d\ncall    j_j_j_free_0                                                   ; +0x41, 0x180062e31\nlea     rax, [rbx-8]                                                   ; +0x46, 0x180062e36\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x180062e3a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x180062e3f\nadd     rsp, 20h                                                       ; +0x54, 0x180062e44\npop     rdi                                                            ; +0x58, 0x180062e48\nretn                                                                   ; +0x59, 0x180062e49\nlea     rax, ??_7CCMouseDispatcher@cocos2d@@6B@; const cocos2d::CCMouseDispatcher::`vftable' ; +0x5a, 0x180062e4a\nmov     [rcx], rax                                                     ; +0x61, 0x180062e51\nmov     rcx, [rcx+38h]; this                                           ; +0x64, 0x180062e54\ntest    rcx, rcx                                                       ; +0x68, 0x180062e58\njz      short loc_180062E62                                            ; +0x6b, 0x180062e5b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6d, 0x180062e5d\nmov     rcx, [rbx+48h]; Block                                          ; +0x72, 0x180062e62\ntest    rcx, rcx                                                       ; +0x76, 0x180062e66\njz      short loc_180062E70                                            ; +0x79, 0x180062e69\ncall    sub_1800A1E70                                                  ; +0x7b, 0x180062e6b\nmov     rcx, [rbx+50h]; Block                                          ; +0x80, 0x180062e70\ntest    rcx, rcx                                                       ; +0x84, 0x180062e74\njz      short loc_180062E7E                                            ; +0x87, 0x180062e77\ncall    sub_1800A1E70                                                  ; +0x89, 0x180062e79\nmov     rcx, rbx; this                                                 ; +0x8e, 0x180062e7e\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x91, 0x180062e81\nnop                                                                    ; +0x96, 0x180062e86\ntest    sil, 1                                                         ; +0x97, 0x180062e87\njz      short loc_180062E9A                                            ; +0x9b, 0x180062e8b\nmov     edx, 58h ; 'X'                                                 ; +0x9d, 0x180062e8d\nmov     rcx, rbx; Block                                                ; +0xa2, 0x180062e92\ncall    j_j_free_0                                                     ; +0xa5, 0x180062e95\nmov     rax, rbx                                                       ; +0xaa, 0x180062e9a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xad, 0x180062e9d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb2, 0x180062ea2\nadd     rsp, 20h                                                       ; +0xb7, 0x180062ea7\npop     rdi                                                            ; +0xbb, 0x180062eab\nretn                                                                   ; +0xbc, 0x180062eac", "xrefs": ["<???> @ 0x180100560", "<???> @ 0x1801bd7bc"], "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"}