//
// EditorUI::editObject from 0x7c8ab4 to 0x7c9b64 (4272 bytes)
//
// 4 xrefs:
// > EditorUI::handleEditorAction @ 0xbd7d8c
// > ??> @ 0xa6948
// > EditorUI::init @ 0x7d04dc
// > ??> @ 0x1544ac8
//
// This function is hookable on this platform (idp: arm, 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:54:10 +0000
//
__int64 __fastcall EditorUI::editObject(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
unsigned __int8 v3; // w0
int v4; // w23
EditorBuildStats *v6; // x0
EditorSFXManager *v7; // x0
EditorSFXManager *v8; // x0
SequenceTriggerGameObject *v9; // x1
cocos2d::CCArray *v10; // x2
LevelEditorLayer *v11; // x3
StartPosObject **v12; // x22
unsigned int v13; // w21
int v14; // w24
int v15; // w26
int v16; // w25
bool v17; // w4
int isBasicEnterEffect; // w27
int v19; // w0
int v20; // w0
int v21; // w0
__int64 v22; // x0
cocos2d::CCArray *v23; // x0
int v24; // w28
unsigned int v25; // w22
GameObject *v26; // x0
GameObject *v27; // x1
__int64 (__fastcall *v28)(GameObject *); // x2
int v29; // w0
StartPosObject *v30; // x1
__int64 v31; // x0
__int64 v32; // x0
bool isBasicTrigger; // w0
bool isSpawnableTrigger; // w0
__int64 v35; // x0
__int64 v36; // x0
__int64 v37; // x0
__int64 v38; // x0
__int64 v39; // x0
__int64 v40; // x0
__int64 v41; // x0
__int64 v42; // x0
__int64 v43; // x0
__int64 v44; // x0
__int64 v45; // x0
__int64 v46; // x0
__int64 v47; // x0
__int64 v48; // x0
__int64 v49; // x23
__int64 v50; // x0
__int64 v51; // x20
__int64 v52; // x0
__int64 v53; // x0
__int64 v54; // x0
__int64 v55; // x0
__int64 v56; // x2
SetupObjectTogglePopup *v57; // x0
__int64 v58; // x0
__int64 v59; // x0
__int64 v60; // x0
__int64 v61; // x0
__int64 v62; // x0
__int64 v63; // x0
__int64 v64; // x0
__int64 v65; // x0
__int64 v66; // x0
__int64 v67; // x0
__int64 v68; // x0
__int64 v69; // x0
__int64 v70; // x0
__int64 v71; // x0
__int64 v72; // x0
__int64 v73; // x0
__int64 v74; // x0
__int64 v75; // x0
__int64 v76; // x0
__int64 v77; // x0
__int64 v78; // x0
__int64 v79; // x0
__int64 v80; // x23
__int64 v81; // x0
__int64 v82; // x0
__int64 v83; // x0
__int64 v84; // x0
__int64 v85; // x0
__int64 v86; // x0
__int64 v87; // x0
__int64 v88; // x0
__int64 v89; // x0
__int64 v90; // x0
__int64 v91; // x0
__int64 v92; // x0
__int64 v93; // x0
__int64 v94; // x0
__int64 v95; // x0
__int64 v96; // x0
__int64 v97; // x0
__int64 v98; // x0
__int64 v99; // x0
GameObject *v100; // x0
__int64 v101; // x0
__int64 v102; // x0
__int64 v103; // x0
__int64 v104; // x0
__int64 v105; // x0
__int64 v106; // x0
__int64 v107; // x0
GameObject *v108; // x0
cocos2d::CCArray *v109; // x2
__int64 v110; // x0
cocos2d::CCArray *v111; // x2
__int64 v112; // x0
__int64 v113; // x0
__int64 v114; // x0
__int64 v115; // x0
__int64 v116; // x0
GameObject *v117; // x0
__int64 v118; // x0
__int64 v119; // x0
__int64 v120; // x0
__int64 v121; // x0
__int64 v122; // x0
__int64 v123; // x0
__int64 v124; // x0
__int64 v125; // x0
GameObject *v126; // [xsp+68h] [xbp+68h]
GameObject *v127; // [xsp+68h] [xbp+68h]
GameObject *v128; // [xsp+68h] [xbp+68h]
__int64 v129; // [xsp+78h] [xbp+78h] BYREF
__int64 v130; // [xsp+80h] [xbp+80h]
void *v131; // [xsp+88h] [xbp+88h]
__int64 v132; // [xsp+90h] [xbp+90h] BYREF
__int64 v133; // [xsp+98h] [xbp+98h]
void *v134; // [xsp+A0h] [xbp+A0h]
v3 = EditorUI::editButtonUsable((EditorUI *)this);
v4 = v3;
if ( !v3 )
return _stack_chk_guard;
v6 = (cocos2d::CCArray *)((char *)*(this + 180) + 14704);
*((_DWORD *)v6 + 4) = *((_DWORD *)*(this + 180) + 3680) + 1;
v7 = (EditorSFXManager *)EditorBuildStats::noteAction(v6);
v8 = (EditorSFXManager *)EditorSFXManager::sharedState(v7);
EditorSFXManager::playAction(v8, 107);
EditorUI::closeLiveColorSelect((__int64)this);
v12 = (StartPosObject **)*(this + 187);
if ( !v12 )
{
v23 = *(this + 112);
if ( v23 )
{
if ( (unsigned int)cocos2d::CCArray::count(v23) )
{
isBasicEnterEffect = 1;
v24 = -1;
v25 = 0;
v14 = 1;
v15 = 1;
v16 = 1;
v13 = -1;
while ( 1 )
{
if ( v25 >= (unsigned int)cocos2d::CCArray::count(*(this + 112)) )
goto LABEL_5;
v26 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(this + 112), v25);
v27 = v26;
if ( v15 )
{
v127 = v26;
isBasicTrigger = GameObject::isBasicTrigger(v26);
v27 = v127;
if ( !isBasicTrigger )
v15 = 0;
}
if ( v13 )
{
if ( v13 == -1 )
{
v13 = *((_DWORD *)v27 + 257);
}
else if ( v13 != *((_DWORD *)v27 + 257) )
{
v13 = 0;
}
}
if ( !v24 )
goto LABEL_106;
v126 = v27;
v28 = *(__int64 (__fastcall **)(GameObject *))(*(_QWORD *)v27 + 1800LL);
if ( v24 != -1 )
break;
v24 = v28(v27);
v27 = v126;
if ( !v16 )
goto LABEL_108;
LABEL_120:
v128 = v27;
isSpawnableTrigger = GameObject::isSpawnableTrigger(v27);
v27 = v128;
if ( !isSpawnableTrigger )
v16 = 0;
LABEL_108:
if ( v14 && (unsigned int)(*((_DWORD *)v27 + 257) - 3006) >= 5 )
v14 = 0;
++v25;
if ( isBasicEnterEffect )
isBasicEnterEffect = (unsigned __int8)GameObject::isBasicEnterEffect((GameObject *)*((unsigned int *)v27
+ 257));
}
v29 = v28(v27);
v27 = v126;
if ( v24 != v29 )
LABEL_106:
v24 = 0;
if ( !v16 )
goto LABEL_108;
goto LABEL_120;
}
v12 = (StartPosObject **)*(this + 187);
isBasicEnterEffect = 0;
if ( v12 )
{
v14 = 0;
v13 = -1;
v15 = 0;
LOBYTE(v16) = 0;
goto LABEL_7;
}
}
else
{
isBasicEnterEffect = 0;
}
v13 = -1;
v15 = 0;
LOBYTE(v16) = 0;
goto LABEL_21;
}
v13 = *((_DWORD *)v12 + 257);
v14 = 0;
v15 = 0;
LOBYTE(v16) = 0;
(*((void (__fastcall **)(_QWORD))*v12 + 225))(*(this + 187));
isBasicEnterEffect = (unsigned __int8)GameObject::isBasicEnterEffect((GameObject *)*((unsigned int *)*(this + 187)
+ 257));
LABEL_5:
if ( v13 == 142 )
{
v37 = SetupCoinLayer::create(*(this + 187), *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v37 + 1312LL))(v37);
return _stack_chk_guard;
}
v12 = (StartPosObject **)*(this + 187);
if ( v12 )
{
LABEL_7:
if ( *((_DWORD *)v12 + 257) == 31 )
{
v30 = v12[230];
*((_BYTE *)v30 + 341) = *(_BYTE *)(*((_QWORD *)*(this + 180) + 409) + 341LL);
v31 = StartPosLayer::create((StartPosLayer *)v12, v30);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v31 + 1312LL))(v31);
return _stack_chk_guard;
}
}
switch ( v13 )
{
case 0xB54u:
v38 = SetupRotateGameplayPopup::create((SetupRotateGameplayPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v38 + 1312LL))(v38);
return _stack_chk_guard;
case 0xB55u:
v39 = SetupGameplayOffsetPopup::create((SetupGameplayOffsetPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v39 + 1312LL))(v39);
return _stack_chk_guard;
case 0xB53u:
v40 = SetupOptionsTriggerPopup::create((SetupOptionsTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v40 + 1312LL))(v40);
return _stack_chk_guard;
case 0xE3Au:
v35 = SetupAudioLineGuidePopup::create((SetupAudioLineGuidePopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v35 + 1312LL))(v35);
return _stack_chk_guard;
case 0xBCEu:
v41 = SetupTeleportPopup::create(
(SetupTeleportPopup *)v12,
*(this + 112),
(cocos2d::CCArray *)((char *)&elf_hash_bucket[629] + 2),
*(unsigned __int8 *)(*((_QWORD *)*(this + 180) + 409) + 341LL),
v17);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v41 + 1312LL))(v41);
return _stack_chk_guard;
case 0xBBEu:
v42 = SetupAreaMoveTriggerPopup::create((SetupAreaMoveTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v42 + 1312LL))(v42);
return _stack_chk_guard;
case 0xBC0u:
v44 = SetupAreaTransformTriggerPopup::create((SetupAreaTransformTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v44 + 1312LL))(v44);
return _stack_chk_guard;
case 0xBBFu:
v45 = SetupAreaRotateTriggerPopup::create((SetupAreaRotateTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v45 + 1312LL))(v45);
return _stack_chk_guard;
case 0xBC1u:
v46 = SetupAreaFadeTriggerPopup::create((SetupAreaFadeTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v46 + 1312LL))(v46);
return _stack_chk_guard;
case 0xBC2u:
v47 = SetupAreaTintTriggerPopup::create((SetupAreaTintTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v47 + 1312LL))(v47);
return _stack_chk_guard;
}
if ( v13 - 3011 <= 4 )
{
v32 = SetupAreaAnimTriggerPopup::create(
(SetupAreaAnimTriggerPopup *)v12,
*(this + 112),
(cocos2d::CCArray *)v13,
(int)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v32 + 1312LL))(v32);
return _stack_chk_guard;
}
if ( v13 == 3024 )
{
v49 = (__int64)*(this + 112);
v129 = 0;
v130 = 0;
v131 = nullptr;
std::string::__init(&v129, "Stop Area Trigger", 0x11u);
v132 = 0;
v133 = 0;
v134 = nullptr;
std::string::__init(&v132, "EffectID:", 9u);
v50 = SetTargetIDLayer::create(v12, v49, &v129, &v132, 0, 9999, 3024);
goto LABEL_142;
}
if ( v14 )
{
v36 = SetupAreaTriggerPopup::create((SetupAreaTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v36 + 1312LL))(v36);
return _stack_chk_guard;
}
LABEL_21:
if ( v13 - 3017 <= 4 || v13 == 3023 )
{
v48 = SetupEnterEffectPopup::create((SetupEnterEffectPopup *)v12, *(this + 112), (cocos2d::CCArray *)v13, (int)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v48 + 1312LL))(v48);
return _stack_chk_guard;
}
if ( isBasicEnterEffect )
{
v52 = SetupEnterTriggerPopup::create((SetupEnterTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v52 + 1312LL))(v52);
return _stack_chk_guard;
}
if ( v13 - 2904 <= 1 || v13 == 2907 || v13 - 2909 <= 8 || v13 - 2919 <= 5 )
{
v43 = SetupShaderEffectPopup::create(
(SetupShaderEffectPopup *)v12,
*(this + 112),
(cocos2d::CCArray *)v13,
(int)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v43 + 1312LL))(v43);
return _stack_chk_guard;
}
if ( v13 - 3029 <= 2 )
{
v53 = SetupArtSwitchPopup::create((SetupArtSwitchPopup *)v12, *(this + 112), (cocos2d::CCArray *)v13, (int)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v53 + 1312LL))(v53);
return _stack_chk_guard;
}
switch ( v13 )
{
case 0xB6Du:
v63 = SetupCameraModePopup::create((SetupCameraModePopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v63 + 1312LL))(v63);
return _stack_chk_guard;
case 0x3EFu:
v62 = SetupOpacityPopup::create((SetupOpacityPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v62 + 1312LL))(v62);
return _stack_chk_guard;
case 0x4F4u:
v61 = SetupSpawnPopup::create((SetupSpawnPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v61 + 1312LL))(v61);
return _stack_chk_guard;
case 0x3EEu:
v60 = SetupPulsePopup::create((SetupPulsePopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v60 + 1312LL))(v60);
return _stack_chk_guard;
case 0x383u:
v59 = ColorSelectPopup::create((ColorSelectPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v59 + 1312LL))(v59);
return _stack_chk_guard;
case 0x419u:
goto LABEL_151;
case 0x5F0u:
v55 = SetupShakePopup::create((SetupShakePopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v55 + 1312LL))(v55);
return _stack_chk_guard;
case 0x631u:
v54 = SetupAnimationPopup::create((SetupAnimationPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v54 + 1312LL))(v54);
return _stack_chk_guard;
case 0xBD9u:
v64 = SetupKeyframeAnimPopup::create((SetupKeyframeAnimPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v64 + 1312LL))(v64);
return _stack_chk_guard;
case 0xBD8u:
v65 = SetupKeyframePopup::create((SetupKeyframePopup *)v12, *(this + 112), *(this + 180), v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v65 + 1312LL))(v65);
return _stack_chk_guard;
case 0xE10u:
v86 = SetupPlatformerEndPopup::create((SetupPlatformerEndPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v86 + 1312LL))(v86);
return _stack_chk_guard;
case 0x385u:
v85 = SetupMoveCommandPopup::create((SetupMoveCommandPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v85 + 1312LL))(v85);
return _stack_chk_guard;
case 0x542u:
v90 = SetupRotateCommandPopup::create((SetupRotateCommandPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v90 + 1312LL))(v90);
return _stack_chk_guard;
case 0x543u:
v89 = GJFollowCommandLayer::create((GJFollowCommandLayer *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v89 + 1312LL))(v89);
return _stack_chk_guard;
case 0x716u:
v88 = GJPFollowCommandLayer::create((GJPFollowCommandLayer *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v88 + 1312LL))(v88);
return _stack_chk_guard;
case 0xBC8u:
v87 = SetupAdvFollowPopup::create((SetupAdvFollowPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v87 + 1312LL))(v87);
return _stack_chk_guard;
case 0xE4Cu:
v98 = SetupAdvFollowEditPhysicsPopup::create((SetupAdvFollowEditPhysicsPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v98 + 1312LL))(v98);
return _stack_chk_guard;
case 0xE4Du:
v97 = SetupAdvFollowRetargetPopup::create((SetupAdvFollowRetargetPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v97 + 1312LL))(v97);
return _stack_chk_guard;
case 0x813u:
v96 = SetupTransformPopup::create((SetupTransformPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v96 + 1312LL))(v96);
return _stack_chk_guard;
case 0x78Eu:
v95 = SetupSongTriggerPopup::create((SetupSongTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v95 + 1312LL))(v95);
return _stack_chk_guard;
case 0xE12u:
v94 = SetupSFXPopup::create((SetupSFXPopup *)v12, *(this + 112), nullptr, (int)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v94 + 1312LL))(v94);
return _stack_chk_guard;
case 0xE13u:
v93 = SetupSFXEditPopup::create((SetupSFXEditPopup *)v12, *(this + 112), nullptr, (bool)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v93 + 1312LL))(v93);
return _stack_chk_guard;
case 0xE15u:
v92 = SetupSFXEditPopup::create(
(SetupSFXEditPopup *)v12,
*(this + 112),
(cocos2d::CCArray *)((char *)&dword_0 + 1),
(bool)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v92 + 1312LL))(v92);
return _stack_chk_guard;
case 0xE14u:
v91 = SetupEventLinkPopup::create((SetupEventLinkPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v91 + 1312LL))(v91);
return _stack_chk_guard;
case 0x78Fu:
v125 = SetupTimeWarpPopup::create((SetupTimeWarpPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v125 + 1312LL))(v125);
return _stack_chk_guard;
case 0x7DFu:
v124 = SetupCameraRotatePopup2::create((SetupCameraRotatePopup2 *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v124 + 1312LL))(v124);
return _stack_chk_guard;
case 0x7E0u:
v123 = SetupCameraGuidePopup::create((SetupCameraGuidePopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v123 + 1312LL))(v123);
return _stack_chk_guard;
case 0xE3Du:
case 0x815u:
v122 = SetupForceBlockPopup::create((SetupForceBlockPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v122 + 1312LL))(v122);
return _stack_chk_guard;
case 0x812u:
v107 = SetupGravityTriggerPopup::create((SetupGravityTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v107 + 1312LL))(v107);
return _stack_chk_guard;
}
if ( v12 )
{
v19 = *((_DWORD *)v12 + 257);
if ( v19 == 2068 )
{
v121 = SetupRandAdvTriggerPopup::create((SetupRandAdvTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v121 + 1312LL))(v121);
return _stack_chk_guard;
}
if ( v19 == 3607 )
{
v120 = SetupSequenceTriggerPopup::create((SetupSequenceTriggerPopup *)v12, v9);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v120 + 1312LL))(v120);
return _stack_chk_guard;
}
}
switch ( v13 )
{
case 0x718u:
v84 = CollisionBlockPopup::create((CollisionBlockPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v84 + 1312LL))(v84);
return _stack_chk_guard;
case 0xBB7u:
v83 = SetupMGTrigger::create((SetupMGTrigger *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v83 + 1312LL))(v83);
return _stack_chk_guard;
case 0xE16u:
case 0xE1Cu:
v82 = SetupBGSpeedTrigger::create((SetupBGSpeedTrigger *)v12, *(this + 112), (cocos2d::CCArray *)v13, (int)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v82 + 1312LL))(v82);
return _stack_chk_guard;
case 0xE1Du:
v81 = UIObjectSettingsPopup::create((UIObjectSettingsPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v81 + 1312LL))(v81);
return _stack_chk_guard;
}
if ( v13 != 3662 )
{
switch ( v13 )
{
case 0x78Cu:
v79 = SetupPlayerControlPopup::create((SetupPlayerControlPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v79 + 1312LL))(v79);
return _stack_chk_guard;
case 0xE47u:
v78 = SetupObjectControlPopup::create((SetupObjectControlPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v78 + 1312LL))(v78);
return _stack_chk_guard;
case 0xE4Fu:
v77 = SetupProgressPopup::create((SetupProgressPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v77 + 1312LL))(v77);
return _stack_chk_guard;
}
if ( v13 - 200 <= 3 || v13 == 1334 )
{
v76 = MultiTriggerPopup::create((MultiTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v76 + 1312LL))(v76);
return _stack_chk_guard;
}
if ( !v12 )
{
v4 = 0;
goto LABEL_78;
}
v20 = *((_DWORD *)v12 + 257);
if ( v20 == 1931 )
{
v75 = SetupEndPopup::create((SetupEndPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v75 + 1312LL))(v75);
return _stack_chk_guard;
}
if ( v20 != 1812 )
{
if ( v20 == 1595 )
{
v74 = SetupTouchTogglePopup::create((SetupTouchTogglePopup *)v12, nullptr, v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v74 + 1312LL))(v74);
return _stack_chk_guard;
}
if ( v20 == 1611 )
{
v73 = SetupCountTriggerPopup::create((SetupCountTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v73 + 1312LL))(v73);
return _stack_chk_guard;
}
if ( v13 == 1811 )
{
v72 = SetupInstantCountPopup::create((SetupInstantCountPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v72 + 1312LL))(v72);
return _stack_chk_guard;
}
LABEL_78:
switch ( v13 )
{
case 0x719u:
v71 = SetupPickupTriggerPopup::create((SetupPickupTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v71 + 1312LL))(v71);
return _stack_chk_guard;
case 0xE1Eu:
v70 = SetupTimerTriggerPopup::create((SetupTimerTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v70 + 1312LL))(v70);
return _stack_chk_guard;
case 0xE1Fu:
v115 = SetupTimerEventTriggerPopup::create((SetupTimerEventTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v115 + 1312LL))(v115);
return _stack_chk_guard;
case 0xE21u:
v114 = SetupTimerControlTriggerPopup::create((SetupTimerControlTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v114 + 1312LL))(v114);
return _stack_chk_guard;
case 0xE22u:
v116 = SetupResetTriggerPopup::create((SetupResetTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v116 + 1312LL))(v116);
return _stack_chk_guard;
case 0xE23u:
v113 = SetupItemEditTriggerPopup::create((SetupItemEditTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v113 + 1312LL))(v113);
return _stack_chk_guard;
case 0xE24u:
v119 = SetupItemCompareTriggerPopup::create((SetupItemCompareTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v119 + 1312LL))(v119);
return _stack_chk_guard;
case 0xE39u:
v118 = SetupPersistentItemTriggerPopup::create((SetupPersistentItemTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v118 + 1312LL))(v118);
return _stack_chk_guard;
}
if ( v4 )
{
v21 = *((_DWORD *)v12 + 257);
if ( v21 == 1912 )
{
v99 = SetupRandTriggerPopup::create((SetupRandTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v99 + 1312LL))(v99);
return _stack_chk_guard;
}
if ( v21 == 1913 )
{
v69 = SetupZoomTriggerPopup::create((SetupZoomTriggerPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v69 + 1312LL))(v69);
return _stack_chk_guard;
}
if ( v13 != 1914 )
{
if ( v21 == 2062 )
{
v67 = SetupCameraEdgePopup::create((SetupCameraEdgePopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v67 + 1312LL))(v67);
return _stack_chk_guard;
}
if ( v21 == 1916 )
{
v66 = SetupCameraOffsetTrigger::create((SetupCameraOffsetTrigger *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v66 + 1312LL))(v66);
return _stack_chk_guard;
}
if ( GameObject::isConfigurablePortal((GameObject *)v12) )
{
v22 = SetupCameraModePopup::create(*(this + 187), *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v22 + 1312LL))(v22);
return _stack_chk_guard;
}
goto LABEL_196;
}
}
else if ( v13 != 1914 )
{
LABEL_196:
switch ( v13 )
{
case 0x650u:
v106 = SetupStopTriggerPopup::create(*(this + 187), *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v106 + 1312LL))(v106);
return _stack_chk_guard;
case 0xE18u:
v105 = SetupSpawnParticlePopup::create(*(this + 187), *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v105 + 1312LL))(v105);
return _stack_chk_guard;
case 0x717u:
v104 = SetupCollisionTriggerPopup::create(*(this + 187), *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v104 + 1312LL))(v104);
return _stack_chk_guard;
case 0xE19u:
v103 = SetupInstantCollisionTriggerPopup::create(*(this + 187), *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v103 + 1312LL))(v103);
return _stack_chk_guard;
case 0xE38u:
v102 = SetupCollisionStateTriggerPopup::create(*(this + 187), *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v102 + 1312LL))(v102);
return _stack_chk_guard;
}
if ( v13 != 3643 )
{
if ( !v15 )
{
v100 = *(this + 187);
if ( v100 )
{
if ( !GameObject::isBasicTrigger(v100) && (!((unsigned __int8)v16 | (v13 == 1917)) || v13 == 2903) )
{
v108 = *(this + 187);
if ( v108 && !GameObject::canChangeCustomColor(v108) )
{
v110 = ColorSelectPopup::create(*(this + 187), *(this + 112), v109);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v110 + 1312LL))(v110);
return _stack_chk_guard;
}
goto LABEL_220;
}
}
else if ( !((unsigned __int8)v16 | (v13 == 1917)) || v13 == 2903 )
{
LABEL_220:
if ( (unsigned int)cocos2d::CCArray::count(*(this + 112))
|| (v117 = *(this + 187)) != nullptr && GameObject::canChangeCustomColor(v117) )
{
v112 = CustomizeObjectLayer::create(*(this + 187), *(this + 112), v111);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v112 + 1312LL))(v112);
}
return _stack_chk_guard;
}
}
v101 = EditTriggersPopup::create(*(this + 187), *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v101 + 1312LL))(v101);
return _stack_chk_guard;
}
v56 = (__int64)*(this + 180);
v57 = *(this + 187);
LABEL_152:
v58 = SetupObjectTogglePopup::create(
v57,
*(this + 112),
(cocos2d::CCArray *)*(unsigned __int8 *)(*(_QWORD *)(v56 + 3272) + 341LL),
(bool)v11);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v58 + 1312LL))(v58);
return _stack_chk_guard;
}
v68 = SetupStaticCameraPopup::create((SetupStaticCameraPopup *)v12, *(this + 112), v10);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v68 + 1312LL))(v68);
return _stack_chk_guard;
}
LABEL_151:
v56 = (__int64)*(this + 180);
v57 = (SetupObjectTogglePopup *)v12;
goto LABEL_152;
}
v80 = (__int64)*(this + 112);
v129 = 0;
v130 = 0;
v131 = nullptr;
std::string::__init(&v129, "Visibility Link", 0xFu);
v132 = 0;
v133 = 0;
v134 = nullptr;
std::string::__init(&v132, "GroupID:", 8u);
v50 = SetTargetIDLayer::create(v12, v80, &v129, &v132, 0, 9999, 3662);
LABEL_142:
v51 = v50;
if ( (v132 & 1) != 0 )
operator delete(v134);
if ( (v129 & 1) != 0 )
operator delete(v131);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v51 + 1312LL))(v51);
return _stack_chk_guard;
}