//
// SetupSequenceTriggerPopup::onSelect from 0x1004ded70 to 0x1004dedea (122 bytes)
//
// 1 xrefs:
// > SetupSequenceTriggerPopup::updateGroupIDButtons @ 0x1004deb5a
//
// 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::onSelect(SetupSequenceTriggerPopup *a1, cocos2d::CCObject *a2)
{
CCMenuItemSpriteExtra *m_selectedButton; // rdi
ButtonSprite *v4; // rax
ButtonSprite *v5; // rax
m_selectedButton = a1->m_selectedButton;
if ( m_selectedButton )
{
v4 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))m_selectedButton->getNormalImage)(m_selectedButton);
ButtonSprite::updateBGImage(v4, "GJ_button_04.png");
if ( a1->m_selectedButton != a2 )
{
LABEL_3:
a1->m_selectedButton = (CCMenuItemSpriteExtra *)a2;
v5 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);
ButtonSprite::updateBGImage(v5, "GJ_button_03.png");
return;
}
}
else if ( a2 )
{
goto LABEL_3;
}
a1->m_selectedButton = nullptr;
}