//
// SetupTriggerPopup::addHelpButton from 0xb1ede0 to 0xb1efc8 (488 bytes)
//
// 99 xrefs:
// > CustomizeObjectSettingsPopup::init @ 0x9843a0
// > SetupEnterTriggerPopup::init @ 0xa22bd4
// > SetupMoveCommandPopup::init @ 0xa3df7c
// > SetupObjectTogglePopup::init @ 0xa420bc
// > SetupObjectTogglePopup::init @ 0xa42564
// > SetupObjectTogglePopup::init @ 0xa42678
// > SetupSpawnPopup::init @ 0xa437ac
// > SetupPulsePopup::init @ 0xa46a70
// > CollisionBlockPopup::init @ 0xa64914
// > GJFollowCommandLayer::init @ 0xa7a12c
// > GJPFollowCommandLayer::init @ 0xa7a9bc
// > SetupRotateCommandPopup::init @ 0xa7b590
// > SetItemIDLayer::init @ 0xa97f88
// > SetTargetIDLayer::init @ 0xa98a38
// > SetupAnimSettingsPopup::init @ 0xa9a774
// > SetupCollisionTriggerPopup::init @ 0xa9b3c4
// > SetupInstantCollisionTriggerPopup::init @ 0xa9bfe0
// > SetupCollisionStateTriggerPopup::init @ 0xa9cb50
// > SetupCountTriggerPopup::init @ 0xa9d1cc
// > SetupInteractObjectPopup::init @ 0xa9dab0
// > SetupInstantCountPopup::init @ 0xa9eed8
// > SetupPickupTriggerPopup::init @ 0xa9fe3c
// > SetupRotatePopup::init @ 0xaa08f0
// > SetupStaticCameraPopup::init @ 0xab1a08
// > SetupZoomTriggerPopup::init @ 0xab25b8
// > SetupPlatformerEndPopup::init @ 0xab5108
// > SetupObjectOptions2Popup::init @ 0xabe338
// > SetupTransformPopup::init @ 0xae9614
// > SetupSongTriggerPopup::init @ 0xaea85c
// > SetupCameraRotatePopup2::init @ 0xaecf18
// > SetupOptionsTriggerPopup::init @ 0xb19e08
// > SetupRotateGameplayPopup::init @ 0xb26788
// > SetupGameplayOffsetPopup::init @ 0xb272c4
// > SetupTeleportPopup::init @ 0xb27f24
// > SetupGradientPopup::init @ 0xb30c0c
// > SetupShaderEffectPopup::setupShockWave @ 0xb3240c
// > SetupShaderEffectPopup::setupShockLine @ 0xb33438
// > SetupShaderEffectPopup::setupGlitch @ 0xb34354
// > SetupShaderEffectPopup::setupChromatic @ 0xb34910
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0xb34e20
// > SetupShaderEffectPopup::setupPixelate @ 0xb35524
// > SetupShaderEffectPopup::setupLensCircle @ 0xb35b48
// > SetupShaderEffectPopup::setupRadialBlur @ 0xb36398
// > SetupShaderEffectPopup::setupMotionBlur @ 0xb36c98
// > SetupShaderEffectPopup::setupBulge @ 0xb376f8
// > SetupShaderEffectPopup::setupPinch @ 0xb37edc
// > SetupShaderEffectPopup::setupGrayscale @ 0xb38924
// > SetupShaderEffectPopup::setupSepia @ 0xb38db0
// > SetupShaderEffectPopup::setupInvertColor @ 0xb39094
// > SetupShaderEffectPopup::setupHueShift @ 0xb39684
// > SetupShaderEffectPopup::setupColorChange @ 0xb399a0
// > SetupShaderEffectPopup::setupSplitScreen @ 0xb39fa8
// > SetupShaderEffectPopup::setupShaderTrigger @ 0xb3a41c
// > SetupAreaAnimTriggerPopup::init @ 0xb3c86c
// > SetupAreaMoveTriggerPopup::init @ 0xb3f254
// > SetupAreaTransformTriggerPopup::init @ 0xb40174
// > SetupAreaRotateTriggerPopup::init @ 0xb40bd0
// > SetupAreaFadeTriggerPopup::init @ 0xb414fc
// > SetupAreaTintTriggerPopup::init @ 0xb41e24
// > SetupAreaTriggerPopup::init @ 0xb429dc
// > SetupEnterEffectPopup::init @ 0xb440b8
// > SetupEnterEffectPopup::init @ 0xb44160
// > SetupEnterEffectPopup::init @ 0xb44718
// > SetupEnterEffectPopup::init @ 0xb449f0
// > SetupEnterEffectPopup::init @ 0xb44ba8
// > SetupEnterEffectPopup::init @ 0xb44f74
// > SetupAdvFollowEditPhysicsPopup::init @ 0xb474f0
// > SetupAdvFollowRetargetPopup::init @ 0xb4831c
// > SetupAdvFollowPopup::init @ 0xb48cdc
// > SetupBGSpeedTrigger::init @ 0xb4f618
// > SetupGravityTriggerPopup::init @ 0xb4fe54
// > SetupKeyframeAnimPopup::init @ 0xb6957c
// > SetupKeyframePopup::init @ 0xb6a0bc
// > SetupReverbPopup::init @ 0xb6ccf0
// > SetupSFXPopup::init @ 0xb6e7d4
// > SetupSFXEditPopup::init @ 0xb6facc
// > SetupEventLinkPopup::init @ 0xb7285c
// > SetupPlayerControlPopup::init @ 0xb72fc4
// > SetupSpawnParticlePopup::init @ 0xb737c8
// > SetupCheckpointPopup::init @ 0xb7439c
// > MultiTriggerPopup::init @ 0xb74b10
// > UIObjectSettingsPopup::init @ 0xb75058
// > SetupResetTriggerPopup::init @ 0xb75cec
// > SetupCoinLayer::init @ 0xb7623c
// > SetupPersistentItemTriggerPopup::init @ 0xb7684c
// > SetupCameraGuidePopup::init @ 0xb77008
// > SetupForceBlockPopup::init @ 0xb77794
// > SetupObjectControlPopup::init @ 0xb7802c
// > SetupProgressPopup::init @ 0xb785b4
// > SetupDashRingPopup::init @ 0xb78d7c
// > SetupStopTriggerPopup::init @ 0xb79658
// > SetupAudioLineGuidePopup::init @ 0xb79f5c
// > SetupArtSwitchPopup::init @ 0xb7a9d8
// > SetupItemEditTriggerPopup::init @ 0xb7cb5c
// > SetupItemCompareTriggerPopup::init @ 0xb7e140
// > SetupTimerTriggerPopup::init @ 0xbb14cc
// > SetupTimerEventTriggerPopup::init @ 0xbb1ecc
// > SetupTimerControlTriggerPopup::init @ 0xbb25ec
// > ??> @ 0x5d298
//
// This function is hookable on this platform (idp: arm, 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 13:01:35 +0000
//
__int64 __fastcall SetupTriggerPopup::addHelpButton(__int64 a1, char *a2, char *a3, float a4)
{
char v6; // w0
void *v8; // x2
__int64 v9; // x0
__int64 v10; // x1
char v11; // w0
__int64 v12; // x0
__int64 v13; // x1
float *v14; // x22
cocos2d::CCDirector *v15; // x0
cocos2d::CCDirector *v16; // x0
cocos2d::CCNode *v17; // x24
void (__fastcall *v18)(float *, __int64 *); // x23
__int64 v20; // [xsp+60h] [xbp+60h] BYREF
_BYTE v21[8]; // [xsp+68h] [xbp+68h] BYREF
__int64 v22; // [xsp+70h] [xbp+70h] BYREF
__int64 v23; // [xsp+78h] [xbp+78h] BYREF
__int64 v24; // [xsp+80h] [xbp+80h]
void *v25; // [xsp+88h] [xbp+88h]
__int64 v26; // [xsp+90h] [xbp+90h] BYREF
__int64 v27; // [xsp+98h] [xbp+98h]
void *v28; // [xsp+A0h] [xbp+A0h]
v6 = *a2;
v23 = 0;
v24 = 0;
v25 = nullptr;
if ( (v6 & 1) != 0 )
{
std::string::__init(&v23, *((void **)a2 + 2), *((_QWORD *)a2 + 1));
}
else
{
v8 = *((void **)a2 + 2);
v9 = *(_QWORD *)a2;
v10 = *((_QWORD *)a2 + 1);
v25 = v8;
v23 = v9;
v24 = v10;
}
v11 = *a3;
v26 = 0;
v27 = 0;
v28 = nullptr;
if ( (v11 & 1) != 0 )
{
std::string::__init(&v26, *((void **)a3 + 2), *((_QWORD *)a3 + 1));
}
else
{
v12 = *(_QWORD *)a3;
v13 = *((_QWORD *)a3 + 1);
v28 = *((void **)a3 + 2);
v26 = v12;
v27 = v13;
}
v14 = (float *)InfoAlertButton::create((char *)&v23, (char *)&v26, 1.0);
if ( (v26 & 1) != 0 )
operator delete(v28);
if ( (v23 & 1) != 0 )
operator delete(v25);
v14[138] = a4;
v15 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 552) + 456LL))(
*(_QWORD *)(a1 + 552),
v14);
v16 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v15);
cocos2d::CCDirector::getWinSize(&v20, v16);
v17 = *(cocos2d::CCNode **)(a1 + 552);
v18 = *(void (__fastcall **)(float *, __int64 *))(*(_QWORD *)v14 + 184LL);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v21,
18.0 - (float)((float)(*(float *)(a1 + 732) * 0.5) - (float)(*(float *)&v20 * 0.5)),
(float)((float)((float)(*(float *)(a1 + 736) * 0.5) + (float)(*((float *)&v20 + 1) * 0.5)) - 18.0)
+ *(float *)(a1 + 740));
cocos2d::CCNode::convertToNodeSpace(&v22, v17, (const cocos2d::CCPoint *)v21);
v18(v14, &v22);
return _stack_chk_guard;
}