{"type": "func", "start": 6443065984, "end": 6443066144, "name": "sub_180096280", "pseudocode": "// \n// sub_180096280 from 0x180096280 to 0x180096320 (160 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180104590\n// > <???> @ 0x1801b68d0\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\nchar *__fastcall sub_180096280(cocos2d::CCObject **Block, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      Block,\n      0x18u,\n      (unsigned __int64)*(Block - 1),\n      (void (*)(void *))cocos2d::CCComponentContainer::~CCComponentContainer);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0(Block - 1);\n    return (char *)(Block - 1);\n  }\n  else\n  {\n    *Block = (cocos2d::CCObject *)&cocos2d::CCComponentContainer::`vftable';\n    v5 = Block[1];\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(Block);\n    return (char *)Block;\n  }\n}", "assembly": "; \n; sub_180096280 from 0x180096280 to 0x180096320 (160 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180104590\n; > <???> @ 0x1801b68d0\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, 0x180096280\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180096285\npush    rdi                                                            ; +0xa, 0x18009628a\nsub     rsp, 20h                                                       ; +0xb, 0x18009628b\nmov     esi, edx                                                       ; +0xf, 0x18009628f\nmov     rbx, rcx                                                       ; +0x11, 0x180096291\ntest    dl, 2                                                          ; +0x14, 0x180096294\njz      short loc_1800962E1                                            ; +0x17, 0x180096297\nlea     r9, ??1CCComponentContainer@cocos2d@@UEAA@XZ; void (*)(void *) ; +0x19, 0x180096299\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x1800962a0\nmov     edx, 18h; unsigned __int64                                     ; +0x24, 0x1800962a4\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x1800962a9\ntest    sil, 1                                                         ; +0x2e, 0x1800962ae\njz      short loc_1800962CD                                            ; +0x32, 0x1800962b2\nmov     rcx, [rbx-8]                                                   ; +0x34, 0x1800962b4\nlea     rdx, [rcx+rcx*2]                                               ; +0x38, 0x1800962b8\nlea     rdx, ds:8[rdx*8]                                               ; +0x3c, 0x1800962bc\nlea     rcx, [rbx-8]; Block                                            ; +0x44, 0x1800962c4\ncall    j_j_j_free_0                                                   ; +0x48, 0x1800962c8\nlea     rax, [rbx-8]                                                   ; +0x4d, 0x1800962cd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x1800962d1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x1800962d6\nadd     rsp, 20h                                                       ; +0x5b, 0x1800962db\npop     rdi                                                            ; +0x5f, 0x1800962df\nretn                                                                   ; +0x60, 0x1800962e0\nlea     rax, ??_7CCComponentContainer@cocos2d@@6B@; const cocos2d::CCComponentContainer::`vftable' ; +0x61, 0x1800962e1\nmov     [rcx], rax                                                     ; +0x68, 0x1800962e8\nmov     rcx, [rcx+8]; this                                             ; +0x6b, 0x1800962eb\ntest    rcx, rcx                                                       ; +0x6f, 0x1800962ef\njz      short loc_1800962FA                                            ; +0x72, 0x1800962f2\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x74, 0x1800962f4\nnop                                                                    ; +0x79, 0x1800962f9\ntest    sil, 1                                                         ; +0x7a, 0x1800962fa\njz      short loc_18009630D                                            ; +0x7e, 0x1800962fe\nmov     edx, 18h                                                       ; +0x80, 0x180096300\nmov     rcx, rbx; Block                                                ; +0x85, 0x180096305\ncall    j_j_free_0                                                     ; +0x88, 0x180096308\nmov     rax, rbx                                                       ; +0x8d, 0x18009630d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x90, 0x180096310\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x95, 0x180096315\nadd     rsp, 20h                                                       ; +0x9a, 0x18009631a\npop     rdi                                                            ; +0x9e, 0x18009631e\nretn                                                                   ; +0x9f, 0x18009631f", "xrefs": ["<???> @ 0x180104590", "<???> @ 0x1801b68d0"], "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"}