//
// cocos2d::CCRepeat::initWithAction from 0xd336cc to 0xd3377c (176 bytes)
//
// 4 xrefs:
// > cocos2d::CCRepeat::create @ 0xd337e8
// > cocos2d::CCRepeat::copyWithZone @ 0xd33874
// > cocos2d::CCRepeat::copyWithZone @ 0xd3390c
// > ??> @ 0xc1a50
//
// This function is hookable on this platform (idp: arm, 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 13:07:21 +0000
//
__int64 __fastcall cocos2d::CCRepeat::initWithAction(
cocos2d::CCRepeat *this,
cocos2d::CCFiniteTimeAction *a2,
unsigned int a3)
{
unsigned __int8 v5; // w21
unsigned int v6; // w22
v5 = cocos2d::CCActionInterval::initWithDuration(this, (float)a3 * *((float *)a2 + 20));
v6 = v5;
if ( !v5 )
return v5;
*((_DWORD *)this + 23) = a3;
*((_QWORD *)this + 14) = a2;
cocos2d::CCObject::retain(a2);
if ( _dynamic_cast(
a2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCFiniteTimeAction,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCActionInstant,
0) )
{
--*((_DWORD *)this + 23);
}
else
{
v5 = 0;
}
*((_BYTE *)this + 104) = v5;
*((_DWORD *)this + 24) = 0;
return v6;
}