//
// SetupTriggerPopup::addTitle from 0x140474830 to 0x14047492b (251 bytes)
//
// 95 xrefs:
// > CustomizeObjectSettingsPopup::init @ 0x1400aa197
// > SetupMoveCommandPopup::init @ 0x140280a5b
// > SetupEnterTriggerPopup::init @ 0x14028f31d
// > EditGameObjectPopup::init @ 0x14029afd2
// > UISaveLoadLayer::init @ 0x1402a4183
// > SetupRotateCommandPopup::init @ 0x1402a7eae
// > GJRateLevelLayer::init @ 0x1402f49e6
// > SetupObjectOptions2Popup::init @ 0x140400b57
// > SetItemIDLayer::init @ 0x14040120a
// > SetTargetIDLayer::init @ 0x140401f3a
// > SetupAdvFollowPopup::init @ 0x1404025fa
// > SetupAdvFollowEditPhysicsPopup::init @ 0x14040743e
// > SetupAdvFollowRetargetPopup::init @ 0x1404083a8
// > SetupAnimSettingsPopup::init @ 0x14040a361
// > SetupAreaMoveTriggerPopup::init @ 0x14040b5a6
// > SetupAreaTransformTriggerPopup::init @ 0x14040e1ac
// > SetupAreaRotateTriggerPopup::init @ 0x14040ea63
// > SetupAreaFadeTriggerPopup::init @ 0x14040f1b2
// > SetupAreaTintTriggerPopup::init @ 0x14040f9c6
// > SetupAreaTriggerPopup::init @ 0x14041095f
// > SetupAreaAnimTriggerPopup::init @ 0x140410f48
// > SetupCameraRotatePopup2::init @ 0x140417bbf
// > SetupInstantCollisionTriggerPopup::init @ 0x14041a019
// > SetupCollisionStateTriggerPopup::init @ 0x14041aa75
// > SetupPlatformerEndPopup::init @ 0x14041dc24
// > SetupEnterEffectPopup::init @ 0x14041e6fc
// > SetupEnterEffectPopup::init @ 0x14041eec6
// > SetupEnterEffectPopup::init @ 0x14041f0ca
// > SetupEnterEffectPopup::init @ 0x14041f507
// > SetupEnterEffectPopup::init @ 0x14041f60d
// > SetupEnterEffectPopup::init @ 0x14041fa5c
// > SetupGradientPopup::init @ 0x140420b26
// > SetupInteractObjectPopup::init @ 0x140423b78
// > SetupKeyframeAnimPopup::init @ 0x1404248cf
// > SetupKeyframePopup::init @ 0x140425542
// > SetupBGSpeedTrigger::init @ 0x140428c44
// > SetupGravityTriggerPopup::init @ 0x1404292eb
// > SetupObjectTogglePopup::init @ 0x140429aed
// > SetupObjectTogglePopup::init @ 0x140429c27
// > SetupObjectTogglePopup::init @ 0x140429d99
// > SetupOptionsTriggerPopup::init @ 0x140435f9e
// > SetupPickupTriggerPopup::init @ 0x140436be6
// > SetupRotateGameplayPopup::init @ 0x140441606
// > SetupGameplayOffsetPopup::init @ 0x1404420fe
// > SetupRotatePopup::init @ 0x140442b36
// > SetupReverbPopup::init @ 0x1404468d5
// > SetupSFXPopup::init @ 0x140447337
// > SetupSFXEditPopup::init @ 0x14044960b
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x14044a732
// > SetupShaderEffectPopup::setupShockWave @ 0x14044b2d8
// > SetupShaderEffectPopup::setupShockLine @ 0x14044c5e0
// > SetupShaderEffectPopup::setupGlitch @ 0x14044d7b1
// > SetupShaderEffectPopup::setupChromatic @ 0x14044de3e
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x14044e3fa
// > SetupShaderEffectPopup::setupPixelate @ 0x14044ec66
// > SetupShaderEffectPopup::setupLensCircle @ 0x14044f329
// > SetupShaderEffectPopup::setupRadialBlur @ 0x14044fc74
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1404506b0
// > SetupShaderEffectPopup::setupBulge @ 0x140451214
// > SetupShaderEffectPopup::setupPinch @ 0x140451aeb
// > SetupShaderEffectPopup::setupGrayscale @ 0x1404526c5
// > SetupShaderEffectPopup::setupSepia @ 0x140452bbc
// > SetupShaderEffectPopup::setupInvertColor @ 0x140452f07
// > SetupShaderEffectPopup::setupHueShift @ 0x140453560
// > SetupShaderEffectPopup::setupColorChange @ 0x1404538e9
// > SetupShaderEffectPopup::setupSplitScreen @ 0x14045415c
// > SetupSongTriggerPopup::init @ 0x14045c9fa
// > SetupSpawnPopup::init @ 0x14045e18c
// > SetupStaticCameraPopup::init @ 0x14045fdaa
// > SetupTeleportPopup::init @ 0x140460a9a
// > SetupTimerTriggerPopup::init @ 0x140461ed3
// > SetupTimerEventTriggerPopup::init @ 0x14046286c
// > SetupTimerControlTriggerPopup::init @ 0x140462ebf
// > SetupTransformPopup::init @ 0x140465159
// > SetupEventLinkPopup::init @ 0x140465ff9
// > SelectEventLayer::init @ 0x14046677b
// > SetupPlayerControlPopup::init @ 0x140467e40
// > SetupSpawnParticlePopup::init @ 0x140468523
// > SetupCheckpointPopup::init @ 0x140469042
// > MultiTriggerPopup::init @ 0x140469691
// > UIObjectSettingsPopup::init @ 0x140469a5f
// > SetupResetTriggerPopup::init @ 0x14046a7e9
// > SetupItemEditTriggerPopup::init @ 0x14046ac51
// > SetupItemCompareTriggerPopup::init @ 0x14046d481
// > SetupCoinLayer::init @ 0x14046f616
// > SetupPersistentItemTriggerPopup::init @ 0x14046facf
// > SetupAudioLineGuidePopup::init @ 0x140470062
// > SetupCameraGuidePopup::init @ 0x1404709cf
// > SetupForceBlockPopup::init @ 0x1404710b4
// > SetupArtSwitchPopup::init @ 0x140471f97
// > SetupStopTriggerPopup::init @ 0x1404726ed
// > SetupObjectControlPopup::init @ 0x140472fd9
// > SetupDashRingPopup::init @ 0x140473290
// > SetupZoomTriggerPopup::init @ 0x14047e20d
// > ??> @ 0x1406db498
//
// 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
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCLabelBMFont *__fastcall SetupTriggerPopup::addTitle(__int64 a1, const char *a2)
{
const char *v4; // rcx
struct cocos2d::CCLabelBMFont *v5; // rdi
__int64 v6; // rcx
cocos2d::CCDirector *v7; // rax
cocos2d::CCLabelBMFont_vtbl *v8; // rbx
const cocos2d::CCPoint *v9; // rax
float v11; // [rsp+20h] [rbp-48h]
float v12; // [rsp+24h] [rbp-44h]
v4 = a2;
if ( *((_QWORD *)a2 + 3) > 0xFu )
v4 = *(const char **)a2;
v5 = cocos2d::CCLabelBMFont::create(v4, &qword_14052A4D8);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 576) + 448LL))(
*(_QWORD *)(a1 + 576),
v5);
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v5->setScale_0)(v5);
v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7);
v8 = v5->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v12 * 0.5, v11 * 0.5);
v8->setPosition_0(v5, v9);
sub_14003A830((__int64)a2);
return v5;
}