{"type": "func", "start": 6442655024, "end": 6442655209, "name": "sub_180031D30", "pseudocode": "// \n// sub_180031D30 from 0x180031d30 to 0x180031de9 (185 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800effb0\n// > <???> @ 0x1801ba4d4\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:21:33 +0000\n// \n\ncocos2d::CCAction *__fastcall sub_180031D30(cocos2d::CCObject **this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n  cocos2d::CCObject *v6; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 112, *(this - 1), cocos2d::CCTargetedAction::~CCTargetedAction);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0(this - 1);\n    return (cocos2d::CCAction *)(this - 1);\n  }\n  else\n  {\n    *this = (cocos2d::CCObject *)&cocos2d::CCTargetedAction::`vftable';\n    v5 = *(this + 12);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    v6 = *(this + 13);\n    if ( v6 )\n      cocos2d::CCObject::release(v6);\n    *this = (cocos2d::CCObject *)&cocos2d::CCFiniteTimeAction::`vftable';\n    cocos2d::CCAction::~CCAction((cocos2d::CCAction *)this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return (cocos2d::CCAction *)this;\n  }\n}", "assembly": "; \n; sub_180031D30 from 0x180031d30 to 0x180031de9 (185 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800effb0\n; > <???> @ 0x1801ba4d4\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:21:33 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180031d30\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180031d35\npush    rdi                                                            ; +0xa, 0x180031d3a\nsub     rsp, 20h                                                       ; +0xb, 0x180031d3b\nmov     esi, edx                                                       ; +0xf, 0x180031d3f\nmov     rbx, rcx                                                       ; +0x11, 0x180031d41\ntest    dl, 2                                                          ; +0x14, 0x180031d44\njz      short loc_180031D8A                                            ; +0x17, 0x180031d47\nlea     r9, ??1CCTargetedAction@cocos2d@@UEAA@XZ; cocos2d::CCTargetedAction::~CCTargetedAction(void) ; +0x19, 0x180031d49\nmov     r8, [rcx-8]                                                    ; +0x20, 0x180031d50\nmov     edx, 70h ; 'p'                                                 ; +0x24, 0x180031d54\ncall    sub_1800E49F8                                                  ; +0x29, 0x180031d59\ntest    sil, 1                                                         ; +0x2e, 0x180031d5e\njz      short loc_180031D76                                            ; +0x32, 0x180031d62\nimul    rdx, [rbx-8], 70h ; 'p'                                        ; +0x34, 0x180031d64\nadd     rdx, 8                                                         ; +0x39, 0x180031d69\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x180031d6d\ncall    j_j_j_free_0                                                   ; +0x41, 0x180031d71\nlea     rax, [rbx-8]                                                   ; +0x46, 0x180031d76\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x180031d7a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x180031d7f\nadd     rsp, 20h                                                       ; +0x54, 0x180031d84\npop     rdi                                                            ; +0x58, 0x180031d88\nretn                                                                   ; +0x59, 0x180031d89\nlea     rax, ??_7CCTargetedAction@cocos2d@@6B@; const cocos2d::CCTargetedAction::`vftable' ; +0x5a, 0x180031d8a\nmov     [rcx], rax                                                     ; +0x61, 0x180031d91\nmov     rcx, [rcx+60h]; this                                           ; +0x64, 0x180031d94\ntest    rcx, rcx                                                       ; +0x68, 0x180031d98\njz      short loc_180031DA2                                            ; +0x6b, 0x180031d9b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6d, 0x180031d9d\nmov     rcx, [rbx+68h]; this                                           ; +0x72, 0x180031da2\ntest    rcx, rcx                                                       ; +0x76, 0x180031da6\njz      short loc_180031DB0                                            ; +0x79, 0x180031da9\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7b, 0x180031dab\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x80, 0x180031db0\nmov     [rbx], rax                                                     ; +0x87, 0x180031db7\nmov     rcx, rbx; this                                                 ; +0x8a, 0x180031dba\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x8d, 0x180031dbd\nnop                                                                    ; +0x92, 0x180031dc2\ntest    sil, 1                                                         ; +0x93, 0x180031dc3\njz      short loc_180031DD6                                            ; +0x97, 0x180031dc7\nmov     edx, 70h ; 'p'                                                 ; +0x99, 0x180031dc9\nmov     rcx, rbx; Block                                                ; +0x9e, 0x180031dce\ncall    j_j_free_0                                                     ; +0xa1, 0x180031dd1\nmov     rax, rbx                                                       ; +0xa6, 0x180031dd6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa9, 0x180031dd9\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xae, 0x180031dde\nadd     rsp, 20h                                                       ; +0xb3, 0x180031de3\npop     rdi                                                            ; +0xb7, 0x180031de7\nretn                                                                   ; +0xb8, 0x180031de8", "xrefs": ["<???> @ 0x1800effb0", "<???> @ 0x1801ba4d4"], "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"}