//
// SequenceTriggerGameObject::deleteTarget from 0x1001a6e60 to 0x1001a6ed7 (119 bytes)
//
// 1 xrefs:
// > SetupSequenceTriggerPopup::onDeleteSelected @ 0x1004d9848
//
// 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 12:26:01 +0000
//
char *__fastcall SequenceTriggerGameObject::deleteTarget(__int64 a1, int a2)
{
char *result; // rax
__int64 v3; // rcx
__int64 v4; // rdx
char *v5; // r14
char *v6; // rsi
size_t v7; // rbx
if ( a2 >= 0 )
{
result = *(char **)(a1 + 1840);
v3 = *(_QWORD *)(a1 + 1848) - (_QWORD)result;
if ( v3 )
{
if ( (v3 >> 4) - 1 >= (unsigned __int64)(unsigned int)a2 )
{
v4 = 16LL * (unsigned int)a2;
v5 = &result[v4];
v6 = &result[v4 + 16];
v7 = *(_QWORD *)(a1 + 1848) - (_QWORD)v6;
if ( v7 )
result = (char *)memmove(&result[v4], v6, v7);
*(_QWORD *)(a1 + 1848) = &v5[v7];
*(_DWORD *)(a1 + 1960) = -1;
}
}
}
return result;
}