//
// EditorUI::editObject from 0x1003e4898 to 0x1003e5608 (3440 bytes)
//
// 1 xrefs:
// > EditorUI::init @ 0x1003c646c
//
// 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 __fastcall EditorUI::editObject(EditorUI *a1, cocos2d::CCObject *a2)
{
ColorSelectLiveOverlay *m_colorOverlay; // x0
GameObject *m_selectedObject; // x0
int m_objectID; // w20
_BOOL4 isBasicEnterEffect; // w24
_BOOL4 v7; // w27
bool isBasicTrigger; // w23
_BOOL4 isSpawnableTrigger; // w21
EffectGameObject *v10; // x0
void *v11; // x0
cocos2d::CCArray *m_selectedObjects; // x0
int v13; // w0
unsigned int v14; // w22
int m_classType; // w28
int v16; // w25
GameObject *v17; // x0
GameObject *v18; // x26
EnterEffectObject *v19; // x22
LevelSettingsObject *v20; // x0
int v21; // w8
EffectGameObject *v22; // x0
cocos2d::CCArray *v23; // x1
GameObject *v24; // x0
cocos2d::CCArray *v25; // x19
SetupTriggerPopup *v26; // x19
void *v27; // x0
cocos2d::CCArray *v28; // x1
bool m_platformerMode; // w2
cocos2d::CCArray *v30; // x1
cocos2d::CCArray *v31; // x1
SFXTriggerGameObject *v32; // x0
bool v33; // w2
int v34; // w8
cocos2d::CCArray *v35; // x1
EffectGameObject *v36; // x0
int v37; // w2
cocos2d::CCArray *v38; // x19
int v39; // w8
_BOOL4 isConfigurablePortal; // w8
void *v41[2]; // [xsp+0h] [xbp-B0h] BYREF
char v42; // [xsp+17h] [xbp-99h]
_QWORD v43[2]; // [xsp+18h] [xbp-98h] BYREF
char v44; // [xsp+2Fh] [xbp-81h]
void *__p[2]; // [xsp+30h] [xbp-80h] BYREF
char v46; // [xsp+47h] [xbp-69h]
void *v47[2]; // [xsp+48h] [xbp-68h] BYREF
char v48; // [xsp+5Fh] [xbp-51h]
if ( !EditorUI::editButtonUsable(a1) )
return;
m_colorOverlay = a1->m_colorOverlay;
if ( m_colorOverlay )
{
ColorSelectLiveOverlay::closeColorSelect(m_colorOverlay, nullptr);
a1->m_colorOverlay = nullptr;
}
m_selectedObject = a1->m_selectedObject;
if ( !m_selectedObject )
{
m_selectedObjects = a1->m_selectedObjects;
if ( !m_selectedObjects )
{
isSpawnableTrigger = 0;
m_objectID = -1;
goto LABEL_61;
}
v13 = sub_10024A36C((__int64)m_selectedObjects);
isSpawnableTrigger = v13 != 0;
if ( !v13 || !(unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) )
{
v10 = (EffectGameObject *)a1->m_selectedObject;
m_objectID = -1;
isBasicTrigger = isSpawnableTrigger;
v7 = isSpawnableTrigger;
isBasicEnterEffect = isSpawnableTrigger;
goto LABEL_45;
}
v14 = 0;
LOBYTE(isSpawnableTrigger) = 1;
m_objectID = -1;
m_classType = -1;
v16 = -1;
isBasicTrigger = 1;
LOBYTE(v7) = 1;
LOBYTE(isBasicEnterEffect) = 1;
while ( 1 )
{
v17 = (GameObject *)sub_10024A388((__int64)a1->m_selectedObjects, v14);
v18 = v17;
if ( isBasicTrigger )
{
isBasicTrigger = GameObject::isBasicTrigger(v17);
if ( !m_objectID )
goto LABEL_18;
}
else
{
isBasicTrigger = 0;
if ( !m_objectID )
goto LABEL_18;
}
if ( m_objectID == -1 )
{
m_objectID = v18->m_objectID;
LABEL_18:
if ( !m_classType )
goto LABEL_25;
goto LABEL_23;
}
if ( v18->m_objectID != m_objectID )
m_objectID = 0;
if ( !m_classType )
goto LABEL_25;
LABEL_23:
if ( m_classType == -1 )
{
m_classType = v18->m_classType;
LABEL_25:
if ( !v16 )
goto LABEL_32;
goto LABEL_30;
}
if ( v18->m_classType != m_classType )
m_classType = 0;
if ( !v16 )
goto LABEL_32;
LABEL_30:
if ( v16 == -1 )
{
v16 = ((__int64 (__fastcall *)(GameObject *))v18->getType)(v18);
LABEL_32:
if ( isSpawnableTrigger )
goto LABEL_33;
goto LABEL_39;
}
if ( ((unsigned int (__fastcall *)(GameObject *))v18->getType)(v18) != v16 )
v16 = 0;
if ( isSpawnableTrigger )
{
LABEL_33:
isSpawnableTrigger = GameObject::isSpawnableTrigger(v18);
if ( !v7 )
goto LABEL_34;
goto LABEL_40;
}
LABEL_39:
isSpawnableTrigger = 0;
if ( !v7 )
{
LABEL_34:
v7 = 0;
if ( isBasicEnterEffect )
goto LABEL_41;
goto LABEL_35;
}
LABEL_40:
v7 = (unsigned int)(v18->m_objectID - 3006) < 5;
if ( isBasicEnterEffect )
{
LABEL_41:
isBasicEnterEffect = GameObject::isBasicEnterEffect(v18->m_objectID);
goto LABEL_42;
}
LABEL_35:
isBasicEnterEffect = 0;
LABEL_42:
if ( ++v14 >= (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) )
goto LABEL_6;
}
}
m_objectID = m_selectedObject->m_objectID;
((void (__fastcall *)(GameObject *))m_selectedObject->getType)(m_selectedObject);
isBasicEnterEffect = GameObject::isBasicEnterEffect(a1->m_selectedObject->m_objectID);
v7 = 0;
isBasicTrigger = 0;
isSpawnableTrigger = 0;
LABEL_6:
v10 = (EffectGameObject *)a1->m_selectedObject;
if ( m_objectID == 142 )
{
v11 = SetupCoinLayer::create(v10, a1->m_selectedObjects);
LABEL_86:
(*(void (__fastcall **)(void *))(*(_QWORD *)v11 + 1288LL))(v11);
return;
}
LABEL_45:
if ( v10 )
{
v19 = (EnterEffectObject *)v10;
if ( v10->m_objectID == 31 )
{
v20 = (LevelSettingsObject *)v10[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v20->m_platformerMode = a1->m_editorLayer->m_levelSettings->m_platformerMode;
v11 = LevelSettingsLayer::create(v20, nullptr);
goto LABEL_86;
}
}
else
{
v19 = nullptr;
}
if ( m_objectID > 3007 )
{
if ( m_objectID <= 3009 )
{
if ( m_objectID == 3008 )
v11 = SetupAreaTransformTriggerPopup::create(v19, a1->m_selectedObjects);
else
v11 = SetupAreaFadeTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
switch ( m_objectID )
{
case 3010:
v11 = SetupAreaTintTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
case 3022:
v11 = SetupTeleportPopup::create(
(TeleportPortalObject *)v19,
a1->m_selectedObjects,
3022,
a1->m_editorLayer->m_levelSettings->m_platformerMode);
goto LABEL_86;
case 3642:
v11 = SetupAudioLineGuidePopup::create((AudioLineGuideGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
else if ( m_objectID <= 2900 )
{
if ( m_objectID == 2899 )
{
v11 = SetupOptionsTriggerPopup::create((GameOptionsTrigger *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 2900 )
{
v11 = SetupRotateGameplayPopup::create((RotateGameplayGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
else
{
switch ( m_objectID )
{
case 2901:
v11 = SetupGameplayOffsetPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
case 3006:
v11 = SetupAreaMoveTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
case 3007:
v11 = SetupAreaRotateTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
if ( (unsigned int)(m_objectID - 3011) <= 4 )
{
v11 = SetupAreaAnimTriggerPopup::create(v19, a1->m_selectedObjects, m_objectID);
goto LABEL_86;
}
if ( m_objectID == 3024 )
{
v25 = a1->m_selectedObjects;
sub_100009900(v47, "Stop Area Trigger");
sub_100009900(__p, "EffectID:");
v26 = SetTargetIDLayer::create((__int64)v19, (__int64)v25, (__int64)v47, (__int64)__p, 0, 9999, 3024);
if ( v46 < 0 )
operator delete(__p[0]);
if ( (v48 & 0x80000000) == 0 )
goto LABEL_96;
v27 = v47[0];
LABEL_95:
operator delete(v27);
LABEL_96:
((void (__fastcall *)(SetupTriggerPopup *))v26->show)(v26);
return;
}
if ( v7 )
{
v11 = SetupAreaTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( (unsigned int)(m_objectID - 3017) < 5 || m_objectID == 3023 )
{
v11 = SetupEnterEffectPopup::create(v19, a1->m_selectedObjects, m_objectID);
goto LABEL_86;
}
if ( isBasicEnterEffect )
{
v11 = SetupEnterTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( (unsigned int)(m_objectID - 2909) < 9
|| (unsigned int)(m_objectID - 2904) <= 0x14 && ((1 << (m_objectID - 88)) & 0x1F800B) != 0 )
{
v11 = SetupShaderEffectPopup::create(v19, a1->m_selectedObjects, m_objectID);
goto LABEL_86;
}
if ( (unsigned int)(m_objectID - 3029) <= 2 )
{
v11 = SetupArtSwitchPopup::create((ArtTriggerGameObject *)v19, a1->m_selectedObjects, m_objectID);
goto LABEL_86;
}
if ( m_objectID > 2065 )
{
if ( m_objectID <= 3599 )
{
if ( m_objectID > 2924 )
{
if ( m_objectID > 3031 )
{
if ( m_objectID == 3032 )
{
v11 = SetupKeyframePopup::create((KeyframeGameObject *)v19, a1->m_selectedObjects, a1->m_editorLayer);
goto LABEL_86;
}
if ( m_objectID == 3033 )
{
v11 = SetupKeyframeAnimPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
else
{
if ( m_objectID == 2925 )
{
v30 = a1->m_selectedObjects;
v10 = v19;
LABEL_170:
v11 = SetupCameraModePopup::create(v10, v30);
goto LABEL_86;
}
if ( m_objectID == 3016 )
{
v11 = SetupAdvFollowPopup::create((AdvancedFollowTriggerObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
goto LABEL_186;
}
if ( m_objectID == 2066 )
{
v11 = SetupGravityTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 2067 )
{
v11 = SetupTransformPopup::create((TransformTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID != 2069 )
goto LABEL_186;
}
else
{
if ( m_objectID <= 3604 )
{
if ( m_objectID <= 3602 )
{
if ( m_objectID == 3600 )
{
v11 = SetupPlatformerEndPopup::create((EndTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 3602 )
{
v11 = SetupSFXPopup::create((SFXTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
goto LABEL_186;
}
if ( m_objectID != 3603 )
{
v11 = SetupEventLinkPopup::create((EventLinkTrigger *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
v31 = a1->m_selectedObjects;
v32 = (SFXTriggerGameObject *)v19;
v33 = 0;
LABEL_183:
v11 = SetupSFXEditPopup::create(v32, v31, v33);
goto LABEL_86;
}
if ( m_objectID > 3659 )
{
if ( m_objectID == 3660 )
{
v11 = SetupAdvFollowEditPhysicsPopup::create((AdvancedFollowEditObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 3661 )
{
v11 = SetupAdvFollowRetargetPopup::create((AdvancedFollowEditObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
goto LABEL_186;
}
if ( m_objectID == 3605 )
{
v31 = a1->m_selectedObjects;
v32 = (SFXTriggerGameObject *)v19;
v33 = 1;
goto LABEL_183;
}
if ( m_objectID != 3645 )
goto LABEL_186;
}
v11 = SetupForceBlockPopup::create((ForceBlockGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID <= 1346 )
{
if ( m_objectID <= 1006 )
{
switch ( m_objectID )
{
case 899:
v23 = a1->m_selectedObjects;
v22 = v19;
goto LABEL_85;
case 901:
v11 = SetupMoveCommandPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
case 1006:
v11 = SetupPulsePopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
else if ( m_objectID > 1267 )
{
if ( m_objectID == 1268 )
{
v11 = SetupSpawnPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 1346 )
{
v11 = SetupRotateCommandPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
else
{
if ( m_objectID == 1007 )
{
v11 = SetupOpacityPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 1049 )
goto LABEL_128;
}
}
else if ( m_objectID > 1933 )
{
if ( m_objectID > 2014 )
{
if ( m_objectID == 2015 )
{
v11 = SetupCameraRotatePopup2::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 2016 )
{
v11 = SetupCameraGuidePopup::create((CameraTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
else
{
if ( m_objectID == 1934 )
{
v11 = SetupSongTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 1935 )
{
v11 = SetupTimeWarpPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
}
else if ( m_objectID > 1584 )
{
if ( m_objectID == 1585 )
{
v11 = SetupAnimationPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 1814 )
{
v11 = GJPFollowCommandLayer::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
else
{
if ( m_objectID == 1347 )
{
v11 = GJFollowCommandLayer::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 1520 )
{
v11 = SetupShakePopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
LABEL_186:
if ( v10 )
{
v34 = v19->m_objectID;
if ( v34 == 3607 )
{
v11 = SetupSequenceTriggerPopup::create((SequenceTriggerGameObject *)v19);
goto LABEL_86;
}
if ( v34 == 2068 )
{
v11 = SetupRandAdvTriggerPopup::create((RandTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
if ( m_objectID > 2998 )
{
if ( m_objectID <= 3612 )
{
switch ( m_objectID )
{
case 2999:
v11 = SetupMGTrigger::create(v19, a1->m_selectedObjects);
goto LABEL_86;
case 3606:
v35 = a1->m_selectedObjects;
v36 = v19;
v37 = 3606;
break;
case 3612:
v35 = a1->m_selectedObjects;
v36 = v19;
v37 = 3612;
break;
default:
goto LABEL_218;
}
v11 = SetupBGSpeedTrigger::create(v36, v35, v37);
goto LABEL_86;
}
switch ( m_objectID )
{
case 3613:
v11 = UIObjectSettingsPopup::create((UISettingsGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
case 3655:
v11 = SetupObjectControlPopup::create((ObjectControlGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
case 3662:
v38 = a1->m_selectedObjects;
sub_100009900(v43, "Visibility Link");
sub_100009900(v41, "GroupID:");
v26 = SetTargetIDLayer::create((__int64)v19, (__int64)v38, (__int64)v43, (__int64)v41, 0, 9999, 3662);
if ( v42 < 0 )
operator delete(v41[0]);
if ( (v44 & 0x80000000) == 0 )
goto LABEL_96;
v27 = (void *)v43[0];
goto LABEL_95;
}
}
else
{
if ( m_objectID <= 1333 )
{
if ( (unsigned int)(m_objectID - 200) >= 4 )
goto LABEL_218;
LABEL_204:
v11 = MultiTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
switch ( m_objectID )
{
case 1334:
goto LABEL_204;
case 1816:
v11 = CollisionBlockPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
case 1932:
v11 = SetupPlayerControlPopup::create((PlayerControlGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
LABEL_218:
if ( !v10 )
{
if ( m_objectID <= 3614 )
{
if ( m_objectID <= 1913 )
{
switch ( m_objectID )
{
case 1616:
LABEL_293:
v11 = SetupStopTriggerPopup::create(v10, a1->m_selectedObjects);
goto LABEL_86;
case 1815:
LABEL_294:
v11 = SetupCollisionTriggerPopup::create(v10, a1->m_selectedObjects);
goto LABEL_86;
case 1817:
LABEL_255:
v11 = SetupPickupTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
}
else if ( m_objectID > 3608 )
{
if ( m_objectID == 3609 )
goto LABEL_302;
if ( m_objectID == 3614 )
goto LABEL_272;
}
else
{
if ( m_objectID == 1914 )
goto LABEL_281;
if ( m_objectID == 3608 )
{
LABEL_236:
v11 = SetupSpawnParticlePopup::create(v10, a1->m_selectedObjects);
goto LABEL_86;
}
}
}
else if ( m_objectID > 3619 )
{
if ( m_objectID > 3640 )
{
if ( m_objectID == 3641 )
goto LABEL_265;
if ( m_objectID == 3643 )
{
LABEL_263:
v28 = a1->m_selectedObjects;
m_platformerMode = a1->m_editorLayer->m_levelSettings->m_platformerMode;
goto LABEL_129;
}
}
else
{
if ( m_objectID == 3620 )
goto LABEL_264;
if ( m_objectID == 3640 )
goto LABEL_247;
}
}
else
{
if ( m_objectID > 3617 )
{
if ( m_objectID != 3618 )
goto LABEL_257;
goto LABEL_267;
}
if ( m_objectID == 3615 )
{
LABEL_271:
v11 = SetupTimerEventTriggerPopup::create((TimerTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 3617 )
goto LABEL_268;
}
if ( !isBasicTrigger )
goto LABEL_61;
v10 = nullptr;
LABEL_66:
v11 = EditTriggersPopup::create(v10, a1->m_selectedObjects);
goto LABEL_86;
}
v39 = v19->m_objectID;
if ( v39 > 1811 )
{
if ( v39 != 1812 )
{
if ( v39 == 1931 )
{
v11 = SetupEndPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
goto LABEL_238;
}
LABEL_128:
v28 = a1->m_selectedObjects;
m_platformerMode = a1->m_editorLayer->m_levelSettings->m_platformerMode;
v10 = v19;
LABEL_129:
v11 = SetupObjectTogglePopup::create(v10, v28, m_platformerMode);
goto LABEL_86;
}
if ( v39 == 1595 )
{
v11 = SetupTouchTogglePopup::create(v19, nullptr);
goto LABEL_86;
}
if ( v39 == 1611 )
{
v11 = SetupCountTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
LABEL_238:
if ( m_objectID > 3616 )
{
if ( m_objectID > 3618 )
{
if ( m_objectID != 3619 )
{
if ( m_objectID != 3620 )
{
if ( m_objectID != 3641 )
goto LABEL_276;
LABEL_265:
v11 = SetupPersistentItemTriggerPopup::create((ItemTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
LABEL_264:
v11 = SetupItemCompareTriggerPopup::create((ItemTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
LABEL_257:
v11 = SetupItemEditTriggerPopup::create((ItemTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID != 3617 )
{
LABEL_267:
v11 = SetupResetTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
LABEL_268:
v11 = SetupTimerControlTriggerPopup::create((TimerTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID > 3613 )
{
if ( m_objectID != 3614 )
{
if ( m_objectID != 3615 )
goto LABEL_276;
goto LABEL_271;
}
LABEL_272:
v11 = SetupTimerTriggerPopup::create((TimerTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 1811 )
{
v11 = SetupInstantCountPopup::create((CountTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 1817 )
goto LABEL_255;
LABEL_276:
if ( v39 == 1913 )
{
v11 = SetupZoomTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( v39 == 1912 )
{
v11 = SetupRandTriggerPopup::create(v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( m_objectID == 1914 )
{
LABEL_281:
v11 = SetupStaticCameraPopup::create((CameraTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( v39 == 1916 )
{
v11 = SetupCameraOffsetTrigger::create((CameraTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
if ( v39 == 2062 )
{
v11 = SetupCameraEdgePopup::create((CameraTriggerGameObject *)v19, a1->m_selectedObjects);
goto LABEL_86;
}
isConfigurablePortal = GameObject::isConfigurablePortal(v19);
v10 = (EffectGameObject *)a1->m_selectedObject;
if ( isConfigurablePortal )
{
v30 = a1->m_selectedObjects;
goto LABEL_170;
}
if ( m_objectID > 3608 )
{
if ( m_objectID != 3609 )
{
if ( m_objectID != 3640 )
{
if ( m_objectID != 3643 )
goto LABEL_298;
goto LABEL_263;
}
LABEL_247:
v11 = SetupCollisionStateTriggerPopup::create(v10, a1->m_selectedObjects);
goto LABEL_86;
}
LABEL_302:
v11 = SetupInstantCollisionTriggerPopup::create(v10, a1->m_selectedObjects);
goto LABEL_86;
}
switch ( m_objectID )
{
case 1616:
goto LABEL_293;
case 1815:
goto LABEL_294;
case 3608:
goto LABEL_236;
}
LABEL_298:
if ( isBasicTrigger )
goto LABEL_66;
if ( v10 && GameObject::isBasicTrigger(v10) )
{
v10 = (EffectGameObject *)a1->m_selectedObject;
goto LABEL_66;
}
LABEL_61:
v21 = m_objectID == 1917 || isSpawnableTrigger;
v10 = (EffectGameObject *)a1->m_selectedObject;
if ( m_objectID != 2903 && v21 )
goto LABEL_66;
if ( v10 && !GameObject::canChangeCustomColor(v10) )
{
v22 = (EffectGameObject *)a1->m_selectedObject;
v23 = a1->m_selectedObjects;
LABEL_85:
v11 = ColorSelectPopup::create_1(v22, v23);
goto LABEL_86;
}
if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects)
|| (v24 = a1->m_selectedObject) != nullptr && GameObject::canChangeCustomColor(v24) )
{
v11 = CustomizeObjectLayer::create(a1->m_selectedObject, a1->m_selectedObjects);
goto LABEL_86;
}
}