//
// SetupTriggerPopup::init from 0x676304 to 0x6765ec (744 bytes)
//
// 136 xrefs:
// > CreateStartPosPopup::init @ 0x4903ec
// > ColorSelectPopup::init @ 0x4dfad0
// > GJRateLevelLayer::init @ 0x565bcc
// > GJRateLevelListLayer::init @ 0x566d8c
// > GJRateEditorSoundLayer::init @ 0x56783c
// > CustomizeObjectSettingsPopup::init @ 0x57eeba
// > KeybindingsLayer::init @ 0x58a846
// > EditTriggersPopup::init @ 0x5d63d4
// > SetupEnterTriggerPopup::init @ 0x5d6688
// > GJOptionsLayer::init @ 0x5d6fa8
// > EditGameObjectPopup::init @ 0x5d7886
// > UIPOptionsLayer::init @ 0x5d82b0
// > UISaveLoadLayer::init @ 0x5d90ea
// > UIOptionsLayer::init @ 0x5dc548
// > SetupMoveCommandPopup::init @ 0x5e7570
// > SetupOpacityPopup::init @ 0x5e9868
// > SetupObjectTogglePopup::init @ 0x5ea1d0
// > SetupSpawnPopup::init @ 0x5eb158
// > SetupPulsePopup::init @ 0x5ed0d6
// > CollisionBlockPopup::init @ 0x600d1c
// > GJFollowCommandLayer::init @ 0x60f3e0
// > GJPFollowCommandLayer::init @ 0x60fa36
// > SetupRotateCommandPopup::init @ 0x6102a6
// > SetItemIDLayer::init @ 0x623698
// > SetTargetIDLayer::init @ 0x623e2c
// > SetupAnimationPopup::init @ 0x6246b8
// > SetupAnimSettingsPopup::init @ 0x625158
// > SetupCollisionTriggerPopup::init @ 0x625a12
// > SetupInstantCollisionTriggerPopup::init @ 0x6260ea
// > SetupCollisionStateTriggerPopup::init @ 0x626708
// > SetupCountTriggerPopup::init @ 0x626a42
// > SetupInteractObjectPopup::init @ 0x6270da
// > SetupInstantCountPopup::init @ 0x627d50
// > SetupPickupTriggerPopup::init @ 0x628848
// > SetupRotatePopup::init @ 0x628fa0
// > SetupShakePopup::init @ 0x629cec
// > SetupTouchTogglePopup::init @ 0x62a9c2
// > SetupCameraOffsetTrigger::init @ 0x632e32
// > SetupStaticCameraPopup::init @ 0x634b66
// > SetupZoomTriggerPopup::init @ 0x635404
// > SetupRandTriggerPopup::init @ 0x635ec8
// > SetupEndPopup::init @ 0x636b6a
// > SetupPlatformerEndPopup::init @ 0x637074
// > SetupObjectOptions2Popup::init @ 0x63c968
// > SetupTransformPopup::init @ 0x657a00
// > SetupSongTriggerPopup::init @ 0x658726
// > SetupTimeWarpPopup::init @ 0x659280
// > SetupCameraRotatePopup2::init @ 0x659f8e
// > SetupCameraRotatePopup::init @ 0x65a61e
// > SetupRandAdvTriggerPopup::init @ 0x65c1a0
// > SetupOptionsTriggerPopup::init @ 0x675b58
// > SetupTriggerPopup::create @ 0x676804
// > SetupCameraEdgePopup::init @ 0x67ee0e
// > SetupRotateGameplayPopup::init @ 0x67f9fa
// > SetupGameplayOffsetPopup::init @ 0x6800b8
// > SetupTeleportPopup::init @ 0x68080e
// > SetupGradientPopup::init @ 0x687208
// > SetupShaderEffectPopup::init @ 0x68ddca
// > SetupAreaMoveTriggerPopup::init @ 0x68fe82
// > SetupAreaTransformTriggerPopup::init @ 0x69079e
// > SetupAreaRotateTriggerPopup::init @ 0x690da2
// > SetupAreaFadeTriggerPopup::init @ 0x6912be
// > SetupAreaTintTriggerPopup::init @ 0x6917d0
// > SetupAreaTriggerPopup::init @ 0x691ef2
// > SetupAreaAnimTriggerPopup::init @ 0x692438
// > SetupEnterEffectPopup::init @ 0x693d3e
// > SetupCameraModePopup::init @ 0x6958da
// > SetupAdvFollowEditPhysicsPopup::init @ 0x69668a
// > SetupAdvFollowRetargetPopup::init @ 0x696f58
// > SetupAdvFollowPopup::init @ 0x6974ae
// > SetupMGTrigger::init @ 0x69aba6
// > SetupBGSpeedTrigger::init @ 0x69b76a
// > SetupGravityTriggerPopup::init @ 0x69bbda
// > StartPosLayer::init @ 0x6acd72
// > SetupKeyframeAnimPopup::init @ 0x6adb60
// > SetupKeyframePopup::init @ 0x6ae1d2
// > SetupReverbPopup::init @ 0x6b0684
// > SetupSFXEditPopup::init @ 0x6b0bfa
// > SetupSFXPopup::init @ 0x6b17a6
// > SetupEventLinkPopup::init @ 0x6b36b8
// > SetupPlayerControlPopup::init @ 0x6b3a8a
// > SetupSpawnParticlePopup::init @ 0x6b3eac
// > SetupCheckpointPopup::init @ 0x6b45e8
// > MultiTriggerPopup::init @ 0x6b49b8
// > UIObjectSettingsPopup::init @ 0x6b4be4
// > SetupResetTriggerPopup::init @ 0x6b535c
// > SetupCoinLayer::init @ 0x6b559a
// > SetupPersistentItemTriggerPopup::init @ 0x6b5868
// > SetupCameraGuidePopup::init @ 0x6b5c6e
// > SetupForceBlockPopup::init @ 0x6b6096
// > SetupObjectControlPopup::init @ 0x6b6574
// > SetupProgressPopup::init @ 0x6b67dc
// > SetupDashRingPopup::init @ 0x6b6bfe
// > SetupStopTriggerPopup::init @ 0x6b709c
// > SetupAudioLineGuidePopup::init @ 0x6b7542
// > SetupArtSwitchPopup::init @ 0x6b7b2e
// > SetupItemEditTriggerPopup::init @ 0x6b9050
// > SetupItemCompareTriggerPopup::init @ 0x6b9e18
// > SelectEventLayer::init @ 0x6bae14
// > SetupSequenceTriggerPopup::init @ 0x6bc444
// > SetupTimerTriggerPopup::init @ 0x6da060
// > SetupTimerEventTriggerPopup::init @ 0x6da60c
// > SetupTimerControlTriggerPopup::init @ 0x6da9a8
// > AutoSaveSettingsLayer::init @ 0x6e7268
// > GameSettingsLayer::init @ 0x712ed8
// > AdminActionConfirmPopup::init @ 0x731428
// > ReviewChoiceSheet::init @ 0x73329c
// > AutoBackupOptionsPopup::init @ 0x73de30
// > NotificationFilterPopup::init @ 0x744030
// > RenameThreadPopup::init @ 0x74dc32
// > ThreadSearchPopup::init @ 0x74e21e
// > ThreadMessageOptionsPopup::init @ 0x75380a
// > ThreadDescPopup::buildUI @ 0x753edc
// > ThreadOptionsPopup::init @ 0x757490
// > AudioAssetsPopup::init @ 0x760f22
// > ClearPlatformerSavesOptionsPopup::init @ 0x761af4
// > AccountBanPopup::init @ 0x7646ee
// > CreatorSettingsPopup::init @ 0x765a08
// > DeathMarkerSettingsPopup::init @ 0x76e148
// > DeathStatsPopup::init @ 0x76f2c8
// > DeathTrackerOptionsPopup::init @ 0x770068
// > EasingSelectPopup::init @ 0x779f96
// > EditorSFXActionConfigLayer::init @ 0x77c5b4
// > EditorSFXSettingsPopup::init @ 0x78165e
// > EditorSoundBrowserLayer::init @ 0x7826b8
// > SoundPackDescPopup::init @ 0x786626
// > EditorSoundConfigInfoLayer::init @ 0x786f48
// > EditorSoundConfigUploadPopup::init @ 0x7893b2
// > EditorSoundsLayer::init @ 0x78abda
// > EditorWindowPopup::initWindow @ 0x78c878
// > KeybindCapturePopup::init @ 0x79a938
// > PlatformerControlsPopup::init @ 0x79d174
// > CommentOptionsPopup::init @ 0x79ffe2
// > ReportPopup::init @ 0x7a06ac
// > ControlSlotsPopup::init @ 0x7a3c28
// > TouchControlEditLayer::init @ 0x7a4248
//
// 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:55:56 +0000
//
GameManager *__fastcall SetupTriggerPopup::init(
SetupTriggerPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3,
float a4,
float a5,
char *a6,
float a7)
{
GameManager *v11; // r11
cocos2d::CCArray *v12; // r0
cocos2d::CCObject *v13; // r0
cocos2d::CCArray *v14; // r0
cocos2d::CCObject *v15; // r0
cocos2d::CCDictionary *v16; // r0
cocos2d::CCObject *v17; // r0
cocos2d::CCDictionary *v18; // r0
cocos2d::CCObject *v19; // r0
cocos2d::CCDictionary *v20; // r0
cocos2d::CCObject *v21; // r0
cocos2d::CCDictionary *v22; // r0
cocos2d::CCObject *v23; // r0
cocos2d::CCDictionary *v24; // r0
cocos2d::CCObject *v25; // r0
cocos2d::CCDictionary *v26; // r0
cocos2d::CCObject *v27; // r0
cocos2d::CCDictionary *v28; // r0
cocos2d::CCObject *v29; // r0
cocos2d::CCDictionary *v30; // r0
cocos2d::CCObject *v31; // r0
cocos2d::CCDictionary *v32; // r0
cocos2d::CCObject *v33; // r0
cocos2d::CCDictionary *v34; // r0
cocos2d::CCObject *v35; // r0
cocos2d::CCDictionary *v36; // r0
cocos2d::CCObject *v37; // r0
cocos2d::CCDictionary *v38; // r0
cocos2d::CCObject *v39; // r0
cocos2d::CCDictionary *v40; // r0
cocos2d::CCObject *v41; // r0
cocos2d::CCDictionary *v42; // r0
cocos2d::CCObject *v43; // r0
cocos2d::CCDictionary *v44; // r0
cocos2d::CCObject *v45; // r0
cocos2d::CCDirector *v46; // r0
cocos2d::CCObject *v47; // r0
cocos2d::CCString *v48; // r0
int CString; // r6
int v50; // r6
cocos2d::CCMenu *v51; // r0
int v52; // r6
void (__fastcall *v53)(int, _BYTE *); // r8
void (__fastcall *v54)(int, _BYTE *); // r8
int v55; // r0
int v56; // r6
int (__fastcall *v57)(int, _BYTE *); // r8
cocos2d::CCArray *v58; // r0
cocos2d::CCObject *v59; // r0
void (__fastcall *v61)(int, _BYTE *); // [sp+Ch] [bp-28h]
void (__fastcall *v62)(int, _BYTE *); // [sp+Ch] [bp-28h]
float v63; // [sp+14h] [bp-20h] BYREF
float v64; // [sp+18h] [bp-1Ch]
_BYTE v65[16]; // [sp+1Ch] [bp-18h] BYREF
v11 = FLAlertLayer::init(this, 150);
if ( !v11 )
return v11;
v12 = (cocos2d::CCArray *)(*(int (__fastcall **)(SetupTriggerPopup *, int))(*(_DWORD *)this + 544))(this, 1);
v13 = (cocos2d::CCObject *)cocos2d::CCArray::create(v12);
*((_DWORD *)this + 164) = v13;
v14 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v13);
v15 = (cocos2d::CCObject *)cocos2d::CCArray::create(v14);
*((_DWORD *)this + 167) = v15;
v16 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v15);
v17 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v16);
*((_DWORD *)this + 144) = v17;
v18 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v17);
v19 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v18);
*((_DWORD *)this + 145) = v19;
v20 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v19);
v21 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v20);
*((_DWORD *)this + 143) = v21;
v22 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v21);
v23 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v22);
*((_DWORD *)this + 146) = v23;
v24 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v23);
v25 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v24);
*((_DWORD *)this + 153) = v25;
v26 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v25);
v27 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v26);
*((_DWORD *)this + 154) = v27;
v28 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v27);
v29 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v28);
*((_DWORD *)this + 155) = v29;
v30 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v29);
v31 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v30);
*((_DWORD *)this + 156) = v31;
v32 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v31);
v33 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v32);
*((_DWORD *)this + 169) = v33;
v34 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v33);
v35 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v34);
*((_DWORD *)this + 170) = v35;
v36 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v35);
v37 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v36);
*((_DWORD *)this + 168) = v37;
v38 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v37);
v39 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v38);
*((_DWORD *)this + 171) = v39;
v40 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v39);
v41 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v40);
*((_DWORD *)this + 172) = v41;
v42 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v41);
v43 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v42);
*((_DWORD *)this + 147) = v43;
v44 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v43);
v45 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v44);
*((_DWORD *)this + 176) = v45;
v46 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v45);
if ( a2 )
{
*((_DWORD *)this + 132) = a2;
v47 = a2;
LABEL_6:
v46 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v47);
goto LABEL_7;
}
if ( a3 )
{
v47 = a3;
*((_DWORD *)this + 133) = a3;
goto LABEL_6;
}
LABEL_7:
*((float *)this + 139) = a4;
*((float *)this + 140) = a5;
*((float *)this + 141) = a7;
*((_BYTE *)this + 468) = 1;
*((_BYTE *)this + 568) = 1;
cocos2d::CCDirector::sharedDirector(v46);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v63);
v48 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"GJ_square0%i.png", a6);
CString = cocos2d::CCString::getCString(v48);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v65, 0.0, 0.0, 80.0, 80.0);
v50 = cocos2d::extension::CCScale9Sprite::create(CString, v65);
v61 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v50 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v65, a4, a5);
v61(v50, v65);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v50, -2);
v62 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v50 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v65, v63 * 0.5, *((float *)this + 141) + (float)(v64 * 0.5));
v62(v50, v65);
v51 = (cocos2d::CCMenu *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v50 + 36))(v50, 1);
if ( a6 == &byte_7 )
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v65, 0.0, 0.0, 80.0, 80.0);
v52 = cocos2d::extension::CCScale9Sprite::create("GJ_square06.png", v65);
v53 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v52 + 160);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v65, a4, a5);
v53(v52, v65);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v52, -2);
v54 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v52 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v65, v63 * 0.5, *((float *)this + 141) + (float)(v64 * 0.5));
v54(v52, v65);
v51 = (cocos2d::CCMenu *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v52 + 36))(v52, 3);
}
v55 = cocos2d::CCMenu::create(v51);
*((_DWORD *)this + 111) = v55;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v55, 10);
v56 = *((_DWORD *)this + 111);
v57 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v56 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v65,
v63 * 0.5,
(float)((float)((float)(v64 * 0.5) - (float)(a5 * 0.5)) + 24.0) + *((float *)this + 141));
v58 = (cocos2d::CCArray *)v57(v56, v65);
*((_DWORD *)this + 125) = -1;
v59 = (cocos2d::CCObject *)cocos2d::CCArray::create(v58);
*((_DWORD *)this + 137) = v59;
cocos2d::CCObject::retain(v59);
return v11;
}