//
// cocos2d::CCAccelAmplitude::create from 0x18002abd0 to 0x18002acc0 (240 bytes)
//
// 3 xrefs:
// > cocos2d::CCAccelAmplitude::reverse @ 0x18002b350
// > ??> @ 0x1801438a8
// > ??> @ 0x1801afa90
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCAccelAmplitude *__fastcall cocos2d::CCAccelAmplitude::create(
struct cocos2d::CCAction *this,
float a2)
{
_OWORD *v3; // rax
_OWORD *v4; // rbx
cocos2d::CCAction *(__fastcall *v6)(cocos2d::CCAction *, char); // r8
v3 = operator new(0x70u);
v4 = v3;
if ( v3 )
{
*v3 = 0;
v3[1] = 0;
v3[2] = 0;
v3[3] = 0;
v3[4] = 0;
v3[5] = 0;
v3[6] = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v3);
*((_DWORD *)v4 + 20) = 0;
*(_QWORD *)v4 = &cocos2d::CCAccelAmplitude::`vftable';
}
else
{
v4 = nullptr;
}
if ( !v4 )
return (struct cocos2d::CCAccelAmplitude *)v4;
if ( cocos2d::CCActionInterval::initWithDuration((cocos2d::CCActionInterval *)v4, a2) )
{
*((_DWORD *)v4 + 24) = 1065353216;
*((_QWORD *)v4 + 13) = this;
cocos2d::CCObject::retain(this);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
return (struct cocos2d::CCAccelAmplitude *)v4;
}
v6 = *(cocos2d::CCAction *(__fastcall **)(cocos2d::CCAction *, char))(*(_QWORD *)v4 + 8LL);
if ( v6 == sub_18002A830 )
sub_18002A830((cocos2d::CCAction *)v4, 1);
else
v6((cocos2d::CCAction *)v4, 1);
return nullptr;
}