//
// SetupTriggerPopup::init from 0x14060ae90 to 0x14060b33d (1197 bytes)
//
// 133 xrefs:
// > AutoSaveSettingsLayer::init @ 0x14009b035
// > ClearPlatformerSavesOptionsPopup::init @ 0x1400a4593
// > CollisionBlockPopup::init @ 0x1400a4d4a
// > AdminActionConfirmPopup::init @ 0x1400a581d
// > AccountBanPopup::init @ 0x1400a6cdb
// > ReviewChoiceSheet::init @ 0x1400ae48e
// > AudioAssetsPopup::init @ 0x1400bdeaf
// > ReportPopup::init @ 0x1400c08fb
// > CommentOptionsPopup::init @ 0x1400c204d
// > AutoBackupOptionsPopup::init @ 0x1400cda95
// > ThreadMessageOptionsPopup::init @ 0x1400e546c
// > ThreadOptionsPopup::init @ 0x1400f4478
// > RenameThreadPopup::init @ 0x1400f9e24
// > ThreadSearchPopup::init @ 0x1400fb096
// > ThreadDescPopup::buildUI @ 0x1400fc9c1
// > DeathMarkerSettingsPopup::init @ 0x14011bf4a
// > DeathStatsPopup::init @ 0x14011e47e
// > DeathTrackerOptionsPopup::init @ 0x14011fc27
// > ColorSelectPopup::init @ 0x140126bd2
// > CustomizeObjectSettingsPopup::init @ 0x1401442dc
// > EasingSelectPopup::init @ 0x140175ec1
// > EditorWindowPopup::initWindow @ 0x14017de34
// > EditorSFXActionConfigLayer::init @ 0x14018357b
// > EditorSFXSettingsPopup::init @ 0x14018d3eb
// > EditorSoundBrowserLayer::init @ 0x14018dd06
// > EditorSoundConfigInfoLayer::init @ 0x140192160
// > SoundPackDescPopup::init @ 0x1401992b2
// > EditorSoundConfigUploadPopup::init @ 0x14019a879
// > EditorSoundsLayer::init @ 0x14019cdbd
// > GameSettingsLayer::create @ 0x1402c27e3
// > GJFollowCommandLayer::init @ 0x14037abdf
// > SetupMoveCommandPopup::init @ 0x14038e576
// > GJPFollowCommandLayer::init @ 0x1403986ae
// > EditTriggersPopup::init @ 0x14039a058
// > SetupEnterTriggerPopup::init @ 0x14039a404
// > GJOptionsLayer::init @ 0x14039ac59
// > EditGameObjectPopup::init @ 0x1403a5143
// > UIPOptionsLayer::init @ 0x1403ab955
// > SetupRotateCommandPopup::init @ 0x1403adf6b
// > KeybindingsLayer::init @ 0x1403d583b
// > GJRateLevelLayer::init @ 0x14041973c
// > CreatorSettingsPopup::init @ 0x1404484fa
// > KeybindCapturePopup::init @ 0x14044d374
// > PlatformerControlsPopup::init @ 0x14044f1bc
// > TouchControlEditLayer::create @ 0x140452357
// > ControlSlotsPopup::init @ 0x1404568f1
// > StartPosLayer::init @ 0x14045deb9
// > NotificationFilterPopup::init @ 0x14047916a
// > CreateStartPosPopup::init @ 0x1404dc431
// > SetupObjectOptions2Popup::init @ 0x140597866
// > SetItemIDLayer::init @ 0x14059800a
// > SetTargetIDLayer::init @ 0x140598e40
// > SetupAdvFollowPopup::init @ 0x14059959f
// > SetupAdvFollowEditPhysicsPopup::init @ 0x14059e906
// > SetupAdvFollowRetargetPopup::init @ 0x14059f98e
// > SetupAnimationPopup::init @ 0x1405a0584
// > SetupAnimSettingsPopup::init @ 0x1405a1925
// > SetupAreaMoveTriggerPopup::init @ 0x1405a2b98
// > SetupAreaTransformTriggerPopup::init @ 0x1405a5754
// > SetupAreaRotateTriggerPopup::init @ 0x1405a600a
// > SetupAreaFadeTriggerPopup::init @ 0x1405a6774
// > SetupAreaTintTriggerPopup::init @ 0x1405a6f9a
// > SetupAreaTriggerPopup::init @ 0x1405a7fa7
// > SetupAreaAnimTriggerPopup::init @ 0x1405a8598
// > SetupCameraEdgePopup::init @ 0x1405aa487
// > SetupCameraModePopup::init @ 0x1405ab5e7
// > SetupCameraOffsetTrigger::init @ 0x1405ac921
// > SetupCameraRotatePopup2::init @ 0x1405af266
// > SetupCollisionTriggerPopup::init @ 0x1405afa99
// > SetupInstantCollisionTriggerPopup::init @ 0x1405b05fb
// > SetupCollisionStateTriggerPopup::init @ 0x1405b111a
// > SetupCountTriggerPopup::init @ 0x1405b173d
// > SetupEndPopup::init @ 0x1405b2097
// > SetupPlatformerEndPopup::init @ 0x1405b2d2b
// > SetupEnterEffectPopup::init @ 0x1405b348f
// > SetupGradientPopup::init @ 0x1405b600f
// > SetupInstantCountPopup::init @ 0x1405b791b
// > SetupInteractObjectPopup::init @ 0x1405b9074
// > SetupKeyframeAnimPopup::init @ 0x1405b9cdb
// > SetupKeyframePopup::init @ 0x1405ba908
// > SetupMGTrigger::init @ 0x1405bc918
// > SetupBGSpeedTrigger::init @ 0x1405be188
// > SetupGravityTriggerPopup::init @ 0x1405be91c
// > SetupObjectTogglePopup::init @ 0x1405bf0fe
// > SetupOpacityPopup::init @ 0x1405bfd58
// > SetupOptionsTriggerPopup::init @ 0x1405cb81e
// > SetupPickupTriggerPopup::init @ 0x1405cc470
// > SetupPulsePopup::init @ 0x1405ccfbf
// > SetupRandAdvTriggerPopup::init @ 0x1405d2afa
// > SetupRandTriggerPopup::init @ 0x1405d4f48
// > SetupRotateGameplayPopup::init @ 0x1405d65fb
// > SetupGameplayOffsetPopup::init @ 0x1405d71c2
// > SetupRotatePopup::init @ 0x1405d7c0c
// > SetupSequenceTriggerPopup::init @ 0x1405d8618
// > SetupReverbPopup::init @ 0x1405dbcb5
// > SetupSFXPopup::init @ 0x1405dc789
// > SetupSFXEditPopup::init @ 0x1405dec72
// > SetupShaderEffectPopup::init @ 0x1405dfa0a
// > SetupShakePopup::init @ 0x1405ea66a
// > SetupSongTriggerPopup::init @ 0x1405f2622
// > SetupSpawnPopup::init @ 0x1405f3f2e
// > SetupStaticCameraPopup::init @ 0x1405f5b7b
// > SetupTeleportPopup::init @ 0x1405f68b0
// > SetupTimerTriggerPopup::init @ 0x1405f7e9f
// > SetupTimerEventTriggerPopup::init @ 0x1405f889b
// > SetupTimerControlTriggerPopup::init @ 0x1405f8f64
// > SetupTimeWarpPopup::init @ 0x1405f961d
// > SetupTouchTogglePopup::init @ 0x1405f9f44
// > SetupTransformPopup::init @ 0x1405fb0a3
// > SetupEventLinkPopup::init @ 0x1405fbfe2
// > SelectEventLayer::init @ 0x1405fc82c
// > SetupPlayerControlPopup::init @ 0x1405fdf92
// > SetupSpawnParticlePopup::init @ 0x1405fe684
// > SetupCheckpointPopup::init @ 0x1405ff1fb
// > MultiTriggerPopup::init @ 0x1405ff9d5
// > UIObjectSettingsPopup::init @ 0x1405ffd88
// > SetupResetTriggerPopup::init @ 0x140600bb8
// > SetupItemEditTriggerPopup::init @ 0x140601054
// > SetupItemCompareTriggerPopup::init @ 0x140603a3c
// > SetupCoinLayer::init @ 0x140605e38
// > SetupPersistentItemTriggerPopup::init @ 0x14060631b
// > SetupAudioLineGuidePopup::init @ 0x1406069a4
// > SetupCameraGuidePopup::init @ 0x14060734b
// > SetupForceBlockPopup::init @ 0x140607a2f
// > SetupArtSwitchPopup::init @ 0x140608485
// > SetupStopTriggerPopup::init @ 0x1406090ca
// > SetupObjectControlPopup::init @ 0x140609ad0
// > SetupProgressPopup::init @ 0x140609edf
// > SetupDashRingPopup::init @ 0x14060a5db
// > SetupZoomTriggerPopup::init @ 0x140615e69
// > ??> @ 0x1408e4d00
// > ??> @ 0x1408e4d10
// > ??> @ 0x14092fb04
//
// 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 11:35:14 +0000
//
bool __fastcall SetupTriggerPopup::init(
__int64 a1,
cocos2d::CCObject *a2,
cocos2d::CCObject *a3,
float a4,
float a5,
int a6,
int a7)
{
bool result; // al
__int64 v11; // rdx
__int64 v12; // rcx
cocos2d::CCObject *v13; // rax
__int64 v14; // rcx
cocos2d::CCObject *v15; // rax
__int64 v16; // rcx
cocos2d::CCObject *v17; // rax
__int64 v18; // rcx
cocos2d::CCObject *v19; // rax
__int64 v20; // rcx
cocos2d::CCObject *v21; // rax
__int64 v22; // rcx
cocos2d::CCObject *v23; // rax
__int64 v24; // rcx
cocos2d::CCObject *v25; // rax
__int64 v26; // rcx
cocos2d::CCObject *v27; // rax
__int64 v28; // rcx
cocos2d::CCObject *v29; // rax
__int64 v30; // rcx
cocos2d::CCObject *v31; // rax
__int64 v32; // rcx
cocos2d::CCObject *v33; // rax
__int64 v34; // rcx
cocos2d::CCObject *v35; // rax
__int64 v36; // rcx
cocos2d::CCObject *v37; // rax
__int64 v38; // rcx
cocos2d::CCObject *v39; // rax
__int64 v40; // rcx
cocos2d::CCObject *v41; // rax
__int64 v42; // rcx
cocos2d::CCObject *v43; // rax
__int64 v44; // rcx
cocos2d::CCObject *v45; // rax
__int64 v46; // rcx
cocos2d::CCObject *v47; // rcx
__int64 v48; // rax
__int64 v49; // rax
__int64 v50; // rbx
cocos2d::CCString *v51; // rax
const char *CString; // rax
__int64 v53; // rdi
__int64 v54; // rbx
__int64 v55; // rax
__int64 v56; // rbx
__int64 v57; // rax
__int64 v58; // rcx
__int64 v59; // rax
__int64 v60; // rdi
__int64 v61; // rbx
__int64 v62; // rax
__int64 v63; // rbx
__int64 v64; // rax
__int64 v65; // rax
__int64 v66; // rcx
__int64 *v67; // rdi
__int64 v68; // rbx
__int64 v69; // rax
__int64 v70; // rcx
cocos2d::CCObject *v71; // rax
float v72; // [rsp+30h] [rbp-68h] BYREF
float v73; // [rsp+34h] [rbp-64h]
_BYTE v74[8]; // [rsp+38h] [rbp-60h] BYREF
_BYTE v75[16]; // [rsp+40h] [rbp-58h] BYREF
result = FLAlertLayer::init_1(a1, 150);
if ( !result )
return result;
LOBYTE(v11) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1008LL))(a1, v11);
v13 = (cocos2d::CCObject *)cocos2d::CCArray::create(v12);
*(_QWORD *)(a1 + 896) = v13;
cocos2d::CCObject::retain(v13);
v15 = (cocos2d::CCObject *)cocos2d::CCArray::create(v14);
*(_QWORD *)(a1 + 912) = v15;
cocos2d::CCObject::retain(v15);
v17 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v16);
*(_QWORD *)(a1 + 760) = v17;
cocos2d::CCObject::retain(v17);
v19 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v18);
*(_QWORD *)(a1 + 768) = v19;
cocos2d::CCObject::retain(v19);
v21 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v20);
*(_QWORD *)(a1 + 752) = v21;
cocos2d::CCObject::retain(v21);
v23 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v22);
*(_QWORD *)(a1 + 776) = v23;
cocos2d::CCObject::retain(v23);
v25 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v24);
*(_QWORD *)(a1 + 824) = v25;
cocos2d::CCObject::retain(v25);
v27 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v26);
*(_QWORD *)(a1 + 832) = v27;
cocos2d::CCObject::retain(v27);
v29 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v28);
*(_QWORD *)(a1 + 840) = v29;
cocos2d::CCObject::retain(v29);
v31 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v30);
*(_QWORD *)(a1 + 848) = v31;
cocos2d::CCObject::retain(v31);
v33 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v32);
*(_QWORD *)(a1 + 928) = v33;
cocos2d::CCObject::retain(v33);
v35 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v34);
*(_QWORD *)(a1 + 936) = v35;
cocos2d::CCObject::retain(v35);
v37 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v36);
*(_QWORD *)(a1 + 920) = v37;
cocos2d::CCObject::retain(v37);
v39 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v38);
*(_QWORD *)(a1 + 944) = v39;
cocos2d::CCObject::retain(v39);
v41 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v40);
*(_QWORD *)(a1 + 952) = v41;
cocos2d::CCObject::retain(v41);
v43 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v42);
*(_QWORD *)(a1 + 784) = v43;
cocos2d::CCObject::retain(v43);
v45 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v44);
*(_QWORD *)(a1 + 984) = v45;
cocos2d::CCObject::retain(v45);
if ( a2 )
{
*(_QWORD *)(a1 + 680) = a2;
v47 = a2;
LABEL_6:
cocos2d::CCObject::retain(v47);
goto LABEL_7;
}
if ( a3 )
{
*(_QWORD *)(a1 + 688) = a3;
v47 = a3;
goto LABEL_6;
}
LABEL_7:
*(float *)(a1 + 736) = a5;
*(_DWORD *)(a1 + 740) = a7;
*(float *)(a1 + 732) = a4;
*(_BYTE *)(a1 + 596) = 1;
*(_BYTE *)(a1 + 744) = 1;
v48 = cocos2d::CCDirector::sharedDirector(v46);
cocos2d::CCDirector::getWinSize(v48, &v72);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v75, 0.0, 0.0, 80.0, 80.0);
v50 = v49;
v51 = cocos2d::CCString::createWithFormat("GJ_square0%i.png", a6);
CString = cocos2d::CCString::getCString(v51);
v53 = cocos2d::extension::CCScale9Sprite::create(CString, v50);
v54 = *(_QWORD *)v53;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v74, a4, a5);
(*(void (__fastcall **)(__int64, __int64))(v54 + 312))(v53, v55);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v53,
4294967294LL);
v56 = *(_QWORD *)v53;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v74, v72 * 0.5, (float)(v73 * 0.5) + *(float *)(a1 + 740));
(*(void (__fastcall **)(__int64, __int64))(v56 + 184))(v53, v57);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v53 + 64LL))(v53, 1);
if ( a6 == 7 )
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v75, 0.0, 0.0, 80.0, 80.0);
v60 = cocos2d::extension::CCScale9Sprite::create("GJ_square06.png", v59);
v61 = *(_QWORD *)v60;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v74, a4, a5);
(*(void (__fastcall **)(__int64, __int64))(v61 + 312))(v60, v62);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(
*(_QWORD *)(a1 + 584),
v60,
4294967294LL);
v63 = *(_QWORD *)v60;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v74, v72 * 0.5, (float)(v73 * 0.5) + *(float *)(a1 + 740));
(*(void (__fastcall **)(__int64, __int64))(v63 + 184))(v60, v64);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v60 + 64LL))(v60, 3);
}
v65 = cocos2d::CCMenu::create(v58);
v66 = *(_QWORD *)(a1 + 584);
*(_QWORD *)(a1 + 552) = v65;
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v66 + 456LL))(v66, v65, 10);
v67 = *(__int64 **)(a1 + 552);
v68 = *v67;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v74,
v72 * 0.5,
(float)((float)((float)(v73 * 0.5) - (float)(a5 * 0.5)) + 24.0) + *(float *)(a1 + 740));
(*(void (__fastcall **)(__int64 *, __int64))(v68 + 184))(v67, v69);
*(_DWORD *)(a1 + 640) = -1;
v71 = (cocos2d::CCObject *)cocos2d::CCArray::create(v70);
*(_QWORD *)(a1 + 720) = v71;
cocos2d::CCObject::retain(v71);
return 1;
}