//
// SetupSequenceTriggerPopup::onChangeOrder from 0x1004d9870 to 0x1004d9906 (150 bytes)
//
// 1 xrefs:
// > SetupSequenceTriggerPopup::init @ 0x1004d8e30
//
// 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:31:14 +0000
//
void __fastcall SetupSequenceTriggerPopup::onChangeOrder(__int64 a1, __int64 a2)
{
int v2; // r14d
__int64 v3; // r12
int v4; // eax
_BOOL4 v5; // r15d
__int64 v6; // r14
int v7; // eax
if ( *(_QWORD *)(a1 + 1016) )
{
v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v3 = *(_QWORD *)(a1 + 680);
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1016) + 64LL))(*(_QWORD *)(a1 + 1016));
if ( SequenceTriggerGameObject::reorderTarget(v3, v4, v2 != 3) )
{
v5 = v2 == 3;
v6 = *(_QWORD *)(a1 + 1016);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 64LL))(v6);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 72LL))(v6, (unsigned int)(v7 + 2 * v5 - 1));
SetupSequenceTriggerPopup::updateGroupIDButtons(a1);
}
}
}