//
// GJActionManager::updateInternalActions from 0x1006e1130 to 0x1006e123d (269 bytes)
//
// 1 xrefs:
// > PlayerObject::updateInternalActions @ 0x10040a9ee
//
// 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 12:35:45 +0000
//
void __fastcall GJActionManager::updateInternalActions(__int64 a1, char a2, float a3)
{
__int64 v3; // rax
unsigned int *v4; // rax
unsigned __int64 v5; // r12
unsigned __int64 v6; // r13
__int64 v7; // r14
__int64 v8; // r15
__int64 v9; // r14
__int64 v10; // r15
char v11; // al
__int64 v12; // rcx
v3 = cocos2d::CCDictionary::allKeys(*(_QWORD *)(a1 + 320));
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
if ( *v4 )
{
v5 = *((_QWORD *)v4 + 2);
v6 = v5 + 8LL * *v4 - 8;
if ( a2 )
{
do
{
if ( !*(_QWORD *)v5 )
break;
v7 = *(int *)(*(_QWORD *)v5 + 56LL);
v8 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 320), v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 80LL))(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 96LL))(v8);
cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(a1 + 320), v7);
v5 += 8LL;
}
while ( v5 <= v6 );
}
else
{
while ( *(_QWORD *)v5 )
{
v9 = *(int *)(*(_QWORD *)v5 + 56LL);
v10 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 320), v9);
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 80LL))(v10);
v12 = *(_QWORD *)v10;
if ( v11 )
{
(*(void (__fastcall **)(__int64))(v12 + 96))(v10);
cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(a1 + 320), v9);
v5 += 8LL;
if ( v5 > v6 )
return;
}
else
{
(*(void (__fastcall **)(__int64, float))(v12 + 104))(v10, a3);
v5 += 8LL;
if ( v5 > v6 )
return;
}
}
}
}
}
}