//
// Slider::create from 0x140084700 to 0x1400849b0 (688 bytes)
//
// 41 xrefs:
// > DeathMarkerSettingsPopup::init @ 0x14011c6ae
// > DeathMarkerSettingsPopup::init @ 0x14011cb8b
// > ColorSelectLiveOverlay::init @ 0x1401253a2
// > ColorSelectLiveOverlay::init @ 0x140125493
// > ColorSelectLiveOverlay::init @ 0x140125581
// > ColorSelectLiveOverlay::init @ 0x14012566f
// > ColorSelectPopup::init @ 0x1401271f3
// > ColorSelectPopup::init @ 0x1401273c9
// > ConfigureHSVWidget::init @ 0x14012fdaf
// > ConfigureHSVWidget::init @ 0x14012ff46
// > ConfigureHSVWidget::init @ 0x1401300cc
// > ConfigureValuePopup::init @ 0x140132227
// > CustomizeObjectLayer::init @ 0x1401410fd
// > EditorPauseLayer::customSetup @ 0x140182125
// > GJScaleControl::init @ 0x1401a3024
// > GJScaleControl::init @ 0x1401a30bb
// > GJScaleControl::init @ 0x1401a3178
// > EditorUI::init @ 0x1401a9aa4
// > MusicBrowser::init @ 0x14047b892
// > OptionsLayer::customSetup @ 0x1404cb60f
// > OptionsLayer::customSetup @ 0x1404cb798
// > PauseLayer::customSetup @ 0x1404d7ee4
// > PauseLayer::customSetup @ 0x1404d7fca
// > SetupCameraModePopup::init @ 0x1405abcd2
// > SetupCameraModePopup::init @ 0x1405abe9e
// > SetupCameraOffsetTrigger::init @ 0x1405acf1d
// > SetupCameraOffsetTrigger::init @ 0x1405ad788
// > SetupMGTrigger::init @ 0x1405bcefe
// > SetupMGTrigger::init @ 0x1405bd74f
// > SetupOpacityPopup::init @ 0x1405c04d6
// > SetupOpacityPopup::init @ 0x1405c0630
// > CreateParticlePopup::createParticleSlider @ 0x1405c639f
// > SetupPulsePopup::init @ 0x1405cd5f6
// > SetupPulsePopup::init @ 0x1405cda91
// > SetupPulsePopup::init @ 0x1405cdf1b
// > SetupRandTriggerPopup::init @ 0x1405d57fa
// > SetupShakePopup::init @ 0x1405eb023
// > SetupTimeWarpPopup::init @ 0x1405f9991
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x14060de73
// > TimeSpeedControl::init @ 0x14066d906
// > ??> @ 0x1409124b8
//
// 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 11:25:56 +0000
//
// Hidden C++ exception states: #wind=1
cocos2d::CCLayer *__fastcall Slider::create(
__int64 a1,
__int64 a2,
__int64 a3,
const char *a4,
__int64 a5,
__int64 a6,
float a7)
{
cocos2d::CCLayer *v10; // rsi
struct cocos2d::CCSprite *v11; // rax
struct cocos2d::CCSprite *v12; // rax
cocos2d::CCTexture2D *v13; // rax
__int64 v14; // rdi
__int64 v15; // rbx
__int64 v16; // rax
__int64 v17; // rdi
__int64 v18; // rbx
__int64 v19; // rax
cocos2d::CCLayer *v21; // [rsp+30h] [rbp-58h] BYREF
_DWORD v22[4]; // [rsp+38h] [rbp-50h] BYREF
v10 = (cocos2d::CCLayer *)operator new(0x1C8u);
v21 = v10;
cocos2d::CCLayer::CCLayer(v10);
*(_QWORD *)v10 = &Slider::`vftable';
*((_QWORD *)v10 + 40) = &Slider::`vftable';
*((_QWORD *)v10 + 41) = &Slider::`vftable';
*((_QWORD *)v10 + 42) = &Slider::`vftable';
*((_QWORD *)v10 + 43) = &Slider::`vftable';
*((_QWORD *)v10 + 44) = &Slider::`vftable';
*((_QWORD *)v10 + 51) = 0;
*((_QWORD *)v10 + 52) = 0;
*((_QWORD *)v10 + 53) = 0;
*((_QWORD *)v10 + 54) = 0;
*((_QWORD *)v10 + 55) = 0;
*((_BYTE *)v10 + 448) = 1;
if ( cocos2d::CCLayer::init(v10) )
{
*((_QWORD *)v10 + 51) = Slider::init(a1, a2, a5, a6, a7);
v11 = cocos2d::CCSprite::create(a4);
*((_QWORD *)v10 + 53) = v11;
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v11 + 160LL))(v11);
(*(void (__fastcall **)(cocos2d::CCLayer *, _QWORD))(*(_QWORD *)v10 + 464LL))(v10, *((_QWORD *)v10 + 53));
(*(void (__fastcall **)(cocos2d::CCLayer *, _QWORD))(*(_QWORD *)v10 + 464LL))(v10, *((_QWORD *)v10 + 51));
v12 = cocos2d::CCSprite::create("sliderBar.png");
*((_QWORD *)v10 + 52) = v12;
*((float *)v10 + 108) = *(float *)(*((_QWORD *)v10 + 53) + 432LL) - 4.0;
*((_DWORD *)v10 + 109) = 1090519040;
v22[0] = 9729;
v22[1] = 9729;
v22[2] = 10497;
v22[3] = 10497;
v13 = (cocos2d::CCTexture2D *)(*(__int64 (__fastcall **)(__int64))(*((_QWORD *)v12 + 43) + 16LL))((__int64)v12 + 344);
cocos2d::CCTexture2D::setTexParameters(v13, (struct cocos2d::_ccTexParams *)v22);
(*(void (__fastcall **)(_QWORD, _QWORD, __int64))(**((_QWORD **)v10 + 53) + 456LL))(
*((_QWORD *)v10 + 53),
*((_QWORD *)v10 + 52),
0xFFFFFFFFLL);
v14 = **((_QWORD **)v10 + 52);
v15 = *((_QWORD *)v10 + 52);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 0.0, 0.0);
(*(void (__fastcall **)(__int64, __int64))(v14 + 288))(v15, v16);
v17 = **((_QWORD **)v10 + 52);
v18 = *((_QWORD *)v10 + 52);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v21, 2.0, 4.0);
(*(void (__fastcall **)(__int64, __int64))(v17 + 184))(v18, v19);
(*(void (__fastcall **)(_QWORD))(**((_QWORD **)v10 + 52) + 136LL))(*((_QWORD *)v10 + 52));
*(_QWORD *)(*((_QWORD *)v10 + 51) + 464LL) = v10;
cocos2d::CCObject::autorelease(v10);
return v10;
}
else
{
(*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)v10 + 8LL))(v10, 1);
return nullptr;
}
}