//
// cocos2d::CCRepeat::initWithAction from 0x180035180 to 0x180035216 (150 bytes)
//
// 4 xrefs:
// > cocos2d::CCRepeat::copyWithZone @ 0x180032796
// > cocos2d::CCRepeat::create @ 0x180033eb5
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b072c
//
// 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
//
bool __fastcall cocos2d::CCRepeat::initWithAction(
cocos2d::CCRepeat *this,
struct cocos2d::CCFiniteTimeAction *a2,
int a3)
{
float v5; // xmm1_4
__int64 v6; // rax
bool v7; // zf
bool result; // al
v5 = (float)a3 * a2->m_fDuration;
this->m_fDuration = v5;
if ( v5 == 0.0 )
this->m_fDuration = 0.00000011920929;
this->m_bFirstTick = 1;
this->m_elapsed = 0.0;
*((_DWORD *)this + 24) = a3;
*((_QWORD *)this + 14) = a2;
cocos2d::CCObject::retain(a2);
v6 = _RTDynamicCast(
a2,
0,
&cocos2d::CCFiniteTimeAction `RTTI Type Descriptor',
&cocos2d::CCActionInstant `RTTI Type Descriptor',
0);
*((_DWORD *)this + 25) = 0;
v7 = v6 == 0;
*((_BYTE *)this + 108) = v6 != 0;
result = 1;
if ( !v7 )
--*((_DWORD *)this + 24);
return result;
}