//
// cocos2d::CCLens3D::copyWithZone from 0xabc148 to 0xabc254 (268 bytes)
//
// 2 xrefs:
// > ??> @ 0x47c40
// > ??> @ 0x11fd000
//
// 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 *cocos2d::CCLens3D::copyWithZone(cocos2d::CCLens3D *a1, cocos2d::CCZone *a2)
{
cocos2d::CCLens3D *v3; // x19
__int64 v5; // x0
__int64 v6; // x19
cocos2d::CCZone *v7; // x21
if ( a2 && (v3 = *(cocos2d::CCLens3D **)a2) != nullptr )
{
cocos2d::CCGridAction::copyWithZone(a1, a2);
cocos2d::CCLens3D::initWithDuration(
v3,
a1->m_fDuration,
(const cocos2d::CCSize *)(&a1->m_bFirstTick + 4),
(const cocos2d::CCPoint *)((char *)&a1[1].__vftable + 4),
*(float *)&a1[1].m_nLuaID);
return v3;
}
else
{
v5 = operator new(0x78u);
*(_QWORD *)(v5 + 112) = 0;
*(_QWORD *)v5 = 0;
*(_QWORD *)(v5 + 8) = 0;
*(_QWORD *)(v5 + 16) = 0;
*(_QWORD *)(v5 + 24) = 0;
*(_QWORD *)(v5 + 32) = 0;
*(_QWORD *)(v5 + 40) = 0;
*(_QWORD *)(v5 + 48) = 0;
*(_QWORD *)(v5 + 56) = 0;
*(_QWORD *)(v5 + 64) = 0;
*(_QWORD *)(v5 + 72) = 0;
*(_QWORD *)(v5 + 80) = 0;
*(_QWORD *)(v5 + 88) = 0;
*(_QWORD *)(v5 + 96) = 0;
*(_QWORD *)(v5 + 104) = 0;
v6 = v5;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);
*(_DWORD *)(v6 + 80) = 0;
*(_QWORD *)v6 = &off_11FC870;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v6 + 92));
*(_QWORD *)v6 = &off_11FD000;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v6 + 100));
v7 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v7, (cocos2d::CCObject *)v6);
cocos2d::CCGridAction::copyWithZone(a1, v7);
cocos2d::CCLens3D::initWithDuration(
(cocos2d::CCLens3D *)v6,
a1->m_fDuration,
(const cocos2d::CCSize *)(&a1->m_bFirstTick + 4),
(const cocos2d::CCPoint *)((char *)&a1[1].__vftable + 4),
*(float *)&a1[1].m_nLuaID);
operator delete(v7);
return (cocos2d::CCObject *)v6;
}
}