//
// cocos2d::CCOrbitCamera::copyWithZone from 0x100350e90 to 0x100350faa (282 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b23078
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:28:49 +0000
//
char *__fastcall cocos2d::CCOrbitCamera::copyWithZone(__m128 *a1, void **a2)
{
char *v2; // rbx
void **v3; // r15
__m128 v5; // [rsp+0h] [rbp-40h]
__m128 v6; // [rsp+10h] [rbp-30h]
if ( a2 && (v2 = (char *)*a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = (char *)operator new(0xA8u);
cocos2d::CCAction::CCAction(v2);
*((_DWORD *)v2 + 20) = 0;
*(_OWORD *)(v2 + 92) = 0;
*(_OWORD *)(v2 + 108) = 0;
*((_DWORD *)v2 + 31) = 0;
*(_QWORD *)v2 = off_100B23078;
*((_OWORD *)v2 + 8) = 0;
*((_OWORD *)v2 + 9) = 0;
*((_QWORD *)v2 + 20) = 0;
v3 = (void **)operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
a2 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, a2);
v6 = a1[8];
v5 = (__m128)a1[9].u64[0];
if ( (unsigned __int8)cocos2d::CCActionInterval::initWithDuration(v2, a1[5].f32[0]) )
{
*((__m128 *)v2 + 8) = v6;
_mm_storel_ps((double *)v2 + 18, v5);
*((float *)v2 + 39) = _mm_shuffle_ps(v6, v6, 255).f32[0] * 0.017453292;
*((float *)v2 + 41) = _mm_movehdup_ps(v5).f32[0] * 0.017453292;
}
if ( v3 )
operator delete(v3);
return v2;
}