{"type": "func", "start": 6443197632, "end": 6443197728, "name": "sub_1800B64C0", "pseudocode": "// \n// sub_1800B64C0 from 0x1800b64c0 to 0x1800b6520 (96 bytes)\n// \n// 3 xrefs:\n// > sub_1800B65B0 @ 0x1800b65d5\n// > Concurrency::details::_Condition_variable::`scalar deleting destructor' @ 0x1800b660f\n// > <???> @ 0x1801b8b2c\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\nvoid __fastcall sub_1800B64C0(cocos2d::CCObject *this)\n{\n  _QWORD *v2; // rax\n\n  this->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCScriptHandlerEntry::`vftable';\n  if ( *((_DWORD *)this + 14) )\n  {\n    v2 = qword_1801A9B00;\n    if ( !qword_1801A9B00 )\n    {\n      v2 = operator new(8u);\n      if ( v2 )\n        *v2 = 0;\n      qword_1801A9B00 = v2;\n    }\n    (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v2 + 24LL))(*v2, *((unsigned int *)this + 14));\n    *((_DWORD *)this + 14) = 0;\n  }\n  cocos2d::CCObject::~CCObject(this);\n}", "assembly": "; \n; sub_1800B64C0 from 0x1800b64c0 to 0x1800b6520 (96 bytes)\n; \n; 3 xrefs:\n; > sub_1800B65B0 @ 0x1800b65d5\n; > Concurrency::details::_Condition_variable::`scalar deleting destructor' @ 0x1800b660f\n; > <???> @ 0x1801b8b2c\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\npush    rbx                                                            ; +0x0, 0x1800b64c0\nsub     rsp, 20h                                                       ; +0x2, 0x1800b64c2\nmov     rbx, rcx                                                       ; +0x6, 0x1800b64c6\nlea     rax, ??_7CCScriptHandlerEntry@cocos2d@@6B@; const cocos2d::CCScriptHandlerEntry::`vftable' ; +0x9, 0x1800b64c9\nmov     [rcx], rax                                                     ; +0x10, 0x1800b64d0\ncmp     dword ptr [rcx+38h], 0                                         ; +0x13, 0x1800b64d3\njz      short loc_1800B6513                                            ; +0x17, 0x1800b64d7\nmov     rax, cs:qword_1801A9B00                                        ; +0x19, 0x1800b64d9\ntest    rax, rax                                                       ; +0x20, 0x1800b64e0\njnz     short loc_1800B6500                                            ; +0x23, 0x1800b64e3\nlea     ecx, [rax+8]; Size                                             ; +0x25, 0x1800b64e5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x28, 0x1800b64e8\ntest    rax, rax                                                       ; +0x2d, 0x1800b64ed\njz      short loc_1800B64F9                                            ; +0x30, 0x1800b64f0\nmov     qword ptr [rax], 0                                             ; +0x32, 0x1800b64f2\nmov     cs:qword_1801A9B00, rax                                        ; +0x39, 0x1800b64f9\nmov     rcx, [rax]                                                     ; +0x40, 0x1800b6500\nmov     rax, [rcx]                                                     ; +0x43, 0x1800b6503\nmov     edx, [rbx+38h]                                                 ; +0x46, 0x1800b6506\ncall    qword ptr [rax+18h]                                            ; +0x49, 0x1800b6509\nmov     dword ptr [rbx+38h], 0                                         ; +0x4c, 0x1800b650c\nmov     rcx, rbx; this                                                 ; +0x53, 0x1800b6513\nadd     rsp, 20h                                                       ; +0x56, 0x1800b6516\npop     rbx                                                            ; +0x5a, 0x1800b651a\njmp     ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x5b, 0x1800b651b", "xrefs": ["sub_1800B65B0 @ 0x1800b65d5", "Concurrency::details::_Condition_variable::`scalar deleting destructor' @ 0x1800b660f", "<???> @ 0x1801b8b2c"], "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"}