//
// cocos2d::CCRipple3D::copyWithZone from 0x10027e740 to 0x10027e871 (305 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008f0ce8
//
// 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 *__fastcall cocos2d::CCRipple3D::copyWithZone(cocos2d::CCRipple3D *a1, cocos2d::CCZone *a2)
{
_OWORD *v2; // rbx
cocos2d::CCZone *v3; // r15
int m_nTag; // r12d
int m_nLuaID; // [rsp+8h] [rbp-28h]
unsigned int m_uReference; // [rsp+Ch] [rbp-24h]
if ( a2 && (v2 = *(_OWORD **)a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = operator new(0x80u);
*v2 = 0;
v2[1] = 0;
v2[2] = 0;
v2[3] = 0;
v2[4] = 0;
v2[5] = 0;
v2[6] = 0;
v2[7] = 0;
cocos2d::CCAction::CCAction(v2);
*((_DWORD *)v2 + 20) = 0;
*(_QWORD *)v2 = off_1008DC310;
sub_10028CF90((char *)v2 + 92);
*(_QWORD *)v2 = off_1008F0CE8;
sub_10028CC30((char *)v2 + 100);
v3 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
a2 = v3;
}
cocos2d::CCGridAction::copyWithZone(a1, a2);
m_nLuaID = a1[1].m_nLuaID;
m_nTag = a1[1].cocos2d::CCGrid3DAction::cocos2d::CCGridAction::cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag;
m_uReference = a1[1].m_uReference;
if ( cocos2d::CCGridAction::initWithDuration(
(cocos2d::CCGridAction *)v2,
a1->m_fDuration,
(const cocos2d::CCSize *)(&a1->m_bFirstTick + 4)) )
{
sub_10028CC90();
*((_DWORD *)v2 + 27) = m_nLuaID;
*((_DWORD *)v2 + 28) = m_nTag;
*((_DWORD *)v2 + 29) = m_uReference;
*((_DWORD *)v2 + 30) = 1065353216;
}
if ( v3 )
operator delete(v3);
return (cocos2d::CCObject *)v2;
}