//
// cocos2d::CCActionInterval::copyWithZone from 0x10039e840 to 0x10039e90c (204 bytes)
//
// 36 xrefs:
// > cocos2d::CCGridAction::copyWithZone @ 0x1001ed641
// > cocos2d::CCCardinalSplineTo::copyWithZone @ 0x1002be8f4
// > cocos2d::CCOrbitCamera::copyWithZone @ 0x100350f21
// > cocos2d::CCSequence::copyWithZone @ 0x10039f1ba
// > cocos2d::CCRepeat::copyWithZone @ 0x10039f87d
// > cocos2d::CCRepeatForever::copyWithZone @ 0x10039fdab
// > cocos2d::CCSpawn::copyWithZone @ 0x1003a0922
// > cocos2d::CCRotateTo::copyWithZone @ 0x1003a0e99
// > cocos2d::CCRotateBy::copyWithZone @ 0x1003a1341
// > cocos2d::CCMoveBy::copyWithZone @ 0x1003a175a
// > cocos2d::CCSkewTo::copyWithZone @ 0x1003a1e3e
// > cocos2d::CCJumpBy::copyWithZone @ 0x1003a25f6
// > cocos2d::CCBezierBy::copyWithZone @ 0x1003a2e73
// > cocos2d::CCScaleTo::copyWithZone @ 0x1003a3785
// > cocos2d::CCBlink::copyWithZone @ 0x1003a3e95
// > cocos2d::CCFadeIn::copyWithZone @ 0x1003a4117
// > cocos2d::CCFadeIn::copyWithZone @ 0x1003a417f
// > cocos2d::CCFadeOut::copyWithZone @ 0x1003a4397
// > cocos2d::CCFadeOut::copyWithZone @ 0x1003a43ff
// > cocos2d::CCFadeTo::copyWithZone @ 0x1003a46dd
// > cocos2d::CCTintTo::copyWithZone @ 0x1003a49dd
// > cocos2d::CCTintBy::copyWithZone @ 0x1003a4d45
// > cocos2d::CCDelayTime::copyWithZone @ 0x1003a5007
// > cocos2d::CCDelayTime::copyWithZone @ 0x1003a506f
// > cocos2d::CCReverseTime::copyWithZone @ 0x1003a530f
// > cocos2d::CCAnimate::copyWithZone @ 0x1003a5a1e
// > cocos2d::CCTargetedAction::copyWithZone @ 0x1003a625e
// > cocos2d::CCProgressTo::copyWithZone @ 0x100425595
// > cocos2d::CCProgressFromTo::copyWithZone @ 0x1004257f8
// > cocos2d::CCActionEase::copyWithZone @ 0x100515505
// > ??> @ 0x100ae0418
// > ??> @ 0x100ae04a0
// > ??> @ 0x100ae0528
// > ??> @ 0x100b22fd8
// > ??> @ 0x100b32490
// > ??> @ 0x100ba6710
//
// 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:29:19 +0000
//
_OWORD *__fastcall cocos2d::CCActionInterval::copyWithZone(__int64 a1, void **a2)
{
_OWORD *v2; // rbx
_QWORD *v3; // r15
__m128 v4; // xmm0
__m128 v5; // xmm1
if ( a2 && (v2 = *a2) != nullptr )
{
cocos2d::CCAction::copyWithZone(a1, a2);
}
else
{
v2 = operator new(0x60u);
*v2 = 0;
v2[1] = 0;
v2[2] = 0;
v2[3] = 0;
v2[4] = 0;
v2[5] = 0;
cocos2d::CCAction::CCAction(v2);
*((_DWORD *)v2 + 20) = 0;
*(_QWORD *)v2 = off_100B32490;
v3 = operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
cocos2d::CCAction::copyWithZone(a1, v3);
operator delete(v3);
}
v4 = (__m128)*(unsigned int *)(a1 + 80);
v5 = _mm_cmpeq_ss((__m128)0LL, v4);
*((_QWORD *)v2 + 10) = _mm_andnot_ps(v5, v4).u32[0] | v5.i32[0] & 0x34000000;
*((_BYTE *)v2 + 88) = 1;
return v2;
}