//
// cocos2d::CCActionManager::update from 0x1002f4f1c to 0x1002f5044 (296 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007e8bf0
//
// 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
//
void __fastcall cocos2d::CCActionManager::update(cocos2d::CCActionManager *a1, float a2)
{
cocos2d::_hashElement *m_pTargets; // x20
unsigned int *v5; // x8
unsigned int v6; // w9
unsigned int v7; // w10
cocos2d::_hashElement *v8; // x1
__int64 v9; // x0
cocos2d::_hashElement *m_pCurrentTarget; // x8
cocos2d::CCObject *v11; // x0
cocos2d::_hashElement *v12; // x8
cocos2d::CCAction *v13; // x1
m_pTargets = a1->m_pTargets;
while ( m_pTargets )
{
while ( 1 )
{
a1->m_pCurrentTarget = m_pTargets;
a1->m_bCurrentTargetSalvaged = 0;
if ( (*((_BYTE *)m_pTargets + 33) & 1) == 0 )
{
*((_DWORD *)m_pTargets + 4) = 0;
v5 = *(unsigned int **)m_pTargets;
v6 = **(_DWORD **)m_pTargets;
if ( v6 )
break;
}
m_pTargets = *((cocos2d::_hashElement **)m_pTargets + 7);
if ( !m_pTargets )
goto LABEL_18;
}
v7 = 0;
v8 = m_pTargets;
do
{
v9 = *(_QWORD *)(*((_QWORD *)v5 + 2) + 8LL * v7);
*((_QWORD *)v8 + 3) = v9;
if ( v9 )
{
*((_BYTE *)v8 + 32) = 0;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 104LL))(v9, a2);
m_pCurrentTarget = a1->m_pCurrentTarget;
v11 = *((cocos2d::CCObject **)m_pCurrentTarget + 3);
if ( *((_BYTE *)m_pCurrentTarget + 32) == 1 )
{
cocos2d::CCObject::release(v11);
}
else if ( ((unsigned int (__fastcall *)(cocos2d::CCObject *))v11->__vftable[1].copyWithZone)(v11) )
{
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)a1->m_pCurrentTarget + 3) + 96LL))(*((_QWORD *)a1->m_pCurrentTarget
+ 3));
v12 = a1->m_pCurrentTarget;
v13 = *((cocos2d::CCAction **)v12 + 3);
*((_QWORD *)v12 + 3) = 0;
cocos2d::CCActionManager::removeAction(a1, v13);
}
v8 = a1->m_pCurrentTarget;
*((_QWORD *)v8 + 3) = 0;
v5 = *(unsigned int **)v8;
v6 = **(_DWORD **)v8;
}
v7 = *((_DWORD *)v8 + 4) + 1;
*((_DWORD *)v8 + 4) = v7;
}
while ( v7 < v6 );
m_pTargets = *((cocos2d::_hashElement **)m_pTargets + 7);
if ( a1->m_bCurrentTargetSalvaged && !**(_DWORD **)v8 )
cocos2d::CCActionManager::deleteHashElement(a1, v8);
}
LABEL_18:
a1->m_pCurrentTarget = nullptr;
}