//
// cocos2d::CCShaky3D::create from 0x18002d1f0 to 0x18002d2c8 (216 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9e2c
//
// 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:32 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCShaky3D *__fastcall cocos2d::CCShaky3D::create(
float a1,
const struct cocos2d::CCSize *a2,
int a3,
char a4)
{
cocos2d::CCAction *v7; // rax
cocos2d::CCAction *v8; // rbx
v7 = (cocos2d::CCAction *)sub_1800E4AC0(0x70u);
v8 = v7;
if ( v7 )
{
*(_OWORD *)v7 = 0;
*((_OWORD *)v7 + 1) = 0;
*((_OWORD *)v7 + 2) = 0;
*((_OWORD *)v7 + 3) = 0;
*((_OWORD *)v7 + 4) = 0;
*((_OWORD *)v7 + 5) = 0;
*((_OWORD *)v7 + 6) = 0;
cocos2d::CCAction::CCAction(v7);
*((_DWORD *)v8 + 20) = 0;
*(_QWORD *)v8 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCAction *)((char *)v8 + 96));
*(_QWORD *)v8 = &cocos2d::CCShaky3D::`vftable';
}
else
{
v8 = nullptr;
}
if ( !v8 )
return v8;
if ( cocos2d::CCGridAction::initWithDuration(v8, a1, a2) )
{
*((_DWORD *)v8 + 26) = a3;
*((_BYTE *)v8 + 108) = a4;
cocos2d::CCObject::autorelease(v8);
return v8;
}
cocos2d::CCObject::release(v8);
return nullptr;
}