//
// SetupTriggerPopup::addHelpButton from 0x100235f30 to 0x10023608d (349 bytes)
//
// 90 xrefs:
// > SetupRotateCommandPopup::init @ 0x10000544e
// > SetupPickupTriggerPopup::init @ 0x100058ca6
// > SetupAnimSettingsPopup::init @ 0x10009ad2b
// > SetItemIDLayer::init @ 0x10009c2e8
// > CustomizeObjectSettingsPopup::init @ 0x1001f9938
// > SetupKeyframeAnimPopup::init @ 0x1001fedbe
// > SetupKeyframePopup::init @ 0x1001fff55
// > SetupSpawnPopup::init @ 0x10028f583
// > SetupEnterTriggerPopup::init @ 0x10029b11b
// > SetTargetIDLayer::init @ 0x1002ba073
// > SetupShaderEffectPopup::setupShockWave @ 0x1002c64f6
// > SetupShaderEffectPopup::setupShockLine @ 0x1002c7966
// > SetupShaderEffectPopup::setupGlitch @ 0x1002c8c5b
// > SetupShaderEffectPopup::setupChromatic @ 0x1002c92c6
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x1002c9841
// > SetupShaderEffectPopup::setupPixelate @ 0x1002ca056
// > SetupShaderEffectPopup::setupLensCircle @ 0x1002ca719
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1002cb0a9
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002cbb49
// > SetupShaderEffectPopup::setupBulge @ 0x1002cc784
// > SetupShaderEffectPopup::setupPinch @ 0x1002cd0a4
// > SetupShaderEffectPopup::setupGrayscale @ 0x1002cdd05
// > SetupShaderEffectPopup::setupSepia @ 0x1002ce1cf
// > SetupShaderEffectPopup::setupInvertColor @ 0x1002ce48b
// > SetupShaderEffectPopup::setupHueShift @ 0x1002ceae6
// > SetupShaderEffectPopup::setupColorChange @ 0x1002cee14
// > SetupShaderEffectPopup::setupSplitScreen @ 0x1002cf47b
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x1002cf935
// > SetupSongTriggerPopup::init @ 0x1002d3288
// > SetupAdvFollowPopup::init @ 0x1003055cf
// > SetupAdvFollowEditPhysicsPopup::init @ 0x10030a86f
// > SetupAdvFollowRetargetPopup::init @ 0x10030b95e
// > SetupObjectOptions2Popup::init @ 0x10031b37e
// > SetupZoomTriggerPopup::init @ 0x100321488
// > SetupTeleportPopup::init @ 0x100358e88
// > SetupObjectTogglePopup::init @ 0x100375e2f
// > SetupObjectTogglePopup::init @ 0x100375f83
// > SetupObjectTogglePopup::init @ 0x10037607a
// > SetupInstantCollisionTriggerPopup::init @ 0x100397424
// > SetupCollisionStateTriggerPopup::init @ 0x10039807e
// > SetupStaticCameraPopup::init @ 0x10039b4f0
// > SetupTimerTriggerPopup::init @ 0x1003a0def
// > SetupTimerEventTriggerPopup::init @ 0x1003a194e
// > SetupTimerControlTriggerPopup::init @ 0x1003a20b1
// > SetupEnterEffectPopup::init @ 0x1003f0c39
// > SetupEnterEffectPopup::init @ 0x1003f105c
// > SetupEnterEffectPopup::init @ 0x1003f181c
// > SetupEnterEffectPopup::init @ 0x1003f1da7
// > SetupEnterEffectPopup::init @ 0x1003f21ab
// > SetupEnterEffectPopup::init @ 0x1003f2370
// > SetupReverbPopup::init @ 0x1004b7efa
// > SetupSFXPopup::init @ 0x1004b8d03
// > SetupSFXEditPopup::init @ 0x1004bb0d9
// > SetupCameraRotatePopup2::init @ 0x1004beca0
// > SetupGravityTriggerPopup::init @ 0x1004c5265
// > SetupAreaMoveTriggerPopup::init @ 0x1004d2278
// > SetupAreaTransformTriggerPopup::init @ 0x1004d5657
// > SetupAreaRotateTriggerPopup::init @ 0x1004d65db
// > SetupAreaFadeTriggerPopup::init @ 0x1004d73c8
// > SetupAreaTintTriggerPopup::init @ 0x1004d81dc
// > SetupAreaTriggerPopup::init @ 0x1004d99ae
// > SetupAreaAnimTriggerPopup::init @ 0x1004da64e
// > SetupBGSpeedTrigger::init @ 0x10050ab93
// > SetupInteractObjectPopup::init @ 0x10050e273
// > SetupTransformPopup::init @ 0x100510c73
// > SetupEventLinkPopup::init @ 0x1005776dd
// > SetupPlayerControlPopup::init @ 0x10057ad15
// > SetupSpawnParticlePopup::init @ 0x10057b546
// > SetupCheckpointPopup::init @ 0x10057c392
// > MultiTriggerPopup::init @ 0x10057cae1
// > UIObjectSettingsPopup::init @ 0x10057cf9f
// > SetupResetTriggerPopup::init @ 0x10057de89
// > SetupItemEditTriggerPopup::init @ 0x10057e3d9
// > SetupItemCompareTriggerPopup::init @ 0x100580c8d
// > SetupCoinLayer::init @ 0x100583045
// > SetupPersistentItemTriggerPopup::init @ 0x10058363e
// > SetupAudioLineGuidePopup::init @ 0x100583e12
// > SetupCameraGuidePopup::init @ 0x100584881
// > SetupForceBlockPopup::init @ 0x100585044
// > SetupArtSwitchPopup::init @ 0x100585b1d
// > SetupStopTriggerPopup::init @ 0x100586368
// > SetupObjectControlPopup::init @ 0x100586c67
// > SetupDashRingPopup::init @ 0x100587195
// > SetupRotatePopup::init @ 0x10059cd4f
// > SetupOptionsTriggerPopup::init @ 0x1005e6ee5
// > SetupGradientPopup::init @ 0x1005f1940
// > SetupMoveCommandPopup::init @ 0x100607619
// > SetupPlatformerEndPopup::init @ 0x100669f67
// > SetupRotateGameplayPopup::init @ 0x100797b78
// > SetupGameplayOffsetPopup::init @ 0x1007989a1
//
// 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
//
__int64 __fastcall SetupTriggerPopup::addHelpButton(__int64 a1, __int64 a2, __int128 *a3, __m128 a4)
{
_DWORD *v5; // r14
const cocos2d::CCPoint *v6; // rbx
char v8; // [rsp+0h] [rbp-80h] BYREF
_BYTE v9[8]; // [rsp+8h] [rbp-78h] BYREF
__m128 v10; // [rsp+10h] [rbp-70h] BYREF
void *v11; // [rsp+20h] [rbp-60h]
__int128 v12; // [rsp+30h] [rbp-50h] BYREF
void *__p; // [rsp+40h] [rbp-40h]
float v14[2]; // [rsp+54h] [rbp-2Ch] BYREF
__int32 v15; // [rsp+5Ch] [rbp-24h]
double v16; // 0:xmm0_8.8
v15 = a4.i32[0];
if ( (*(_BYTE *)a2 & 1) != 0 )
{
sub_100006B70(&v10, *(const void **)(a2 + 16), *(_QWORD *)(a2 + 8), *(double *)a4.i64);
if ( (*(_BYTE *)a3 & 1) != 0 )
goto LABEL_3;
}
else
{
v11 = *(void **)(a2 + 16);
a4 = *(__m128 *)a2;
v10 = *(__m128 *)a2;
if ( (*(_BYTE *)a3 & 1) != 0 )
{
LABEL_3:
sub_100006B70(&v12, *((const void **)a3 + 2), *((_QWORD *)a3 + 1), *(double *)a4.i64);
goto LABEL_6;
}
}
__p = *((void **)a3 + 2);
v12 = *a3;
LABEL_6:
v5 = (_DWORD *)InfoAlertButton::create(&v10, &v12, 1.0);
if ( (v12 & 1) != 0 )
operator delete(__p);
if ( (v10.i8[0] & 1) != 0 )
operator delete(v11);
v5[138] = v15;
(*(void (__fastcall **)(_QWORD, _DWORD *))(**(_QWORD **)(a1 + 544) + 440LL))(*(_QWORD *)(a1 + 544), v5);
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v14);
v6 = *(const cocos2d::CCPoint **)(a1 + 544);
sub_10028CBE0(
v9,
(float)((float)(v14[0] * 0.5) - (float)(*(float *)(a1 + 708) * 0.5)) + 18.0,
(float)((float)(0.5 * *(float *)(a1 + 712)) + (float)(v14[1] * 0.5)) + -18.0);
*(cocos2d::CCPoint *)&v16 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v8, v6);
return (*(__int64 (__fastcall **)(_DWORD *, char *, double))(*(_QWORD *)v5 + 184LL))(v5, &v8, v16);
}