//
// GJActionManager::updateInternalActions from 0x100609860 to 0x10060996d (269 bytes)
//
// 1 xrefs:
// > PlayerObject::updateInternalActions @ 0x10041dbce
//
// 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)
{
cocos2d::CCArray *v3; // rax
cocos2d::ccArray *data; // rax
unsigned __int64 arr; // r12
unsigned __int64 v6; // r13
intptr_t v7; // r14
cocos2d::CCObject *v8; // r15
intptr_t v9; // r14
cocos2d::CCObject *v10; // r15
char v11; // al
cocos2d::CCObject_vtbl *v12; // rcx
v3 = cocos2d::CCDictionary::allKeys(a1->m_internalActions);
if ( v3 )
{
data = v3->data;
if ( data->num )
{
arr = (unsigned __int64)data->arr;
v6 = arr + 8LL * data->num - 8;
if ( a3 )
{
do
{
if ( !*(_QWORD *)arr )
break;
v7 = *(int *)(*(_QWORD *)arr + 56LL);
v8 = cocos2d::CCDictionary::objectForKey(a1->m_internalActions, v7);
((void (__fastcall *)(cocos2d::CCObject *))v8->__vftable[1].copyWithZone)(v8);
((void (__fastcall *)(cocos2d::CCObject *))v8->__vftable[1].~CCObject_0)(v8);
cocos2d::CCDictionary::removeObjectForKey(a1->m_internalActions, v7);
arr += 8LL;
}
while ( arr <= v6 );
}
else
{
while ( *(_QWORD *)arr )
{
v9 = *(int *)(*(_QWORD *)arr + 56LL);
v10 = cocos2d::CCDictionary::objectForKey(a1->m_internalActions, v9);
v11 = ((__int64 (__fastcall *)(cocos2d::CCObject *))v10->__vftable[1].copyWithZone)(v10);
v12 = v10->__vftable;
if ( v11 )
{
((void (__fastcall *)(cocos2d::CCObject *))v12[1].~CCObject_0)(v10);
cocos2d::CCDictionary::removeObjectForKey(a1->m_internalActions, v9);
arr += 8LL;
if ( arr > v6 )
return;
}
else
{
((void (__fastcall *)(cocos2d::CCObject *, float))v12[1].isEqual)(v10, a2);
arr += 8LL;
if ( arr > v6 )
return;
}
}
}
}
}
}