//
// SetupSequenceTriggerPopup::onChangeOrder from 0xa59d30 to 0xa59de8 (184 bytes)
//
// 3 xrefs:
// > ??> @ 0x8f1d8
// > SetupSequenceTriggerPopup::init @ 0xa58eb8
// > ??> @ 0x122cdf8
//
// 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 SetupSequenceTriggerPopup::onChangeOrder(SetupSequenceTriggerPopup *a1, cocos2d::CCObject *a2)
{
_BOOL4 v3; // w20
SequenceTriggerGameObject *m_gameObject; // x21
int v5; // w0
CCMenuItemSpriteExtra *m_selectedButton; // x21
void (__fastcall *setTag)(cocos2d::CCObject *__hidden, int); // x22
int v8; // w0
int v9; // w1
if ( a1->m_selectedButton )
{
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2) != 3;
m_gameObject = (SequenceTriggerGameObject *)a1->m_gameObject;
v5 = a1->m_selectedButton->getTag(a1->m_selectedButton);
if ( SequenceTriggerGameObject::reorderTarget(m_gameObject, v5, v3) )
{
m_selectedButton = a1->m_selectedButton;
setTag = m_selectedButton->setTag;
v8 = m_selectedButton->getTag(m_selectedButton);
if ( v3 )
v9 = -1;
else
v9 = 1;
setTag(m_selectedButton, v9 + v8);
SetupSequenceTriggerPopup::updateGroupIDButtons(a1);
}
}
}