//
// cocos2d::CCWaves::create from 0x18002d4e0 to 0x18002d5de (254 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9e50
//
// 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
//
struct cocos2d::CCWaves *__fastcall cocos2d::CCWaves::create(
float a1,
const struct cocos2d::CCSize *a2,
int a3,
float a4,
bool a5,
bool a6)
{
__int64 v8; // rbx
v8 = sub_1800E4AC0(0x78u);
if ( v8 )
{
*(_OWORD *)v8 = 0;
*(_OWORD *)(v8 + 16) = 0;
*(_OWORD *)(v8 + 32) = 0;
*(_OWORD *)(v8 + 48) = 0;
*(_OWORD *)(v8 + 64) = 0;
*(_OWORD *)(v8 + 80) = 0;
*(_OWORD *)(v8 + 96) = 0;
*(_QWORD *)(v8 + 112) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v8);
*(_DWORD *)(v8 + 80) = 0;
*(_QWORD *)v8 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v8 + 96));
*(_QWORD *)v8 = &cocos2d::CCWaves::`vftable';
}
else
{
v8 = 0;
}
if ( !v8 )
return (struct cocos2d::CCWaves *)v8;
if ( cocos2d::CCGridAction::initWithDuration((cocos2d::CCGridAction *)v8, a1, a2) )
{
*(_DWORD *)(v8 + 104) = a3;
*(float *)(v8 + 108) = a4;
*(_DWORD *)(v8 + 112) = 1065353216;
*(_BYTE *)(v8 + 117) = a5;
*(_BYTE *)(v8 + 116) = a6;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v8);
return (struct cocos2d::CCWaves *)v8;
}
cocos2d::CCObject::release((cocos2d::CCObject *)v8);
return nullptr;
}