//
// cocos2d::CCSequence::update from 0x7bc6d8 to 0x7bc7a4 (204 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:16 +0000
//
int __fastcall cocos2d::CCSequence::update(cocos2d::CCSequence *this, float a2)
{
float v3; // s15
int v4; // r3
float v5; // s16
int v6; // r5
int v7; // r6
int result; // r0
v3 = *((float *)this + 22);
v4 = *((_DWORD *)this + 23);
if ( a2 >= v3 )
{
v5 = 1.0;
if ( v3 != 1.0 )
v5 = (float)(a2 - v3) / (float)(1.0 - v3);
if ( v4 == -1 )
{
(*(void (__fastcall **)(_DWORD, _DWORD, _DWORD))(**((_DWORD **)this + 20) + 44))(
*((_DWORD *)this + 20),
*((_DWORD *)this + 14),
0);
}
else if ( v4 )
{
LABEL_10:
v6 = 1;
goto LABEL_11;
}
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 20) + 20))(*((_DWORD *)this + 20), 1065353216);
(*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 20) + 48))(*((_DWORD *)this + 20));
goto LABEL_10;
}
if ( v3 == 0.0 )
v5 = 1.0;
else
v5 = a2 / v3;
if ( v4 == 1 )
{
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 21) + 20))(*((_DWORD *)this + 21), 0);
(*(void (__fastcall **)(_DWORD))(**((_DWORD **)this + 21) + 48))(*((_DWORD *)this + 21));
}
v6 = 0;
LABEL_11:
v7 = v6 + 20;
if ( v6 != *((_DWORD *)this + 23)
|| (result = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + v7) + 40))(*((_DWORD *)this + v7))) == 0 )
{
if ( v6 != *((_DWORD *)this + 23) )
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + v7) + 44))(
*((_DWORD *)this + v7),
*((_DWORD *)this + 14));
result = (*(int (__fastcall **)(_DWORD, float))(**((_DWORD **)this + v7) + 20))(
*((_DWORD *)this + v7),
COERCE_FLOAT(LODWORD(v5)));
*((_DWORD *)this + 23) = v6;
}
return result;
}