//
// sub_5C5940 from 0x5c5940 to 0x5c598a (74 bytes)
//
// 3 xrefs:
// > GJEffectManager::prepareMoveActions @ 0x5cd9fe
// > GJEffectManager::prepareMoveActions @ 0x5cda0c
// > GJEffectManager::prepareMoveActions @ 0x5cda1a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:53 +0000
//
_DWORD *__fastcall sub_5C5940(int *a1, _DWORD *a2)
{
int **i; // r4
int v5; // r0
_DWORD *v6; // r3
for ( i = (int **)a2[2]; i; i = (int **)*i )
{
CCMoveCNode::reset((CCMoveCNode *)i[3]);
v5 = *a1;
v6 = *(_DWORD **)(*a1 + 712);
if ( v6 == *(_DWORD **)(*a1 + 716) )
{
std::vector::__push_back_slow_path(v5 + 708, i + 3);
}
else
{
if ( v6 )
*v6 = i[3];
*(_DWORD *)(v5 + 712) += 4;
}
}
return std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::clear(a2);
}