//
// SetupSequenceTriggerPopup::onSelect from 0xa585c8 to 0xa58640 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0x59928
// > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0xa58820
// > ??> @ 0x122ae08
//
// 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::onSelect(SetupSequenceTriggerPopup *a1, cocos2d::CCObject *a2)
{
CCMenuItemSpriteExtra *m_selectedButton; // x0
ButtonSprite *v5; // x0
cocos2d::CCObject_vtbl *v6; // x1
ButtonSprite *v7; // x0
m_selectedButton = a1->m_selectedButton;
if ( m_selectedButton )
{
v5 = (ButtonSprite *)m_selectedButton->getNormalImage(m_selectedButton);
ButtonSprite::updateBGImage(v5, "GJ_button_04.png");
m_selectedButton = a1->m_selectedButton;
}
if ( a2 == m_selectedButton )
{
a1->m_selectedButton = nullptr;
}
else
{
v6 = a2->__vftable;
a1->m_selectedButton = (CCMenuItemSpriteExtra *)a2;
v7 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))v6[13].~CCObject_0)(a2);
ButtonSprite::updateBGImage(v7, "GJ_button_03.png");
}
}