//
// HSVLiveOverlay::create from 0x1002547d0 to 0x1002549e2 (530 bytes)
//
// 1 xrefs:
// > EditorUI::editHSV @ 0x10001996a
//
// 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:27:25 +0000
//
char *__fastcall HSVLiveOverlay::create(__int64 a1, __int64 a2, unsigned int a3, unsigned int a4)
{
char *v6; // rbx
v6 = (char *)operator new(0x2E8u);
cocos2d::CCLayerColor::CCLayerColor(v6);
*(_QWORD *)v6 = off_100B4FB70;
*((_QWORD *)v6 + 40) = off_100B500C0;
*((_QWORD *)v6 + 41) = &off_100B50130;
*((_QWORD *)v6 + 42) = off_100B50148;
*((_QWORD *)v6 + 43) = off_100B50168;
*((_QWORD *)v6 + 44) = off_100B50190;
*((_QWORD *)v6 + 51) = off_100B501C0;
*((_QWORD *)v6 + 54) = off_100B50240;
*((_QWORD *)v6 + 68) = off_100B50260;
*(_OWORD *)(v6 + 552) = 0;
*(_OWORD *)(v6 + 561) = 0;
*(_OWORD *)(v6 + 584) = 0;
sub_1002782A0(v6 + 600);
*((_OWORD *)v6 + 38) = 0;
*((_QWORD *)v6 + 78) = 0;
*((_DWORD *)v6 + 158) = -1;
*((_WORD *)v6 + 318) = 0;
*((_DWORD *)v6 + 160) = -1;
v6[644] = 0;
*((_QWORD *)v6 + 81) = 0;
v6[656] = 0;
*(_QWORD *)v6 = off_100AF1790;
*((_QWORD *)v6 + 40) = off_100AF1CE8;
*((_QWORD *)v6 + 41) = &off_100AF1D58;
*((_QWORD *)v6 + 42) = off_100AF1D70;
*((_QWORD *)v6 + 43) = off_100AF1D90;
*((_QWORD *)v6 + 44) = off_100AF1DB8;
*((_QWORD *)v6 + 51) = off_100AF1DE8;
*((_QWORD *)v6 + 54) = off_100AF1E68;
*((_QWORD *)v6 + 68) = off_100AF1E88;
*((_QWORD *)v6 + 83) = off_100AF1ED0;
*((_OWORD *)v6 + 42) = 0;
*(_OWORD *)(v6 + 696) = 0;
*((_DWORD *)v6 + 178) = -1;
*(_DWORD *)(v6 + 727) = 0;
*((_QWORD *)v6 + 90) = 0;
if ( (unsigned __int8)HSVLiveOverlay::init(v6, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
return v6;
}