{"type": "func", "start": 6442489584, "end": 6442489742, "name": "sub_1800096F0", "pseudocode": "// \n// sub_1800096F0 from 0x1800096f0 to 0x18000978e (158 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800e64c0\n// > <???> @ 0x1801adc84\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_1800096F0(cocos2d::CCObject *this, char a2)\n{\n  int v3; // edi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x48u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCDictionary::~CCDictionary);\n    if ( v3 )\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::CCDictionary::`vftable';\n    cocos2d::CCDictionary::removeAllObjects((cocos2d::CCDictionary *)this);\n    cocos2d::CCObject::~CCObject(this);\n    if ( v3 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_1800096F0 from 0x1800096f0 to 0x18000978e (158 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800e64c0\n; > <???> @ 0x1801adc84\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, 0x1800096f0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800096f5\npush    rdi                                                            ; +0xa, 0x1800096fa\nsub     rsp, 20h                                                       ; +0xb, 0x1800096fb\nmov     rbx, rcx                                                       ; +0xf, 0x1800096ff\nmov     edi, edx                                                       ; +0x12, 0x180009702\nand     edi, 1                                                         ; +0x14, 0x180009704\ntest    dl, 2                                                          ; +0x17, 0x180009707\njz      short loc_180009752                                            ; +0x1a, 0x18000970a\nlea     r9, ??1CCDictionary@cocos2d@@UEAA@XZ; void (*)(void *)         ; +0x1c, 0x18000970c\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x23, 0x180009713\nmov     edx, 48h ; 'H'; unsigned __int64                               ; +0x27, 0x180009717\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x2c, 0x18000971c\ntest    edi, edi                                                       ; +0x31, 0x180009721\njz      short loc_18000973E                                            ; +0x33, 0x180009723\nmov     rcx, [rbx-8]                                                   ; +0x35, 0x180009725\nlea     rdx, [rcx+rcx*8]                                               ; +0x39, 0x180009729\nlea     rdx, ds:8[rdx*8]                                               ; +0x3d, 0x18000972d\nlea     rcx, [rbx-8]; Block                                            ; +0x45, 0x180009735\ncall    j_j_j_free_0                                                   ; +0x49, 0x180009739\nlea     rax, [rbx-8]                                                   ; +0x4e, 0x18000973e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x180009742\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x57, 0x180009747\nadd     rsp, 20h                                                       ; +0x5c, 0x18000974c\npop     rdi                                                            ; +0x60, 0x180009750\nretn                                                                   ; +0x61, 0x180009751\nlea     rax, ??_7CCDictionary@cocos2d@@6B@; const cocos2d::CCDictionary::`vftable' ; +0x62, 0x180009752\nmov     [rcx], rax                                                     ; +0x69, 0x180009759\ncall    ?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x6c, 0x18000975c\nmov     rcx, rbx; this                                                 ; +0x71, 0x180009761\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x74, 0x180009764\nnop                                                                    ; +0x79, 0x180009769\ntest    edi, edi                                                       ; +0x7a, 0x18000976a\njz      short loc_18000977B                                            ; +0x7c, 0x18000976c\nmov     edx, 48h ; 'H'                                                 ; +0x7e, 0x18000976e\nmov     rcx, rbx; Block                                                ; +0x83, 0x180009773\ncall    j_j_free_0                                                     ; +0x86, 0x180009776\nmov     rax, rbx                                                       ; +0x8b, 0x18000977b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8e, 0x18000977e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x93, 0x180009783\nadd     rsp, 20h                                                       ; +0x98, 0x180009788\npop     rdi                                                            ; +0x9c, 0x18000978c\nretn                                                                   ; +0x9d, 0x18000978d", "xrefs": ["<???> @ 0x1800e64c0", "<???> @ 0x1801adc84"], "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"}