//
// GJGameState::controlTweenAction from 0x1001d9cec to 0x1001d9d88 (156 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::controlTriggersInGroup @ 0x1001edf5c
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x1001ee504
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJGameState::controlTweenAction(GJGameState *a1, int a2, int a3, GJActionCommand a4)
{
__int64 next; // x1
char v9; // w8
next = (__int64)a1->m_tweenActions.__table_.__p1_.__value_.__next_;
if ( next )
{
while ( 1 )
{
if ( a3 == -1 )
{
if ( *(_DWORD *)(next + 52) != a2 )
goto LABEL_14;
}
else if ( *(_DWORD *)(next + 56) != a3 )
{
goto LABEL_14;
}
if ( a4 == Resume )
{
v9 = 0;
goto LABEL_13;
}
if ( a4 == Pause )
{
v9 = 1;
LABEL_13:
*(_BYTE *)(next + 49) = v9;
goto LABEL_14;
}
if ( a4 )
{
LABEL_14:
next = *(_QWORD *)next;
if ( !next )
return;
}
else
{
next = sub_100018AE0(&a1->m_tweenActions.__table_.__bucket_list_.__ptr_.__value_, (__int64 *)next);
if ( !next )
return;
}
}
}
}