{"type": "func", "start": 6443067984, "end": 6443068146, "name": "sub_180096A50", "pseudocode": "// \n// sub_180096A50 from 0x180096a50 to 0x180096af2 (162 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18010a8f8\n// > <???> @ 0x1801c072c\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_180096A50(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, *(this - 1), cocos2d::CCNotificationCenter::~CCNotificationCenter);\n    if ( v3 )\n      j_j_j_free_0(this - 1);\n    return (cocos2d::CCObject *)(this - 1);\n  }\n  else\n  {\n    *this = (cocos2d::CCObject *)&cocos2d::CCNotificationCenter::`vftable';\n    cocos2d::CCObject::release(*(this + 7));\n    cocos2d::CCObject::~CCObject((cocos2d::CCObject *)this);\n    if ( v3 )\n      j_j_free_0(this);\n    return (cocos2d::CCObject *)this;\n  }\n}", "assembly": "; \n; sub_180096A50 from 0x180096a50 to 0x180096af2 (162 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18010a8f8\n; > <???> @ 0x1801c072c\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, 0x180096a50\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180096a55\npush    rdi                                                            ; +0xa, 0x180096a5a\nsub     rsp, 20h                                                       ; +0xb, 0x180096a5b\nmov     rbx, rcx                                                       ; +0xf, 0x180096a5f\nmov     esi, edx                                                       ; +0x12, 0x180096a62\nand     esi, 1                                                         ; +0x14, 0x180096a64\ntest    dl, 2                                                          ; +0x17, 0x180096a67\njz      short loc_180096AB2                                            ; +0x1a, 0x180096a6a\nlea     r9, ??1CCNotificationCenter@cocos2d@@UEAA@XZ; cocos2d::CCNotificationCenter::~CCNotificationCenter(void) ; +0x1c, 0x180096a6c\nmov     r8, [rcx-8]                                                    ; +0x23, 0x180096a73\nmov     edx, 48h ; 'H'                                                 ; +0x27, 0x180096a77\ncall    sub_1800E49F8                                                  ; +0x2c, 0x180096a7c\ntest    esi, esi                                                       ; +0x31, 0x180096a81\njz      short loc_180096A9E                                            ; +0x33, 0x180096a83\nmov     rcx, [rbx-8]                                                   ; +0x35, 0x180096a85\nlea     rdx, [rcx+rcx*8]                                               ; +0x39, 0x180096a89\nlea     rdx, ds:8[rdx*8]                                               ; +0x3d, 0x180096a8d\nlea     rcx, [rbx-8]; Block                                            ; +0x45, 0x180096a95\ncall    j_j_j_free_0                                                   ; +0x49, 0x180096a99\nlea     rax, [rbx-8]                                                   ; +0x4e, 0x180096a9e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x180096aa2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x57, 0x180096aa7\nadd     rsp, 20h                                                       ; +0x5c, 0x180096aac\npop     rdi                                                            ; +0x60, 0x180096ab0\nretn                                                                   ; +0x61, 0x180096ab1\nlea     rax, ??_7CCNotificationCenter@cocos2d@@6B@; const cocos2d::CCNotificationCenter::`vftable' ; +0x62, 0x180096ab2\nmov     [rcx], rax                                                     ; +0x69, 0x180096ab9\nmov     rcx, [rcx+38h]; this                                           ; +0x6c, 0x180096abc\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x70, 0x180096ac0\nmov     rcx, rbx; this                                                 ; +0x75, 0x180096ac5\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x78, 0x180096ac8\nnop                                                                    ; +0x7d, 0x180096acd\ntest    esi, esi                                                       ; +0x7e, 0x180096ace\njz      short loc_180096ADF                                            ; +0x80, 0x180096ad0\nmov     edx, 48h ; 'H'                                                 ; +0x82, 0x180096ad2\nmov     rcx, rbx; Block                                                ; +0x87, 0x180096ad7\ncall    j_j_free_0                                                     ; +0x8a, 0x180096ada\nmov     rax, rbx                                                       ; +0x8f, 0x180096adf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x92, 0x180096ae2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x97, 0x180096ae7\nadd     rsp, 20h                                                       ; +0x9c, 0x180096aec\npop     rdi                                                            ; +0xa0, 0x180096af0\nretn                                                                   ; +0xa1, 0x180096af1", "xrefs": ["<???> @ 0x18010a8f8", "<???> @ 0x1801c072c"], "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"}