//
// cocos2d::CCGridAction::copyWithZone from 0x18002b1b0 to 0x18002b29d (237 bytes)
//
// 26 xrefs:
// > cocos2d::CCFlipX3D::copyWithZone @ 0x18002c34a
// > cocos2d::CCLens3D::copyWithZone @ 0x18002c556
// > cocos2d::CCLiquid::copyWithZone @ 0x18002c668
// > cocos2d::CCRipple3D::copyWithZone @ 0x18002c7a5
// > cocos2d::CCShaky3D::copyWithZone @ 0x18002c8eb
// > cocos2d::CCTwirl::copyWithZone @ 0x18002ca0e
// > cocos2d::CCWaves3D::copyWithZone @ 0x18002cb58
// > cocos2d::CCWaves::copyWithZone @ 0x18002cc8c
// > cocos2d::CCJumpTiles3D::copyWithZone @ 0x18003a328
// > cocos2d::CCShakyTiles3D::copyWithZone @ 0x18003a448
// > cocos2d::CCShatteredTiles3D::copyWithZone @ 0x18003a558
// > cocos2d::CCShuffleTiles::copyWithZone @ 0x18003a66c
// > cocos2d::CCSplitCols::copyWithZone @ 0x18003a788
// > cocos2d::CCSplitRows::copyWithZone @ 0x18003a898
// > cocos2d::CCTurnOffTiles::copyWithZone @ 0x18003a99e
// > cocos2d::CCWavesTiles3D::copyWithZone @ 0x18003aaae
// > ??> @ 0x1800ee4c8
// > ??> @ 0x1800ee550
// > ??> @ 0x1800ee830
// > ??> @ 0x1800f00f8
// > ??> @ 0x1800f0440
// > ??> @ 0x1800f04d8
// > ??> @ 0x1800f0570
// > ??> @ 0x1800f0608
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9b98
//
// 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 11:21:31 +0000
//
// Hidden C++ exception states: #wind=3
struct cocos2d::CCObject *__fastcall cocos2d::CCGridAction::copyWithZone(
cocos2d::CCGridAction *this,
struct cocos2d::CCZone *a2)
{
tinyxml2::XMLHandle *v2; // rax
tinyxml2::XMLHandle *v4; // rdi
_OWORD *v5; // rbx
tinyxml2::XMLHandle *v6; // rax
__int64 v7; // rdx
v2 = a2;
v4 = nullptr;
if ( !a2 || (v5 = *(_OWORD **)a2) == nullptr )
{
v5 = (_OWORD *)sub_1800E4AC0(0x68u);
if ( v5 )
{
*v5 = 0;
v5[1] = 0;
v5[2] = 0;
v5[3] = 0;
v5[4] = 0;
v5[5] = 0;
*((_QWORD *)v5 + 12) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);
*((_DWORD *)v5 + 20) = 0;
*(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 6));
}
else
{
v5 = nullptr;
}
v6 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);
if ( v6 )
v2 = tinyxml2::XMLHandle::XMLHandle(v6, (struct tinyxml2::XMLNode *)v5);
else
v2 = nullptr;
v4 = v2;
}
cocos2d::CCActionInterval::copyWithZone(this, v2);
(*(void (__fastcall **)(_OWORD *, __int64, char *))(*(_QWORD *)v5 + 112LL))(v5, v7, (char *)this + 96);
if ( v4 )
j_j_free_0(v4);
return (struct cocos2d::CCObject *)v5;
}