{"type": "func", "start": 6442847152, "end": 6442847341, "name": "sub_180060BB0", "pseudocode": "// \n// sub_180060BB0 from 0x180060bb0 to 0x180060c6d (189 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800fa048\n// > <???> @ 0x1801b34f8\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// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_180060BB0(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    `eh vector destructor iterator'(\n      this,\n      0x58u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCMouseDispatcher::~CCMouseDispatcher);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCObject *)((char *)this - 8);\n  }\n  else\n  {\n    this->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCMouseDispatcher::`vftable';\n    v5 = *((cocos2d::CCObject **)this + 7);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    v6 = *((void **)this + 9);\n    if ( v6 )\n      sub_18009E1E0(v6);\n    v7 = *((void **)this + 10);\n    if ( v7 )\n      sub_18009E1E0(v7);\n    cocos2d::CCObject::~CCObject(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_180060BB0 from 0x180060bb0 to 0x180060c6d (189 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800fa048\n; > <???> @ 0x1801b34f8\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, 0x180060bb0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180060bb5\npush    rdi                                                            ; +0xa, 0x180060bba\nsub     rsp, 20h                                                       ; +0xb, 0x180060bbb\nmov     esi, edx                                                       ; +0xf, 0x180060bbf\nmov     rbx, rcx                                                       ; +0x11, 0x180060bc1\ntest    dl, 2                                                          ; +0x14, 0x180060bc4\njz      short loc_180060C0A                                            ; +0x17, 0x180060bc7\nlea     r9, ??1CCMouseDispatcher@cocos2d@@UEAA@XZ; void (*)(void *)    ; +0x19, 0x180060bc9\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x180060bd0\nmov     edx, 58h ; 'X'; unsigned __int64                               ; +0x24, 0x180060bd4\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x180060bd9\ntest    sil, 1                                                         ; +0x2e, 0x180060bde\njz      short loc_180060BF6                                            ; +0x32, 0x180060be2\nimul    rdx, [rbx-8], 58h ; 'X'                                        ; +0x34, 0x180060be4\nadd     rdx, 8                                                         ; +0x39, 0x180060be9\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x180060bed\ncall    j_j_j_free_0                                                   ; +0x41, 0x180060bf1\nlea     rax, [rbx-8]                                                   ; +0x46, 0x180060bf6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x180060bfa\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x180060bff\nadd     rsp, 20h                                                       ; +0x54, 0x180060c04\npop     rdi                                                            ; +0x58, 0x180060c08\nretn                                                                   ; +0x59, 0x180060c09\nlea     rax, ??_7CCMouseDispatcher@cocos2d@@6B@; const cocos2d::CCMouseDispatcher::`vftable' ; +0x5a, 0x180060c0a\nmov     [rcx], rax                                                     ; +0x61, 0x180060c11\nmov     rcx, [rcx+38h]; this                                           ; +0x64, 0x180060c14\ntest    rcx, rcx                                                       ; +0x68, 0x180060c18\njz      short loc_180060C22                                            ; +0x6b, 0x180060c1b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6d, 0x180060c1d\nmov     rcx, [rbx+48h]; Block                                          ; +0x72, 0x180060c22\ntest    rcx, rcx                                                       ; +0x76, 0x180060c26\njz      short loc_180060C30                                            ; +0x79, 0x180060c29\ncall    sub_18009E1E0                                                  ; +0x7b, 0x180060c2b\nmov     rcx, [rbx+50h]; Block                                          ; +0x80, 0x180060c30\ntest    rcx, rcx                                                       ; +0x84, 0x180060c34\njz      short loc_180060C3E                                            ; +0x87, 0x180060c37\ncall    sub_18009E1E0                                                  ; +0x89, 0x180060c39\nmov     rcx, rbx; this                                                 ; +0x8e, 0x180060c3e\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x91, 0x180060c41\nnop                                                                    ; +0x96, 0x180060c46\ntest    sil, 1                                                         ; +0x97, 0x180060c47\njz      short loc_180060C5A                                            ; +0x9b, 0x180060c4b\nmov     edx, 58h ; 'X'                                                 ; +0x9d, 0x180060c4d\nmov     rcx, rbx; Block                                                ; +0xa2, 0x180060c52\ncall    j_j_free_0                                                     ; +0xa5, 0x180060c55\nmov     rax, rbx                                                       ; +0xaa, 0x180060c5a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xad, 0x180060c5d\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb2, 0x180060c62\nadd     rsp, 20h                                                       ; +0xb7, 0x180060c67\npop     rdi                                                            ; +0xbb, 0x180060c6b\nretn                                                                   ; +0xbc, 0x180060c6c", "xrefs": ["<???> @ 0x1800fa048", "<???> @ 0x1801b34f8"], "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"}