{"type": "func", "start": 6442654464, "end": 6442654635, "name": "sub_180031B00", "pseudocode": "// \n// sub_180031B00 from 0x180031b00 to 0x180031bab (171 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800efec0\n// > <???> @ 0x1801ba4b0\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_180031B00(cocos2d::CCObject **this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 104, *(this - 1), cocos2d::CCReverseTime::~CCReverseTime);\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::CCReverseTime::`vftable';\n    v5 = *(this + 12);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\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_180031B00 from 0x180031b00 to 0x180031bab (171 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800efec0\n; > <???> @ 0x1801ba4b0\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, 0x180031b00\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180031b05\npush    rdi                                                            ; +0xa, 0x180031b0a\nsub     rsp, 20h                                                       ; +0xb, 0x180031b0b\nmov     esi, edx                                                       ; +0xf, 0x180031b0f\nmov     rbx, rcx                                                       ; +0x11, 0x180031b11\ntest    dl, 2                                                          ; +0x14, 0x180031b14\njz      short loc_180031B5A                                            ; +0x17, 0x180031b17\nlea     r9, ??1CCReverseTime@cocos2d@@UEAA@XZ; cocos2d::CCReverseTime::~CCReverseTime(void) ; +0x19, 0x180031b19\nmov     r8, [rcx-8]                                                    ; +0x20, 0x180031b20\nmov     edx, 68h ; 'h'                                                 ; +0x24, 0x180031b24\ncall    sub_1800E49F8                                                  ; +0x29, 0x180031b29\ntest    sil, 1                                                         ; +0x2e, 0x180031b2e\njz      short loc_180031B46                                            ; +0x32, 0x180031b32\nimul    rdx, [rbx-8], 68h ; 'h'                                        ; +0x34, 0x180031b34\nadd     rdx, 8                                                         ; +0x39, 0x180031b39\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x180031b3d\ncall    j_j_j_free_0                                                   ; +0x41, 0x180031b41\nlea     rax, [rbx-8]                                                   ; +0x46, 0x180031b46\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x180031b4a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x180031b4f\nadd     rsp, 20h                                                       ; +0x54, 0x180031b54\npop     rdi                                                            ; +0x58, 0x180031b58\nretn                                                                   ; +0x59, 0x180031b59\nlea     rax, ??_7CCReverseTime@cocos2d@@6B@; const cocos2d::CCReverseTime::`vftable' ; +0x5a, 0x180031b5a\nmov     [rcx], rax                                                     ; +0x61, 0x180031b61\nmov     rcx, [rcx+60h]; this                                           ; +0x64, 0x180031b64\ntest    rcx, rcx                                                       ; +0x68, 0x180031b68\njz      short loc_180031B72                                            ; +0x6b, 0x180031b6b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6d, 0x180031b6d\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x72, 0x180031b72\nmov     [rbx], rax                                                     ; +0x79, 0x180031b79\nmov     rcx, rbx; this                                                 ; +0x7c, 0x180031b7c\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x7f, 0x180031b7f\nnop                                                                    ; +0x84, 0x180031b84\ntest    sil, 1                                                         ; +0x85, 0x180031b85\njz      short loc_180031B98                                            ; +0x89, 0x180031b89\nmov     edx, 68h ; 'h'                                                 ; +0x8b, 0x180031b8b\nmov     rcx, rbx; Block                                                ; +0x90, 0x180031b90\ncall    j_j_free_0                                                     ; +0x93, 0x180031b93\nmov     rax, rbx                                                       ; +0x98, 0x180031b98\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9b, 0x180031b9b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa0, 0x180031ba0\nadd     rsp, 20h                                                       ; +0xa5, 0x180031ba5\npop     rdi                                                            ; +0xa9, 0x180031ba9\nretn                                                                   ; +0xaa, 0x180031baa", "xrefs": ["<???> @ 0x1800efec0", "<???> @ 0x1801ba4b0"], "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"}