//
// cocos2d::CCWavesTiles3D::create from 0x18003af60 to 0x18003b06f (271 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0ea0
//
// 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::CCWavesTiles3D *__fastcall cocos2d::CCWavesTiles3D::create(
float a1,
struct cocos2d::CCSize *a2,
unsigned int a3,
float a4)
{
void *v6; // rbx
char (__fastcall *v7)(cocos2d::CCWavesTiles3D *, float, struct cocos2d::CCSize *, int, float); // rdx
v6 = operator new(0x78u);
if ( v6 )
{
*(_OWORD *)v6 = 0;
*((_OWORD *)v6 + 1) = 0;
*((_OWORD *)v6 + 2) = 0;
*((_OWORD *)v6 + 3) = 0;
*((_OWORD *)v6 + 4) = 0;
*((_OWORD *)v6 + 5) = 0;
*((_OWORD *)v6 + 6) = 0;
*((_QWORD *)v6 + 14) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v6);
*((_DWORD *)v6 + 20) = 0;
*(_QWORD *)v6 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v6 + 12);
*(_QWORD *)v6 = &cocos2d::CCWavesTiles3D::`vftable';
}
else
{
v6 = nullptr;
}
if ( !v6 )
return (struct cocos2d::CCWavesTiles3D *)v6;
v7 = *(char (__fastcall **)(cocos2d::CCWavesTiles3D *, float, struct cocos2d::CCSize *, int, float))(*(_QWORD *)v6 + 128LL);
if ( v7 == cocos2d::CCWavesTiles3D::initWithDuration )
{
if ( cocos2d::CCGridAction::initWithDuration((cocos2d::CCGridAction *)v6, a1, a2) )
{
*((_DWORD *)v6 + 26) = a3;
*((float *)v6 + 27) = a4;
*((_DWORD *)v6 + 28) = 1065353216;
LABEL_9:
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return (struct cocos2d::CCWavesTiles3D *)v6;
}
}
else if ( ((unsigned __int8 (__fastcall *)(void *, char (__fastcall *)(cocos2d::CCWavesTiles3D *, float, struct cocos2d::CCSize *, int, float), struct cocos2d::CCSize *, _QWORD, _DWORD))v7)(
v6,
v7,
a2,
a3,
LODWORD(a4)) )
{
goto LABEL_9;
}
cocos2d::CCObject::release((cocos2d::CCObject *)v6);
return nullptr;
}