//
// ColorSelectLiveOverlay::create from 0x14008bd10 to 0x14008be59 (329 bytes)
//
// 3 xrefs:
// > EditorUI::editColor @ 0x14011ee0e
// > EditorUI::showLiveColorSelectForMode @ 0x14011ef5b
// > ??> @ 0x1406c6e04
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
ColorSelectLiveOverlay *ColorSelectLiveOverlay::create(ColorAction *a1, ColorAction *a2, EffectGameObject *a3)
{
char *v6; // r14
v6 = (char *)operator new(0x340u);
FLAlertLayer::FLAlertLayer((FLAlertLayer *)v6);
*(_QWORD *)v6 = &ColorSelectLiveOverlay::`vftable';
*((_QWORD *)v6 + 40) = &ColorSelectLiveOverlay::`vftable';
*((_QWORD *)v6 + 41) = &ColorSelectLiveOverlay::`vftable';
*((_QWORD *)v6 + 42) = &ColorSelectLiveOverlay::`vftable';
*((_QWORD *)v6 + 43) = &ColorSelectLiveOverlay::`vftable';
*((_QWORD *)v6 + 44) = &ColorSelectLiveOverlay::`vftable';
*((_QWORD *)v6 + 51) = &ColorSelectLiveOverlay::`vftable';
*((_QWORD *)v6 + 54) = &ColorSelectLiveOverlay::`vftable';
*((_QWORD *)v6 + 79) = 0;
*((_QWORD *)v6 + 81) = 0;
*((_QWORD *)v6 + 82) = 0;
*((_QWORD *)v6 + 83) = 0;
*(_QWORD *)(v6 + 684) = 0;
*((_DWORD *)v6 + 173) = 0;
*((_DWORD *)v6 + 174) = 1065353216;
*((_QWORD *)v6 + 88) = 0;
*((_WORD *)v6 + 356) = 0;
v6[714] = 0;
*((_QWORD *)v6 + 93) = 0;
*((_QWORD *)v6 + 98) = 0;
*((_WORD *)v6 + 412) = 0;
if ( ColorSelectLiveOverlay::init((ColorSelectLiveOverlay *)v6, a1, a2, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
return (ColorSelectLiveOverlay *)v6;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);
return nullptr;
}
}