//
// GJGameState::controlTweenAction from 0x9baecc to 0x9baf6c (160 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x9bb01c
// > GJBaseGameLayer::controlTriggersInGroup @ 0x9e0540
// > ??> @ 0x708b8
//
// 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 12:58:25 +0000
//
__int64 __fastcall GJGameState::controlTweenAction(__int64 result, int a2, __int64 a3, __int64 a4)
{
__int64 *v5; // x20
__int64 v6; // x1
__int64 v7; // [xsp+20h] [xbp+20h]
__int64 v8; // [xsp+28h] [xbp+28h]
v5 = (__int64 *)(result + 592);
v6 = *(_QWORD *)(result + 608);
while ( v6 )
{
result = v6 + 20;
if ( (_DWORD)a3 == -1 )
{
if ( *(_DWORD *)(v6 + 52) != a2 )
goto LABEL_5;
}
else if ( *(_DWORD *)(v6 + 56) != (_DWORD)a3 )
{
goto LABEL_5;
}
switch ( (_DWORD)a4 )
{
case 0:
v7 = a4;
v8 = a3;
result = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::erase(
v5,
(__int64 *)v6);
v6 = result;
a3 = v8;
a4 = v7;
continue;
case 1:
*(_BYTE *)(v6 + 49) = 1;
v6 = *(_QWORD *)v6;
continue;
case 2:
*(_BYTE *)(v6 + 49) = 0;
v6 = *(_QWORD *)v6;
continue;
}
LABEL_5:
v6 = *(_QWORD *)v6;
}
return result;
}