{"type": "func", "start": 6442855152, "end": 6442855348, "name": "sub_180062AF0", "pseudocode": "// \n// sub_180062AF0 from 0x180062af0 to 0x180062bb4 (196 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180100508\n// > <???> @ 0x1801bd774\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\ncocos2d::CCObject *__fastcall sub_180062AF0(cocos2d::CCObject *this, char a2)\n{\n  __int64 v5; // rcx\n  cocos2d::CCObject *v6; // rax\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 64, *((_QWORD *)this - 1), cocos2d::CCMouseHandler::~CCMouseHandler);\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    *(_QWORD *)this = &cocos2d::CCMouseHandler::`vftable';\n    v5 = *((_QWORD *)this + 7);\n    if ( v5 )\n    {\n      v6 = (cocos2d::CCObject *)_RTDynamicCast(\n                                  v5,\n                                  0,\n                                  &cocos2d::CCMouseDelegate `RTTI Type Descriptor',\n                                  &cocos2d::CCObject `RTTI Type Descriptor',\n                                  0);\n      cocos2d::CCObject::release(v6);\n    }\n    cocos2d::CCObject::~CCObject(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_180062AF0 from 0x180062af0 to 0x180062bb4 (196 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180100508\n; > <???> @ 0x1801bd774\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, 0x180062af0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180062af5\npush    rdi                                                            ; +0xa, 0x180062afa\nsub     rsp, 30h                                                       ; +0xb, 0x180062afb\nmov     esi, edx                                                       ; +0xf, 0x180062aff\nmov     rbx, rcx                                                       ; +0x11, 0x180062b01\ntest    dl, 2                                                          ; +0x14, 0x180062b04\njz      short loc_180062B4D                                            ; +0x17, 0x180062b07\nlea     r9, ??1CCMouseHandler@cocos2d@@UEAA@XZ; cocos2d::CCMouseHandler::~CCMouseHandler(void) ; +0x19, 0x180062b09\nmov     r8, [rcx-8]                                                    ; +0x20, 0x180062b10\nmov     edx, 40h ; '@'                                                 ; +0x24, 0x180062b14\ncall    sub_1800E49F8                                                  ; +0x29, 0x180062b19\ntest    sil, 1                                                         ; +0x2e, 0x180062b1e\njz      short loc_180062B39                                            ; +0x32, 0x180062b22\nmov     rdx, [rbx-8]                                                   ; +0x34, 0x180062b24\nshl     rdx, 6                                                         ; +0x38, 0x180062b28\nadd     rdx, 8                                                         ; +0x3c, 0x180062b2c\nlea     rcx, [rbx-8]; Block                                            ; +0x40, 0x180062b30\ncall    j_j_j_free_0                                                   ; +0x44, 0x180062b34\nlea     rax, [rbx-8]                                                   ; +0x49, 0x180062b39\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x4d, 0x180062b3d\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x52, 0x180062b42\nadd     rsp, 30h                                                       ; +0x57, 0x180062b47\npop     rdi                                                            ; +0x5b, 0x180062b4b\nretn                                                                   ; +0x5c, 0x180062b4c\nlea     rax, ??_7CCMouseHandler@cocos2d@@6B@; const cocos2d::CCMouseHandler::`vftable' ; +0x5d, 0x180062b4d\nmov     [rcx], rax                                                     ; +0x64, 0x180062b54\nmov     rcx, [rcx+38h]                                                 ; +0x67, 0x180062b57\ntest    rcx, rcx                                                       ; +0x6b, 0x180062b5b\njz      short loc_180062B85                                            ; +0x6e, 0x180062b5e\nmov     [rsp+38h+var_18], 0                                            ; +0x70, 0x180062b60\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x78, 0x180062b68\nlea     r8, ??_R0?AVCCMouseDelegate@cocos2d@@@8; cocos2d::CCMouseDelegate `RTTI Type Descriptor' ; +0x7f, 0x180062b6f\nxor     edx, edx                                                       ; +0x86, 0x180062b76\ncall    __RTDynamicCast                                                ; +0x88, 0x180062b78\nmov     rcx, rax; this                                                 ; +0x8d, 0x180062b7d\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x90, 0x180062b80\nmov     rcx, rbx; this                                                 ; +0x95, 0x180062b85\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x98, 0x180062b88\nnop                                                                    ; +0x9d, 0x180062b8d\ntest    sil, 1                                                         ; +0x9e, 0x180062b8e\njz      short loc_180062BA1                                            ; +0xa2, 0x180062b92\nmov     edx, 40h ; '@'                                                 ; +0xa4, 0x180062b94\nmov     rcx, rbx; Block                                                ; +0xa9, 0x180062b99\ncall    j_j_free_0                                                     ; +0xac, 0x180062b9c\nmov     rax, rbx                                                       ; +0xb1, 0x180062ba1\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb4, 0x180062ba4\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xb9, 0x180062ba9\nadd     rsp, 30h                                                       ; +0xbe, 0x180062bae\npop     rdi                                                            ; +0xc2, 0x180062bb2\nretn                                                                   ; +0xc3, 0x180062bb3", "xrefs": ["<???> @ 0x180100508", "<???> @ 0x1801bd774"], "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"}