//
// cocos2d::CCWaves::copyWithZone from 0x5b4e40 to 0x5b4eb6 (118 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCObject *cocos2d::CCWaves::copyWithZone(cocos2d::CCWaves *a1, cocos2d::CCZone *a2)
{
cocos2d::CCZone *v3; // r6
cocos2d::CCWaves *v4; // r4
cocos2d::CCZone *v5; // r7
v3 = a2;
if ( a2 && (v4 = *(cocos2d::CCWaves **)a2) != nullptr )
{
v5 = nullptr;
}
else
{
v4 = (cocos2d::CCWaves *)operator new(0x68u);
memset(v4, 0, 0x68u);
cocos2d::CCGrid3DAction::CCGrid3DAction(v4);
v4->__vftable = (cocos2d::CCWaves_vtbl *)&off_A9FC80;
v3 = (cocos2d::CCZone *)operator new(4u);
cocos2d::CCZone::CCZone(v3, v4);
v5 = v3;
}
cocos2d::CCGridAction::copyWithZone(a1, v3);
cocos2d::CCWaves::initWithDuration(
v4,
a1->m_fDuration,
(const cocos2d::CCSize *)&a1[1],
a1[1].m_nLuaID,
*(float *)&a1[1].cocos2d::CCGrid3DAction::cocos2d::CCGridAction::cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag,
BYTE1(a1[1].m_uAutoReleaseCount),
a1[1].m_uAutoReleaseCount);
if ( v5 )
operator delete(v5);
return v4;
}