//
// HSVLiveOverlay::create from 0x10026a7d0 to 0x10026a934 (356 bytes)
//
// 1 xrefs:
// > EditorUI::editHSV @ 0x10003c9f8
//
// 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
//
HSVLiveOverlay *__fastcall HSVLiveOverlay::create(GameObject *a1, cocos2d::CCArray *a2)
{
char *v2; // rbx
v2 = (char *)operator new(0x2C0u);
cocos2d::CCLayerColor::CCLayerColor(v2);
*((_QWORD *)v2 + 72) = 0;
*((_DWORD *)v2 + 146) = 0;
v2[588] = 0;
*((_OWORD *)v2 + 34) = 0;
*(_OWORD *)(v2 + 553) = 0;
*((_OWORD *)v2 + 37) = 0;
*((_QWORD *)v2 + 76) = 0;
*((_DWORD *)v2 + 154) = -1;
*((_WORD *)v2 + 310) = 0;
*((_DWORD *)v2 + 156) = -1;
v2[628] = 0;
*(_QWORD *)v2 = off_1008EBD30;
*((_QWORD *)v2 + 40) = off_1008EC258;
*((_QWORD *)v2 + 41) = &off_1008EC2C8;
*((_QWORD *)v2 + 42) = off_1008EC2E0;
*((_QWORD *)v2 + 43) = off_1008EC300;
*((_QWORD *)v2 + 44) = off_1008EC320;
*((_QWORD *)v2 + 51) = off_1008EC348;
*((_QWORD *)v2 + 54) = off_1008EC3C8;
*((_QWORD *)v2 + 79) = off_1008EC3E8;
*((_OWORD *)v2 + 40) = 0;
*(_OWORD *)(v2 + 664) = 0;
*((_DWORD *)v2 + 170) = -1;
*(_DWORD *)(v2 + 695) = 0;
*((_QWORD *)v2 + 86) = 0;
if ( HSVLiveOverlay::init((HSVLiveOverlay *)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (HSVLiveOverlay *)v2;
}