//
// Slider::create from 0x1002ef470 to 0x1002ef56c (252 bytes)
//
// 10 xrefs:
// > ColorSelectLiveOverlay::init @ 0x1000f5574
// > ColorSelectLiveOverlay::init @ 0x1000f5628
// > ColorSelectLiveOverlay::init @ 0x1000f56dc
// > ColorSelectLiveOverlay::init @ 0x1000f5790
// > Slider::create_2 @ 0x1002ef448
// > Slider::create_1 @ 0x1002ef46c
// > EditorUI::init @ 0x1003c4fa0
// > GJScaleControl::init @ 0x1003fad60
// > GJScaleControl::init @ 0x1003fadd8
// > GJScaleControl::init @ 0x1003fae74
//
// 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
//
Slider *__fastcall Slider::create(
cocos2d::CCNode *a1,
cocos2d::SEL_MenuHandler a2,
const char *a3,
const char *a4,
const char *a5,
const char *a6,
float a7)
{
size_t adj; // x24
void (__cdecl *ptr)(cocos2d::CCObject *); // x25
char *v15; // x19
cocos2d::SEL_MenuHandler v17; // 0:x2.16
adj = a2.adj;
ptr = a2.ptr;
v15 = (char *)operator new(0x1C8u);
cocos2d::CCLayer::CCLayer((__int64)v15);
*(_QWORD *)v15 = &off_1007E6560;
*((_QWORD *)v15 + 40) = off_1007E69E0;
*((_QWORD *)v15 + 41) = &off_1007E6A50;
*((_QWORD *)v15 + 42) = off_1007E6A68;
*((_QWORD *)v15 + 43) = &off_1007E6A88;
*((_QWORD *)v15 + 44) = off_1007E6AA8;
*((_QWORD *)v15 + 55) = 0;
*(_OWORD *)(v15 + 408) = 0u;
*(_OWORD *)(v15 + 424) = 0u;
v15[448] = 1;
v17.ptr = ptr;
v17.adj = adj;
if ( Slider::init((Slider *)v15, a1, v17, a3, a4, a5, a6, a7) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v15);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v15 + 16LL))(v15);
return nullptr;
}
return (Slider *)v15;
}