//
// SetupSequenceTriggerPopup::onDeleteSelected from 0x1405da100 to 0x1405da198 (152 bytes)
//
// 4 xrefs:
// > SetupSequenceTriggerPopup::init @ 0x1405d8cd1
// > ??> @ 0x1408e18dc
// > ??> @ 0x1408e18ec
// > ??> @ 0x14092ebb0
//
// 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 11:34:58 +0000
//
__int64 __fastcall SetupSequenceTriggerPopup::onDeleteSelected(__int64 a1)
{
__int64 v2; // rcx
unsigned int v3; // eax
__int64 v4; // rdi
__int64 v5; // r8
__int64 v6; // rcx
v2 = *(_QWORD *)(a1 + 1000);
if ( v2 )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 56LL))(v2);
if ( (v3 & 0x80000000) != 0 )
goto LABEL_8;
}
else
{
v3 = 0;
}
v4 = *(_QWORD *)(a1 + 680);
v5 = *(_QWORD *)(v4 + 1864);
v6 = *(_QWORD *)(v4 + 1856);
if ( v3 <= (unsigned __int64)(((v5 - v6) >> 4) - 1) && v6 != v5 )
{
memmove((void *)(16LL * v3 + v6), (const void *)(16LL * v3 + v6 + 16), v5 - (16LL * v3 + v6 + 16));
*(_QWORD *)(v4 + 1864) -= 16LL;
*(_DWORD *)(v4 + 2024) = -1;
}
LABEL_8:
*(_QWORD *)(a1 + 1000) = 0;
return SetupSequenceTriggerPopup::updateGroupIDButtons(a1);
}