{"type": "func", "start": 6442625072, "end": 6442625256, "name": "sub_18002A830", "pseudocode": "// \n// sub_18002A830 from 0x18002a830 to 0x18002a8e8 (184 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCAccelAmplitude::create @ 0x18002ac94\n// > cocos2d::CCAccelAmplitude::create @ 0x18002ac80\n// > <???> @ 0x1800e85f0\n// > <???> @ 0x1801afa54\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_18002A830(cocos2d::CCAction *this, char a2)\n{\n  __int64 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::CCAccelAmplitude::~CCAccelAmplitude);\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::CCAccelAmplitude::`vftable';\n    v5 = *((_QWORD *)this + 13);\n    if ( v5 )\n    {\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);\n      *((_QWORD *)this + 13) = 0;\n    }\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_18002A830 from 0x18002a830 to 0x18002a8e8 (184 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCAccelAmplitude::create @ 0x18002ac94\n; > cocos2d::CCAccelAmplitude::create @ 0x18002ac80\n; > <???> @ 0x1800e85f0\n; > <???> @ 0x1801afa54\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, 0x18002a830\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18002a835\npush    rdi                                                            ; +0xa, 0x18002a83a\nsub     rsp, 20h                                                       ; +0xb, 0x18002a83b\nmov     esi, edx                                                       ; +0xf, 0x18002a83f\nmov     rbx, rcx                                                       ; +0x11, 0x18002a841\ntest    dl, 2                                                          ; +0x14, 0x18002a844\njz      short loc_18002A88A                                            ; +0x17, 0x18002a847\nlea     r9, ??1CCAccelAmplitude@cocos2d@@UEAA@XZ; void (*)(void *)     ; +0x19, 0x18002a849\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x18002a850\nmov     edx, 70h ; 'p'; unsigned __int64                               ; +0x24, 0x18002a854\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x18002a859\ntest    sil, 1                                                         ; +0x2e, 0x18002a85e\njz      short loc_18002A876                                            ; +0x32, 0x18002a862\nimul    rdx, [rbx-8], 70h ; 'p'                                        ; +0x34, 0x18002a864\nadd     rdx, 8                                                         ; +0x39, 0x18002a869\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x18002a86d\ncall    j_j_j_free_0                                                   ; +0x41, 0x18002a871\nlea     rax, [rbx-8]                                                   ; +0x46, 0x18002a876\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x18002a87a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x18002a87f\nadd     rsp, 20h                                                       ; +0x54, 0x18002a884\npop     rdi                                                            ; +0x58, 0x18002a888\nretn                                                                   ; +0x59, 0x18002a889\nlea     rax, ??_7CCAccelAmplitude@cocos2d@@6B@; const cocos2d::CCAccelAmplitude::`vftable' ; +0x5a, 0x18002a88a\nmov     [rcx], rax                                                     ; +0x61, 0x18002a891\nmov     rcx, [rcx+68h]                                                 ; +0x64, 0x18002a894\ntest    rcx, rcx                                                       ; +0x68, 0x18002a898\njz      short loc_18002A8B0                                            ; +0x6b, 0x18002a89b\nmov     rax, [rcx]                                                     ; +0x6d, 0x18002a89d\nmov     edx, 1                                                         ; +0x70, 0x18002a8a0\ncall    qword ptr [rax+8]                                              ; +0x75, 0x18002a8a5\nmov     qword ptr [rbx+68h], 0                                         ; +0x78, 0x18002a8a8\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x80, 0x18002a8b0\nmov     [rbx], rax                                                     ; +0x87, 0x18002a8b7\nmov     rcx, rbx; this                                                 ; +0x8a, 0x18002a8ba\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x8d, 0x18002a8bd\ntest    sil, 1                                                         ; +0x92, 0x18002a8c2\njz      short loc_18002A8D5                                            ; +0x96, 0x18002a8c6\nmov     edx, 70h ; 'p'                                                 ; +0x98, 0x18002a8c8\nmov     rcx, rbx; Block                                                ; +0x9d, 0x18002a8cd\ncall    j_j_free_0                                                     ; +0xa0, 0x18002a8d0\nmov     rax, rbx                                                       ; +0xa5, 0x18002a8d5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa8, 0x18002a8d8\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xad, 0x18002a8dd\nadd     rsp, 20h                                                       ; +0xb2, 0x18002a8e2\npop     rdi                                                            ; +0xb6, 0x18002a8e6\nretn                                                                   ; +0xb7, 0x18002a8e7", "xrefs": ["cocos2d::CCAccelAmplitude::create @ 0x18002ac94", "cocos2d::CCAccelAmplitude::create @ 0x18002ac80", "<???> @ 0x1800e85f0", "<???> @ 0x1801afa54"], "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"}