//
// sub_5C2046 from 0x5c2046 to 0x5c207e (56 bytes)
//
// 11 xrefs:
// > SpawnTriggerAction::operator= @ 0x5c45ee
// > CountTriggerAction::operator= @ 0x5c6cb4
// > TimerTriggerAction::operator= @ 0x5c6d04
// > GJEffectManager::controlActionsForControlID @ 0x5c6e78
// > GJEffectManager::controlActionsForControlID @ 0x5c6f2c
// > GJEffectManager::controlActionsForControlID @ 0x5c6fca
// > GJEffectManager::controlActionsForTrigger @ 0x5c7502
// > GJEffectManager::controlActionsForTrigger @ 0x5c75b6
// > GJEffectManager::controlActionsForTrigger @ 0x5c7654
// > GJEffectManager::loadPersistentStateString @ 0x5cf7f6
// > GJEffectManager::postMoveActions @ 0x5d05b0
//
// 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:50 +0000
//
void __fastcall sub_5C2046(char **a1, char **a2)
{
char *v3; // r0
char *v5; // r3
v3 = *a1;
if ( v3 )
{
while ( 1 )
{
v5 = a1[1];
if ( v3 == v5 )
break;
a1[1] = v5 - 4;
}
operator delete(v3);
a1[2] = nullptr;
a1[1] = nullptr;
*a1 = nullptr;
}
*a1 = *a2;
a1[1] = a2[1];
a1[2] = a2[2];
a2[2] = nullptr;
a2[1] = nullptr;
*a2 = nullptr;
}