//
// GJActionManager::updateInternalActions from 0xa264a4 to 0xa26584 (224 bytes)
//
// 3 xrefs:
// > PlayerObject::updateInternalActions @ 0x631f54
// > GJActionManager::stopAllInternalActions @ 0xa2658c
// > ??> @ 0x9d278
//
// 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 GJActionManager::updateInternalActions(GJActionManager *a1, float a2, bool a3)
{
_BOOL4 v5; // w24
cocos2d::CCArray *v6; // x0
cocos2d::ccArray *data; // x1
cocos2d::CCObject **arr; // x20
cocos2d::CCObject **i; // x23
intptr_t v10; // x21
cocos2d::CCObject *v11; // x19
int v12; // w1
long double v13; // q0
v5 = a3;
v6 = cocos2d::CCDictionary::allKeys(a1->m_internalActions);
if ( v6 )
{
data = v6->data;
if ( data->num )
{
arr = data->arr;
for ( i = &arr[data->num - 1]; i >= arr; ++arr )
{
if ( !*arr )
break;
v10 = SLODWORD((*arr)[1].__vftable);
v11 = cocos2d::CCDictionary::objectForKey(a1->m_internalActions, v10);
v12 = ((unsigned __int8 (__fastcall *)(cocos2d::CCObject *))v11->__vftable[1].copyWithZone)(v11);
*(float *)&v13 = a2;
if ( v12 || v5 )
{
((void (__fastcall *)(cocos2d::CCObject *, long double))v11->__vftable[1].~CCObject_0)(v11, v13);
cocos2d::CCDictionary::removeObjectForKey(a1->m_internalActions, v10);
}
else
{
((void (__fastcall *)(cocos2d::CCObject *, float))v11->__vftable[1].isEqual)(v11, a2);
}
}
}
}
}