//
// cocos2d::CCLens3D::copyWithZone from 0x18002bdd0 to 0x18002bee0 (272 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e8a08
// > ??> @ 0x1801438a8
// > ??> @ 0x1801afc88
//
// 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
//
// Hidden C++ exception states: #wind=4
struct cocos2d::CCObject *__fastcall cocos2d::CCLens3D::copyWithZone(
cocos2d::CCLens3D *this,
struct cocos2d::CCZone *a2)
{
tinyxml2::XMLHandle *v2; // rax
tinyxml2::XMLHandle *v4; // rdi
_OWORD *v5; // rbx
_OWORD *v6; // rax
tinyxml2::XMLHandle *v7; // rax
v2 = a2;
v4 = nullptr;
if ( !a2 || (v5 = *(_OWORD **)a2) == nullptr )
{
v6 = operator new(0x80u);
v5 = v6;
if ( v6 )
{
*v6 = 0;
v6[1] = 0;
v6[2] = 0;
v6[3] = 0;
v6[4] = 0;
v6[5] = 0;
v6[6] = 0;
v6[7] = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v6);
*((_DWORD *)v5 + 20) = 0;
*(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 12);
*(_QWORD *)v5 = &cocos2d::CCLens3D::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v5 + 13);
}
else
{
v5 = nullptr;
}
v7 = (tinyxml2::XMLHandle *)operator new(8u);
if ( v7 )
v2 = tinyxml2::XMLHandle::XMLHandle(v7, (struct tinyxml2::XMLNode *)v5);
else
v2 = nullptr;
v4 = v2;
}
cocos2d::CCGridAction::copyWithZone(this, (void **)v2);
cocos2d::CCLens3D::initWithDuration(
(cocos2d::CCLens3D *)v5,
this->m_fDuration,
(const struct cocos2d::CCSize *)this + 12,
(const struct cocos2d::CCPoint *)this + 13,
*((float *)this + 28));
if ( v4 )
j_j_free_0(v4);
return (struct cocos2d::CCObject *)v5;
}