//
// cocos2d::CCRepeat::copyWithZone from 0x10039f7f0 to 0x10039f923 (307 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b320d0
//
// 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::CCRepeat::copyWithZone(__int64 a1, void **a2)
{
_OWORD *v2; // rbx
void **v3; // r14
void **v4; // r12
__int64 v5; // rax
__int64 v6; // rax
int v7; // ecx
__m128 v8; // xmm0
const void *v9; // r15
__m128 v10; // xmm1
void *v11; // rax
if ( a2 && (v2 = *a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = operator new(0x78u);
*v2 = 0;
v2[1] = 0;
v2[2] = 0;
v2[3] = 0;
v2[4] = 0;
v2[5] = 0;
v2[6] = 0;
*((_QWORD *)v2 + 14) = 0;
cocos2d::CCAction::CCAction(v2);
*((_DWORD *)v2 + 20) = 0;
*(_QWORD *)v2 = off_100B320D0;
v4 = (void **)operator new(8u);
cocos2d::CCZone::CCZone(v4, (__int64)v2);
a2 = v4;
v3 = v4;
}
cocos2d::CCActionInterval::copyWithZone(a1, a2);
v5 = sub_1004800C0(*(_QWORD *)(a1 + 112));
v6 = cocos2d::CCObject::autorelease(v5);
v7 = *(_DWORD *)(a1 + 92);
v8 = 0;
v9 = (const void *)v6;
v8.f32[0] = (float)v7 * *(float *)(v6 + 80);
v10 = _mm_cmpeq_ss((__m128)0LL, v8);
*((_QWORD *)v2 + 10) = v10.i32[0] & 0x34000000 | _mm_andnot_ps(v10, v8).u32[0];
*((_BYTE *)v2 + 88) = 1;
*((_DWORD *)v2 + 23) = v7;
*((_QWORD *)v2 + 14) = v6;
cocos2d::CCObject::retain(v6);
v11 = __dynamic_cast(
v9,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCFiniteTimeAction,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCActionInstant,
0);
*((_BYTE *)v2 + 104) = v11 != nullptr;
if ( v11 )
--*((_DWORD *)v2 + 23);
*((_DWORD *)v2 + 24) = 0;
if ( v3 )
operator delete(v3);
return v2;
}