//
// SetupTriggerPopup::toggleLimitValue from 0xb22988 to 0xb229f8 (112 bytes)
//
// 23 xrefs:
// > CollisionBlockPopup::init @ 0xa649e8
// > SetupSongTriggerPopup::init @ 0xaeabec
// > SetupSongTriggerPopup::init @ 0xaeabfc
// > SetupSongTriggerPopup::init @ 0xaead84
// > SetupOptionsTriggerPopup::init @ 0xb1a1f8
// > SetupTriggerPopup::triggerArrowChanged @ 0xb24fac
// > SetupTriggerPopup::triggerArrowChanged @ 0xb24ffc
// > SetupSFXPopup::init @ 0xb6ea18
// > SetupSFXPopup::init @ 0xb6ea28
// > SetupSFXPopup::init @ 0xb6ea38
// > SetupSFXPopup::init @ 0xb6f394
// > SetupSFXPopup::init @ 0xb6f3a4
// > SetupSFXPopup::init @ 0xb6f3b4
// > SetupSFXEditPopup::init @ 0xb70098
// > SetupSFXEditPopup::init @ 0xb700a8
// > SetupSFXEditPopup::init @ 0xb701c8
// > SetupProgressPopup::init @ 0xb78718
// > SetupItemCompareTriggerPopup::init @ 0xb7e258
// > SetupItemCompareTriggerPopup::init @ 0xb7e570
// > AutoSaveSettingsLayer::init @ 0xbca608
// > AutoSaveSettingsLayer::init @ 0xbcaa88
// > AutoBackupOptionsPopup::init @ 0xc56bd8
// > ??> @ 0xe9680
//
// 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:37 +0000
//
__int64 __fastcall SetupTriggerPopup::toggleLimitValue(__int64 **this, int a2, char a3)
{
__int64 result; // x0
int v5[3]; // [xsp+2Ch] [xbp+2Ch] BYREF
int *v6; // [xsp+40h] [xbp+40h] BYREF
v5[0] = a2;
v6 = v5;
result = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::__emplace_unique_key_args,std::tuple<>>(
this + 107,
v5,
(__int64)&unk_1187080,
&v6);
*(_BYTE *)(result + 32) = a3;
return result;
}