{"type": "func", "start": 6442626816, "end": 6442627000, "name": "sub_18002AF00", "pseudocode": "// \n// sub_18002AF00 from 0x18002af00 to 0x18002afb8 (184 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCAccelAmplitude::create @ 0x18002b364\n// > cocos2d::CCAccelAmplitude::create @ 0x18002b350\n// > <???> @ 0x1800ee658\n// > <???> @ 0x1801b9b68\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:31 +0000\n// \n\ncocos2d::CCAction *__fastcall sub_18002AF00(cocos2d::CCAction *this, char a2)\n{\n  __int64 v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 112, *((_QWORD *)this - 1), 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    *(_QWORD *)this = &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    *(_QWORD *)this = &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_18002AF00 from 0x18002af00 to 0x18002afb8 (184 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCAccelAmplitude::create @ 0x18002b364\n; > cocos2d::CCAccelAmplitude::create @ 0x18002b350\n; > <???> @ 0x1800ee658\n; > <???> @ 0x1801b9b68\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:31 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18002af00\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18002af05\npush    rdi                                                            ; +0xa, 0x18002af0a\nsub     rsp, 20h                                                       ; +0xb, 0x18002af0b\nmov     esi, edx                                                       ; +0xf, 0x18002af0f\nmov     rbx, rcx                                                       ; +0x11, 0x18002af11\ntest    dl, 2                                                          ; +0x14, 0x18002af14\njz      short loc_18002AF5A                                            ; +0x17, 0x18002af17\nlea     r9, ??1CCAccelAmplitude@cocos2d@@UEAA@XZ; cocos2d::CCAccelAmplitude::~CCAccelAmplitude(void) ; +0x19, 0x18002af19\nmov     r8, [rcx-8]                                                    ; +0x20, 0x18002af20\nmov     edx, 70h ; 'p'                                                 ; +0x24, 0x18002af24\ncall    sub_1800E49F8                                                  ; +0x29, 0x18002af29\ntest    sil, 1                                                         ; +0x2e, 0x18002af2e\njz      short loc_18002AF46                                            ; +0x32, 0x18002af32\nimul    rdx, [rbx-8], 70h ; 'p'                                        ; +0x34, 0x18002af34\nadd     rdx, 8                                                         ; +0x39, 0x18002af39\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x18002af3d\ncall    j_j_j_free_0                                                   ; +0x41, 0x18002af41\nlea     rax, [rbx-8]                                                   ; +0x46, 0x18002af46\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x18002af4a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x18002af4f\nadd     rsp, 20h                                                       ; +0x54, 0x18002af54\npop     rdi                                                            ; +0x58, 0x18002af58\nretn                                                                   ; +0x59, 0x18002af59\nlea     rax, ??_7CCAccelAmplitude@cocos2d@@6B@; const cocos2d::CCAccelAmplitude::`vftable' ; +0x5a, 0x18002af5a\nmov     [rcx], rax                                                     ; +0x61, 0x18002af61\nmov     rcx, [rcx+68h]                                                 ; +0x64, 0x18002af64\ntest    rcx, rcx                                                       ; +0x68, 0x18002af68\njz      short loc_18002AF80                                            ; +0x6b, 0x18002af6b\nmov     rax, [rcx]                                                     ; +0x6d, 0x18002af6d\nmov     edx, 1                                                         ; +0x70, 0x18002af70\ncall    qword ptr [rax+8]                                              ; +0x75, 0x18002af75\nmov     qword ptr [rbx+68h], 0                                         ; +0x78, 0x18002af78\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x80, 0x18002af80\nmov     [rbx], rax                                                     ; +0x87, 0x18002af87\nmov     rcx, rbx; this                                                 ; +0x8a, 0x18002af8a\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x8d, 0x18002af8d\ntest    sil, 1                                                         ; +0x92, 0x18002af92\njz      short loc_18002AFA5                                            ; +0x96, 0x18002af96\nmov     edx, 70h ; 'p'                                                 ; +0x98, 0x18002af98\nmov     rcx, rbx; Block                                                ; +0x9d, 0x18002af9d\ncall    j_j_free_0                                                     ; +0xa0, 0x18002afa0\nmov     rax, rbx                                                       ; +0xa5, 0x18002afa5\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa8, 0x18002afa8\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xad, 0x18002afad\nadd     rsp, 20h                                                       ; +0xb2, 0x18002afb2\npop     rdi                                                            ; +0xb6, 0x18002afb6\nretn                                                                   ; +0xb7, 0x18002afb7", "xrefs": ["cocos2d::CCAccelAmplitude::create @ 0x18002b364", "cocos2d::CCAccelAmplitude::create @ 0x18002b350", "<???> @ 0x1800ee658", "<???> @ 0x1801b9b68"], "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"}