//
// SequenceTriggerGameObject::deleteTarget from 0x763198 to 0x763214 (124 bytes)
//
// 3 xrefs:
// > SetupSequenceTriggerPopup::onDeleteSelected @ 0xa59e14
// > SetupSequenceTriggerPopup::onDeleteSelected @ 0xa59e34
// > ??> @ 0x8e5a8
//
// 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
//
void SequenceTriggerGameObject::deleteTarget(SequenceTriggerGameObject *a1, int a2)
{
ChanceObject *m_start; // x5
ChanceObject *m_finish; // x6
ChanceObject *v4; // x1
char *v5; // x2
__int64 v6; // x4
ChanceObject *v7; // x1
__int64 v8; // x4
__int64 v9; // x5
if ( (a2 & 0x80000000) == 0 )
{
m_start = a1->m_chanceObjects.m_start;
m_finish = a1->m_chanceObjects.m_finish;
if ( a2 <= (unsigned __int64)(m_finish - m_start - 1) && m_start != m_finish )
{
v4 = &m_start[a2];
v5 = (char *)&v4[1];
if ( m_finish != &v4[1] )
{
v6 = ((char *)m_finish - v5) >> 4;
if ( v6 > 0 )
{
v7 = &v4[v6 + 1];
do
{
v8 = *(_QWORD *)v5;
v9 = *((_QWORD *)v5 + 1);
v5 += 16;
*((_QWORD *)v5 - 4) = v8;
*((_QWORD *)v5 - 3) = v9;
}
while ( v5 != (char *)v7 );
}
}
a1->m_chanceObjects.m_finish = m_finish - 1;
a1->m_sequenceTotalCount = -1;
}
}
}