//
// Slider::create_2 from 0x1002ef3f0 to 0x1002ef4f7 (263 bytes)
//
// 12 xrefs:
// > SetupOpacityPopup::init @ 0x10001d0dd
// > SetupGravityModPopup::init @ 0x1003c5af9
// > ConfigureHSVWidget::init @ 0x10041d381
// > ConfigureHSVWidget::init @ 0x10041d4fa
// > ConfigureHSVWidget::init @ 0x10041d66b
// > SetupCameraModePopup::init @ 0x1004a225d
// > SetupCameraModePopup::init @ 0x1004a2408
// > SetupTimeWarpPopup::init @ 0x100501cc0
// > SetupPortalPopup::init @ 0x10059cfb3
// > SetupPortalPopup::init @ 0x10059d15e
// > OptionsLayer::customSetup @ 0x10087b4aa
// > OptionsLayer::customSetup @ 0x10087b5ea
//
// 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:28:24 +0000
//
char *__fastcall Slider::create_2(int a1, int a2, int a3)
{
char *v4; // rbx
v4 = (char *)operator new(0x1C8u);
cocos2d::CCLayer::CCLayer(v4);
*(_QWORD *)v4 = off_100B13600;
*((_QWORD *)v4 + 40) = off_100B13A90;
*((_QWORD *)v4 + 41) = &off_100B13B00;
*((_QWORD *)v4 + 42) = off_100B13B18;
*((_QWORD *)v4 + 43) = off_100B13B38;
*((_QWORD *)v4 + 44) = off_100B13B60;
*(_OWORD *)(v4 + 408) = 0;
*(_OWORD *)(v4 + 424) = 0;
*((_QWORD *)v4 + 55) = 0;
v4[448] = 1;
if ( (unsigned __int8)Slider::init(
(_DWORD)v4,
a1,
a2,
a3,
(unsigned int)"sliderBar.png",
(unsigned int)"slidergroove.png",
(__int64)"sliderthumb.png",
(__int64)"sliderthumbsel.png") )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v4 + 16LL))(v4, 1.0);
return nullptr;
}
return v4;
}