//
// cocos2d::CCGridAction::copyWithZone from 0x1001ed5b0 to 0x1001ed677 (199 bytes)
//
// 24 xrefs:
// > cocos2d::CCWaves3D::copyWithZone @ 0x1002699f0
// > cocos2d::CCFlipX3D::copyWithZone @ 0x100269e0f
// > cocos2d::CCLens3D::copyWithZone @ 0x10026a926
// > cocos2d::CCRipple3D::copyWithZone @ 0x10026aeb0
// > cocos2d::CCShaky3D::copyWithZone @ 0x10026b30c
// > cocos2d::CCLiquid::copyWithZone @ 0x10026b700
// > cocos2d::CCWaves::copyWithZone @ 0x10026bb3a
// > cocos2d::CCTwirl::copyWithZone @ 0x10026c016
// > cocos2d::CCShakyTiles3D::copyWithZone @ 0x10089a6cb
// > cocos2d::CCShatteredTiles3D::copyWithZone @ 0x10089abab
// > cocos2d::CCShuffleTiles::copyWithZone @ 0x10089b08f
// > cocos2d::CCTurnOffTiles::copyWithZone @ 0x10089c436
// > cocos2d::CCWavesTiles3D::copyWithZone @ 0x10089c9fb
// > cocos2d::CCJumpTiles3D::copyWithZone @ 0x10089cdc0
// > cocos2d::CCSplitRows::copyWithZone @ 0x10089d207
// > cocos2d::CCSplitCols::copyWithZone @ 0x10089d5b7
// > ??> @ 0x100ae05b0
// > ??> @ 0x100ae0660
// > ??> @ 0x100ae0710
// > ??> @ 0x100b181c8
// > ??> @ 0x100ba9068
// > ??> @ 0x100ba9128
// > ??> @ 0x100ba91e8
// > ??> @ 0x100ba92a8
//
// 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:26:32 +0000
//
_OWORD *__fastcall cocos2d::CCGridAction::copyWithZone(__int64 a1, void **a2)
{
_OWORD *v2; // rbx
void **v3; // r15
if ( a2 && (v2 = *a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = operator new(0x68u);
*v2 = 0;
v2[1] = 0;
v2[2] = 0;
v2[3] = 0;
v2[4] = 0;
v2[5] = 0;
*((_QWORD *)v2 + 12) = 0;
cocos2d::CCAction::CCAction(v2);
*((_DWORD *)v2 + 20) = 0;
*(_QWORD *)v2 = off_100AE05B0;
sub_100278600((char *)v2 + 92);
v3 = (void **)operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
a2 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, a2);
(*(void (__fastcall **)(_OWORD *, __int64, float))(*(_QWORD *)v2 + 120LL))(v2, a1 + 92, *(float *)(a1 + 80));
if ( v3 )
operator delete(v3);
return v2;
}