//
// cocos2d::CCGridAction::copyWithZone from 0x10020a160 to 0x10020a227 (199 bytes)
//
// 24 xrefs:
// > cocos2d::CCWaves3D::copyWithZone @ 0x10027d330
// > cocos2d::CCFlipX3D::copyWithZone @ 0x10027d74f
// > cocos2d::CCLens3D::copyWithZone @ 0x10027e266
// > cocos2d::CCRipple3D::copyWithZone @ 0x10027e7f0
// > cocos2d::CCShaky3D::copyWithZone @ 0x10027ec4c
// > cocos2d::CCLiquid::copyWithZone @ 0x10027f040
// > cocos2d::CCWaves::copyWithZone @ 0x10027f47a
// > cocos2d::CCTwirl::copyWithZone @ 0x10027f956
// > cocos2d::CCShakyTiles3D::copyWithZone @ 0x1007b51ab
// > cocos2d::CCShatteredTiles3D::copyWithZone @ 0x1007b568b
// > cocos2d::CCShuffleTiles::copyWithZone @ 0x1007b5b6f
// > cocos2d::CCTurnOffTiles::copyWithZone @ 0x1007b6f16
// > cocos2d::CCWavesTiles3D::copyWithZone @ 0x1007b74db
// > cocos2d::CCJumpTiles3D::copyWithZone @ 0x1007b78a0
// > cocos2d::CCSplitRows::copyWithZone @ 0x1007b7ce7
// > cocos2d::CCSplitCols::copyWithZone @ 0x1007b8097
// > ??> @ 0x1008dc310
// > ??> @ 0x1008dc3c0
// > ??> @ 0x1008dc470
// > ??> @ 0x1009105c8
// > ??> @ 0x100993798
// > ??> @ 0x100993858
// > ??> @ 0x100993918
// > ??> @ 0x1009939d8
//
// 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::CCGridAction::copyWithZone(cocos2d::CCGridAction *a1, cocos2d::CCZone *a2)
{
cocos2d::CCObject *v2; // rbx
cocos2d::CCZone *v3; // r15
if ( a2 && (v2 = *(cocos2d::CCObject **)a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = (cocos2d::CCObject *)operator new(0x68u);
*(_OWORD *)&v2->__vftable = 0;
*(_OWORD *)&v2->m_nTag = 0;
*(_OWORD *)&v2->m_uIndexInArray = 0;
*(_OWORD *)&v2->m_uOrderOfArrival = 0;
*(_OWORD *)&v2[1].m_uID = 0;
*(_OWORD *)&v2[1].m_uAutoReleaseCount = 0;
*(_QWORD *)&v2[1].m_unknown2 = 0;
cocos2d::CCAction::CCAction(v2);
v2[1].m_uAutoReleaseCount = 0;
v2->__vftable = (cocos2d::CCObject_vtbl *)off_1008DC310;
sub_10028CF90(&v2[1].m_uUnknown);
v3 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
a2 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, a2);
((void (__fastcall *)(cocos2d::CCObject *, bool *, float))v2->__vftable[1].update)(
v2,
&a1->m_bFirstTick + 4,
a1->m_fDuration);
if ( v3 )
operator delete(v3);
return v2;
}