//
// SetupTriggerPopup::addTitle from 0x54190c to 0x54199e (146 bytes)
//
// 94 xrefs:
// > GJRateLevelLayer::init @ 0x454724
// > CustomizeObjectSettingsPopup::init @ 0x463e02
// > SetupEnterTriggerPopup::init @ 0x4aab44
// > EditGameObjectPopup::init @ 0x4af50e
// > UISaveLoadLayer::init @ 0x4b33fe
// > SetupMoveCommandPopup::init @ 0x4b8e10
// > SetupObjectTogglePopup::init @ 0x4bb80e
// > SetupObjectTogglePopup::init @ 0x4bb9d2
// > SetupObjectTogglePopup::init @ 0x4bba14
// > SetupSpawnPopup::init @ 0x4bc550
// > SetupRotateCommandPopup::init @ 0x4e0d6a
// > SetItemIDLayer::init @ 0x4f2404
// > SetTargetIDLayer::init @ 0x4f2ae6
// > SetupAnimSettingsPopup::init @ 0x4f3bf0
// > SetupInstantCollisionTriggerPopup::init @ 0x4f53c6
// > SetupCollisionStateTriggerPopup::init @ 0x4f59ec
// > SetupInteractObjectPopup::init @ 0x4f6e84
// > SetupPickupTriggerPopup::init @ 0x4f8694
// > SetupRotatePopup::init @ 0x4f8dfc
// > SetupStaticCameraPopup::init @ 0x503ea2
// > SetupZoomTriggerPopup::init @ 0x5045fc
// > SetupPlatformerEndPopup::init @ 0x5065a8
// > SetupObjectOptions2Popup::init @ 0x50cf44
// > SetupTransformPopup::init @ 0x524612
// > SetupSongTriggerPopup::init @ 0x525204
// > SetupCameraRotatePopup2::init @ 0x5275f4
// > SetupOptionsTriggerPopup::init @ 0x540514
// > SetupRotateGameplayPopup::init @ 0x549994
// > SetupGameplayOffsetPopup::init @ 0x549f94
// > SetupTeleportPopup::init @ 0x54a6f4
// > SetupGradientPopup::init @ 0x550d50
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x551f44
// > SetupShaderEffectPopup::setupShockWave @ 0x55231e
// > SetupShaderEffectPopup::setupShockLine @ 0x552d86
// > SetupShaderEffectPopup::setupGlitch @ 0x553768
// > SetupShaderEffectPopup::setupChromatic @ 0x553ab4
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x553dc2
// > SetupShaderEffectPopup::setupPixelate @ 0x554200
// > SetupShaderEffectPopup::setupLensCircle @ 0x5545aa
// > SetupShaderEffectPopup::setupRadialBlur @ 0x554aa6
// > SetupShaderEffectPopup::setupMotionBlur @ 0x555032
// > SetupShaderEffectPopup::setupBulge @ 0x555676
// > SetupShaderEffectPopup::setupPinch @ 0x555b6e
// > SetupShaderEffectPopup::setupGrayscale @ 0x5561e0
// > SetupShaderEffectPopup::setupSepia @ 0x556482
// > SetupShaderEffectPopup::setupInvertColor @ 0x55662c
// > SetupShaderEffectPopup::setupHueShift @ 0x556976
// > SetupShaderEffectPopup::setupColorChange @ 0x556b38
// > SetupShaderEffectPopup::setupSplitScreen @ 0x556eec
// > SetupAreaMoveTriggerPopup::init @ 0x558dbc
// > SetupAreaTransformTriggerPopup::init @ 0x5596a0
// > SetupAreaRotateTriggerPopup::init @ 0x559bf4
// > SetupAreaFadeTriggerPopup::init @ 0x55a08c
// > SetupAreaTintTriggerPopup::init @ 0x55a5ee
// > SetupAreaTriggerPopup::init @ 0x55ac60
// > SetupAreaAnimTriggerPopup::init @ 0x55b15a
// > SetupEnterEffectPopup::init @ 0x55c9bc
// > SetupEnterEffectPopup::init @ 0x55cdac
// > SetupEnterEffectPopup::init @ 0x55cea6
// > SetupEnterEffectPopup::init @ 0x55d048
// > SetupEnterEffectPopup::init @ 0x55d14c
// > SetupEnterEffectPopup::init @ 0x55d3a4
// > SetupAdvFollowPopup::init @ 0x55f480
// > SetupAdvFollowEditPhysicsPopup::init @ 0x561834
// > SetupAdvFollowRetargetPopup::init @ 0x561ff0
// > SetupBGSpeedTrigger::init @ 0x563a08
// > SetupGravityTriggerPopup::init @ 0x563dec
// > SetupKeyframeAnimPopup::init @ 0x5734e4
// > SetupKeyframePopup::init @ 0x573c00
// > SetupReverbPopup::init @ 0x575c10
// > SetupSFXPopup::init @ 0x576344
// > SetupSFXEditPopup::init @ 0x576dd2
// > SetupEventLinkPopup::init @ 0x5782d0
// > SetupPlayerControlPopup::init @ 0x578754
// > SetupSpawnParticlePopup::init @ 0x578b04
// > SetupCheckpointPopup::init @ 0x579184
// > MultiTriggerPopup::init @ 0x5794e0
// > UIObjectSettingsPopup::init @ 0x5796f0
// > SetupResetTriggerPopup::init @ 0x579dea
// > SetupItemEditTriggerPopup::init @ 0x57abb0
// > SetupItemCompareTriggerPopup::init @ 0x57bdec
// > SetupCoinLayer::init @ 0x57ca2e
// > SetupPersistentItemTriggerPopup::init @ 0x57ccec
// > SetupAudioLineGuidePopup::init @ 0x57d08c
// > SetupCameraGuidePopup::init @ 0x57d564
// > SetupForceBlockPopup::init @ 0x57d918
// > SetupArtSwitchPopup::init @ 0x57df60
// > SetupStopTriggerPopup::init @ 0x57e268
// > SetupObjectControlPopup::init @ 0x57e688
// > SetupDashRingPopup::init @ 0x57e8e0
// > SelectEventLayer::init @ 0x57f27e
// > SetupTimerTriggerPopup::init @ 0x593c20
// > SetupTimerEventTriggerPopup::init @ 0x59415c
// > SetupTimerControlTriggerPopup::init @ 0x5944d0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCLabelBMFont *__fastcall SetupTriggerPopup::addTitle(int a1)
{
cocos2d::CCLabelBMFont *v2; // r4
cocos2d::CCDirector *v3; // r0
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7
cocos2d::CCSize v6; // [sp+4h] [bp-18h] BYREF
cocos2d::CCPoint v7; // [sp+Ch] [bp-10h] BYREF
v2 = cocos2d::CCLabelBMFont::create();
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**(_DWORD **)(a1 + 456) + 220))(*(_DWORD *)(a1 + 456), v2);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v2->setScale)(v2, 1056964608);
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v6, v3);
setPosition = v2->setPosition;
cocos2d::CCPoint::CCPoint(
&v7,
v6.width * 0.5,
(float)((float)(*(float *)(a1 + 540) * 0.5) + (float)(v6.height * 0.5)) - 14.0);
setPosition(v2, &v7);
return v2;
}