//
// GJBaseGameLayer::controlDynamicCommand from 0x10028b080 to 0x10028b0f0 (112 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::controlTriggersInGroup @ 0x100289a54
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x100289fb0
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x100289fc4
//
// This function is hookable on this platform (idp: arm, 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:02:00 +0000
//
void __fastcall GJBaseGameLayer::controlDynamicCommand(__int64 a1, __int64 a2, int a3, __int64 *a4, int a5)
{
__int64 v5; // x8
__int64 v6; // x9
char v7; // w10
__int64 v8; // x11
v5 = *a4;
v6 = a4[1];
while ( v5 != v6 )
{
if ( a3 != -1 && *(_DWORD *)(v5 + 80) == a3 || a3 == -1 && *(_QWORD *)v5 == a2 )
{
v7 = 1;
if ( a5 )
{
if ( a5 != 1 )
{
if ( a5 != 2 )
goto LABEL_14;
v7 = 0;
}
*(_BYTE *)(v5 + 78) = v7;
v8 = 79;
}
else
{
v8 = 77;
}
*(_BYTE *)(v5 + v8) = v7;
}
LABEL_14:
v5 += 96;
}
}