//
// ColorSelectLiveOverlay::create from 0x140124cc0 to 0x140124e1d (349 bytes)
//
// 3 xrefs:
// > EditorUI::editColor @ 0x1401be1fe
// > EditorUI::showLiveColorSelectForMode @ 0x1401be34e
// > ??> @ 0x14091694c
//
// 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 11:26:57 +0000
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall ColorSelectLiveOverlay::create(__int64 a1, __int64 a2, __int64 a3)
{
_QWORD *v6; // r14
v6 = operator new(0x360u);
FLAlertLayer::FLAlertLayer((__int64)v6);
*v6 = &ColorSelectLiveOverlay::`vftable';
v6[40] = &ColorSelectLiveOverlay::`vftable';
v6[41] = &ColorSelectLiveOverlay::`vftable';
v6[42] = &ColorSelectLiveOverlay::`vftable';
v6[43] = &ColorSelectLiveOverlay::`vftable';
v6[44] = &ColorSelectLiveOverlay::`vftable';
v6[51] = &ColorSelectLiveOverlay::`vftable';
v6[54] = &ColorSelectLiveOverlay::`vftable';
v6[68] = &ColorSelectLiveOverlay::`vftable';
v6[83] = 0;
v6[85] = 0;
v6[86] = 0;
v6[87] = 0;
*(_QWORD *)((char *)v6 + 716) = 0;
*((_DWORD *)v6 + 181) = 0;
*((_DWORD *)v6 + 182) = 1065353216;
v6[92] = 0;
*((_WORD *)v6 + 372) = 0;
*((_BYTE *)v6 + 746) = 0;
v6[97] = 0;
v6[102] = 0;
*((_WORD *)v6 + 428) = 0;
if ( (unsigned __int8)ColorSelectLiveOverlay::init(v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return v6;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v6 + 8LL))(v6, 1);
return nullptr;
}
}