//
// SetupTriggerPopup::addHelpButton from 0x541a18 to 0x541af4 (220 bytes)
//
// 90 xrefs:
// > CustomizeObjectSettingsPopup::init @ 0x463e4e
// > SetupEnterTriggerPopup::init @ 0x4aab92
// > SetupMoveCommandPopup::init @ 0x4b8e62
// > SetupObjectTogglePopup::init @ 0x4bb83a
// > SetupObjectTogglePopup::init @ 0x4bb9fe
// > SetupObjectTogglePopup::init @ 0x4bba40
// > SetupSpawnPopup::init @ 0x4bc59c
// > SetupRotateCommandPopup::init @ 0x4e0db6
// > SetItemIDLayer::init @ 0x4f2450
// > SetTargetIDLayer::init @ 0x4f2b58
// > SetupAnimSettingsPopup::init @ 0x4f3c3e
// > SetupInstantCollisionTriggerPopup::init @ 0x4f5410
// > SetupCollisionStateTriggerPopup::init @ 0x4f5a38
// > SetupInteractObjectPopup::init @ 0x4f6ed0
// > SetupPickupTriggerPopup::init @ 0x4f86e0
// > SetupRotatePopup::init @ 0x4f8e48
// > SetupStaticCameraPopup::init @ 0x503ed4
// > SetupZoomTriggerPopup::init @ 0x504648
// > SetupPlatformerEndPopup::init @ 0x5065f4
// > SetupObjectOptions2Popup::init @ 0x50cf90
// > SetupTransformPopup::init @ 0x524664
// > SetupSongTriggerPopup::init @ 0x525236
// > SetupCameraRotatePopup2::init @ 0x527640
// > SetupOptionsTriggerPopup::init @ 0x540560
// > SetupRotateGameplayPopup::init @ 0x5499de
// > SetupGameplayOffsetPopup::init @ 0x549fe0
// > SetupTeleportPopup::init @ 0x54a73e
// > SetupGradientPopup::init @ 0x550d82
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x551f76
// > SetupShaderEffectPopup::setupShockWave @ 0x552386
// > SetupShaderEffectPopup::setupShockLine @ 0x552dee
// > SetupShaderEffectPopup::setupGlitch @ 0x55379a
// > SetupShaderEffectPopup::setupChromatic @ 0x553ae6
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x553df4
// > SetupShaderEffectPopup::setupPixelate @ 0x554232
// > SetupShaderEffectPopup::setupLensCircle @ 0x5545dc
// > SetupShaderEffectPopup::setupRadialBlur @ 0x554ad8
// > SetupShaderEffectPopup::setupMotionBlur @ 0x555068
// > SetupShaderEffectPopup::setupBulge @ 0x5556a8
// > SetupShaderEffectPopup::setupPinch @ 0x555ba0
// > SetupShaderEffectPopup::setupGrayscale @ 0x556212
// > SetupShaderEffectPopup::setupSepia @ 0x5564b4
// > SetupShaderEffectPopup::setupInvertColor @ 0x55665e
// > SetupShaderEffectPopup::setupHueShift @ 0x5569a8
// > SetupShaderEffectPopup::setupColorChange @ 0x556b6a
// > SetupShaderEffectPopup::setupSplitScreen @ 0x556f1e
// > SetupAreaMoveTriggerPopup::init @ 0x558e08
// > SetupAreaTransformTriggerPopup::init @ 0x5596ec
// > SetupAreaRotateTriggerPopup::init @ 0x559c40
// > SetupAreaFadeTriggerPopup::init @ 0x55a0d8
// > SetupAreaTintTriggerPopup::init @ 0x55a638
// > SetupAreaTriggerPopup::init @ 0x55acac
// > SetupAreaAnimTriggerPopup::init @ 0x55b1a6
// > SetupEnterEffectPopup::init @ 0x55c9e8
// > SetupEnterEffectPopup::init @ 0x55cdd8
// > SetupEnterEffectPopup::init @ 0x55ced2
// > SetupEnterEffectPopup::init @ 0x55d074
// > SetupEnterEffectPopup::init @ 0x55d178
// > SetupEnterEffectPopup::init @ 0x55d3d0
// > SetupAdvFollowPopup::init @ 0x55f4b2
// > SetupAdvFollowEditPhysicsPopup::init @ 0x561868
// > SetupAdvFollowRetargetPopup::init @ 0x562022
// > SetupBGSpeedTrigger::init @ 0x563a80
// > SetupGravityTriggerPopup::init @ 0x563e38
// > SetupKeyframeAnimPopup::init @ 0x573530
// > SetupKeyframePopup::init @ 0x573c4e
// > SetupReverbPopup::init @ 0x575c5c
// > SetupSFXPopup::init @ 0x576390
// > SetupSFXEditPopup::init @ 0x576e46
// > SetupEventLinkPopup::init @ 0x57831c
// > SetupPlayerControlPopup::init @ 0x5787a0
// > SetupSpawnParticlePopup::init @ 0x578b50
// > SetupCheckpointPopup::init @ 0x5791d0
// > MultiTriggerPopup::init @ 0x57952c
// > UIObjectSettingsPopup::init @ 0x57973e
// > SetupResetTriggerPopup::init @ 0x579e36
// > SetupItemEditTriggerPopup::init @ 0x57ac26
// > SetupItemCompareTriggerPopup::init @ 0x57be62
// > SetupCoinLayer::init @ 0x57ca7a
// > SetupPersistentItemTriggerPopup::init @ 0x57cd38
// > SetupAudioLineGuidePopup::init @ 0x57d0d8
// > SetupCameraGuidePopup::init @ 0x57d5b0
// > SetupForceBlockPopup::init @ 0x57d964
// > SetupArtSwitchPopup::init @ 0x57dfb6
// > SetupStopTriggerPopup::init @ 0x57e2c0
// > SetupObjectControlPopup::init @ 0x57e6d4
// > SetupDashRingPopup::init @ 0x57e92c
// > SetupTimerTriggerPopup::init @ 0x593c6c
// > SetupTimerEventTriggerPopup::init @ 0x5941a8
// > SetupTimerControlTriggerPopup::init @ 0x59451c
//
// 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
//
int __fastcall SetupTriggerPopup::addHelpButton(int a1, int a2, int a3, int a4)
{
CCMenuItemSpriteExtra *v6; // r6
int v7; // r0
cocos2d::CCDirector *v8; // r0
cocos2d::CCNode *v9; // r10
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9
cocos2d::CCSize v12; // [sp+4h] [bp-1Ch] BYREF
cocos2d::CCPoint v13; // [sp+Ch] [bp-14h] BYREF
cocos2d::CCPoint v14; // [sp+14h] [bp-Ch] BYREF
sub_775C20(&v13);
sub_775C20(&v14);
v6 = InfoAlertButton::create((int)&v13, (int)&v14, 1065353216);
sub_774008(&v14);
sub_774008(&v13);
v7 = *(_DWORD *)(a1 + 440);
v6[1].m_nLuaID = a4;
(*(void (__fastcall **)(int, CCMenuItemSpriteExtra *))(*(_DWORD *)v7 + 220))(v7, v6);
v8 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v12, v8);
v9 = *(cocos2d::CCNode **)(a1 + 440);
setPosition = v6->setPosition;
cocos2d::CCPoint::CCPoint(
&v13,
(float)((float)(v12.width * 0.5) - (float)(*(float *)(a1 + 536) * 0.5)) + 18.0,
(float)((float)(*(float *)(a1 + 540) * 0.5) + (float)(v12.height * 0.5)) - 18.0);
cocos2d::CCNode::convertToNodeSpace(&v14, v9, &v13);
return ((int (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCPoint *))setPosition)(v6, &v14);
}