//
// sub_1005B18B0 from 0x1005b18b0 to 0x1005b19c8 (280 bytes)
//
// 1 xrefs:
// > EditorUI::editObject @ 0x100009aac
//
// 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:39 +0000
//
_QWORD *__fastcall sub_1005B18B0(__int64 a1, __int64 a2, unsigned int a3)
{
_QWORD *v4; // rbx
v4 = operator new(0x410u);
SetupTriggerPopup::SetupTriggerPopup((__int64)v4);
*v4 = off_100B78D90;
v4[40] = off_100B79388;
v4[41] = &off_100B793F8;
v4[42] = off_100B79410;
v4[43] = off_100B79430;
v4[44] = off_100B79458;
v4[51] = off_100B79488;
v4[54] = off_100B79508;
v4[68] = off_100B79528;
v4[83] = &off_100B79570;
v4[84] = off_100B79588;
v4[127] = &off_100B795A8;
*((_DWORD *)v4 + 256) = 0;
v4[129] = 0;
if ( (unsigned __int8)SetupArtSwitchPopup::init(v4, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(_QWORD *))(*v4 + 16LL))(v4);
return nullptr;
}
return v4;
}