//
// cocos2d::CCRepeat::create from 0x10039f660 to 0x10039f740 (224 bytes)
//
// 1 xrefs:
// > cocos2d::CCRepeat::reverse @ 0x10039fbdf
//
// 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::create(float *lpsrc, int a2)
{
_OWORD *v2; // rbx
__m128 v3; // xmm0
__m128 v4; // xmm1
void *v5; // rax
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);
v3 = 0;
*(_QWORD *)v2 = off_100B320D0;
v3.f32[0] = (float)a2 * lpsrc[20];
v4 = _mm_cmpeq_ss((__m128)0LL, v3);
*((_QWORD *)v2 + 10) = v4.i32[0] & 0x34000000 | _mm_andnot_ps(v4, v3).u32[0];
*((_BYTE *)v2 + 88) = 1;
*((_DWORD *)v2 + 23) = a2;
*((_QWORD *)v2 + 14) = lpsrc;
cocos2d::CCObject::retain(lpsrc);
v5 = __dynamic_cast(
lpsrc,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCFiniteTimeAction,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCActionInstant,
0);
*((_BYTE *)v2 + 104) = v5 != nullptr;
if ( v5 )
--*((_DWORD *)v2 + 23);
*((_DWORD *)v2 + 24) = 0;
cocos2d::CCObject::autorelease(v2);
return v2;
}