//
// SetupTriggerPopup::init from 0xb1a87c to 0xb1ac50 (980 bytes)
//
// 138 xrefs:
// > CreateStartPosPopup::init @ 0x7d738c
// > ColorSelectPopup::init @ 0x863e48
// > GJRateLevelLayer::init @ 0x952544
// > GJRateEditorSoundLayer::init @ 0x953bd0
// > GJRateLevelListLayer::init @ 0x955390
// > CustomizeObjectSettingsPopup::init @ 0x984288
// > KeybindingsLayer::init @ 0x9974e8
// > EditTriggersPopup::init @ 0xa2252c
// > SetupEnterTriggerPopup::init @ 0xa22aa8
// > GJOptionsLayer::init @ 0xa23898
// > EditGameObjectPopup::init @ 0xa24954
// > UIPOptionsLayer::init @ 0xa25be8
// > UISaveLoadLayer::init @ 0xa27454
// > UIOptionsLayer::init @ 0xa2cde8
// > SetupMoveCommandPopup::init @ 0xa3de24
// > SetupOpacityPopup::init @ 0xa412f4
// > SetupObjectTogglePopup::init @ 0xa41f78
// > SetupSpawnPopup::init @ 0xa43690
// > SetupPulsePopup::init @ 0xa468c4
// > CollisionBlockPopup::init @ 0xa647f8
// > GJFollowCommandLayer::init @ 0xa7a018
// > GJPFollowCommandLayer::init @ 0xa7a8a4
// > SetupRotateCommandPopup::init @ 0xa7b440
// > SetItemIDLayer::init @ 0xa97e70
// > SetTargetIDLayer::init @ 0xa988c4
// > SetupAnimationPopup::init @ 0xa9976c
// > SetupAnimSettingsPopup::init @ 0xa9a65c
// > SetupCollisionTriggerPopup::init @ 0xa9b2ac
// > SetupInstantCollisionTriggerPopup::init @ 0xa9becc
// > SetupCollisionStateTriggerPopup::init @ 0xa9ca3c
// > SetupCountTriggerPopup::init @ 0xa9d0bc
// > SetupInteractObjectPopup::init @ 0xa9d998
// > SetupInstantCountPopup::init @ 0xa9edb4
// > SetupPickupTriggerPopup::init @ 0xa9fd14
// > SetupRotatePopup::init @ 0xaa07d8
// > SetupShakePopup::init @ 0xaa1bec
// > SetupTouchTogglePopup::init @ 0xaa2e10
// > SetupCameraOffsetTrigger::init @ 0xaaf1c4
// > SetupStaticCameraPopup::init @ 0xab18f4
// > SetupZoomTriggerPopup::init @ 0xab2498
// > SetupRandTriggerPopup::init @ 0xab35d0
// > SetupEndPopup::init @ 0xab4780
// > SetupPlatformerEndPopup::init @ 0xab4ff4
// > SetupObjectOptions2Popup::init @ 0xabe21c
// > SetupTransformPopup::init @ 0xae94c8
// > SetupSongTriggerPopup::init @ 0xaea778
// > SetupTimeWarpPopup::init @ 0xaeb65c
// > SetupCameraRotatePopup2::init @ 0xaece00
// > SetupCameraRotatePopup::init @ 0xaed574
// > SetupRandAdvTriggerPopup::init @ 0xaf0218
// > SetupOptionsTriggerPopup::init @ 0xb19cfc
// > SetupTriggerPopup::create @ 0xb1ae8c
// > SetupCameraEdgePopup::init @ 0xb2565c
// > SetupRotateGameplayPopup::init @ 0xb26670
// > SetupGameplayOffsetPopup::init @ 0xb271a8
// > SetupTeleportPopup::init @ 0xb27dfc
// > SetupGradientPopup::init @ 0xb30b0c
// > SetupShaderEffectPopup::init @ 0xb3aa3c
// > SetupAreaAnimTriggerPopup::init @ 0xb3c740
// > SetupAreaMoveTriggerPopup::init @ 0xb3f130
// > SetupAreaTransformTriggerPopup::init @ 0xb40050
// > SetupAreaRotateTriggerPopup::init @ 0xb40aac
// > SetupAreaFadeTriggerPopup::init @ 0xb413d8
// > SetupAreaTintTriggerPopup::init @ 0xb41cfc
// > SetupAreaTriggerPopup::init @ 0xb428bc
// > SetupEnterEffectPopup::init @ 0xb43cd0
// > SetupCameraModePopup::init @ 0xb46204
// > SetupAdvFollowEditPhysicsPopup::init @ 0xb473c8
// > SetupAdvFollowRetargetPopup::init @ 0xb481fc
// > SetupAdvFollowPopup::init @ 0xb48bac
// > SetupMGTrigger::init @ 0xb4e254
// > SetupBGSpeedTrigger::init @ 0xb4f48c
// > SetupGravityTriggerPopup::init @ 0xb4fd38
// > StartPosLayer::init @ 0xb67e58
// > SetupKeyframeAnimPopup::init @ 0xb69468
// > SetupKeyframePopup::init @ 0xb69f38
// > SetupReverbPopup::init @ 0xb6cbe0
// > SetupSFXPopup::init @ 0xb6e6a4
// > SetupSFXEditPopup::init @ 0xb6f958
// > SetupEventLinkPopup::init @ 0xb72740
// > SetupPlayerControlPopup::init @ 0xb72eb8
// > SetupSpawnParticlePopup::init @ 0xb736ac
// > SetupCheckpointPopup::init @ 0xb74284
// > MultiTriggerPopup::init @ 0xb74a0c
// > UIObjectSettingsPopup::init @ 0xb74f38
// > SetupResetTriggerPopup::init @ 0xb75bdc
// > SetupCoinLayer::init @ 0xb76124
// > SetupPersistentItemTriggerPopup::init @ 0xb76734
// > SetupCameraGuidePopup::init @ 0xb76ee8
// > SetupForceBlockPopup::init @ 0xb77680
// > SetupObjectControlPopup::init @ 0xb77f1c
// > SetupProgressPopup::init @ 0xb7849c
// > SetupDashRingPopup::init @ 0xb78c68
// > SetupStopTriggerPopup::init @ 0xb794c4
// > SetupAudioLineGuidePopup::init @ 0xb79e3c
// > SetupArtSwitchPopup::init @ 0xb7a884
// > SetupItemEditTriggerPopup::init @ 0xb7c9e0
// > SetupItemCompareTriggerPopup::init @ 0xb7dfc8
// > SelectEventLayer::init @ 0xb7f97c
// > SetupSequenceTriggerPopup::init @ 0xb825b0
// > SetupTimerTriggerPopup::init @ 0xbb13b4
// > SetupTimerEventTriggerPopup::init @ 0xbb1db4
// > SetupTimerControlTriggerPopup::init @ 0xbb24d8
// > AutoSaveSettingsLayer::init @ 0xbca088
// > GameSettingsLayer::init @ 0xc081f4
// > AdminActionConfirmPopup::init @ 0xc3e174
// > ReviewChoiceSheet::init @ 0xc41674
// > AutoBackupOptionsPopup::init @ 0xc568d4
// > NotificationFilterPopup::init @ 0xc5ff28
// > RenameThreadPopup::init @ 0xc6eea0
// > ThreadSearchPopup::init @ 0xc6f8e4
// > ThreadMessageOptionsPopup::init @ 0xc79094
// > ThreadDescPopup::buildUI @ 0xc79c78
// > ThreadOptionsPopup::init @ 0xc7f114
// > ThreadOptionsPopup::init @ 0xc7f5d8
// > AudioAssetsPopup::init @ 0xc8e258
// > ClearPlatformerSavesOptionsPopup::init @ 0xc8f204
// > AccountBanPopup::init @ 0xc937f8
// > CreatorSettingsPopup::init @ 0xc96fb0
// > DeathMarkerSettingsPopup::init @ 0xca6148
// > DeathStatsPopup::init @ 0xca77f4
// > DeathTrackerOptionsPopup::init @ 0xca8d08
// > EasingSelectPopup::init @ 0xcbb544
// > EditorSFXActionConfigLayer::init @ 0xcbea5c
// > EditorSFXSettingsPopup::init @ 0xcc7cf8
// > EditorSoundBrowserLayer::init @ 0xcc9678
// > SoundPackDescPopup::init @ 0xccfbb4
// > EditorSoundConfigInfoLayer::init @ 0xcd0b1c
// > EditorSoundConfigUploadPopup::init @ 0xcd4970
// > EditorSoundsLayer::init @ 0xcd6c0c
// > EditorWindowPopup::initWindow @ 0xcd9480
// > KeybindCapturePopup::init @ 0xcf7244
// > PlatformerControlsPopup::init @ 0xcfad5c
// > CommentOptionsPopup::init @ 0xcff904
// > ReportPopup::init @ 0xd00494
// > ControlSlotsPopup::init @ 0xd05d44
// > TouchControlEditLayer::init @ 0xd0690c
// > ??> @ 0xe2870
//
// 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 13:01:34 +0000
//
__int64 __fastcall SetupTriggerPopup::init(
SetupTriggerPopup *this,
EffectGameObject *a2,
cocos2d::CCArray *a3,
float a4,
float a5,
unsigned int a6,
float a7)
{
unsigned __int8 v14; // w0
unsigned int v15; // w23
cocos2d::CCArray *v17; // x0
cocos2d::CCObject *v18; // x0
cocos2d::CCArray *v19; // x0
cocos2d::CCObject *v20; // x0
cocos2d::CCDictionary *v21; // x0
cocos2d::CCObject *v22; // x0
cocos2d::CCDictionary *v23; // x0
cocos2d::CCObject *v24; // x0
cocos2d::CCDictionary *v25; // x0
cocos2d::CCObject *v26; // x0
cocos2d::CCDictionary *v27; // x0
cocos2d::CCObject *v28; // x0
cocos2d::CCDictionary *v29; // x0
cocos2d::CCObject *v30; // x0
cocos2d::CCDictionary *v31; // x0
cocos2d::CCObject *v32; // x0
cocos2d::CCDictionary *v33; // x0
cocos2d::CCObject *v34; // x0
cocos2d::CCDictionary *v35; // x0
cocos2d::CCObject *v36; // x0
cocos2d::CCDictionary *v37; // x0
cocos2d::CCObject *v38; // x0
cocos2d::CCDictionary *v39; // x0
cocos2d::CCObject *v40; // x0
cocos2d::CCDictionary *v41; // x0
cocos2d::CCObject *v42; // x0
cocos2d::CCDictionary *v43; // x0
cocos2d::CCObject *v44; // x0
cocos2d::CCDictionary *v45; // x0
cocos2d::CCObject *v46; // x0
cocos2d::CCDictionary *v47; // x0
cocos2d::CCObject *v48; // x0
cocos2d::CCDictionary *v49; // x0
cocos2d::CCObject *v50; // x0
cocos2d::CCDirector *v51; // x0
cocos2d::CCString *v52; // x0
__int64 CString; // x22
__int64 v54; // x22
void (__fastcall *v55)(__int64, _BYTE *); // x25
void (__fastcall *v56)(__int64, _BYTE *); // x25
cocos2d::CCMenu *v57; // x0
__int64 v58; // x0
__int64 v59; // x22
void (__fastcall *v60)(__int64, _BYTE *); // x24
cocos2d::CCObject *v61; // x0
__int64 v62; // x22
void (__fastcall *v63)(__int64, _BYTE *); // x24
void (__fastcall *v64)(__int64, _BYTE *); // x24
__int64 v65; // [xsp+70h] [xbp+70h] BYREF
_BYTE v66[16]; // [xsp+78h] [xbp+78h] BYREF
v14 = FLAlertLayer::init(this, 150);
v15 = v14;
if ( v14 )
{
v17 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(SetupTriggerPopup *, __int64))(*(_QWORD *)this + 1088LL))(
this,
1);
v18 = (cocos2d::CCObject *)cocos2d::CCArray::create(v17);
*((_QWORD *)this + 114) = v18;
v19 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v18);
v20 = (cocos2d::CCObject *)cocos2d::CCArray::create(v19);
*((_QWORD *)this + 116) = v20;
v21 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v20);
v22 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v21);
*((_QWORD *)this + 95) = v22;
v23 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v22);
v24 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v23);
*((_QWORD *)this + 96) = v24;
v25 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v24);
v26 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v25);
*((_QWORD *)this + 94) = v26;
v27 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v26);
v28 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v27);
*((_QWORD *)this + 97) = v28;
v29 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v28);
v30 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v29);
*((_QWORD *)this + 103) = v30;
v31 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v30);
v32 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v31);
*((_QWORD *)this + 104) = v32;
v33 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v32);
v34 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v33);
*((_QWORD *)this + 105) = v34;
v35 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v34);
v36 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v35);
*((_QWORD *)this + 106) = v36;
v37 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v36);
v38 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v37);
*((_QWORD *)this + 118) = v38;
v39 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v38);
v40 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v39);
*((_QWORD *)this + 119) = v40;
v41 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v40);
v42 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v41);
*((_QWORD *)this + 117) = v42;
v43 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v42);
v44 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v43);
*((_QWORD *)this + 120) = v44;
v45 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v44);
v46 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v45);
*((_QWORD *)this + 121) = v46;
v47 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v46);
v48 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v47);
*((_QWORD *)this + 98) = v48;
v49 = (cocos2d::CCDictionary *)cocos2d::CCObject::retain(v48);
v50 = (cocos2d::CCObject *)cocos2d::CCDictionary::create(v49);
*((_QWORD *)this + 125) = v50;
cocos2d::CCObject::retain(v50);
if ( a2 )
{
*((_QWORD *)this + 85) = a2;
cocos2d::CCObject::retain(a2);
}
else if ( a3 )
{
*((_QWORD *)this + 86) = a3;
cocos2d::CCObject::retain(a3);
}
*((_BYTE *)this + 596) = (unsigned __int8)&dword_0 + 1;
*((_BYTE *)this + 744) = (unsigned __int8)&dword_0 + 1;
*((float *)this + 183) = a4;
*((float *)this + 184) = a5;
*((float *)this + 185) = a7;
v51 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1));
cocos2d::CCDirector::getWinSize(&v65, v51);
v52 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"GJ_square0%i.png",
(const char *)a6);
CString = cocos2d::CCString::getCString(v52);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v66, 0.0, 0.0, 80.0, 80.0);
v54 = cocos2d::extension::CCScale9Sprite::create(CString, v66);
v55 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v54 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v66, a4, a5);
v55(v54, v66);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v54,
4294967294LL);
v56 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v54 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v66,
*(float *)&v65 * 0.5,
*((float *)this + 185) + (float)(*((float *)&v65 + 1) * 0.5));
v56(v54, v66);
v57 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v54 + 72LL))(v54, 1);
if ( a6 == 7 )
{
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v66, 0.0, 0.0, 80.0, 80.0);
v62 = cocos2d::extension::CCScale9Sprite::create("GJ_square06.png", v66);
v63 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v62 + 320LL);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v66, a4, a5);
v63(v62, v66);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v62,
4294967294LL);
v64 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v62 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v66,
*(float *)&v65 * 0.5,
*((float *)this + 185) + (float)(*((float *)&v65 + 1) * 0.5));
v64(v62, v66);
v57 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v62 + 72LL))(v62, 3);
}
v58 = cocos2d::CCMenu::create(v57);
*((_QWORD *)this + 69) = v58;
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))(
*((_QWORD *)this + 73),
v58,
10);
v59 = *((_QWORD *)this + 69);
v60 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v59 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v66,
*(float *)&v65 * 0.5,
(float)(24.0 - (float)((float)(a5 * 0.5) - (float)(*((float *)&v65 + 1) * 0.5))) + *((float *)this + 185));
v60(v59, v66);
*((_DWORD *)this + 160) = -1;
v61 = (cocos2d::CCObject *)cocos2d::CCArray::create((cocos2d::CCArray *)0xFFFFFFFFLL);
*((_QWORD *)this + 90) = v61;
cocos2d::CCObject::retain(v61);
}
return v15;
}