{"type": "func", "start": 6443065456, "end": 6443065588, "name": "sub_180096070", "pseudocode": "// \n// sub_180096070 from 0x180096070 to 0x1800960f4 (132 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCComponent::create @ 0x180096196\n// > cocos2d::CCComponent::create @ 0x180096182\n// > <???> @ 0x180104510\n// > <???> @ 0x1801b68ac\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::CCComponent *__fastcall sub_180096070(cocos2d::CCComponent *Block, char a2)\n{\n  int v3; // edi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      Block,\n      0x68u,\n      *(_QWORD *)&Block[-1].m_bEnabled,\n      (void (*)(void *))cocos2d::CCComponent::~CCComponent);\n    if ( v3 )\n      j_j_j_free_0(&Block[-1].m_bEnabled);\n    return (cocos2d::CCComponent *)((char *)Block - 8);\n  }\n  else\n  {\n    cocos2d::CCComponent::~CCComponent(Block);\n    if ( v3 )\n      j_j_free_0(Block);\n    return Block;\n  }\n}", "assembly": "; \n; sub_180096070 from 0x180096070 to 0x1800960f4 (132 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCComponent::create @ 0x180096196\n; > cocos2d::CCComponent::create @ 0x180096182\n; > <???> @ 0x180104510\n; > <???> @ 0x1801b68ac\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, 0x180096070\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180096075\npush    rdi                                                            ; +0xa, 0x18009607a\nsub     rsp, 20h                                                       ; +0xb, 0x18009607b\nmov     rbx, rcx                                                       ; +0xf, 0x18009607f\nmov     edi, edx                                                       ; +0x12, 0x180096082\nand     edi, 1                                                         ; +0x14, 0x180096084\ntest    dl, 2                                                          ; +0x17, 0x180096087\njz      short loc_1800960CB                                            ; +0x1a, 0x18009608a\nlea     r9, ??1CCComponent@cocos2d@@UEAA@XZ; void (*)(void *)          ; +0x1c, 0x18009608c\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x23, 0x180096093\nmov     edx, 68h ; 'h'; unsigned __int64                               ; +0x27, 0x180096097\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x2c, 0x18009609c\ntest    edi, edi                                                       ; +0x31, 0x1800960a1\njz      short loc_1800960B7                                            ; +0x33, 0x1800960a3\nimul    rdx, [rbx-8], 68h ; 'h'                                        ; +0x35, 0x1800960a5\nadd     rdx, 8                                                         ; +0x3a, 0x1800960aa\nlea     rcx, [rbx-8]; Block                                            ; +0x3e, 0x1800960ae\ncall    j_j_j_free_0                                                   ; +0x42, 0x1800960b2\nlea     rax, [rbx-8]                                                   ; +0x47, 0x1800960b7\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4b, 0x1800960bb\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x50, 0x1800960c0\nadd     rsp, 20h                                                       ; +0x55, 0x1800960c5\npop     rdi                                                            ; +0x59, 0x1800960c9\nretn                                                                   ; +0x5a, 0x1800960ca\ncall    ??1CCComponent@cocos2d@@UEAA@XZ; cocos2d::CCComponent::~CCComponent(void) ; +0x5b, 0x1800960cb\ntest    edi, edi                                                       ; +0x60, 0x1800960d0\njz      short loc_1800960E1                                            ; +0x62, 0x1800960d2\nmov     edx, 68h ; 'h'                                                 ; +0x64, 0x1800960d4\nmov     rcx, rbx; Block                                                ; +0x69, 0x1800960d9\ncall    j_j_free_0                                                     ; +0x6c, 0x1800960dc\nmov     rax, rbx                                                       ; +0x71, 0x1800960e1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x74, 0x1800960e4\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x79, 0x1800960e9\nadd     rsp, 20h                                                       ; +0x7e, 0x1800960ee\npop     rdi                                                            ; +0x82, 0x1800960f2\nretn                                                                   ; +0x83, 0x1800960f3", "xrefs": ["cocos2d::CCComponent::create @ 0x180096196", "cocos2d::CCComponent::create @ 0x180096182", "<???> @ 0x180104510", "<???> @ 0x1801b68ac"], "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"}