//
// sub_1005A5000 from 0x1005a5000 to 0x1005a5146 (326 bytes)
//
// 1 xrefs:
// > SetupEventLinkPopup::onSelectEvent @ 0x1005a4fba
//
// This function is hookable on this platform (idp: pc, 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 12:32:34 +0000
//
char *__fastcall sub_1005A5000(__int64 a1, __int64 a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x440u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v2);
*(_QWORD *)v2 = off_100B73398;
*((_QWORD *)v2 + 40) = off_100B73988;
*((_QWORD *)v2 + 41) = &off_100B739F8;
*((_QWORD *)v2 + 42) = off_100B73A10;
*((_QWORD *)v2 + 43) = off_100B73A30;
*((_QWORD *)v2 + 44) = off_100B73A58;
*((_QWORD *)v2 + 51) = off_100B73A88;
*((_QWORD *)v2 + 54) = off_100B73B08;
*((_QWORD *)v2 + 68) = off_100B73B28;
*((_QWORD *)v2 + 83) = &off_100B73B70;
*((_QWORD *)v2 + 84) = off_100B73B88;
*((_QWORD *)v2 + 127) = 0;
v2[1024] = 0;
*(_QWORD *)(v2 + 1028) = 0;
*((_DWORD *)v2 + 259) = 0;
*(_OWORD *)(v2 + 1048) = 0;
*((_QWORD *)v2 + 130) = v2 + 1048;
*((_OWORD *)v2 + 67) = 0;
*((_QWORD *)v2 + 133) = v2 + 1072;
if ( (unsigned __int8)SelectEventLayer::init(v2, a1, a2) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}