//
// GameObject::isSpeedObject from 0x10069cd90 to 0x10069ce06 (118 bytes)
//
// 8 xrefs:
// > EditorUI::onCreateObject @ 0x100011369
// > PlayLayer::addObject @ 0x10007f85b
// > PlayLayer::addObject @ 0x10007fb33
// > PlayLayer::addObject @ 0x10007fb95
// > PlayLayer::addObject @ 0x10007fd37
// > PlayLayer::addObject @ 0x10007ff97
// > LevelEditorLayer::tryUpdateSpeedObject @ 0x1000bcd6d
// > EditorUI::moveObject @ 0x10060ea14
//
// 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:35:16 +0000
//
char __fastcall GameObject::isSpeedObject(__int64 a1)
{
int v1; // ecx
char result; // al
unsigned int v3; // ecx
int v4; // edx
v1 = *(_DWORD *)(a1 + 1028);
result = 1;
if ( v1 <= 1916 )
{
if ( (unsigned int)(v1 - 200) >= 4 && v1 != 1334 )
return 0;
}
else if ( v1 <= 2899 )
{
v3 = v1 - 1917;
if ( v3 > 0x12 )
return 0;
v4 = 393217;
if ( !_bittest(&v4, v3) )
return 0;
}
else
{
if ( v1 <= 3021 )
{
if ( v1 == 2900 || v1 == 2902 )
return result;
return 0;
}
if ( v1 != 3022 && v1 != 3027 )
return 0;
}
return result;
}