{"type": "func", "start": 6442625440, "end": 6442625611, "name": "sub_18002A9A0", "pseudocode": "// \n// sub_18002A9A0 from 0x18002a9a0 to 0x18002aa4b (171 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCDeccelAmplitude::create @ 0x18002ae74\n// > cocos2d::CCDeccelAmplitude::create @ 0x18002ae60\n// > <???> @ 0x1800e8668\n// > <???> @ 0x1801afa6c\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_18002A9A0(cocos2d::CCAction *this, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x70u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCDeccelAmplitude::~CCDeccelAmplitude);\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::CCDeccelAmplitude::`vftable';\n    v5 = *((cocos2d::CCObject **)this + 13);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\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_18002A9A0 from 0x18002a9a0 to 0x18002aa4b (171 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCDeccelAmplitude::create @ 0x18002ae74\n; > cocos2d::CCDeccelAmplitude::create @ 0x18002ae60\n; > <???> @ 0x1800e8668\n; > <???> @ 0x1801afa6c\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, 0x18002a9a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18002a9a5\npush    rdi                                                            ; +0xa, 0x18002a9aa\nsub     rsp, 20h                                                       ; +0xb, 0x18002a9ab\nmov     esi, edx                                                       ; +0xf, 0x18002a9af\nmov     rbx, rcx                                                       ; +0x11, 0x18002a9b1\ntest    dl, 2                                                          ; +0x14, 0x18002a9b4\njz      short loc_18002A9FA                                            ; +0x17, 0x18002a9b7\nlea     r9, ??1CCDeccelAmplitude@cocos2d@@UEAA@XZ; void (*)(void *)    ; +0x19, 0x18002a9b9\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x18002a9c0\nmov     edx, 70h ; 'p'; unsigned __int64                               ; +0x24, 0x18002a9c4\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x18002a9c9\ntest    sil, 1                                                         ; +0x2e, 0x18002a9ce\njz      short loc_18002A9E6                                            ; +0x32, 0x18002a9d2\nimul    rdx, [rbx-8], 70h ; 'p'                                        ; +0x34, 0x18002a9d4\nadd     rdx, 8                                                         ; +0x39, 0x18002a9d9\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x18002a9dd\ncall    j_j_j_free_0                                                   ; +0x41, 0x18002a9e1\nlea     rax, [rbx-8]                                                   ; +0x46, 0x18002a9e6\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x18002a9ea\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x18002a9ef\nadd     rsp, 20h                                                       ; +0x54, 0x18002a9f4\npop     rdi                                                            ; +0x58, 0x18002a9f8\nretn                                                                   ; +0x59, 0x18002a9f9\nlea     rax, ??_7CCDeccelAmplitude@cocos2d@@6B@; const cocos2d::CCDeccelAmplitude::`vftable' ; +0x5a, 0x18002a9fa\nmov     [rcx], rax                                                     ; +0x61, 0x18002aa01\nmov     rcx, [rcx+68h]; this                                           ; +0x64, 0x18002aa04\ntest    rcx, rcx                                                       ; +0x68, 0x18002aa08\njz      short loc_18002AA12                                            ; +0x6b, 0x18002aa0b\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x6d, 0x18002aa0d\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x72, 0x18002aa12\nmov     [rbx], rax                                                     ; +0x79, 0x18002aa19\nmov     rcx, rbx; this                                                 ; +0x7c, 0x18002aa1c\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x7f, 0x18002aa1f\nnop                                                                    ; +0x84, 0x18002aa24\ntest    sil, 1                                                         ; +0x85, 0x18002aa25\njz      short loc_18002AA38                                            ; +0x89, 0x18002aa29\nmov     edx, 70h ; 'p'                                                 ; +0x8b, 0x18002aa2b\nmov     rcx, rbx; Block                                                ; +0x90, 0x18002aa30\ncall    j_j_free_0                                                     ; +0x93, 0x18002aa33\nmov     rax, rbx                                                       ; +0x98, 0x18002aa38\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x9b, 0x18002aa3b\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa0, 0x18002aa40\nadd     rsp, 20h                                                       ; +0xa5, 0x18002aa45\npop     rdi                                                            ; +0xa9, 0x18002aa49\nretn                                                                   ; +0xaa, 0x18002aa4a", "xrefs": ["cocos2d::CCDeccelAmplitude::create @ 0x18002ae74", "cocos2d::CCDeccelAmplitude::create @ 0x18002ae60", "<???> @ 0x1800e8668", "<???> @ 0x1801afa6c"], "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"}