//
// EffectGameObject::updateSpeedModType from 0x1404ab8f0 to 0x1404aba3d (333 bytes)
//
// 4 xrefs:
// > EditorUI::onCreateObject @ 0x14010fb54
// > LevelEditorLayer::tryUpdateSpeedObject @ 0x1402d8a75
// > PlayLayer::addObject @ 0x1403aea82
// > SetGroupIDLayer::onClose @ 0x1403fde15
//
// 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 EffectGameObject::updateSpeedModType(EffectGameObject *a1)
{
int m_objectID; // edx
int v2; // edx
int v3; // edx
int v4; // edx
int v5; // edx
__int16 v6; // ax
__int16 v7; // ax
__int16 v8; // ax
__int16 v9; // ax
__int16 v10; // ax
int v11; // edx
int v12; // edx
int v13; // edx
int v14; // edx
__int16 v15; // ax
__int16 v16; // ax
__int16 v17; // ax
__int16 v18; // ax
m_objectID = a1->m_objectID;
if ( m_objectID > 1934 )
{
v11 = m_objectID - 1935;
if ( v11 )
{
v12 = v11 - 965;
if ( v12 )
{
v13 = v12 - 2;
if ( v13 )
{
v14 = v13 - 120;
if ( v14 )
{
if ( v14 != 5 )
{
LABEL_29:
v15 = 0;
if ( a1->m_isReverse )
v15 = -1;
a1->m_speedModType = v15;
return;
}
}
}
v16 = -5;
if ( a1->m_isReverse )
v16 = -1;
a1->m_speedModType = v16;
}
else
{
v17 = -4;
if ( a1->m_isReverse )
v17 = -1;
a1->m_speedModType = v17;
}
}
else
{
v18 = -2;
if ( a1->m_isReverse )
v18 = -1;
a1->m_speedModType = v18;
}
}
else if ( m_objectID == 1934 )
{
v10 = -3;
if ( a1->m_isReverse )
v10 = -1;
a1->m_speedModType = v10;
}
else
{
v2 = m_objectID - 200;
if ( v2 )
{
v3 = v2 - 2;
if ( v3 )
{
v4 = v3 - 1;
if ( v4 )
{
v5 = v4 - 1131;
if ( v5 )
{
if ( v5 == 583 )
{
a1->m_speedModType = -1;
return;
}
goto LABEL_29;
}
v6 = 4;
if ( a1->m_isReverse )
v6 = -1;
a1->m_speedModType = v6;
}
else
{
v7 = 3;
if ( a1->m_isReverse )
v7 = -1;
a1->m_speedModType = v7;
}
}
else
{
v8 = 2;
if ( a1->m_isReverse )
v8 = -1;
a1->m_speedModType = v8;
}
}
else
{
v9 = 1;
if ( a1->m_isReverse )
v9 = -1;
a1->m_speedModType = v9;
}
}
}