//
// cocos2d::CCOrbitCamera::copyWithZone from 0x1800249e0 to 0x180024ad4 (244 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e7600
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af214
//
// 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=2
cocos2d::CCOrbitCamera *__fastcall cocos2d::CCOrbitCamera::copyWithZone(
cocos2d::CCOrbitCamera *this,
cocos2d::CCOrbitCamera **a2)
{
tinyxml2::XMLHandle *v2; // rax
tinyxml2::XMLHandle *v4; // rdi
cocos2d::CCOrbitCamera *v5; // rbx
cocos2d::CCOrbitCamera *v6; // rax
tinyxml2::XMLHandle *v7; // rax
v2 = (tinyxml2::XMLHandle *)a2;
v4 = nullptr;
if ( !a2 || (v5 = *a2) == nullptr )
{
v6 = (cocos2d::CCOrbitCamera *)operator new(0xB0u);
if ( v6 )
v5 = cocos2d::CCOrbitCamera::CCOrbitCamera(v6);
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::CCActionInterval::copyWithZone(this, v2);
cocos2d::CCOrbitCamera::initWithDuration(
v5,
this->m_fDuration,
*((float *)this + 34),
*((float *)this + 35),
*((float *)this + 36),
*((float *)this + 37),
*((float *)this + 38),
*((float *)this + 39));
if ( v4 )
j_j_free_0(v4);
return v5;
}