{"type": "func", "start": 6443068160, "end": 6443068335, "name": "sub_180096B00", "pseudocode": "// \n// sub_180096B00 from 0x180096b00 to 0x180096baf (175 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18010a948\n// > <???> @ 0x1801c0738\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:10 +0000\n// \n\ncocos2d::CCObject *__fastcall sub_180096B00(cocos2d::CCObject *this, char a2)\n{\n  void *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 96, *((_QWORD *)this - 1), cocos2d::CCNotificationObserver::~CCNotificationObserver);\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    *(_QWORD *)this = &cocos2d::CCNotificationObserver::`vftable';\n    v5 = *((void **)this + 9);\n    if ( v5 )\n    {\n      j_j_free_0(v5);\n      *((_QWORD *)this + 9) = 0;\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_180096B00 from 0x180096b00 to 0x180096baf (175 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18010a948\n; > <???> @ 0x1801c0738\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:10 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180096b00\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180096b05\npush    rdi                                                            ; +0xa, 0x180096b0a\nsub     rsp, 20h                                                       ; +0xb, 0x180096b0b\nmov     esi, edx                                                       ; +0xf, 0x180096b0f\nmov     rbx, rcx                                                       ; +0x11, 0x180096b11\ntest    dl, 2                                                          ; +0x14, 0x180096b14\njz      short loc_180096B61                                            ; +0x17, 0x180096b17\nlea     r9, ??1CCNotificationObserver@cocos2d@@UEAA@XZ; cocos2d::CCNotificationObserver::~CCNotificationObserver(void) ; +0x19, 0x180096b19\nmov     r8, [rcx-8]                                                    ; +0x20, 0x180096b20\nmov     edx, 60h ; '`'                                                 ; +0x24, 0x180096b24\ncall    sub_1800E49F8                                                  ; +0x29, 0x180096b29\ntest    sil, 1                                                         ; +0x2e, 0x180096b2e\njz      short loc_180096B4D                                            ; +0x32, 0x180096b32\nmov     rcx, [rbx-8]                                                   ; +0x34, 0x180096b34\nlea     rdx, [rcx+rcx*2]                                               ; +0x38, 0x180096b38\nshl     rdx, 5                                                         ; +0x3c, 0x180096b3c\nadd     rdx, 8                                                         ; +0x40, 0x180096b40\nlea     rcx, [rbx-8]; Block                                            ; +0x44, 0x180096b44\ncall    j_j_j_free_0                                                   ; +0x48, 0x180096b48\nlea     rax, [rbx-8]                                                   ; +0x4d, 0x180096b4d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x180096b51\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x180096b56\nadd     rsp, 20h                                                       ; +0x5b, 0x180096b5b\npop     rdi                                                            ; +0x5f, 0x180096b5f\nretn                                                                   ; +0x60, 0x180096b60\nlea     rax, ??_7CCNotificationObserver@cocos2d@@6B@; const cocos2d::CCNotificationObserver::`vftable' ; +0x61, 0x180096b61\nmov     [rcx], rax                                                     ; +0x68, 0x180096b68\nmov     rcx, [rcx+48h]; Block                                          ; +0x6b, 0x180096b6b\ntest    rcx, rcx                                                       ; +0x6f, 0x180096b6f\njz      short loc_180096B81                                            ; +0x72, 0x180096b72\ncall    j_j_free_0                                                     ; +0x74, 0x180096b74\nmov     qword ptr [rbx+48h], 0                                         ; +0x79, 0x180096b79\nmov     rcx, rbx; this                                                 ; +0x81, 0x180096b81\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x84, 0x180096b84\ntest    sil, 1                                                         ; +0x89, 0x180096b89\njz      short loc_180096B9C                                            ; +0x8d, 0x180096b8d\nmov     edx, 60h ; '`'                                                 ; +0x8f, 0x180096b8f\nmov     rcx, rbx; Block                                                ; +0x94, 0x180096b94\ncall    j_j_free_0                                                     ; +0x97, 0x180096b97\nmov     rax, rbx                                                       ; +0x9c, 0x180096b9c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9f, 0x180096b9f\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa4, 0x180096ba4\nadd     rsp, 20h                                                       ; +0xa9, 0x180096ba9\npop     rdi                                                            ; +0xad, 0x180096bad\nretn                                                                   ; +0xae, 0x180096bae", "xrefs": ["<???> @ 0x18010a948", "<???> @ 0x1801c0738"], "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"}