{"type": "func", "start": 6442597760, "end": 6442597938, "name": "sub_180023D80", "pseudocode": "// \n// sub_180023D80 from 0x180023d80 to 0x180023e32 (178 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800e73a0\n// > <???> @ 0x1801af0e8\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_180023D80(cocos2d::CCObject *this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(this, 0x60u, *((_QWORD *)this - 1), (void (*)(void *))cocos2d::CCSpeed::~CCSpeed);\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    this->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCSpeed::`vftable';\n    v5 = *((cocos2d::CCObject **)this + 11);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    this->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCAction::`vftable';\n    cocos2d::CCObject::~CCObject(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_180023D80 from 0x180023d80 to 0x180023e32 (178 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800e73a0\n; > <???> @ 0x1801af0e8\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, 0x180023d80\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180023d85\npush    rdi                                                            ; +0xa, 0x180023d8a\nsub     rsp, 20h                                                       ; +0xb, 0x180023d8b\nmov     esi, edx                                                       ; +0xf, 0x180023d8f\nmov     rbx, rcx                                                       ; +0x11, 0x180023d91\ntest    dl, 2                                                          ; +0x14, 0x180023d94\njz      short loc_180023DE1                                            ; +0x17, 0x180023d97\nlea     r9, ??1CCSpeed@cocos2d@@UEAA@XZ; void (*)(void *)              ; +0x19, 0x180023d99\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x180023da0\nmov     edx, 60h ; '`'; unsigned __int64                               ; +0x24, 0x180023da4\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x180023da9\ntest    sil, 1                                                         ; +0x2e, 0x180023dae\njz      short loc_180023DCD                                            ; +0x32, 0x180023db2\nmov     rcx, [rbx-8]                                                   ; +0x34, 0x180023db4\nlea     rdx, [rcx+rcx*2]                                               ; +0x38, 0x180023db8\nshl     rdx, 5                                                         ; +0x3c, 0x180023dbc\nadd     rdx, 8                                                         ; +0x40, 0x180023dc0\nlea     rcx, [rbx-8]; Block                                            ; +0x44, 0x180023dc4\ncall    j_j_j_free_0                                                   ; +0x48, 0x180023dc8\nlea     rax, [rbx-8]                                                   ; +0x4d, 0x180023dcd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x180023dd1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x180023dd6\nadd     rsp, 20h                                                       ; +0x5b, 0x180023ddb\npop     rdi                                                            ; +0x5f, 0x180023ddf\nretn                                                                   ; +0x60, 0x180023de0\nlea     rax, ??_7CCSpeed@cocos2d@@6B@; const cocos2d::CCSpeed::`vftable' ; +0x61, 0x180023de1\nmov     [rcx], rax                                                     ; +0x68, 0x180023de8\nmov     rcx, [rcx+58h]; this                                           ; +0x6b, 0x180023deb\ntest    rcx, rcx                                                       ; +0x6f, 0x180023def\njz      short loc_180023DF9                                            ; +0x72, 0x180023df2\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x74, 0x180023df4\nlea     rax, ??_7CCAction@cocos2d@@6B@; const cocos2d::CCAction::`vftable' ; +0x79, 0x180023df9\nmov     [rbx], rax                                                     ; +0x80, 0x180023e00\nmov     rcx, rbx; this                                                 ; +0x83, 0x180023e03\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x86, 0x180023e06\nnop                                                                    ; +0x8b, 0x180023e0b\ntest    sil, 1                                                         ; +0x8c, 0x180023e0c\njz      short loc_180023E1F                                            ; +0x90, 0x180023e10\nmov     edx, 60h ; '`'                                                 ; +0x92, 0x180023e12\nmov     rcx, rbx; Block                                                ; +0x97, 0x180023e17\ncall    j_j_free_0                                                     ; +0x9a, 0x180023e1a\nmov     rax, rbx                                                       ; +0x9f, 0x180023e1f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa2, 0x180023e22\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa7, 0x180023e27\nadd     rsp, 20h                                                       ; +0xac, 0x180023e2c\npop     rdi                                                            ; +0xb0, 0x180023e30\nretn                                                                   ; +0xb1, 0x180023e31", "xrefs": ["<???> @ 0x1800e73a0", "<???> @ 0x1801af0e8"], "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"}