//
// SetupTriggerPopup::addHelpButton from 0x140474a40 to 0x140474b9c (348 bytes)
//
// 90 xrefs:
// > CustomizeObjectSettingsPopup::init @ 0x1400aa281
// > SetupMoveCommandPopup::init @ 0x140280b88
// > SetupEnterTriggerPopup::init @ 0x14028f447
// > SetupRotateCommandPopup::init @ 0x1402a7ff8
// > SetupObjectOptions2Popup::init @ 0x140400c81
// > SetItemIDLayer::init @ 0x140401364
// > SetTargetIDLayer::init @ 0x140402163
// > SetupAdvFollowPopup::init @ 0x140402641
// > SetupAdvFollowEditPhysicsPopup::init @ 0x140407558
// > SetupAdvFollowRetargetPopup::init @ 0x1404084ae
// > SetupAnimSettingsPopup::init @ 0x14040a49f
// > SetupAreaMoveTriggerPopup::init @ 0x14040b700
// > SetupAreaTransformTriggerPopup::init @ 0x14040e2db
// > SetupAreaRotateTriggerPopup::init @ 0x14040eb96
// > SetupAreaFadeTriggerPopup::init @ 0x14040f2e8
// > SetupAreaTintTriggerPopup::init @ 0x14040fb07
// > SetupAreaTriggerPopup::init @ 0x140410a9a
// > SetupAreaAnimTriggerPopup::init @ 0x140411057
// > SetupCameraRotatePopup2::init @ 0x140417d00
// > SetupInstantCollisionTriggerPopup::init @ 0x14041a16e
// > SetupCollisionStateTriggerPopup::init @ 0x14041aba2
// > SetupPlatformerEndPopup::init @ 0x14041dd8e
// > SetupEnterEffectPopup::init @ 0x14041e81e
// > SetupEnterEffectPopup::init @ 0x14041ef08
// > SetupEnterEffectPopup::init @ 0x14041f1c9
// > SetupEnterEffectPopup::init @ 0x14041f54c
// > SetupEnterEffectPopup::init @ 0x14041f652
// > SetupEnterEffectPopup::init @ 0x14041fb21
// > SetupGradientPopup::init @ 0x140420c48
// > SetupInteractObjectPopup::init @ 0x140423cc1
// > SetupKeyframeAnimPopup::init @ 0x1404249f0
// > SetupKeyframePopup::init @ 0x14042568b
// > SetupBGSpeedTrigger::init @ 0x140428de0
// > SetupGravityTriggerPopup::init @ 0x1404293ff
// > SetupObjectTogglePopup::init @ 0x140429d14
// > SetupObjectTogglePopup::init @ 0x140429e9b
// > SetupOptionsTriggerPopup::init @ 0x1404360d6
// > SetupPickupTriggerPopup::init @ 0x140436d39
// > SetupRotateGameplayPopup::init @ 0x140441741
// > SetupGameplayOffsetPopup::init @ 0x140442206
// > SetupRotatePopup::init @ 0x140442c45
// > SetupReverbPopup::init @ 0x1404469fe
// > SetupSFXPopup::init @ 0x140447463
// > SetupSFXEditPopup::init @ 0x140449856
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x14044a850
// > SetupShaderEffectPopup::setupShockWave @ 0x14044b46e
// > SetupShaderEffectPopup::setupShockLine @ 0x14044c766
// > SetupShaderEffectPopup::setupGlitch @ 0x14044d8be
// > SetupShaderEffectPopup::setupChromatic @ 0x14044df40
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x14044e503
// > SetupShaderEffectPopup::setupPixelate @ 0x14044ed69
// > SetupShaderEffectPopup::setupLensCircle @ 0x14044f437
// > SetupShaderEffectPopup::setupRadialBlur @ 0x14044fd88
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1404507bf
// > SetupShaderEffectPopup::setupBulge @ 0x14045132e
// > SetupShaderEffectPopup::setupPinch @ 0x140451bf0
// > SetupShaderEffectPopup::setupGrayscale @ 0x1404527ce
// > SetupShaderEffectPopup::setupSepia @ 0x140452cc5
// > SetupShaderEffectPopup::setupInvertColor @ 0x140453016
// > SetupShaderEffectPopup::setupHueShift @ 0x140453652
// > SetupShaderEffectPopup::setupColorChange @ 0x1404539de
// > SetupShaderEffectPopup::setupSplitScreen @ 0x14045425a
// > SetupSongTriggerPopup::init @ 0x14045cb12
// > SetupSpawnPopup::init @ 0x14045e2da
// > SetupStaticCameraPopup::init @ 0x14045fed9
// > SetupTeleportPopup::init @ 0x140460bf4
// > SetupTimerTriggerPopup::init @ 0x140462008
// > SetupTimerEventTriggerPopup::init @ 0x140462989
// > SetupTimerControlTriggerPopup::init @ 0x140462f86
// > SetupTransformPopup::init @ 0x1404652ae
// > SetupEventLinkPopup::init @ 0x14046612b
// > SetupPlayerControlPopup::init @ 0x140467f72
// > SetupSpawnParticlePopup::init @ 0x140468680
// > SetupCheckpointPopup::init @ 0x140469188
// > MultiTriggerPopup::init @ 0x140469781
// > UIObjectSettingsPopup::init @ 0x140469bb0
// > SetupResetTriggerPopup::init @ 0x14046a914
// > SetupItemEditTriggerPopup::init @ 0x14046add9
// > SetupItemCompareTriggerPopup::init @ 0x14046d5e7
// > SetupCoinLayer::init @ 0x14046f6ea
// > SetupPersistentItemTriggerPopup::init @ 0x14046fc0d
// > SetupAudioLineGuidePopup::init @ 0x140470191
// > SetupCameraGuidePopup::init @ 0x140470b01
// > SetupForceBlockPopup::init @ 0x140471206
// > SetupArtSwitchPopup::init @ 0x140472085
// > SetupStopTriggerPopup::init @ 0x14047290f
// > SetupObjectControlPopup::init @ 0x14047307c
// > SetupDashRingPopup::init @ 0x1404733b9
// > SetupZoomTriggerPopup::init @ 0x14047e327
// > ??> @ 0x1406db4b0
//
// 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=3
void __fastcall SetupTriggerPopup::addHelpButton(__int64 a1, __int64 a2, __int64 a3, float a4)
{
__int64 v7; // rbx
__int64 v8; // rax
char *v9; // rdi
__int64 v10; // rcx
cocos2d::CCDirector *v11; // rax
__int64 v12; // rbx
struct cocos2d::CCPoint v13; // rax
float v14; // [rsp+20h] [rbp-A8h]
struct cocos2d::CCPoint v15; // [rsp+30h] [rbp-98h] BYREF
_BYTE v16[32]; // [rsp+38h] [rbp-90h] BYREF
_BYTE v17[32]; // [rsp+58h] [rbp-70h] BYREF
__int64 v18; // [rsp+78h] [rbp-50h]
__int64 v19; // [rsp+80h] [rbp-48h]
v18 = a2;
v19 = a3;
v7 = sub_14003BDB0((__int64)v16, a3);
v8 = sub_14003BDB0((__int64)v17, a2);
v9 = InfoAlertButton::create(v8, v7);
*((float *)v9 + 146) = a4;
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 544) + 448LL))(*(_QWORD *)(a1 + 544), v9);
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);
cocos2d::CCDirector::getWinSize(v11);
v12 = *(_QWORD *)v9;
cocos2d::CCPoint::CCPoint(
*(float *)(a1 + 708) * 0.5,
(float)((float)(v14 * 0.5) - (float)(*(float *)(a1 + 708) * 0.5)) + 18.0);
v13 = cocos2d::CCNode::convertToNodeSpace(*(cocos2d::CCNode **)(a1 + 544), &v15);
(*(void (__fastcall **)(char *, struct cocos2d::CCPoint))(v12 + 184))(v9, v13);
sub_14003A830(a2);
sub_14003A830(a3);
}