//
// SetupTriggerPopup::addCloseButton from 0xb1b7c8 to 0xb1b848 (128 bytes)
//
// 79 xrefs:
// > CustomizeObjectSettingsPopup::init @ 0x984340
// > SetupEnterTriggerPopup::init @ 0xa22b74
// > EditGameObjectPopup::init @ 0xa249f8
// > UISaveLoadLayer::init @ 0xa27550
// > SetupMoveCommandPopup::init @ 0xa3df14
// > SetupObjectTogglePopup::init @ 0xa42100
// > SetupSpawnPopup::init @ 0xa4374c
// > SetupPulsePopup::init @ 0xa46a10
// > CollisionBlockPopup::init @ 0xa648b4
// > GJFollowCommandLayer::init @ 0xa7a0cc
// > GJPFollowCommandLayer::init @ 0xa7a95c
// > SetupRotateCommandPopup::init @ 0xa7b530
// > SetItemIDLayer::init @ 0xa97f28
// > SetTargetIDLayer::init @ 0xa989a4
// > SetupAnimSettingsPopup::init @ 0xa9a714
// > SetupCollisionTriggerPopup::init @ 0xa9b364
// > SetupInstantCollisionTriggerPopup::init @ 0xa9bf80
// > SetupCollisionStateTriggerPopup::init @ 0xa9caf0
// > SetupCountTriggerPopup::init @ 0xa9d16c
// > SetupInteractObjectPopup::init @ 0xa9da50
// > SetupInstantCountPopup::init @ 0xa9ee78
// > SetupPickupTriggerPopup::init @ 0xa9fddc
// > SetupRotatePopup::init @ 0xaa0890
// > SetupStaticCameraPopup::init @ 0xab1a44
// > SetupZoomTriggerPopup::init @ 0xab2558
// > SetupPlatformerEndPopup::init @ 0xab50a8
// > SetupObjectOptions2Popup::init @ 0xabe2d8
// > SetupTransformPopup::init @ 0xae95ac
// > SetupSongTriggerPopup::init @ 0xaea898
// > SetupCameraRotatePopup2::init @ 0xaeceb8
// > SetupOptionsTriggerPopup::init @ 0xb19da8
// > SetupRotateGameplayPopup::init @ 0xb26728
// > SetupGameplayOffsetPopup::init @ 0xb27264
// > SetupTeleportPopup::init @ 0xb27ec4
// > SetupShaderEffectPopup::init @ 0xb3aaac
// > SetupAreaAnimTriggerPopup::init @ 0xb3c80c
// > SetupAreaMoveTriggerPopup::init @ 0xb3f1f4
// > SetupAreaTransformTriggerPopup::init @ 0xb40114
// > SetupAreaRotateTriggerPopup::init @ 0xb40b70
// > SetupAreaFadeTriggerPopup::init @ 0xb4149c
// > SetupAreaTintTriggerPopup::init @ 0xb41dc4
// > SetupAreaTriggerPopup::init @ 0xb4297c
// > SetupEnterEffectPopup::init @ 0xb43d6c
// > SetupAdvFollowEditPhysicsPopup::init @ 0xb47454
// > SetupAdvFollowRetargetPopup::init @ 0xb48280
// > SetupAdvFollowPopup::init @ 0xb48c40
// > SetupBGSpeedTrigger::init @ 0xb4f57c
// > SetupGravityTriggerPopup::init @ 0xb4fdf4
// > SetupKeyframeAnimPopup::init @ 0xb6951c
// > SetupKeyframePopup::init @ 0xb6a058
// > SetupReverbPopup::init @ 0xb6cc90
// > SetupSFXPopup::init @ 0xb6e774
// > SetupSFXEditPopup::init @ 0xb6fa2c
// > SetupEventLinkPopup::init @ 0xb727fc
// > SetupPlayerControlPopup::init @ 0xb72f64
// > SetupSpawnParticlePopup::init @ 0xb73768
// > SetupCheckpointPopup::init @ 0xb7433c
// > MultiTriggerPopup::init @ 0xb74ab0
// > UIObjectSettingsPopup::init @ 0xb74ff8
// > SetupResetTriggerPopup::init @ 0xb75c8c
// > SetupCoinLayer::init @ 0xb761dc
// > SetupPersistentItemTriggerPopup::init @ 0xb767ec
// > SetupCameraGuidePopup::init @ 0xb76fa8
// > SetupForceBlockPopup::init @ 0xb77734
// > SetupObjectControlPopup::init @ 0xb77fcc
// > SetupProgressPopup::init @ 0xb78554
// > SetupDashRingPopup::init @ 0xb78d1c
// > SetupStopTriggerPopup::init @ 0xb795cc
// > SetupAudioLineGuidePopup::init @ 0xb79efc
// > SetupArtSwitchPopup::init @ 0xb7a974
// > SetupItemEditTriggerPopup::init @ 0xb7caf8
// > SetupItemCompareTriggerPopup::init @ 0xb7e0e0
// > SelectEventLayer::init @ 0xb7fa20
// > SetupTimerTriggerPopup::init @ 0xbb146c
// > SetupTimerEventTriggerPopup::init @ 0xbb1e6c
// > SetupTimerControlTriggerPopup::init @ 0xbb258c
// > EasingSelectPopup::init @ 0xcbb9cc
// > EditorSFXSettingsPopup::init @ 0xcc7e98
// > ??> @ 0xb0ae8
//
// 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:34 +0000
//
__int64 __fastcall SetupTriggerPopup::addCloseButton(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
__int64 a5,
__int64 a6,
const char *a7)
{
ButtonSprite *v8; // x0
__int64 v9; // x0
__int64 v10; // x0
v8 = (ButtonSprite *)(a2 + 1);
if ( (*(_BYTE *)a2 & 1) != 0 )
v8 = *(ButtonSprite **)(a2 + 16);
v9 = ButtonSprite::create(v8, (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_01.png", a7, 30.0);
v10 = CCMenuItemSpriteExtra::create(v9, 0, a1, 1368, 1);
return (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v10);
}