{"type": "func", "start": 6443213312, "end": 6443213455, "name": "sub_1800BA200", "pseudocode": "// \n// sub_1800BA200 from 0x1800ba200 to 0x1800ba28f (143 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18010d4b8\n// > <???> @ 0x1801c2e74\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:23 +0000\n// \n\n// Hidden C++ exception states: #wind=2\ncocos2d::CCObject *__fastcall sub_1800BA200(cocos2d::CCObject *this, char a2)\n{\n  _QWORD *v4; // rax\n\n  *(_QWORD *)this = &cocos2d::CCTouchScriptHandlerEntry::`vftable';\n  if ( *((_DWORD *)this + 14) )\n  {\n    v4 = qword_1801B3B78;\n    if ( !qword_1801B3B78 )\n    {\n      v4 = (_QWORD *)sub_1800E4AC0(8u);\n      if ( v4 )\n        *v4 = 0;\n      qword_1801B3B78 = v4;\n    }\n    (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v4 + 24LL))(*v4, *((unsigned int *)this + 14));\n    *((_DWORD *)this + 14) = 0;\n  }\n  *(_QWORD *)this = &cocos2d::CCScriptHandlerEntry::`vftable';\n  cocos2d::CCObject::~CCObject(this);\n  if ( (a2 & 1) != 0 )\n    j_j_free_0(this);\n  return this;\n}", "assembly": "; \n; sub_1800BA200 from 0x1800ba200 to 0x1800ba28f (143 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18010d4b8\n; > <???> @ 0x1801c2e74\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:23 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800ba200\npush    rdi                                                            ; +0x5, 0x1800ba205\nsub     rsp, 20h                                                       ; +0x6, 0x1800ba206\nmov     edi, edx                                                       ; +0xa, 0x1800ba20a\nmov     rbx, rcx                                                       ; +0xc, 0x1800ba20c\nlea     rax, ??_7CCTouchScriptHandlerEntry@cocos2d@@6B@; const cocos2d::CCTouchScriptHandlerEntry::`vftable' ; +0xf, 0x1800ba20f\nmov     [rcx], rax                                                     ; +0x16, 0x1800ba216\ncmp     dword ptr [rcx+38h], 0                                         ; +0x19, 0x1800ba219\njz      short loc_1800BA25B                                            ; +0x1d, 0x1800ba21d\nmov     rax, cs:qword_1801B3B78                                        ; +0x1f, 0x1800ba21f\ntest    rax, rax                                                       ; +0x26, 0x1800ba226\njnz     short loc_1800BA248                                            ; +0x29, 0x1800ba229\nmov     ecx, 8; Size                                                   ; +0x2b, 0x1800ba22b\ncall    sub_1800E4AC0                                                  ; +0x30, 0x1800ba230\ntest    rax, rax                                                       ; +0x35, 0x1800ba235\njz      short loc_1800BA241                                            ; +0x38, 0x1800ba238\nmov     qword ptr [rax], 0                                             ; +0x3a, 0x1800ba23a\nmov     cs:qword_1801B3B78, rax                                        ; +0x41, 0x1800ba241\nmov     rcx, [rax]                                                     ; +0x48, 0x1800ba248\nmov     rax, [rcx]                                                     ; +0x4b, 0x1800ba24b\nmov     edx, [rbx+38h]                                                 ; +0x4e, 0x1800ba24e\ncall    qword ptr [rax+18h]                                            ; +0x51, 0x1800ba251\nmov     dword ptr [rbx+38h], 0                                         ; +0x54, 0x1800ba254\nlea     rax, ??_7CCScriptHandlerEntry@cocos2d@@6B@; const cocos2d::CCScriptHandlerEntry::`vftable' ; +0x5b, 0x1800ba25b\nmov     [rbx], rax                                                     ; +0x62, 0x1800ba262\nmov     rcx, rbx; this                                                 ; +0x65, 0x1800ba265\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x68, 0x1800ba268\nnop                                                                    ; +0x6d, 0x1800ba26d\ntest    dil, 1                                                         ; +0x6e, 0x1800ba26e\njz      short loc_1800BA281                                            ; +0x72, 0x1800ba272\nmov     edx, 50h ; 'P'                                                 ; +0x74, 0x1800ba274\nmov     rcx, rbx; Block                                                ; +0x79, 0x1800ba279\ncall    j_j_free_0                                                     ; +0x7c, 0x1800ba27c\nmov     rax, rbx                                                       ; +0x81, 0x1800ba281\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x84, 0x1800ba284\nadd     rsp, 20h                                                       ; +0x89, 0x1800ba289\npop     rdi                                                            ; +0x8d, 0x1800ba28d\nretn                                                                   ; +0x8e, 0x1800ba28e", "xrefs": ["<???> @ 0x18010d4b8", "<???> @ 0x1801c2e74"], "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"}