//
// SetupTriggerPopup::addHelpButton from 0x10021a870 to 0x10021a9d5 (357 bytes)
//
// 98 xrefs:
// > SetupRotateCommandPopup::init @ 0x100001743
// > SetupPickupTriggerPopup::init @ 0x10001e045
// > SetupAnimSettingsPopup::init @ 0x10006201e
// > sub_100063390 @ 0x1000634d9
// > CustomizeObjectSettingsPopup::init @ 0x1001dbd5b
// > SetupKeyframeAnimPopup::init @ 0x1001e189f
// > SetupKeyframePopup::init @ 0x1001e2839
// > sub_100272600 @ 0x10027273c
// > SetupSpawnPopup::init @ 0x10027aae6
// > sub_100285EA0 @ 0x100285fe5
// > sub_1002A7EA0 @ 0x1002a8046
// > SetupCountTriggerPopup::init @ 0x1002a9539
// > SetupShaderEffectPopup::setupShockWave @ 0x1002b31c6
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b4636
// > SetupShaderEffectPopup::setupGlitch @ 0x1002b592b
// > SetupShaderEffectPopup::setupChromatic @ 0x1002b5f96
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x1002b6511
// > SetupShaderEffectPopup::setupPixelate @ 0x1002b6d26
// > SetupShaderEffectPopup::setupLensCircle @ 0x1002b73e9
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1002b7d99
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002b8839
// > SetupShaderEffectPopup::setupBulge @ 0x1002b9464
// > SetupShaderEffectPopup::setupPinch @ 0x1002b9d74
// > SetupShaderEffectPopup::setupGrayscale @ 0x1002ba9d5
// > SetupShaderEffectPopup::setupSepia @ 0x1002bae9f
// > SetupShaderEffectPopup::setupInvertColor @ 0x1002bb15b
// > SetupShaderEffectPopup::setupHueShift @ 0x1002bb7b6
// > SetupShaderEffectPopup::setupColorChange @ 0x1002bbae4
// > SetupShaderEffectPopup::setupSplitScreen @ 0x1002bc14b
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x1002bc605
// > SetupSongTriggerPopup::init @ 0x1002bfe2b
// > sub_1002C1E30 @ 0x1002c1f71
// > SetupAdvFollowPopup::init @ 0x1002f01c2
// > sub_1002F5170 @ 0x1002f52c0
// > sub_1002F6130 @ 0x1002f6291
// > SetupObjectOptions2Popup::init @ 0x1003064e3
// > SetupZoomTriggerPopup::init @ 0x10030c70b
// > SetupTeleportPopup::init @ 0x10034447b
// > sub_100350460 @ 0x1003505b9
// > SetupObjectTogglePopup::init @ 0x10035f201
// > SetupObjectTogglePopup::init @ 0x10035f35b
// > SetupObjectTogglePopup::init @ 0x10035f484
// > SetupCollisionTriggerPopup::init @ 0x1003804b7
// > SetupInstantCollisionTriggerPopup::init @ 0x100381047
// > SetupCollisionStateTriggerPopup::init @ 0x100381a68
// > SetupTransformPopup::init @ 0x100384e53
// > sub_10038A630 @ 0x10038a772
// > sub_10038AFD0 @ 0x10038b141
// > sub_10038B5F0 @ 0x10038b722
// > SetupPulsePopup::init @ 0x100393b9b
// > sub_1003DDDD0 @ 0x1003ddf9d
// > sub_1003DDDD0 @ 0x1003de3c1
// > sub_1003DDDD0 @ 0x1003deb7f
// > sub_1003DDDD0 @ 0x1003df105
// > sub_1003DDDD0 @ 0x1003df509
// > sub_1003DDDD0 @ 0x1003df6ce
// > SetupReverbPopup::init @ 0x1004b0f2d
// > SetupSFXPopup::init @ 0x1004b1c30
// > SetupSFXEditPopup::init @ 0x1004b423f
// > sub_1004B7A70 @ 0x1004b7ba3
// > SetupGravityTriggerPopup::init @ 0x1004bf538
// > SetupAreaMoveTriggerPopup::init @ 0x1004cdcbb
// > SetupAreaTransformTriggerPopup::init @ 0x1004d0d2a
// > sub_1004D1A60 @ 0x1004d1b8e
// > sub_1004D2720 @ 0x1004d285b
// > SetupAreaTintTriggerPopup::init @ 0x1004d353f
// > SetupAreaTriggerPopup::init @ 0x1004d4bf1
// > SetupAreaAnimTriggerPopup::init @ 0x1004d5771
// > SetupBGSpeedTrigger::init @ 0x10050c31a
// > sub_10050F430 @ 0x10050f572
// > sub_100511B80 @ 0x100511d06
// > SetupEventLinkPopup::init @ 0x1005a4b1c
// > SetupPlayerControlPopup::init @ 0x1005a7ee8
// > sub_1005A84B0 @ 0x1005a85e4
// > SetupCheckpointPopup::init @ 0x1005a92b9
// > MultiTriggerPopup::init @ 0x1005a98d4
// > UIObjectSettingsPopup::init @ 0x1005a9c72
// > sub_1005AA8B0 @ 0x1005aa9cc
// > SetupItemEditTriggerPopup::init @ 0x1005aadcc
// > SetupItemCompareTriggerPopup::init @ 0x1005ad500
// > SetupCoinLayer::init @ 0x1005af6c3
// > SetupPersistentItemTriggerPopup::init @ 0x1005afb71
// > SetupAudioLineGuidePopup::init @ 0x1005b0285
// > SetupCameraGuidePopup::init @ 0x1005b0bd4
// > SetupForceBlockPopup::init @ 0x1005b1277
// > SetupArtSwitchPopup::init @ 0x1005b1c20
// > SetupStopTriggerPopup::init @ 0x1005b234e
// > sub_1005B2A90 @ 0x1005b2b9a
// > sub_1005B2E60 @ 0x1005b2f98
// > SetupDashRingPopup::init @ 0x1005b3698
// > SetupRotatePopup::init @ 0x10066e442
// > SetupOptionsTriggerPopup::init @ 0x1006ba5d8
// > SetupInstantCountPopup::init @ 0x1006bc17e
// > sub_1006C4830 @ 0x1006c4953
// > SetupMoveCommandPopup::init @ 0x1006def9e
// > SetupPlatformerEndPopup::init @ 0x100748e3a
// > SetupRotateGameplayPopup::init @ 0x10087845b
// > SetupGameplayOffsetPopup::init @ 0x100879164
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:27:01 +0000
//
__int64 __fastcall SetupTriggerPopup::addHelpButton(__int64 a1, __int128 *a2, __int128 *a3, float a4)
{
float *v6; // r14
__int64 v7; // rdi
__int64 v8; // rax
__int64 v9; // r15
_BYTE v11[8]; // [rsp+0h] [rbp-80h] BYREF
_BYTE v12[8]; // [rsp+8h] [rbp-78h] BYREF
__int128 v13; // [rsp+10h] [rbp-70h] BYREF
void *v14; // [rsp+20h] [rbp-60h]
__int128 v15; // [rsp+30h] [rbp-50h] BYREF
void *__p; // [rsp+40h] [rbp-40h]
float v17[2]; // [rsp+54h] [rbp-2Ch] BYREF
float v18; // [rsp+5Ch] [rbp-24h]
v18 = a4;
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_10001AD30(&v13, *((const void **)a2 + 2), *((_QWORD *)a2 + 1));
if ( (*(_BYTE *)a3 & 1) != 0 )
goto LABEL_3;
}
else
{
v14 = *((void **)a2 + 2);
v13 = *a2;
if ( (*(_BYTE *)a3 & 1) != 0 )
{
LABEL_3:
sub_10001AD30(&v15, *((const void **)a3 + 2), *((_QWORD *)a3 + 1));
goto LABEL_6;
}
}
__p = *((void **)a3 + 2);
v15 = *a3;
LABEL_6:
v6 = (float *)InfoAlertButton::create(&v13, &v15, 1.0);
if ( (v15 & 1) != 0 )
operator delete(__p);
if ( (v13 & 1) != 0 )
operator delete(v14);
v6[138] = v18;
v7 = *(_QWORD *)(a1 + 552);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 456LL))(v7, v6);
v8 = cocos2d::CCDirector::sharedDirector(v7, v6);
cocos2d::CCDirector::getWinSize(v17, v8);
v9 = *(_QWORD *)(a1 + 552);
sub_100278250(
v12,
(float)((float)(v17[0] * 0.5) - (float)(*(float *)(a1 + 732) * 0.5)) + 18.0,
(float)((float)((float)(0.5 * *(float *)(a1 + 736)) + (float)(v17[1] * 0.5)) + -18.0) + *(float *)(a1 + 740));
cocos2d::CCNode::convertToNodeSpace(v11, v9, v12);
return (*(__int64 (__fastcall **)(float *, _BYTE *))(*(_QWORD *)v6 + 184LL))(v6, v11);
}