//
// SetupSequenceTriggerPopup::onChangeOrder from 0xb82448 to 0xb82500 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0xbd6b8
// > SetupSequenceTriggerPopup::init @ 0xb829fc
// > ??> @ 0x15457d0
//
// 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 13:02:29 +0000
//
__int64 __fastcall SetupSequenceTriggerPopup::onChangeOrder(SetupSequenceTriggerPopup *this, cocos2d::CCObject *a2)
{
__int64 result; // x0
_BOOL4 v4; // w20
SequenceTriggerGameObject *v5; // x21
int v6; // w0
__int64 v7; // x21
void (__fastcall *v8)(__int64, _QWORD); // x22
int v9; // w0
int v10; // w1
result = *((_QWORD *)this + 127);
if ( result )
{
v4 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2) != 3;
v5 = *((SequenceTriggerGameObject **)this + 85);
v6 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 127) + 64LL))(*((_QWORD *)this + 127));
result = (unsigned __int8)SequenceTriggerGameObject::reorderTarget(v5, v6, v4);
if ( (_BYTE)result )
{
v7 = *((_QWORD *)this + 127);
v8 = *(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 72LL);
v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 64LL))(v7);
if ( v4 )
v10 = -1;
else
v10 = 1;
v8(v7, (unsigned int)(v10 + v9));
return SetupSequenceTriggerPopup::updateGroupIDButtons(this);
}
}
return result;
}