//
// LevelEditorLayer::objectMoved from 0x65f350 to 0x65f574 (548 bytes)
//
// 2 xrefs:
// > EditorUI::moveObject @ 0x68efe4
// > ??> @ 0x8e7e8
//
// 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 LevelEditorLayer::objectMoved(LevelEditorLayer *a1, GameObject *a2)
{
float v2; // s0
float v3; // s1
int m_objectID; // w2
DrawGridLayer *v5; // x4
DrawGridLayer *m_drawGridLayer; // x4
DrawGridLayer *v7; // x4
DrawGridLayer *v8; // x4
m_objectID = a2->m_objectID;
if ( m_objectID > 1613 )
{
if ( m_objectID == 2907 )
goto LABEL_12;
if ( m_objectID > 2907 )
{
if ( m_objectID <= 3010 )
{
if ( m_objectID < 3006 && (m_objectID < 2909 || m_objectID > 2917 && (unsigned int)(m_objectID - 2919) > 5) )
goto LABEL_13;
}
else if ( m_objectID != 3643 )
{
if ( m_objectID > 3643 )
{
if ( m_objectID != 3660 )
goto LABEL_13;
}
else if ( (unsigned int)(m_objectID - 3016) > 8 )
{
goto LABEL_13;
}
}
}
else
{
if ( m_objectID == 1915 )
goto LABEL_12;
if ( m_objectID > 1915 )
{
if ( m_objectID == 2899 )
goto LABEL_12;
if ( m_objectID <= 2899 )
{
if ( m_objectID == 2067 )
goto LABEL_12;
if ( m_objectID != 2068 )
goto LABEL_13;
LABEL_23:
m_drawGridLayer = a1->m_drawGridLayer;
a1->m_spawnTriggersChanged = 1;
m_drawGridLayer->m_sortEffects = 1;
goto LABEL_13;
}
if ( (unsigned int)(m_objectID - 2903) > 2 )
goto LABEL_13;
}
else
{
if ( m_objectID > 1819 )
{
if ( m_objectID != 1912 )
goto LABEL_13;
goto LABEL_23;
}
if ( m_objectID < 1818 && m_objectID != 1814 )
goto LABEL_13;
}
}
LABEL_12:
a1->m_drawGridLayer->m_sortEffects = 1;
goto LABEL_13;
}
if ( m_objectID >= 1612 )
goto LABEL_12;
if ( m_objectID <= 900 )
{
if ( m_objectID < 899 )
{
if ( m_objectID <= 33 )
{
if ( m_objectID >= 31 )
goto LABEL_12;
if ( m_objectID < 22 )
goto LABEL_13;
if ( m_objectID <= 28 )
goto LABEL_12;
}
else if ( m_objectID != 105 )
{
if ( m_objectID <= 105 )
{
if ( (unsigned int)(m_objectID - 55) > 4 )
goto LABEL_13;
goto LABEL_12;
}
if ( m_objectID != 744 )
goto LABEL_13;
}
}
LABEL_35:
v8 = a1->m_drawGridLayer;
a1->m_colorTriggersChanged = 1;
v8->m_sortEffects = 1;
goto LABEL_13;
}
if ( m_objectID == 1049 )
goto LABEL_12;
if ( m_objectID > 1049 )
{
if ( m_objectID > 1347 )
{
if ( m_objectID != 1594 )
goto LABEL_13;
goto LABEL_12;
}
if ( m_objectID < 1346 )
{
if ( m_objectID != 1268 )
goto LABEL_13;
goto LABEL_23;
}
goto LABEL_12;
}
if ( m_objectID == 915 )
goto LABEL_35;
if ( m_objectID <= 915 )
{
if ( m_objectID != 901 )
goto LABEL_13;
goto LABEL_12;
}
if ( m_objectID == 1006 )
{
v7 = a1->m_drawGridLayer;
a1->m_pulseTriggersChanged = 1;
v7->m_sortEffects = 1;
}
else if ( m_objectID == 1007 )
{
v5 = a1->m_drawGridLayer;
a1->m_alphaTriggersChanged = 1;
v5->m_sortEffects = 1;
}
LABEL_13:
if ( a2->m_isSpawnOrderTrigger )
a1->m_spawnOrderObjectsChanged = 1;
if ( a2->m_dontIgnoreDuration )
cocos2d::CCPoint::operator=(&a2[1].m_obOffsetPosition.y, v2, v3);
}