//
// SequenceTriggerGameObject::reorderTarget from 0x87bf18 to 0x87bfbc (164 bytes)
//
// 2 xrefs:
// > SetupSequenceTriggerPopup::onChangeOrder @ 0xb824a0
// > ??> @ 0xf3c70
//
// 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 12:55:52 +0000
//
__int64 __fastcall SequenceTriggerGameObject::reorderTarget(
SequenceTriggerGameObject *this,
int a2,
unsigned __int8 a3)
{
__int64 v3; // x4
__int64 v4; // x0
unsigned int v5; // w5
__int64 v6; // x3
int v7; // w0
_DWORD *v8; // x2
__int64 v9; // x0
int v10; // w10
int v11; // w9
int v12; // w8
__int64 v13; // x7
int v14; // w3
v3 = *((_QWORD *)this + 230);
v4 = *((_QWORD *)this + 231);
v5 = 0;
v6 = (v4 - v3) >> 4;
if ( (int)v6 > a2 )
{
v5 = a3 | (a2 != (_DWORD)v6 - 1);
if ( v5 )
{
if ( v3 == v4 || (a3 & (a2 == 0)) != 0 )
{
return 0;
}
else
{
if ( a3 )
v7 = -1;
else
v7 = 1;
v8 = (_DWORD *)(v3 + 16LL * a2);
v9 = v3 + 16LL * (v7 + a2);
v10 = *v8;
v11 = v8[1];
v12 = v8[2];
v13 = *(_QWORD *)(v9 + 8);
v14 = v8[3];
*(_QWORD *)v8 = *(_QWORD *)v9;
*((_QWORD *)v8 + 1) = v13;
*(_DWORD *)v9 = v10;
*(_DWORD *)(v9 + 4) = v11;
*(_DWORD *)(v9 + 8) = v12;
*(_DWORD *)(v9 + 12) = v14;
}
}
}
return v5;
}