//
// cocos2d::CCSequence::update from 0x10018a7b4 to 0x10018a90c (344 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007a5400
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall cocos2d::CCSequence::update(cocos2d::CCSequence *a1, float a2)
{
int m_nTag; // s1
float v4; // s8
unsigned int m_uReference; // w8
cocos2d::CCSequence *v6; // x21
float v7; // s0
unsigned int v8; // w20
unsigned int v9; // w8
__int64 v10; // x0
__int64 v11; // x0
m_nTag = a1[1].cocos2d::CCActionInterval::cocos2d::CCFiniteTimeAction::cocos2d::CCAction::cocos2d::CCObject::m_nTag;
if ( *(float *)&m_nTag > a2 )
{
v7 = a2 / *(float *)&m_nTag;
if ( *(float *)&m_nTag == 0.0 )
v4 = 1.0;
else
v4 = v7;
if ( a1[1].m_uReference != 1 )
{
v8 = 0;
goto LABEL_17;
}
v8 = 0;
v6 = (cocos2d::CCSequence *)((char *)a1 + 104);
a2 = 0.0;
goto LABEL_15;
}
v4 = 1.0;
if ( *(float *)&m_nTag != 1.0 )
v4 = (float)(a2 - *(float *)&m_nTag) / (float)(1.0 - *(float *)&m_nTag);
m_uReference = a1[1].m_uReference;
if ( !m_uReference )
{
v6 = a1 + 1;
goto LABEL_14;
}
if ( m_uReference == -1 )
{
v6 = a1 + 1;
(*((void (__fastcall **)(cocos2d::CCSequence_vtbl *, cocos2d::CCNode *))a1[1].copyWithZone + 11))(
a1[1].__vftable,
a1->m_pTarget);
LABEL_14:
v8 = 1;
a2 = 1.0;
LABEL_15:
(*((void (__fastcall **)(cocos2d::CCSequence_vtbl *, __n128))v6->copyWithZone + 5))(v6->__vftable, *(__n128 *)&a2);
(*((void (__fastcall **)(cocos2d::CCSequence_vtbl *))v6->copyWithZone + 12))(v6->__vftable);
goto LABEL_17;
}
v8 = 1;
LABEL_17:
v9 = a1[1].m_uReference;
if ( v8 == v9 )
{
v10 = *((_QWORD *)&a1[1].__vftable + v8);
if ( ((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 80LL))(v10) & 1) != 0 )
return;
v9 = a1[1].m_uReference;
}
if ( v8 != v9 )
{
v11 = *((_QWORD *)&a1[1].__vftable + v8);
(*(void (__fastcall **)(__int64, cocos2d::CCNode *))(*(_QWORD *)v11 + 88LL))(v11, a1->m_pTarget);
}
(*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)&a1[1].__vftable + v8) + 40LL))(
*((_QWORD *)&a1[1].__vftable + v8),
v4);
a1[1].m_uReference = v8;
}