//
// SetupSequenceTriggerPopup::onChangeOrder from 0x6bc38a to 0x6bc3e6 (92 bytes)
//
// 0 xrefs:
//
// 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:56:47 +0000
//
int __fastcall SetupSequenceTriggerPopup::onChangeOrder(int this, cocos2d::CCObject *a2)
{
int v2; // r4
int v3; // r0
SequenceTriggerGameObject *v4; // r5
_BOOL4 v5; // r6
int v6; // r0
int v7; // r5
void (__fastcall *v8)(int, int); // r7
int v9; // r0
int v10; // r1
v2 = this;
if ( *(_DWORD *)(this + 712) )
{
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = *(SequenceTriggerGameObject **)(v2 + 528);
v5 = v3 != 3;
v6 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 712) + 32))(*(_DWORD *)(v2 + 712));
this = SequenceTriggerGameObject::reorderTarget(v4, v6, v5);
if ( this )
{
v7 = *(_DWORD *)(v2 + 712);
v8 = *(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 36);
v9 = (*(int (__fastcall **)(int))(*(_DWORD *)v7 + 32))(v7);
if ( v5 )
v10 = -1;
else
v10 = 1;
v8(v7, v10 + v9);
return SetupSequenceTriggerPopup::updateGroupIDButtons((SetupSequenceTriggerPopup *)v2);
}
}
return this;
}