//
// SetupTriggerPopup::addTitle from 0x676c7c to 0x676d22 (166 bytes)
//
// 134 xrefs:
// > CreateStartPosPopup::init @ 0x49041c
// > GJRateLevelLayer::init @ 0x565c1e
// > GJRateLevelListLayer::init @ 0x566dd6
// > GJRateEditorSoundLayer::init @ 0x567888
// > CustomizeObjectSettingsPopup::init @ 0x57eeec
// > SetupEnterTriggerPopup::init @ 0x5d66be
// > EditGameObjectPopup::init @ 0x5d78b2
// > UISaveLoadLayer::init @ 0x5d913c
// > SetupMoveCommandPopup::init @ 0x5e75ce
// > SetupOpacityPopup::init @ 0x5e98a6
// > SetupObjectTogglePopup::init @ 0x5ea23c
// > SetupObjectTogglePopup::init @ 0x5ea2e0
// > SetupObjectTogglePopup::init @ 0x5ea358
// > SetupSpawnPopup::init @ 0x5eb186
// > SetupPulsePopup::init @ 0x5ed12a
// > CollisionBlockPopup::init @ 0x600d54
// > GJFollowCommandLayer::init @ 0x60f40e
// > GJPFollowCommandLayer::init @ 0x60fa62
// > SetupRotateCommandPopup::init @ 0x610308
// > SetItemIDLayer::init @ 0x6236c6
// > SetTargetIDLayer::init @ 0x623e6e
// > SetupAnimSettingsPopup::init @ 0x625186
// > SetupCollisionTriggerPopup::init @ 0x625a3e
// > SetupInstantCollisionTriggerPopup::init @ 0x626116
// > SetupCollisionStateTriggerPopup::init @ 0x626734
// > SetupCountTriggerPopup::init @ 0x626a6e
// > SetupInteractObjectPopup::init @ 0x627106
// > SetupInstantCountPopup::init @ 0x627d82
// > SetupPickupTriggerPopup::init @ 0x628882
// > SetupRotatePopup::init @ 0x628fce
// > SetupStaticCameraPopup::init @ 0x634bc8
// > SetupZoomTriggerPopup::init @ 0x63543c
// > SetupPlatformerEndPopup::init @ 0x6370a2
// > SetupObjectOptions2Popup::init @ 0x63c99a
// > SetupTransformPopup::init @ 0x657a60
// > SetupSongTriggerPopup::init @ 0x658756
// > SetupCameraRotatePopup2::init @ 0x659fba
// > SetupRandAdvTriggerPopup::init @ 0x65c1ea
// > SetupOptionsTriggerPopup::init @ 0x675b84
// > SetupCameraEdgePopup::init @ 0x67ee4e
// > SetupRotateGameplayPopup::init @ 0x67fa2a
// > SetupGameplayOffsetPopup::init @ 0x6800e6
// > SetupTeleportPopup::init @ 0x680840
// > SetupGradientPopup::init @ 0x687246
// > SetupShaderEffectPopup::setupShockWave @ 0x688270
// > SetupShaderEffectPopup::setupShockLine @ 0x688e38
// > SetupShaderEffectPopup::setupGlitch @ 0x689986
// > SetupShaderEffectPopup::setupChromatic @ 0x689d1e
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x68a080
// > SetupShaderEffectPopup::setupPixelate @ 0x68a53a
// > SetupShaderEffectPopup::setupLensCircle @ 0x68a954
// > SetupShaderEffectPopup::setupRadialBlur @ 0x68aeec
// > SetupShaderEffectPopup::setupMotionBlur @ 0x68b524
// > SetupShaderEffectPopup::setupBulge @ 0x68bc3c
// > SetupShaderEffectPopup::setupPinch @ 0x68c1bc
// > SetupShaderEffectPopup::setupGrayscale @ 0x68c902
// > SetupShaderEffectPopup::setupSepia @ 0x68cbec
// > SetupShaderEffectPopup::setupInvertColor @ 0x68cda6
// > SetupShaderEffectPopup::setupHueShift @ 0x68d138
// > SetupShaderEffectPopup::setupColorChange @ 0x68d312
// > SetupShaderEffectPopup::setupSplitScreen @ 0x68d6fe
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x68d9cc
// > SetupAreaMoveTriggerPopup::init @ 0x68feb2
// > SetupAreaTransformTriggerPopup::init @ 0x6907ce
// > SetupAreaRotateTriggerPopup::init @ 0x690dd2
// > SetupAreaFadeTriggerPopup::init @ 0x6912ee
// > SetupAreaTintTriggerPopup::init @ 0x691802
// > SetupAreaTriggerPopup::init @ 0x691f22
// > SetupAreaAnimTriggerPopup::init @ 0x69246c
// > SetupEnterEffectPopup::init @ 0x693fde
// > SetupEnterEffectPopup::init @ 0x69446e
// > SetupEnterEffectPopup::init @ 0x6945f6
// > SetupEnterEffectPopup::init @ 0x694822
// > SetupEnterEffectPopup::init @ 0x69494a
// > SetupEnterEffectPopup::init @ 0x694c0c
// > SetupAdvFollowEditPhysicsPopup::init @ 0x6966e0
// > SetupAdvFollowRetargetPopup::init @ 0x696fae
// > SetupAdvFollowPopup::init @ 0x697506
// > SetupBGSpeedTrigger::init @ 0x69b7d8
// > SetupGravityTriggerPopup::init @ 0x69bc0a
// > SetupKeyframeAnimPopup::init @ 0x6adb8e
// > SetupKeyframePopup::init @ 0x6ae27c
// > SetupReverbPopup::init @ 0x6b06b2
// > SetupSFXEditPopup::init @ 0x6b0c3e
// > SetupSFXPopup::init @ 0x6b17e0
// > SetupEventLinkPopup::init @ 0x6b36e6
// > SetupPlayerControlPopup::init @ 0x6b3ab6
// > SetupSpawnParticlePopup::init @ 0x6b3eda
// > SetupCheckpointPopup::init @ 0x6b4616
// > MultiTriggerPopup::init @ 0x6b49e4
// > UIObjectSettingsPopup::init @ 0x6b4c12
// > SetupResetTriggerPopup::init @ 0x6b5388
// > SetupCoinLayer::init @ 0x6b55c8
// > SetupPersistentItemTriggerPopup::init @ 0x6b5896
// > SetupCameraGuidePopup::init @ 0x6b5c9e
// > SetupForceBlockPopup::init @ 0x6b60c2
// > SetupObjectControlPopup::init @ 0x6b65a0
// > SetupProgressPopup::init @ 0x6b680a
// > SetupDashRingPopup::init @ 0x6b6c2a
// > SetupStopTriggerPopup::init @ 0x6b70ea
// > SetupAudioLineGuidePopup::init @ 0x6b7572
// > SetupArtSwitchPopup::init @ 0x6b7bee
// > SetupItemEditTriggerPopup::init @ 0x6b907e
// > SetupItemCompareTriggerPopup::init @ 0x6b9e46
// > SelectEventLayer::init @ 0x6bae40
// > SetupTimerTriggerPopup::init @ 0x6da08e
// > SetupTimerEventTriggerPopup::init @ 0x6da63a
// > SetupTimerControlTriggerPopup::init @ 0x6da9d4
// > AdminActionConfirmPopup::init @ 0x731516
// > ReviewChoiceSheet::init @ 0x7332e4
// > AutoBackupOptionsPopup::init @ 0x73de7e
// > NotificationFilterPopup::init @ 0x74408c
// > RenameThreadPopup::init @ 0x74dc88
// > ThreadSearchPopup::init @ 0x74e26a
// > ThreadMessageOptionsPopup::init @ 0x75387c
// > ThreadDescPopup::buildUI @ 0x753f32
// > ThreadOptionsPopup::init @ 0x7575a0
// > AudioAssetsPopup::init @ 0x760f76
// > AccountBanPopup::init @ 0x764782
// > CreatorSettingsPopup::init @ 0x765a78
// > DeathMarkerSettingsPopup::init @ 0x76e19a
// > DeathStatsPopup::init @ 0x76f31a
// > DeathTrackerOptionsPopup::init @ 0x7700be
// > EditorSFXActionConfigLayer::init @ 0x77c61a
// > EditorSFXSettingsPopup::init @ 0x78170a
// > SoundPackDescPopup::init @ 0x786684
// > EditorSoundConfigUploadPopup::init @ 0x789430
// > GridSettingsLayer::onBuildWindowContent @ 0x78e864
// > KeybindCapturePopup::init @ 0x79aa08
// > KeybindCapturePopup::init @ 0x79aa3a
// > PlatformerControlsPopup::init @ 0x79d212
// > CommentOptionsPopup::init @ 0x7a00bc
// > ReportPopup::init @ 0x7a0756
// > ControlSlotsPopup::init @ 0x7a3c98
//
// 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
//
int __fastcall SetupTriggerPopup::addTitle(int a1, unsigned __int8 *a2)
{
const char *v3; // r2
cocos2d::CCLabelBMFont *v4; // r0
int v5; // r4
cocos2d::CCDirector *v6; // r0
void (__fastcall *v7)(int, _BYTE *); // r7
float v9[2]; // [sp+4h] [bp-18h] BYREF
_BYTE v10[8]; // [sp+Ch] [bp-10h] BYREF
v3 = (const char *)*a2;
if ( ((unsigned __int8)v3 & 1) != 0 )
v4 = *((cocos2d::CCLabelBMFont **)a2 + 2);
else
v4 = (cocos2d::CCLabelBMFont *)(a2 + 1);
v5 = cocos2d::CCLabelBMFont::create(v4, "bigFont.fnt", v3);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v5);
v6 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v5 + 80))(v5, 1056964608);
cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v9);
v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v10,
v9[0] * 0.5,
(float)((float)((float)(*(float *)(a1 + 560) * 0.5) + (float)(v9[1] * 0.5)) - 14.0) + *(float *)(a1 + 564));
v7(v5, v10);
return v5;
}