//
// cocos2d::CCShaky3D::copyWithZone from 0x18002c830 to 0x18002c93d (269 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800eeb80
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9dc0
//
// 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:32 +0000
//
// Hidden C++ exception states: #wind=3
struct cocos2d::CCObject *__fastcall cocos2d::CCShaky3D::copyWithZone(
cocos2d::CCShaky3D *this,
struct cocos2d::CCZone *a2)
{
tinyxml2::XMLHandle *v2; // rax
tinyxml2::XMLHandle *v4; // rdi
cocos2d::CCAction *v5; // rbx
cocos2d::CCAction *v6; // rax
tinyxml2::XMLHandle *v7; // rax
char v8; // bp
int v9; // r14d
v2 = a2;
v4 = nullptr;
if ( !a2 || (v5 = *(cocos2d::CCAction **)a2) == nullptr )
{
v6 = (cocos2d::CCAction *)sub_1800E4AC0(0x70u);
v5 = v6;
if ( v6 )
{
*(_OWORD *)v6 = 0;
*((_OWORD *)v6 + 1) = 0;
*((_OWORD *)v6 + 2) = 0;
*((_OWORD *)v6 + 3) = 0;
*((_OWORD *)v6 + 4) = 0;
*((_OWORD *)v6 + 5) = 0;
*((_OWORD *)v6 + 6) = 0;
cocos2d::CCAction::CCAction(v6);
*((_DWORD *)v5 + 20) = 0;
*(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCAction *)((char *)v5 + 96));
*(_QWORD *)v5 = &cocos2d::CCShaky3D::`vftable';
}
else
{
v5 = nullptr;
}
v7 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);
if ( v7 )
v2 = tinyxml2::XMLHandle::XMLHandle(v7, v5);
else
v2 = nullptr;
v4 = v2;
}
cocos2d::CCGridAction::copyWithZone(this, v2);
v8 = *((_BYTE *)this + 108);
v9 = *((_DWORD *)this + 26);
if ( cocos2d::CCGridAction::initWithDuration(v5, *((float *)this + 20), (cocos2d::CCShaky3D *)((char *)this + 96)) )
{
*((_DWORD *)v5 + 26) = v9;
*((_BYTE *)v5 + 108) = v8;
}
if ( v4 )
j_j_free_0(v4);
return v5;
}