//
// SetupEventLinkPopup::onSelectEvent from 0x100577b20 to 0x100577bcf (175 bytes)
//
// 1 xrefs:
// > SetupEventLinkPopup::init @ 0x1005779cf
//
// 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 SetupEventLinkPopup::onSelectEvent(SetupEventLinkPopup *a1, cocos2d::CCObject *a2)
{
EffectGameObject *m_gameObject; // rdx
SelectEventLayer *v3; // rax
std::set v4; // [rsp+0h] [rbp-20h] BYREF
*(_OWORD *)&v4.__tree_.__pair1_.__value_.__left_ = 0;
v4.__tree_.__begin_node_ = &v4.__tree_.__pair1_.__value_;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
if ( &v4 == (std::set *)&m_gameObject[1] )
goto LABEL_7;
goto LABEL_6;
}
if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
m_gameObject = (EffectGameObject *)sub_1007200C0(a1->m_gameObjects, 0);
if ( &v4 != (std::set *)&m_gameObject[1] )
LABEL_6:
((void (__fastcall *)(std::set *, EffectGameObject_vtbl *, unsigned int *))sub_1005876E0)(
&v4,
m_gameObject[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable,
&m_gameObject[1].m_uID);
}
LABEL_7:
v3 = SelectEventLayer::create(a1, &v4);
((void (__fastcall *)(SelectEventLayer *))v3->show)(v3);
sub_100054D90((__int64)&v4, (_QWORD *)v4.__tree_.__pair1_.__value_.__left_);
}