//
// cocos2d::CCRepeat::copyWithZone from 0x1003b63f0 to 0x1003b6523 (307 bytes)
//
// 1 xrefs:
// > ??> @ 0x100929918
//
// 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 *__fastcall cocos2d::CCRepeat::copyWithZone(cocos2d::CCRepeat *a1, cocos2d::CCZone *a2)
{
cocos2d::CCObject *v2; // rbx
cocos2d::CCZone *v3; // r14
cocos2d::CCZone *v4; // r12
cocos2d::CCObject *v5; // rax
cocos2d::CCObject *v6; // rax
int v7; // ecx
__m128 v8; // xmm0
cocos2d::CCObject *v9; // r15
__m128 v10; // xmm1
void *v11; // rax
if ( a2 && (v2 = *(cocos2d::CCObject **)a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = (cocos2d::CCObject *)operator new(0x78u);
*(_OWORD *)&v2->__vftable = 0;
*(_OWORD *)&v2->m_nTag = 0;
*(_OWORD *)&v2->m_uIndexInArray = 0;
*(_OWORD *)&v2->m_uOrderOfArrival = 0;
*(_OWORD *)&v2[1].m_uID = 0;
*(_OWORD *)&v2[1].m_uAutoReleaseCount = 0;
*(_OWORD *)&v2[1].m_unknown2 = 0;
v2[2].__vftable = nullptr;
cocos2d::CCAction::CCAction(v2);
v2[1].m_uAutoReleaseCount = 0;
v2->__vftable = (cocos2d::CCObject_vtbl *)off_100929918;
v4 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v4, (__int64)v2);
a2 = v4;
v3 = v4;
}
cocos2d::CCActionInterval::copyWithZone(a1, a2);
v5 = (cocos2d::CCObject *)sub_10048AAA0();
v6 = cocos2d::CCObject::autorelease(v5);
v7 = *((_DWORD *)&a1->m_bFirstTick + 1);
v8 = 0;
v9 = v6;
v8.f32[0] = (float)v7 * *(float *)&v6[1].m_uAutoReleaseCount;
v10 = _mm_cmpeq_ss((__m128)0LL, v8);
*(_QWORD *)&v2[1].m_uAutoReleaseCount = v10.i32[0] & 0x34000000 | _mm_andnot_ps(v10, v8).u32[0];
LOBYTE(v2[1].m_uIndexInArray) = 1;
v2[1].m_uUnknown = v7;
v2[2].__vftable = (cocos2d::CCObject_vtbl *)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);
LOBYTE(v2[1].m_uOrderOfArrival) = v11 != nullptr;
if ( v11 )
--v2[1].m_uUnknown;
v2[1].m_unknown2 = 0;
if ( v3 )
operator delete(v3);
return v2;
}