//
// cocos2d::CCAnimationFrame::copyWithZone from 0x1001a407c to 0x1001a415c (224 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007ad588
//
// 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 *__fastcall cocos2d::CCAnimationFrame::copyWithZone(
cocos2d::CCAnimationFrame *a1,
cocos2d::CCZone *a2)
{
cocos2d::CCObject *v3; // x19
void *v4; // x21
cocos2d::CCObject *v5; // x0
cocos2d::CCObject *v6; // x22
unsigned int m_uID; // s8
__int64 (__fastcall ***v8)(_QWORD, _QWORD); // x0
cocos2d::CCObject *v9; // x0
cocos2d::CCObject *v10; // x20
if ( a2 && (v3 = *(cocos2d::CCObject **)a2) != nullptr )
{
v4 = nullptr;
}
else
{
v3 = (cocos2d::CCObject *)operator new(0x50u);
cocos2d::CCObject::CCObject((__int64)v3);
v3->__vftable = (cocos2d::CCObject_vtbl *)off_1007AD588;
v3[1].__vftable = nullptr;
v3[1].m_uID = 0;
*(_QWORD *)&v3[1].m_nTag = 0;
v3->m_eObjType = LevelEditorLayerObjectType|0x8;
v4 = operator new(8u);
cocos2d::CCZone::CCZone(v4, v3);
}
v5 = (cocos2d::CCObject *)sub_10008496C(a1[1].__vftable);
v6 = cocos2d::CCObject::autorelease(v5);
m_uID = a1[1].m_uID;
v8 = *(__int64 (__fastcall ****)(_QWORD, _QWORD))&a1[1].m_nTag;
if ( v8 )
{
v9 = (cocos2d::CCObject *)sub_10008496C(v8);
v10 = cocos2d::CCObject::autorelease(v9);
}
else
{
v10 = nullptr;
}
sub_100004430((__int64)v3, v6);
v3[1].m_uID = m_uID;
sub_10015C71C((__int64)v3, v10);
if ( v4 )
operator delete(v4);
return v3;
}