//
// SetupSequenceTriggerPopup::onChangeOrder from 0x1001d3218 to 0x1001d32cc (180 bytes)
//
// 1 xrefs:
// > SetupSequenceTriggerPopup::init @ 0x1001d2960
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall SetupSequenceTriggerPopup::onChangeOrder(SetupSequenceTriggerPopup *a1, cocos2d::CCObject *a2)
{
int v3; // w20
SequenceTriggerGameObject *m_gameObject; // x22
int v5; // w0
CCMenuItemSpriteExtra *m_selectedButton; // x21
int v7; // w0
__int64 v8; // x1
if ( a1->m_selectedButton )
{
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
m_gameObject = (SequenceTriggerGameObject *)a1->m_gameObject;
v5 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_selectedButton->getTag)(a1->m_selectedButton);
if ( SequenceTriggerGameObject::reorderTarget(m_gameObject, v5, v3 != 3) )
{
m_selectedButton = a1->m_selectedButton;
v7 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))m_selectedButton->getTag)(m_selectedButton);
if ( v3 == 3 )
v8 = (unsigned int)(v7 + 1);
else
v8 = (unsigned int)(v7 - 1);
((void (__fastcall *)(CCMenuItemSpriteExtra *, __int64))m_selectedButton->setTag)(m_selectedButton, v8);
SetupSequenceTriggerPopup::updateGroupIDButtons(a1);
}
}
}