//
// LevelEditorLayer::tryUpdateSpeedObject from 0x463f02 to 0x463f94 (146 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x46421e
// > LevelEditorLayer::addSpecial @ 0x46e502
// > EditorUI::onToggleGuide @ 0x481b9a
//
// 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:48:54 +0000
//
int __fastcall LevelEditorLayer::tryUpdateSpeedObject(LevelEditorLayer *this, EffectGameObject *a2, int a3)
{
int v4; // r5
_BOOL4 isSpeedObject; // r6
bool v8; // zf
cocos2d::CCArray **v9; // r0
cocos2d::CCArray **v10; // r0
v4 = *((_DWORD *)a2 + 223);
if ( !*((_BYTE *)a2 + 1584) )
a3 = 1;
isSpeedObject = GameObject::isSpeedObject(a2);
if ( v4 != 111 )
{
if ( v4 > 111 )
{
if ( v4 != 1331 && v4 != 1933 )
{
v8 = v4 == 660;
LABEL_11:
if ( !v8 )
goto LABEL_16;
}
}
else if ( v4 != 13 )
{
v8 = v4 == 47;
goto LABEL_11;
}
}
v9 = *((cocos2d::CCArray ***)this + 2970);
if ( a3 )
DrawGridLayer::removeFromGuides(v9, a2);
else
DrawGridLayer::addToGuides(v9, a2);
LABEL_16:
if ( isSpeedObject || (*(int (__fastcall **)(EffectGameObject *))(*(_DWORD *)a2 + 840))(a2) && *((_BYTE *)a2 + 1596) )
{
v10 = *((cocos2d::CCArray ***)this + 2970);
if ( a3 )
DrawGridLayer::removeFromSpeedObjects(v10, a2);
else
DrawGridLayer::addToSpeedObjects(v10, a2);
return 1;
}
return isSpeedObject;
}