//
// PlayerObject::updateInternalActions from 0x1403a3f10 to 0x1403a3fe6 (214 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::update @ 0x140238415
// > GJBaseGameLayer::update @ 0x14023842e
// > MenuGameLayer::update @ 0x140332421
// > ??> @ 0x140698b44
// > ??> @ 0x140698ba0
// > ??> @ 0x1406d69f8
//
// 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 PlayerObject::updateInternalActions(PlayerObject *a1, float a2)
{
GJActionManager *m_actionManager; // r14
struct cocos2d::CCArray *v3; // rax
cocos2d::ccArray *data; // rbx
__int64 num; // rax
cocos2d::CCObject **arr; // rbx
cocos2d::CCObject **i; // rbp
__int64 v8; // rsi
struct cocos2d::CCObject *v9; // rdi
char v10; // al
cocos2d::CCObject_vtbl *v11; // rdx
m_actionManager = a1->m_actionManager;
v3 = cocos2d::CCDictionary::allKeys(m_actionManager->m_internalActions);
if ( v3 )
{
data = v3->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
for ( i = &arr[num - 1]; arr <= i; ++arr )
{
if ( !*arr )
break;
v8 = SLODWORD((*arr)[1].__vftable);
v9 = cocos2d::CCDictionary::objectForKey(m_actionManager->m_internalActions, v8);
v10 = ((__int64 (__fastcall *)(struct cocos2d::CCObject *))v9->__vftable[1].copyWithZone)(v9);
v11 = v9->__vftable;
if ( v10 )
{
((void (__fastcall *)(struct cocos2d::CCObject *))v11[1].isEqual)(v9);
cocos2d::CCDictionary::removeObjectForKey(m_actionManager->m_internalActions, v8);
}
else
{
((void (__fastcall *)(struct cocos2d::CCObject *))v11[1].acceptVisitor)(v9);
}
}
}
}
}