//
// Slider::create_2 from 0x1003044d0 to 0x1003045d7 (263 bytes)
//
// 12 xrefs:
// > SetupOpacityPopup::init @ 0x100057b6c
// > SetupGravityModPopup::init @ 0x1003d87cf
// > ConfigureHSVWidget::init @ 0x10042ffb1
// > ConfigureHSVWidget::init @ 0x10043012a
// > ConfigureHSVWidget::init @ 0x10043029b
// > SetupCameraModePopup::init @ 0x1004a93ba
// > SetupCameraModePopup::init @ 0x1004a9565
// > SetupTimeWarpPopup::init @ 0x1005030bd
// > SetupPortalPopup::init @ 0x10056fe43
// > SetupPortalPopup::init @ 0x10056ffee
// > OptionsLayer::customSetup @ 0x10079a88a
// > OptionsLayer::customSetup @ 0x10079a9ce
//
// 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_2(cocos2d::CCNode *a1, cocos2d::SEL_MenuHandler a2)
{
size_t adj; // r14
char *v3; // rbx
cocos2d::SEL_MenuHandler v4; // rdx
adj = a2.adj;
v3 = (char *)operator new(0x1C8u);
cocos2d::CCLayer::CCLayer(v3);
*(_QWORD *)v3 = off_10090BC50;
*((_QWORD *)v3 + 40) = off_10090C0D0;
*((_QWORD *)v3 + 41) = &off_10090C140;
*((_QWORD *)v3 + 42) = off_10090C158;
*((_QWORD *)v3 + 43) = off_10090C178;
*((_QWORD *)v3 + 44) = off_10090C198;
*(_OWORD *)(v3 + 408) = 0;
*(_OWORD *)(v3 + 424) = 0;
*((_QWORD *)v3 + 55) = 0;
v3[448] = 1;
v4.ptr = a2.ptr;
v4.adj = adj;
if ( Slider::init(
(Slider *)v3,
a1,
v4,
"sliderBar.png",
"slidergroove.png",
"sliderthumb.png",
"sliderthumbsel.png",
1.0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v3 + 16LL))(v3);
return nullptr;
}
return (Slider *)v3;
}