//
// GJActionManager::updateInternalActions from 0x565f28 to 0x565f9c (116 bytes)
//
// 2 xrefs:
// > PlayerObject::updateInternalActions @ 0x3478ac
// > GJActionManager::stopAllInternalActions @ 0x565fa0
//
// 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; // r9
cocos2d::CCArray *v6; // r0
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r4
cocos2d::CCObject **v9; // r5
int v10; // r3
int v11; // t1
intptr_t v12; // r10
cocos2d::CCObject *v13; // r6
int v14; // r0
cocos2d::CCObject_vtbl *v15; // r3
v5 = a3;
v6 = cocos2d::CCDictionary::allKeys(a1->m_internalActions);
if ( v6 )
{
data = v6->data;
if ( data->num )
{
arr = data->arr;
v9 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v9 )
{
v11 = (int)*arr++;
v10 = v11;
if ( !v11 )
break;
v12 = *(_DWORD *)(v10 + 52);
v13 = cocos2d::CCDictionary::objectForKey(a1->m_internalActions, v12);
v14 = ((int (__fastcall *)(cocos2d::CCObject *))v13->__vftable[1].copyWithZone)(v13);
v15 = v13->__vftable;
if ( v14 || v5 )
{
v15[1].~CCObject_0(v13);
cocos2d::CCDictionary::removeObjectForKey(a1->m_internalActions, v12);
}
else
{
v15[1].isEqual(v13, (const cocos2d::CCObject *)LODWORD(a2));
}
}
}
}
}