//
// cocos2d::CCShatteredTiles3D::copyWithZone from 0xac6a64 to 0xac6b74 (272 bytes)
//
// 2 xrefs:
// > ??> @ 0x3c048
// > ??> @ 0x11ff370
//
// 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::CCShatteredTiles3D::copyWithZone(cocos2d::CCShatteredTiles3D *a1, cocos2d::CCZone *a2)
{
cocos2d::CCObject *v3; // x19
__int64 v5; // x19
cocos2d::CCZone *v6; // x21
if ( a2 && (v3 = *(cocos2d::CCObject **)a2) != nullptr )
{
cocos2d::CCGridAction::copyWithZone(a1, a2);
((void (__fastcall *)(cocos2d::CCObject *, bool *, _QWORD, _QWORD, float))v3->__vftable[1].canEncode)(
v3,
&a1->m_bFirstTick + 4,
HIDWORD(a1[1].__vftable),
BYTE1(a1[1].m_uID),
a1->m_fDuration);
return v3;
}
else
{
v5 = operator new(0x70u);
*(_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;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);
*(_DWORD *)(v5 + 80) = 0;
*(_QWORD *)v5 = &off_11FC870;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 92));
*(_QWORD *)v5 = &off_11FF370;
v6 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v6, (cocos2d::CCObject *)v5);
cocos2d::CCGridAction::copyWithZone(a1, v6);
(*(void (__fastcall **)(__int64, bool *, _QWORD, _QWORD, float))(*(_QWORD *)v5 + 136LL))(
v5,
&a1->m_bFirstTick + 4,
HIDWORD(a1[1].__vftable),
BYTE1(a1[1].m_uID),
a1->m_fDuration);
operator delete(v6);
return (cocos2d::CCObject *)v5;
}
}