//
// cocos2d::CCAnimate::update from 0x7bd4ac to 0x7bd646 (410 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:17 +0000
//
unsigned int __fastcall cocos2d::CCAnimate::update(cocos2d::CCAnimate *this, float a2)
{
float v3; // s16
unsigned int v4; // r2
float v5; // s16
cocos2d::CCArray *v6; // r9
unsigned int result; // r0
unsigned int v8; // r5
int v9; // r7
int v10; // r0
int v11; // r0
const cocos2d::CCSize *v12; // r0
int v13; // r8
int (__fastcall *v14)(int, _BYTE *); // r4
cocos2d::CCArray *v15; // r8
unsigned int v16; // r4
const cocos2d::CCSize *v17; // r0
int v18; // r0
unsigned int v19; // [sp+0h] [bp-24h]
float v20; // [sp+Ch] [bp-18h] BYREF
float v21; // [sp+10h] [bp-14h]
_BYTE v22[8]; // [sp+14h] [bp-10h] BYREF
v3 = a2;
if ( a2 < 1.0 )
{
v4 = *((_DWORD *)this + 24);
v5 = a2 * (float)*(unsigned int *)(*((_DWORD *)this + 20) + 72);
if ( (unsigned int)v5 > v4 )
{
*((_DWORD *)this + 24) = v4 + 1;
*((_DWORD *)this + 22) = 0;
}
v3 = fmodf(v5, 1.0);
}
v6 = *(cocos2d::CCArray **)(*((_DWORD *)this + 20) + 64);
result = cocos2d::CCArray::count(v6);
v8 = *((_DWORD *)this + 22);
v9 = 4 * v8;
v19 = result;
while ( v8 < v19 && *(float *)(**((_DWORD **)this + 21) + v9) <= v3 )
{
v10 = cocos2d::CCArray::objectAtIndex(v6, v8);
result = (*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 14) + 580))(
*((_DWORD *)this + 14),
*(_DWORD *)(v10 + 52));
if ( *((_BYTE *)this + 100) )
{
result = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 14) + 256))(*((_DWORD *)this + 14));
if ( result )
{
v11 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 14) + 256))(*((_DWORD *)this + 14));
v12 = (const cocos2d::CCSize *)(*(int (__fastcall **)(int))(*(_DWORD *)v11 + 164))(v11);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v20, v12);
v13 = *((_DWORD *)this + 14);
v14 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, v20 * 0.5, v21 * 0.5);
result = v14(v13, v22);
}
}
if ( *((_BYTE *)this + 101) )
{
result = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 14) + 244))(*((_DWORD *)this + 14));
v15 = (cocos2d::CCArray *)result;
if ( result )
{
v16 = 0;
v17 = (const cocos2d::CCSize *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 14) + 164))(*((_DWORD *)this + 14));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v20, v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, v20 * 0.5, v21 * 0.5);
while ( 1 )
{
result = cocos2d::CCArray::count(v15);
if ( v16 >= result )
break;
v18 = cocos2d::CCArray::objectAtIndex(v15, v16++);
(*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v18 + 92))(v18, v22);
}
}
}
++v8;
v9 += 4;
*((_DWORD *)this + 22) = v8;
}
return result;
}