//
// Slider::create from 0x100304710 to 0x100304818 (264 bytes)
//
// 8 xrefs:
// > EditorUI::init @ 0x10000918b
// > GJScaleControl::init @ 0x100052048
// > GJScaleControl::init @ 0x1000520d6
// > GJScaleControl::init @ 0x100052196
// > ColorSelectLiveOverlay::init @ 0x100568e6f
// > ColorSelectLiveOverlay::init @ 0x100568f51
// > ColorSelectLiveOverlay::init @ 0x10056902c
// > ColorSelectLiveOverlay::init @ 0x100569107
//
// 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; // r12
char *v9; // rbx
cocos2d::SEL_MenuHandler v10; // rdx
adj = a2.adj;
v9 = (char *)operator new(0x1C8u);
cocos2d::CCLayer::CCLayer(v9);
*(_QWORD *)v9 = off_10090BC50;
*((_QWORD *)v9 + 40) = off_10090C0D0;
*((_QWORD *)v9 + 41) = &off_10090C140;
*((_QWORD *)v9 + 42) = off_10090C158;
*((_QWORD *)v9 + 43) = off_10090C178;
*((_QWORD *)v9 + 44) = off_10090C198;
*(_OWORD *)(v9 + 408) = 0;
*(_OWORD *)(v9 + 424) = 0;
*((_QWORD *)v9 + 55) = 0;
v9[448] = 1;
v10.ptr = a2.ptr;
v10.adj = adj;
if ( Slider::init((Slider *)v9, a1, v10, a3, a4, a5, a6, a7) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v9 + 16LL))(v9);
return nullptr;
}
return (Slider *)v9;
}