//
// EffectGameObject::updateSpeedModType from 0x4e84b2 to 0x4e854c (154 bytes)
//
// 2 xrefs:
// > PlayLayer::addObject @ 0x4009de
// > DrawGridLayer::addToSpeedObjects @ 0x463ed8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:51:06 +0000
//
int __fastcall EffectGameObject::updateSpeedModType(int this)
{
int v1; // r3
__int16 v2; // r3
v1 = *(_DWORD *)(this + 892);
if ( v1 == 1934 )
{
v2 = -3;
goto LABEL_26;
}
if ( v1 > 1934 )
{
if ( v1 == 2902 )
goto LABEL_23;
if ( v1 <= 2902 )
{
if ( v1 == 1935 )
{
v2 = -2;
goto LABEL_26;
}
if ( v1 == 2900 )
{
v2 = -4;
goto LABEL_26;
}
goto LABEL_24;
}
if ( v1 == 3022 || v1 == 3027 )
{
LABEL_23:
v2 = -5;
goto LABEL_26;
}
LABEL_24:
v2 = 0;
goto LABEL_26;
}
if ( v1 == 203 )
{
v2 = 3;
goto LABEL_26;
}
if ( v1 > 203 )
{
if ( v1 == 1334 )
{
v2 = 4;
goto LABEL_26;
}
if ( v1 == 1917 )
{
v2 = -1;
goto LABEL_26;
}
goto LABEL_24;
}
if ( v1 != 200 )
{
if ( v1 == 202 )
{
v2 = 2;
goto LABEL_26;
}
goto LABEL_24;
}
v2 = 1;
LABEL_26:
if ( *(_BYTE *)(this + 1596) )
v2 = -1;
*(_WORD *)(this + 1598) = v2;
return this;
}