//
// EditorUI::sliderChanged from 0x10000b6f0 to 0x10000b7df (239 bytes)
//
// 1 xrefs:
// > EditorUI::init @ 0x100009162
//
// 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
//
void __fastcall EditorUI::sliderChanged(EditorUI *a1, cocos2d::CCObject *a2)
{
cocos2d::CCLayer *m_objectLayer; // r14
int SectionCount; // eax
int v4; // ecx
__m128 v5; // xmm0
__int64 v6; // rax
_BYTE v7[8]; // [rsp+8h] [rbp-38h] BYREF
__m128 v8; // [rsp+10h] [rbp-30h]
float XMin; // [rsp+20h] [rbp-20h]
float v10; // [rsp+24h] [rbp-1Ch]
v8.i32[0] = SliderThumb::getValue((SliderThumb *)a2);
m_objectLayer = a1->m_editorLayer->m_objectLayer;
XMin = EditorUI::getXMin(a1, 0);
SectionCount = LevelEditorLayer::getSectionCount(a1->m_editorLayer);
v4 = 100;
if ( SectionCount >= 101 )
v4 = SectionCount;
v5 = 0;
v10 = (float)v4 * 100.0;
*(double *)v5.i64 = ((double (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer);
v5.f32[0] = (float)((float)(v5.f32[0] * v10) * v8.f32[0]) - XMin;
v8 = _mm_xor_ps(v5, (__m128)xmmword_1008150B0);
v6 = ((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getPosition)(a1->m_editorLayer->m_objectLayer);
sub_10028CBE0(v7, v8.f32[0], *(float *)(v6 + 4));
((void (__fastcall *)(cocos2d::CCLayer *, _BYTE *))m_objectLayer->setPosition)(m_objectLayer, v7);
EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0);
}