{"type": "func", "start": 6442489792, "end": 6442489950, "name": "sub_1800097C0", "pseudocode": "// \n// sub_1800097C0 from 0x1800097c0 to 0x18000985e (158 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ec520\n// > <???> @ 0x1801b7c6c\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:21:19 +0000\n// \n\ncocos2d::CCObject *__fastcall sub_1800097C0(cocos2d::CCObject *this, char a2)\n{\n  int v3; // esi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 72, *((_QWORD *)this - 1), 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    *(_QWORD *)this = &cocos2d::CCDictionary::`vftable';\n    cocos2d::CCDictionary::removeAllObjects(this);\n    cocos2d::CCObject::~CCObject(this);\n    if ( v3 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_1800097C0 from 0x1800097c0 to 0x18000985e (158 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ec520\n; > <???> @ 0x1801b7c6c\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:21:19 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800097c0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800097c5\npush    rdi                                                            ; +0xa, 0x1800097ca\nsub     rsp, 20h                                                       ; +0xb, 0x1800097cb\nmov     rbx, rcx                                                       ; +0xf, 0x1800097cf\nmov     esi, edx                                                       ; +0x12, 0x1800097d2\nand     esi, 1                                                         ; +0x14, 0x1800097d4\ntest    dl, 2                                                          ; +0x17, 0x1800097d7\njz      short loc_180009822                                            ; +0x1a, 0x1800097da\nlea     r9, ??1CCDictionary@cocos2d@@UEAA@XZ; cocos2d::CCDictionary::~CCDictionary(void) ; +0x1c, 0x1800097dc\nmov     r8, [rcx-8]                                                    ; +0x23, 0x1800097e3\nmov     edx, 48h ; 'H'                                                 ; +0x27, 0x1800097e7\ncall    sub_1800E49F8                                                  ; +0x2c, 0x1800097ec\ntest    esi, esi                                                       ; +0x31, 0x1800097f1\njz      short loc_18000980E                                            ; +0x33, 0x1800097f3\nmov     rcx, [rbx-8]                                                   ; +0x35, 0x1800097f5\nlea     rdx, [rcx+rcx*8]                                               ; +0x39, 0x1800097f9\nlea     rdx, ds:8[rdx*8]                                               ; +0x3d, 0x1800097fd\nlea     rcx, [rbx-8]; Block                                            ; +0x45, 0x180009805\ncall    j_j_j_free_0                                                   ; +0x49, 0x180009809\nlea     rax, [rbx-8]                                                   ; +0x4e, 0x18000980e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x180009812\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x57, 0x180009817\nadd     rsp, 20h                                                       ; +0x5c, 0x18000981c\npop     rdi                                                            ; +0x60, 0x180009820\nretn                                                                   ; +0x61, 0x180009821\nlea     rax, ??_7CCDictionary@cocos2d@@6B@; const cocos2d::CCDictionary::`vftable' ; +0x62, 0x180009822\nmov     [rcx], rax                                                     ; +0x69, 0x180009829\ncall    ?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x6c, 0x18000982c\nmov     rcx, rbx; this                                                 ; +0x71, 0x180009831\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x74, 0x180009834\nnop                                                                    ; +0x79, 0x180009839\ntest    esi, esi                                                       ; +0x7a, 0x18000983a\njz      short loc_18000984B                                            ; +0x7c, 0x18000983c\nmov     edx, 48h ; 'H'                                                 ; +0x7e, 0x18000983e\nmov     rcx, rbx; Block                                                ; +0x83, 0x180009843\ncall    j_j_free_0                                                     ; +0x86, 0x180009846\nmov     rax, rbx                                                       ; +0x8b, 0x18000984b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8e, 0x18000984e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x93, 0x180009853\nadd     rsp, 20h                                                       ; +0x98, 0x180009858\npop     rdi                                                            ; +0x9c, 0x18000985c\nretn                                                                   ; +0x9d, 0x18000985d", "xrefs": ["<???> @ 0x1800ec520", "<???> @ 0x1801b7c6c"], "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"}