//
// SetupEventLinkPopup::onSelectEvent from 0x10040739c to 0x100407448 (172 bytes)
//
// 1 xrefs:
// > SetupEventLinkPopup::init @ 0x100407244
//
// 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)
{
__int64 m_gameObject; // x8
SelectEventLayer *v4; // x0
std::set v5; // [xsp+8h] [xbp-28h] BYREF
v5.__tree_.__pair1_.__value_.__left_ = nullptr;
v5.__tree_.__pair3_.__value_ = 0;
v5.__tree_.__begin_node_ = &v5.__tree_.__pair1_.__value_;
m_gameObject = (__int64)a1->m_gameObject;
if ( m_gameObject )
{
if ( &v5 == (std::set *)(m_gameObject + 1840) )
goto LABEL_7;
goto LABEL_6;
}
if ( (unsigned int)sub_10024A36C((__int64)a1->m_gameObjects) )
{
m_gameObject = sub_10024A388((__int64)a1->m_gameObjects, 0);
if ( &v5 != (std::set *)(m_gameObject + 1840) )
LABEL_6:
sub_10041245C(&v5, *(_QWORD *)(m_gameObject + 1840), m_gameObject + 1848);
}
LABEL_7:
v4 = SelectEventLayer::create(a1, &v5);
((void (__fastcall *)(SelectEventLayer *))v4->show)(v4);
sub_100017D70((__int64)&v5, (_QWORD *)v5.__tree_.__pair1_.__value_.__left_);
}