//
// sub_18002AF00 from 0x18002af00 to 0x18002afb8 (184 bytes)
//
// 4 xrefs:
// > cocos2d::CCAccelAmplitude::create @ 0x18002b364
// > cocos2d::CCAccelAmplitude::create @ 0x18002b350
// > ??> @ 0x1800ee658
// > ??> @ 0x1801b9b68
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:21:31 +0000
//
cocos2d::CCAction *__fastcall sub_18002AF00(cocos2d::CCAction *this, char a2)
{
__int64 v5; // rcx
if ( (a2 & 2) != 0 )
{
sub_1800E49F8(this, 112, *((_QWORD *)this - 1), cocos2d::CCAccelAmplitude::~CCAccelAmplitude);
if ( (a2 & 1) != 0 )
j_j_j_free_0((char *)this - 8);
return (cocos2d::CCAction *)((char *)this - 8);
}
else
{
*(_QWORD *)this = &cocos2d::CCAccelAmplitude::`vftable';
v5 = *((_QWORD *)this + 13);
if ( v5 )
{
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);
*((_QWORD *)this + 13) = 0;
}
*(_QWORD *)this = &cocos2d::CCFiniteTimeAction::`vftable';
cocos2d::CCAction::~CCAction(this);
if ( (a2 & 1) != 0 )
j_j_free_0(this);
return this;
}
}