//
// EffectGameObject::updateSpeedModType from 0x10019b9b0 to 0x10019ba6a (186 bytes)
//
// 4 xrefs:
// > PlayLayer::addObject @ 0x10007ffc7
// > LevelEditorLayer::tryUpdateSpeedObject @ 0x1000bce68
// > DrawGridLayer::addToSpeedObjects @ 0x1000bd540
// > LevelEditorLayer::reverseObjectChanged @ 0x1000c3dc6
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:25:57 +0000
//
__int64 __fastcall EffectGameObject::updateSpeedModType(__int64 a1, __int64 a2, __int64 a3, unsigned int a4)
{
int v4; // eax
__int64 result; // rax
v4 = *(_DWORD *)(a1 + 1028);
if ( v4 <= 1933 )
{
if ( v4 <= 202 )
{
LOWORD(a4) = 1;
if ( v4 == 200 )
goto LABEL_24;
if ( v4 == 202 )
{
LOWORD(a4) = 2;
goto LABEL_24;
}
}
else
{
switch ( v4 )
{
case 203:
LOWORD(a4) = 3;
goto LABEL_24;
case 1334:
LOWORD(a4) = 4;
goto LABEL_24;
case 1917:
LOWORD(a4) = -1;
goto LABEL_24;
}
}
}
else if ( v4 > 2901 )
{
if ( v4 == 2902 || v4 == 3022 || v4 == 3027 )
{
LOWORD(a4) = -5;
goto LABEL_24;
}
}
else
{
switch ( v4 )
{
case 1934:
LOWORD(a4) = -3;
goto LABEL_24;
case 1935:
LOWORD(a4) = -2;
goto LABEL_24;
case 2900:
LOWORD(a4) = -4;
goto LABEL_24;
}
}
a4 = 0;
LABEL_24:
result = 0xFFFF;
if ( !*(_BYTE *)(a1 + 1780) )
result = a4;
*(_WORD *)(a1 + 1782) = result;
return result;
}