//
// GJActionManager::updateInternalActions from 0x1002fe460 to 0x1002fe52c (204 bytes)
//
// 2 xrefs:
// > PlayerObject::updateInternalActions @ 0x10022eae8
// > GJActionManager::stopAllInternalActions @ 0x1002fe45c
//
// 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 GJActionManager::updateInternalActions(GJActionManager *a1, float a2, bool a3)
{
_BOOL4 v3; // w19
cocos2d::CCArray *v6; // x0
cocos2d::ccArray *data; // x9
__int64 num; // x8
unsigned __int64 arr; // x23
unsigned __int64 v10; // x24
intptr_t v11; // x21
cocos2d::CCObject *v12; // x22
char v13; // w0
cocos2d::CCObject_vtbl *v14; // x8
v3 = a3;
v6 = cocos2d::CCDictionary::allKeys(a1->m_internalActions);
if ( v6 )
{
data = v6->data;
num = data->num;
if ( (_DWORD)num )
{
arr = (unsigned __int64)data->arr;
v10 = arr + 8 * num - 8;
do
{
if ( !*(_QWORD *)arr )
break;
v11 = *(int *)(*(_QWORD *)arr + 56LL);
v12 = cocos2d::CCDictionary::objectForKey(a1->m_internalActions, v11);
v13 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v12->__vftable[1].copyWithZone)(v12);
v14 = v12->__vftable;
if ( (v13 & 1) != 0 || v3 )
{
((void (__fastcall *)(cocos2d::CCObject *))v14[1].~CCObject_0)(v12);
cocos2d::CCDictionary::removeObjectForKey(a1->m_internalActions, v11);
}
else
{
((void (__fastcall *)(cocos2d::CCObject *, float))v14[1].isEqual)(v12, a2);
}
arr += 8LL;
}
while ( arr <= v10 );
}
}
}