//
// SequenceTriggerGameObject::deleteTarget from 0x4e8f38 to 0x4e8f98 (96 bytes)
//
// 1 xrefs:
// > SetupSequenceTriggerPopup::onDeleteSelected @ 0x6bc3fc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:07 +0000
//
int __fastcall SequenceTriggerGameObject::deleteTarget(int this, unsigned int a2)
{
int v2; // r6
char *v3; // r7
char *v4; // r3
char *v5; // r5
char *i; // r4
int v7; // r1
int v8; // r2
int v9; // r3
char *v10; // r3
v2 = this;
if ( (a2 & 0x80000000) == 0 )
{
v3 = *(char **)(this + 1652);
v4 = *(char **)(this + 1648);
if ( a2 <= ((v3 - v4) >> 4) - 1 && v4 != v3 )
{
v5 = &v4[16 * a2];
for ( i = v5 + 16; i != v3; i += 16 )
{
this = *(_DWORD *)i;
v7 = *((_DWORD *)i + 1);
v8 = *((_DWORD *)i + 2);
v9 = *((_DWORD *)i + 3);
*((_DWORD *)i - 4) = *(_DWORD *)i;
*((_DWORD *)i - 3) = v7;
*((_DWORD *)i - 2) = v8;
*((_DWORD *)i - 1) = v9;
}
while ( 1 )
{
v10 = *(char **)(v2 + 1652);
if ( &v5[(i - (v5 + 16)) & 0xFFFFFFF0] == v10 )
break;
*(_DWORD *)(v2 + 1652) = v10 - 16;
}
*(_DWORD *)(v2 + 1716) = -1;
}
}
return this;
}