//
// Slider::create_1 from 0x1003045f0 to 0x1003046f9 (265 bytes)
//
// 27 xrefs:
// > GJRotateCommandLayer::init @ 0x100001ca0
// > GJRotateCommandLayer::init @ 0x1000025be
// > SetupOpacityPopup::init @ 0x100057a01
// > CustomizeObjectLayer::init @ 0x1001f6842
// > SetupTriggerPopup::createValueControlAdvanced @ 0x10023a07f
// > GJFollowCommandLayer::init @ 0x1002d582a
// > GJFollowCommandLayer::init @ 0x1002d5c38
// > GJPFollowCommandLayer::init @ 0x100364f27
// > GJPFollowCommandLayer::init @ 0x10036535c
// > SetupPulsePopup::init @ 0x1003aa7da
// > SetupPulsePopup::init @ 0x1003aabc6
// > SetupPulsePopup::init @ 0x1003aafbb
// > PauseLayer::customSetup @ 0x1003d63cd
// > PauseLayer::customSetup @ 0x1003d6453
// > CreateParticlePopup::createParticleSlider @ 0x100473faa
// > SetupCameraRotatePopup::init @ 0x1004bcf46
// > SetupCameraRotatePopup::init @ 0x1004bd778
// > SetupMGTrigger::init @ 0x100508bbe
// > SetupMGTrigger::init @ 0x100509416
// > SetupRandTriggerPopup::init @ 0x1005e5d9f
// > MusicBrowser::setupSongControls @ 0x10060ed67
// > ConfigureValuePopup::init @ 0x100625195
// > SetupCameraOffsetTrigger::init @ 0x100661b31
// > SetupCameraOffsetTrigger::init @ 0x10066242f
// > SetupShakePopup::init @ 0x1006648f3
// > ColorSelectPopup::init @ 0x10072540a
// > ColorSelectPopup::init @ 0x1007255e5
//
// 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_1(cocos2d::CCNode *a1, cocos2d::SEL_MenuHandler a2, float a3)
{
size_t adj; // r14
char *v4; // rbx
cocos2d::SEL_MenuHandler v5; // rdx
adj = a2.adj;
v4 = (char *)operator new(0x1C8u);
cocos2d::CCLayer::CCLayer(v4);
*(_QWORD *)v4 = off_10090BC50;
*((_QWORD *)v4 + 40) = off_10090C0D0;
*((_QWORD *)v4 + 41) = &off_10090C140;
*((_QWORD *)v4 + 42) = off_10090C158;
*((_QWORD *)v4 + 43) = off_10090C178;
*((_QWORD *)v4 + 44) = off_10090C198;
*(_OWORD *)(v4 + 408) = 0;
*(_OWORD *)(v4 + 424) = 0;
*((_QWORD *)v4 + 55) = 0;
v4[448] = 1;
v5.ptr = a2.ptr;
v5.adj = adj;
if ( Slider::init(
(Slider *)v4,
a1,
v5,
"sliderBar.png",
"slidergroove.png",
"sliderthumb.png",
"sliderthumbsel.png",
a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v4 + 16LL))(v4);
return nullptr;
}
return (Slider *)v4;
}