{"type": "func", "start": 6443186864, "end": 6443187064, "name": "sub_1800B3AB0", "pseudocode": "// \n// sub_1800B3AB0 from 0x1800b3ab0 to 0x1800b3b78 (200 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180106550\n// > <???> @ 0x1801b879c\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\ncocos2d::CCObject *__fastcall sub_1800B3AB0(cocos2d::CCObject *this, char a2)\n{\n  __int64 v5; // rcx\n  cocos2d::CCObject *v6; // rax\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x48u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCTouchHandler::~CCTouchHandler);\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::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_1800B3AB0 from 0x1800b3ab0 to 0x1800b3b78 (200 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180106550\n; > <???> @ 0x1801b879c\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, 0x1800b3ab0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800b3ab5\npush    rdi                                                            ; +0xa, 0x1800b3aba\nsub     rsp, 30h                                                       ; +0xb, 0x1800b3abb\nmov     esi, edx                                                       ; +0xf, 0x1800b3abf\nmov     rbx, rcx                                                       ; +0x11, 0x1800b3ac1\ntest    dl, 2                                                          ; +0x14, 0x1800b3ac4\njz      short loc_1800B3B11                                            ; +0x17, 0x1800b3ac7\nlea     r9, ??1CCTouchHandler@cocos2d@@UEAA@XZ; void (*)(void *)       ; +0x19, 0x1800b3ac9\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x1800b3ad0\nmov     edx, 48h ; 'H'; unsigned __int64                               ; +0x24, 0x1800b3ad4\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x1800b3ad9\ntest    sil, 1                                                         ; +0x2e, 0x1800b3ade\njz      short loc_1800B3AFD                                            ; +0x32, 0x1800b3ae2\nmov     rcx, [rbx-8]                                                   ; +0x34, 0x1800b3ae4\nlea     rdx, [rcx+rcx*8]                                               ; +0x38, 0x1800b3ae8\nlea     rdx, ds:8[rdx*8]                                               ; +0x3c, 0x1800b3aec\nlea     rcx, [rbx-8]; Block                                            ; +0x44, 0x1800b3af4\ncall    j_j_j_free_0                                                   ; +0x48, 0x1800b3af8\nlea     rax, [rbx-8]                                                   ; +0x4d, 0x1800b3afd\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x51, 0x1800b3b01\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x56, 0x1800b3b06\nadd     rsp, 30h                                                       ; +0x5b, 0x1800b3b0b\npop     rdi                                                            ; +0x5f, 0x1800b3b0f\nretn                                                                   ; +0x60, 0x1800b3b10\nlea     rax, ??_7CCTouchHandler@cocos2d@@6B@; const cocos2d::CCTouchHandler::`vftable' ; +0x61, 0x1800b3b11\nmov     [rcx], rax                                                     ; +0x68, 0x1800b3b18\nmov     rcx, [rcx+38h]                                                 ; +0x6b, 0x1800b3b1b\ntest    rcx, rcx                                                       ; +0x6f, 0x1800b3b1f\njz      short loc_1800B3B49                                            ; +0x72, 0x1800b3b22\nmov     [rsp+38h+var_18], 0                                            ; +0x74, 0x1800b3b24\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x7c, 0x1800b3b2c\nlea     r8, ??_R0?AVCCTouchDelegate@cocos2d@@@8; cocos2d::CCTouchDelegate `RTTI Type Descriptor' ; +0x83, 0x1800b3b33\nxor     edx, edx                                                       ; +0x8a, 0x1800b3b3a\ncall    __RTDynamicCast                                                ; +0x8c, 0x1800b3b3c\nmov     rcx, rax; this                                                 ; +0x91, 0x1800b3b41\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x94, 0x1800b3b44\nmov     rcx, rbx; this                                                 ; +0x99, 0x1800b3b49\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x9c, 0x1800b3b4c\nnop                                                                    ; +0xa1, 0x1800b3b51\ntest    sil, 1                                                         ; +0xa2, 0x1800b3b52\njz      short loc_1800B3B65                                            ; +0xa6, 0x1800b3b56\nmov     edx, 48h ; 'H'                                                 ; +0xa8, 0x1800b3b58\nmov     rcx, rbx; Block                                                ; +0xad, 0x1800b3b5d\ncall    j_j_free_0                                                     ; +0xb0, 0x1800b3b60\nmov     rax, rbx                                                       ; +0xb5, 0x1800b3b65\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xb8, 0x1800b3b68\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xbd, 0x1800b3b6d\nadd     rsp, 30h                                                       ; +0xc2, 0x1800b3b72\npop     rdi                                                            ; +0xc6, 0x1800b3b76\nretn                                                                   ; +0xc7, 0x1800b3b77", "xrefs": ["<???> @ 0x180106550", "<???> @ 0x1801b879c"], "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"}