//
// PlayerObject::updateInternalActions from 0x140502570 to 0x140502649 (217 bytes)
//
// 6 xrefs:
// > GJBaseGameLayer::update @ 0x140341127
// > GJBaseGameLayer::update @ 0x14034113f
// > MenuGameLayer::update @ 0x140470a41
// > ??> @ 0x1408d5de8
// > ??> @ 0x1408d5e44
// > ??> @ 0x14092a74c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:33:25 +0000
//
void __fastcall PlayerObject::updateInternalActions(__int64 a1)
{
__int64 v1; // r14
struct cocos2d::CCArray *v2; // rax
unsigned int *v3; // rbx
__int64 v4; // rax
unsigned __int64 v5; // rbx
unsigned __int64 i; // rsi
__int64 v7; // rbp
struct cocos2d::CCObject *v8; // rdi
char v9; // al
__int64 v10; // rdx
v1 = *(_QWORD *)(a1 + 3128);
v2 = cocos2d::CCDictionary::allKeys(*(cocos2d::CCDictionary **)(v1 + 320));
if ( v2 )
{
v3 = *((unsigned int **)v2 + 7);
v4 = *v3;
if ( (_DWORD)v4 )
{
v5 = *((_QWORD *)v3 + 2);
for ( i = v5 + 8 * (v4 - 1); v5 <= i; v5 += 8LL )
{
if ( !*(_QWORD *)v5 )
break;
v7 = *(int *)(*(_QWORD *)v5 + 56LL);
v8 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v1 + 320), v7);
v9 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v8 + 72LL))(v8);
v10 = *(_QWORD *)v8;
if ( v9 )
{
(*(void (__fastcall **)(struct cocos2d::CCObject *))(v10 + 88))(v8);
cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(v1 + 320), v7);
}
else
{
(*(void (__fastcall **)(struct cocos2d::CCObject *))(v10 + 96))(v8);
}
}
}
}
}