//
// cocos2d::CCShaky3D::create from 0x18002cb30 to 0x18002cc08 (216 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801afd18
//
// 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=2
struct cocos2d::CCShaky3D *__fastcall cocos2d::CCShaky3D::create(float a1, struct cocos2d::CCSize *a2, int a3, char a4)
{
_OWORD *v7; // rax
_OWORD *v8; // rbx
v7 = operator new(0x70u);
v8 = v7;
if ( v7 )
{
*v7 = 0;
v7[1] = 0;
v7[2] = 0;
v7[3] = 0;
v7[4] = 0;
v7[5] = 0;
v7[6] = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v7);
*((_DWORD *)v8 + 20) = 0;
*(_QWORD *)v8 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v8 + 12);
*(_QWORD *)v8 = &cocos2d::CCShaky3D::`vftable';
}
else
{
v8 = nullptr;
}
if ( !v8 )
return (struct cocos2d::CCShaky3D *)v8;
if ( cocos2d::CCGridAction::initWithDuration((cocos2d::CCGridAction *)v8, a1, a2) )
{
*((_DWORD *)v8 + 26) = a3;
*((_BYTE *)v8 + 108) = a4;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
return (struct cocos2d::CCShaky3D *)v8;
}
cocos2d::CCObject::release((cocos2d::CCObject *)v8);
return nullptr;
}