//
// ColorSelectLiveOverlay::createWithActions from 0x100595760 to 0x1005957bc (92 bytes)
//
// 3 xrefs:
// > EditorUI::editColor @ 0x100019ab2
// > EditorUI::showLiveColorSelectForModeSpecial @ 0x100019c29
// > EditorUI::showLiveColorSelectForMode @ 0x100019d30
//
// 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:28 +0000
//
void *__fastcall ColorSelectLiveOverlay::createWithActions(__int64 a1, __int64 a2)
{
void *v2; // rbx
v2 = operator new(0x360u);
ColorSelectLiveOverlay::ColorSelectLiveOverlay(v2);
if ( (unsigned __int8)ColorSelectLiveOverlay::init(v2, a1, a2, 0) )
{
cocos2d::CCObject::autorelease((__int64)v2);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return v2;
}