//
// GJGameState::controlTweenAction from 0x140205460 to 0x1402054ef (143 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::controlTriggersWithControlID @ 0x14021e87f
// > ??> @ 0x1406ccc78
//
// 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 GJGameState::controlTweenAction(GJGameState *a1, int a2, int a3, GJActionCommand a4)
{
std::_List_val>>::_Nodeptr Myhead; // r10
__int64 v9; // rax
char v10; // [rsp+30h] [rbp+8h] BYREF
Myhead = a1->m_tweenActions._List._Mypair._Myval2._Myhead;
v9 = *(_QWORD *)Myhead;
if ( *(std::_List_val>>::_Nodeptr *)Myhead != Myhead )
{
do
{
if ( a3 == -1 )
{
if ( *(_DWORD *)(v9 + 52) == a2 )
{
LABEL_6:
if ( a4 )
{
if ( a4 == Pause )
{
*(_BYTE *)(v9 + 49) = 1;
}
else if ( a4 == Resume )
{
*(_BYTE *)(v9 + 49) = 0;
}
}
else
{
v9 = sub_14024D170(&a1->m_tweenActions, &v10, v9);
}
}
}
else if ( *(_DWORD *)(v9 + 56) == a3 )
{
goto LABEL_6;
}
v9 = *(_QWORD *)v9;
}
while ( (std::_List_val>>::_Nodeptr)v9 != a1->m_tweenActions._List._Mypair._Myval2._Myhead );
}
}