{"type": "func", "start": 6443202240, "end": 6443202440, "name": "sub_1800B76C0", "pseudocode": "// \n// sub_1800B76C0 from 0x1800b76c0 to 0x1800b7788 (200 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18010cc90\n// > <???> @ 0x1801c2a78\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:22:22 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_1800B76C0(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, 72, *((_QWORD *)this - 1), cocos2d::CCStandardTouchHandler::~CCStandardTouchHandler);\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::CCTouchHandler::`vftable';\n    v5 = *((_QWORD *)this + 7);\n    if ( v5 )\n    {\n      v6 = (cocos2d::CCObject *)_RTDynamicCast(\n                                  v5,\n                                  0,\n                                  &cocos2d::CCTouchDelegate `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_1800B76C0 from 0x1800b76c0 to 0x1800b7788 (200 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18010cc90\n; > <???> @ 0x1801c2a78\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:22:22 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b76c0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800b76c5\npush    rdi                                                            ; +0xa, 0x1800b76ca\nsub     rsp, 30h                                                       ; +0xb, 0x1800b76cb\nmov     esi, edx                                                       ; +0xf, 0x1800b76cf\nmov     rbx, rcx                                                       ; +0x11, 0x1800b76d1\ntest    dl, 2                                                          ; +0x14, 0x1800b76d4\njz      short loc_1800B7721                                            ; +0x17, 0x1800b76d7\nlea     r9, ??1CCStandardTouchHandler@cocos2d@@UEAA@XZ; cocos2d::CCStandardTouchHandler::~CCStandardTouchHandler(void) ; +0x19, 0x1800b76d9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x1800b76e0\nmov     edx, 48h ; 'H'                                                 ; +0x24, 0x1800b76e4\ncall    sub_1800E49F8                                                  ; +0x29, 0x1800b76e9\ntest    sil, 1                                                         ; +0x2e, 0x1800b76ee\njz      short loc_1800B770D                                            ; +0x32, 0x1800b76f2\nmov     rcx, [rbx-8]                                                   ; +0x34, 0x1800b76f4\nlea     rdx, [rcx+rcx*8]                                               ; +0x38, 0x1800b76f8\nlea     rdx, ds:8[rdx*8]                                               ; +0x3c, 0x1800b76fc\nlea     rcx, [rbx-8]; Block                                            ; +0x44, 0x1800b7704\ncall    j_j_j_free_0                                                   ; +0x48, 0x1800b7708\nlea     rax, [rbx-8]                                                   ; +0x4d, 0x1800b770d\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x51, 0x1800b7711\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x56, 0x1800b7716\nadd     rsp, 30h                                                       ; +0x5b, 0x1800b771b\npop     rdi                                                            ; +0x5f, 0x1800b771f\nretn                                                                   ; +0x60, 0x1800b7720\nlea     rax, ??_7CCTouchHandler@cocos2d@@6B@; const cocos2d::CCTouchHandler::`vftable' ; +0x61, 0x1800b7721\nmov     [rcx], rax                                                     ; +0x68, 0x1800b7728\nmov     rcx, [rcx+38h]                                                 ; +0x6b, 0x1800b772b\ntest    rcx, rcx                                                       ; +0x6f, 0x1800b772f\njz      short loc_1800B7759                                            ; +0x72, 0x1800b7732\nmov     [rsp+38h+var_18], 0                                            ; +0x74, 0x1800b7734\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x7c, 0x1800b773c\nlea     r8, ??_R0?AVCCTouchDelegate@cocos2d@@@8; cocos2d::CCTouchDelegate `RTTI Type Descriptor' ; +0x83, 0x1800b7743\nxor     edx, edx                                                       ; +0x8a, 0x1800b774a\ncall    __RTDynamicCast                                                ; +0x8c, 0x1800b774c\nmov     rcx, rax; this                                                 ; +0x91, 0x1800b7751\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x94, 0x1800b7754\nmov     rcx, rbx; this                                                 ; +0x99, 0x1800b7759\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x9c, 0x1800b775c\nnop                                                                    ; +0xa1, 0x1800b7761\ntest    sil, 1                                                         ; +0xa2, 0x1800b7762\njz      short loc_1800B7775                                            ; +0xa6, 0x1800b7766\nmov     edx, 48h ; 'H'                                                 ; +0xa8, 0x1800b7768\nmov     rcx, rbx; Block                                                ; +0xad, 0x1800b776d\ncall    j_j_free_0                                                     ; +0xb0, 0x1800b7770\nmov     rax, rbx                                                       ; +0xb5, 0x1800b7775\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb8, 0x1800b7778\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xbd, 0x1800b777d\nadd     rsp, 30h                                                       ; +0xc2, 0x1800b7782\npop     rdi                                                            ; +0xc6, 0x1800b7786\nretn                                                                   ; +0xc7, 0x1800b7787", "xrefs": ["<???> @ 0x18010cc90", "<???> @ 0x1801c2a78"], "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"}