{"type": "func", "start": 6442653200, "end": 6442653385, "name": "sub_180031610", "pseudocode": "// \n// sub_180031610 from 0x180031610 to 0x1800316c9 (185 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800e94e8\n// > <???> @ 0x1801b03a8\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::CCAction *__fastcall sub_180031610(cocos2d::CCAction *this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n  cocos2d::CCObject *v6; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(this, 0x70u, *((_QWORD *)this - 1), (void (*)(void *))cocos2d::CCSpawn::~CCSpawn);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCAction *)((char *)this - 8);\n  }\n  else\n  {\n    this->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCSpawn::`vftable';\n    v5 = *((cocos2d::CCObject **)this + 12);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    v6 = *((cocos2d::CCObject **)this + 13);\n    if ( v6 )\n      cocos2d::CCObject::release(v6);\n    this->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCFiniteTimeAction::`vftable';\n    cocos2d::CCAction::~CCAction(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_180031610 from 0x180031610 to 0x1800316c9 (185 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800e94e8\n; > <???> @ 0x1801b03a8\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, 0x180031610\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180031615\npush    rdi                                                            ; +0xa, 0x18003161a\nsub     rsp, 20h                                                       ; +0xb, 0x18003161b\nmov     esi, edx                                                       ; +0xf, 0x18003161f\nmov     rbx, rcx                                                       ; +0x11, 0x180031621\ntest    dl, 2                                                          ; +0x14, 0x180031624\njz      short loc_18003166A                                            ; +0x17, 0x180031627\nlea     r9, ??1CCSpawn@cocos2d@@UEAA@XZ; void (*)(void *)              ; +0x19, 0x180031629\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x180031630\nmov     edx, 70h ; 'p'; unsigned __int64                               ; +0x24, 0x180031634\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x180031639\ntest    sil, 1                                                         ; +0x2e, 0x18003163e\njz      short loc_180031656                                            ; +0x32, 0x180031642\nimul    rdx, [rbx-8], 70h ; 'p'                                        ; +0x34, 0x180031644\nadd     rdx, 8                                                         ; +0x39, 0x180031649\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x18003164d\ncall    j_j_j_free_0                                                   ; +0x41, 0x180031651\nlea     rax, [rbx-8]                                                   ; +0x46, 0x180031656\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x18003165a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x18003165f\nadd     rsp, 20h                                                       ; +0x54, 0x180031664\npop     rdi                                                            ; +0x58, 0x180031668\nretn                                                                   ; +0x59, 0x180031669\nlea     rax, ??_7CCSpawn@cocos2d@@6B@; const cocos2d::CCSpawn::`vftable' ; +0x5a, 0x18003166a\nmov     [rcx], rax                                                     ; +0x61, 0x180031671\nmov     rcx, [rcx+60h]; this                                           ; +0x64, 0x180031674\ntest    rcx, rcx                                                       ; +0x68, 0x180031678\njz      short loc_180031682                                            ; +0x6b, 0x18003167b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6d, 0x18003167d\nmov     rcx, [rbx+68h]; this                                           ; +0x72, 0x180031682\ntest    rcx, rcx                                                       ; +0x76, 0x180031686\njz      short loc_180031690                                            ; +0x79, 0x180031689\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7b, 0x18003168b\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x80, 0x180031690\nmov     [rbx], rax                                                     ; +0x87, 0x180031697\nmov     rcx, rbx; this                                                 ; +0x8a, 0x18003169a\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x8d, 0x18003169d\nnop                                                                    ; +0x92, 0x1800316a2\ntest    sil, 1                                                         ; +0x93, 0x1800316a3\njz      short loc_1800316B6                                            ; +0x97, 0x1800316a7\nmov     edx, 70h ; 'p'                                                 ; +0x99, 0x1800316a9\nmov     rcx, rbx; Block                                                ; +0x9e, 0x1800316ae\ncall    j_j_free_0                                                     ; +0xa1, 0x1800316b1\nmov     rax, rbx                                                       ; +0xa6, 0x1800316b6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa9, 0x1800316b9\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xae, 0x1800316be\nadd     rsp, 20h                                                       ; +0xb3, 0x1800316c3\npop     rdi                                                            ; +0xb7, 0x1800316c7\nretn                                                                   ; +0xb8, 0x1800316c8", "xrefs": ["<???> @ 0x1800e94e8", "<???> @ 0x1801b03a8"], "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"}