{"type": "func", "start": 6442654640, "end": 6442654825, "name": "sub_180031BB0", "pseudocode": "// \n// sub_180031BB0 from 0x180031bb0 to 0x180031c69 (185 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ef3e0\n// > <???> @ 0x1801ba4bc\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCAction *__fastcall sub_180031BB0(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, 120, *(this - 1), cocos2d::CCSequence::~CCSequence);\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::CCSequence::`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_180031BB0 from 0x180031bb0 to 0x180031c69 (185 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ef3e0\n; > <???> @ 0x1801ba4bc\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, 0x180031bb0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180031bb5\npush    rdi                                                            ; +0xa, 0x180031bba\nsub     rsp, 20h                                                       ; +0xb, 0x180031bbb\nmov     esi, edx                                                       ; +0xf, 0x180031bbf\nmov     rbx, rcx                                                       ; +0x11, 0x180031bc1\ntest    dl, 2                                                          ; +0x14, 0x180031bc4\njz      short loc_180031C0A                                            ; +0x17, 0x180031bc7\nlea     r9, ??1CCSequence@cocos2d@@UEAA@XZ; cocos2d::CCSequence::~CCSequence(void) ; +0x19, 0x180031bc9\nmov     r8, [rcx-8]                                                    ; +0x20, 0x180031bd0\nmov     edx, 78h ; 'x'                                                 ; +0x24, 0x180031bd4\ncall    sub_1800E49F8                                                  ; +0x29, 0x180031bd9\ntest    sil, 1                                                         ; +0x2e, 0x180031bde\njz      short loc_180031BF6                                            ; +0x32, 0x180031be2\nimul    rdx, [rbx-8], 78h ; 'x'                                        ; +0x34, 0x180031be4\nadd     rdx, 8                                                         ; +0x39, 0x180031be9\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x180031bed\ncall    j_j_j_free_0                                                   ; +0x41, 0x180031bf1\nlea     rax, [rbx-8]                                                   ; +0x46, 0x180031bf6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x180031bfa\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x180031bff\nadd     rsp, 20h                                                       ; +0x54, 0x180031c04\npop     rdi                                                            ; +0x58, 0x180031c08\nretn                                                                   ; +0x59, 0x180031c09\nlea     rax, ??_7CCSequence@cocos2d@@6B@; const cocos2d::CCSequence::`vftable' ; +0x5a, 0x180031c0a\nmov     [rcx], rax                                                     ; +0x61, 0x180031c11\nmov     rcx, [rcx+60h]; this                                           ; +0x64, 0x180031c14\ntest    rcx, rcx                                                       ; +0x68, 0x180031c18\njz      short loc_180031C22                                            ; +0x6b, 0x180031c1b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6d, 0x180031c1d\nmov     rcx, [rbx+68h]; this                                           ; +0x72, 0x180031c22\ntest    rcx, rcx                                                       ; +0x76, 0x180031c26\njz      short loc_180031C30                                            ; +0x79, 0x180031c29\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x7b, 0x180031c2b\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x80, 0x180031c30\nmov     [rbx], rax                                                     ; +0x87, 0x180031c37\nmov     rcx, rbx; this                                                 ; +0x8a, 0x180031c3a\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x8d, 0x180031c3d\nnop                                                                    ; +0x92, 0x180031c42\ntest    sil, 1                                                         ; +0x93, 0x180031c43\njz      short loc_180031C56                                            ; +0x97, 0x180031c47\nmov     edx, 78h ; 'x'                                                 ; +0x99, 0x180031c49\nmov     rcx, rbx; Block                                                ; +0x9e, 0x180031c4e\ncall    j_j_free_0                                                     ; +0xa1, 0x180031c51\nmov     rax, rbx                                                       ; +0xa6, 0x180031c56\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa9, 0x180031c59\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xae, 0x180031c5e\nadd     rsp, 20h                                                       ; +0xb3, 0x180031c63\npop     rdi                                                            ; +0xb7, 0x180031c67\nretn                                                                   ; +0xb8, 0x180031c68", "xrefs": ["<???> @ 0x1800ef3e0", "<???> @ 0x1801ba4bc"], "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"}