//
// cocos2d::CCActionManager::update from 0xd37990 to 0xd37ae8 (344 bytes)
//
// 2 xrefs:
// > ??> @ 0x682c0
// > ??> @ 0x1514878
//
// This function is hookable on this platform (idp: arm, 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 13:07:24 +0000
//
void __fastcall cocos2d::CCActionManager::update(cocos2d::CCActionManager *this, float a2)
{
__int64 v4; // x20
__int64 v5; // x1
_DWORD *v6; // x2
unsigned int i; // w0
__int64 v8; // x0
__int64 v9; // x0
__int64 v10; // x2
cocos2d::CCAction *v11; // x1
v4 = *((_QWORD *)this + 7);
LABEL_2:
while ( v4 )
{
while ( 1 )
{
*((_QWORD *)this + 8) = v4;
*((_BYTE *)this + 72) = 0;
if ( *(_BYTE *)(v4 + 33) )
break;
*(_DWORD *)(v4 + 16) = 0;
v5 = *((_QWORD *)this + 8);
v6 = *(_DWORD **)v5;
for ( i = *(_DWORD *)(v5 + 16); i < **(_DWORD **)v5; i = *(_DWORD *)(v5 + 16) )
{
*(_QWORD *)(v5 + 24) = *(_QWORD *)(*((_QWORD *)v6 + 2) + 8LL * i);
v8 = *((_QWORD *)this + 8);
if ( *(_QWORD *)(v8 + 24) )
{
*(_BYTE *)(v8 + 32) = 0;
(*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(*((_QWORD *)this + 8) + 24LL) + 104LL))(
*(_QWORD *)(*((_QWORD *)this + 8) + 24LL),
a2);
v9 = *((_QWORD *)this + 8);
if ( *(_BYTE *)(v9 + 32) )
{
cocos2d::CCObject::release(*(cocos2d::CCObject **)(v9 + 24));
}
else if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(v9 + 24) + 80LL))(*(_QWORD *)(v9 + 24)) )
{
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(*((_QWORD *)this + 8) + 24LL) + 96LL))(*(_QWORD *)(*((_QWORD *)this + 8) + 24LL));
v10 = *((_QWORD *)this + 8);
v11 = *(cocos2d::CCAction **)(v10 + 24);
*(_QWORD *)(v10 + 24) = 0;
cocos2d::CCActionManager::removeAction(this, v11);
}
*(_QWORD *)(*((_QWORD *)this + 8) + 24LL) = 0;
v8 = *((_QWORD *)this + 8);
}
++*(_DWORD *)(v8 + 16);
v5 = *((_QWORD *)this + 8);
v6 = *(_DWORD **)v5;
}
v4 = *(_QWORD *)(v4 + 56);
if ( !*((_BYTE *)this + 72) || **(_DWORD **)v5 )
goto LABEL_2;
cocos2d::CCActionManager::deleteHashElement((__int64)this, v5);
if ( !v4 )
goto LABEL_16;
}
v4 = *(_QWORD *)(v4 + 56);
}
LABEL_16:
*((_QWORD *)this + 8) = 0;
}