//
// cocos2d::CCWaves::copyWithZone from 0x10026ba90 to 0x10026bbaa (282 bytes)
//
// 1 xrefs:
// > ??> @ 0x100af7428
//
// 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 12:27:35 +0000
//
_OWORD *__fastcall cocos2d::CCWaves::copyWithZone(__int64 a1, void **a2)
{
_OWORD *v2; // rbx
void **v3; // r15
int v4; // r13d
char v5; // r12
char v6; // r14
int v8; // [rsp+0h] [rbp-2Ch]
if ( a2 && (v2 = *a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = operator new(0x78u);
*v2 = 0;
v2[1] = 0;
v2[2] = 0;
v2[3] = 0;
v2[4] = 0;
v2[5] = 0;
v2[6] = 0;
*((_QWORD *)v2 + 14) = 0;
cocos2d::CCAction::CCAction(v2);
*((_DWORD *)v2 + 20) = 0;
*(_QWORD *)v2 = off_100AE05B0;
sub_100278600((char *)v2 + 92);
*(_QWORD *)v2 = off_100AF7428;
v3 = (void **)operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
a2 = v3;
}
cocos2d::CCGridAction::copyWithZone(a1, a2);
v4 = *(_DWORD *)(a1 + 100);
v8 = *(_DWORD *)(a1 + 104);
v5 = *(_BYTE *)(a1 + 113);
v6 = *(_BYTE *)(a1 + 112);
if ( (unsigned __int8)cocos2d::CCGridAction::initWithDuration((__int64)v2, a1 + 92) )
{
*((_DWORD *)v2 + 25) = v4;
*((_DWORD *)v2 + 26) = v8;
*((_DWORD *)v2 + 27) = 1065353216;
*((_BYTE *)v2 + 113) = v5;
*((_BYTE *)v2 + 112) = v6;
}
if ( v3 )
operator delete(v3);
return v2;
}