//
// SetupSequenceTriggerPopup::onSelect from 0x140444c20 to 0x140444c9f (127 bytes)
//
// 2 xrefs:
// > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x140444a8c
// > ??> @ 0x1406da4f0
//
// 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; // rcx
ButtonSprite *v5; // rax
ButtonSprite *v6; // rax
m_selectedButton = a1->m_selectedButton;
if ( m_selectedButton )
{
v5 = (ButtonSprite *)m_selectedButton->getNormalImage(m_selectedButton);
ButtonSprite::updateBGImage(v5, "GJ_button_04.png");
}
if ( a1->m_selectedButton == a2 )
{
a1->m_selectedButton = nullptr;
}
else
{
a1->m_selectedButton = (CCMenuItemSpriteExtra *)a2;
v6 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].copyWithZone)(a2);
ButtonSprite::updateBGImage(v6, "GJ_button_03.png");
}
}