//
// cocos2d::CCOrbitCamera::copyWithZone from 0xab47d4 to 0xab4904 (304 bytes)
//
// 2 xrefs:
// > ??> @ 0x630a8
// > ??> @ 0x11fb590
//
// 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::CCOrbitCamera::copyWithZone(cocos2d::CCOrbitCamera *a1, cocos2d::CCZone *a2)
{
cocos2d::CCOrbitCamera *v3; // x19
__int64 v5; // x19
cocos2d::CCZone *v6; // x21
if ( a2 && (v3 = *(cocos2d::CCOrbitCamera **)a2) != nullptr )
{
cocos2d::CCActionInterval::copyWithZone(a1, a2);
cocos2d::CCOrbitCamera::initWithDuration(
v3,
a1->m_fDuration,
*(float *)&a1[1].m_uIndexInArray,
*(float *)&a1[1].m_uUnknown,
*(float *)&a1[1].m_unknown2,
*(float *)&a1[1].m_nZOrder,
*(float *)&a1[1].m_uOrderOfArrival,
*(float *)&a1[1].m_unknown5);
return v3;
}
else
{
v5 = operator new(0xA8u);
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);
*(_DWORD *)(v5 + 80) = 0;
*(_DWORD *)(v5 + 92) = 0;
*(_DWORD *)(v5 + 96) = 0;
*(_DWORD *)(v5 + 100) = 0;
*(_DWORD *)(v5 + 104) = 0;
*(_DWORD *)(v5 + 108) = 0;
*(_DWORD *)(v5 + 112) = 0;
*(_DWORD *)(v5 + 116) = 0;
*(_DWORD *)(v5 + 120) = 0;
*(_DWORD *)(v5 + 124) = 0;
*(_DWORD *)(v5 + 128) = 0;
*(_QWORD *)v5 = &off_11FB590;
*(_DWORD *)(v5 + 132) = 0;
*(_DWORD *)(v5 + 136) = 0;
*(_DWORD *)(v5 + 140) = 0;
*(_DWORD *)(v5 + 144) = 0;
*(_DWORD *)(v5 + 148) = 0;
*(_DWORD *)(v5 + 152) = 0;
*(_DWORD *)(v5 + 156) = 0;
*(_DWORD *)(v5 + 160) = 0;
*(_DWORD *)(v5 + 164) = 0;
v6 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v6, (cocos2d::CCObject *)v5);
cocos2d::CCActionInterval::copyWithZone(a1, v6);
cocos2d::CCOrbitCamera::initWithDuration(
(cocos2d::CCOrbitCamera *)v5,
a1->m_fDuration,
*(float *)&a1[1].m_uIndexInArray,
*(float *)&a1[1].m_uUnknown,
*(float *)&a1[1].m_unknown2,
*(float *)&a1[1].m_nZOrder,
*(float *)&a1[1].m_uOrderOfArrival,
*(float *)&a1[1].m_unknown5);
operator delete(v6);
return (cocos2d::CCObject *)v5;
}
}