//
// GJGameState::updateTweenActions from 0x10010e290 to 0x10010e503 (627 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::update @ 0x100152904
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GJGameState::updateTweenActions(GJGameState *a1, float EasedValue)
{
std::__hash_node_base, void *> *>::__next_pointer next; // rdx
__int64 *p_m_tweenActions; // r14
__int64 v5; // r13
char v6; // al
__int128 next_low; // xmm1
float v8; // xmm2_4
__int128 v9; // xmm0
int v10; // edi
std::__hash_node_base, void *> *>::__next_pointer v11; // r13
__int128 v12; // kr00_16
void *v13; // rdi
void *__p; // [rsp+8h] [rbp-48h] BYREF
float v15; // [rsp+24h] [rbp-2Ch]
v15 = EasedValue;
next = a1->m_tweenActions.__table_.__p1_.__value_.__next_;
if ( next )
{
p_m_tweenActions = (__int64 *)&a1->m_tweenActions;
while ( 2 )
{
v6 = (char)next[6].__next_;
if ( !v6 && !BYTE1(next[6].__next_) )
{
next_low = LODWORD(next[4].__next_);
*(float *)&next_low = *(float *)&next_low + v15;
LODWORD(next[4].__next_) = next_low;
v8 = *((float *)&next[3].__next_ + 1);
*(_OWORD *)&EasedValue = 0x3F800000u;
if ( *(float *)&next_low < v8 )
{
v9 = next_low;
EasedValue = *(float *)&next_low / v8;
}
v10 = (int)next[5].__next_;
if ( v10 > 0 )
{
v11 = next;
EasedValue = GameToolbox::getEasedValue(EasedValue, v10, *((float *)&next[5].__next_ + 1));
next = v11;
v8 = *((float *)&v11[3].__next_ + 1);
LODWORD(next_low) = v11[4].__next_;
}
*((float *)&next[4].__next_ + 1) = (float)((float)(*(float *)&next[3].__next_ - *((float *)&next[2].__next_ + 1))
* EasedValue)
+ *((float *)&next[2].__next_ + 1);
v6 = *(float *)&next_low >= v8;
LOBYTE(next[6].__next_) = *(float *)&next_low >= v8;
}
v12 = *(_OWORD *)&EasedValue;
*(_OWORD *)&EasedValue = HIDWORD(next[4].__next_);
switch ( LODWORD(next[2].__next_) )
{
case 1:
a1->m_cameraPosition.x = EasedValue;
if ( !v6 )
goto LABEL_3;
goto LABEL_47;
case 2:
a1->m_cameraPosition.y = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 7:
a1->m_levelFlipping = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 9:
a1->m_portalY = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0xA:
a1->m_unkPoint6.x = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0xB:
a1->m_unkPoint6.y = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0xC:
a1->m_unkPoint8.x = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0xD:
a1->m_unkPoint8.y = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0xE:
a1->m_cameraZoom = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0xF:
a1->m_cameraOffset.x = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0x10:
a1->m_cameraOffset.y = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0x11:
a1->m_cameraAngle = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0x12:
a1->m_unkPoint26.x = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0x13:
a1->m_unkPoint26.y = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0x14:
a1->m_middleGroundOffsetY = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0x15:
a1->m_unkPoint12.x = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0x16:
a1->m_unkPoint12.y = EasedValue;
if ( v6 )
goto LABEL_47;
goto LABEL_3;
case 0x19:
a1->m_unkFloat9 = EasedValue;
goto LABEL_46;
default:
*(_OWORD *)&EasedValue = v12;
LABEL_46:
if ( v6 )
{
LABEL_47:
v5 = (__int64)next->__next_;
sub_100056B40((__int64)&__p, p_m_tweenActions, (__int64 *)next);
v13 = __p;
__p = nullptr;
if ( v13 )
operator delete(v13);
}
else
{
LABEL_3:
v5 = (__int64)next->__next_;
}
next = (std::__hash_node_base, void *> *>::__next_pointer)v5;
if ( v5 )
continue;
return;
}
}
}
}