//
// cocos2d::CCRepeat::initWithAction from 0x180035780 to 0x180035816 (150 bytes)
//
// 4 xrefs:
// > cocos2d::CCRepeat::copyWithZone @ 0x180032e0d
// > cocos2d::CCRepeat::create @ 0x180034535
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba840
//
// 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 11:21:35 +0000
//
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 * *((float *)a2 + 20);
*((float *)this + 20) = v5;
if ( v5 == 0.0 )
*((_DWORD *)this + 20) = 872415232;
*((_BYTE *)this + 92) = 1;
*((_DWORD *)this + 22) = 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;
}