//
// SetupEventLinkPopup::onSelectEvent from 0xb818e8 to 0xb81a00 (280 bytes)
//
// 3 xrefs:
// > ??> @ 0x722f8
// > SetupEventLinkPopup::init @ 0xb72a88
// > ??> @ 0x1542de0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:02:28 +0000
//
__int64 __fastcall SetupEventLinkPopup::onSelectEvent(SetupEventLinkPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x2
__int64 v4; // x0
void *v5; // x21
_QWORD *v7; // [xsp+30h] [xbp+30h] BYREF
_QWORD v8[2]; // [xsp+38h] [xbp+38h] BYREF
v8[0] = 0;
v3 = *((_QWORD *)this + 85);
v8[1] = 0;
v7 = v8;
if ( !v3 )
{
if ( !(unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 86)) )
goto LABEL_4;
v3 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), 0);
}
if ( &v7 != (_QWORD **)(v3 + 1840) )
std::__tree::__assign_multi *,long>>(
&v7,
*(_QWORD **)(v3 + 1840),
(_QWORD *)(v3 + 1848));
LABEL_4:
v4 = SelectEventLayer::create((__int64)this, (__int64)&v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
v5 = (void *)v8[0];
if ( v8[0] )
{
std::__tree::destroy((__int64)&v7, *(_QWORD **)v8[0]);
std::__tree::destroy((__int64)&v7, *(_QWORD **)&byte_8[(_QWORD)v5]);
operator delete(v5);
}
return _stack_chk_guard;
}