//
// EditorUI::sliderChanged from 0x381628 to 0x381694 (108 bytes)
//
// 0 xrefs:
//
// 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 EditorUI::sliderChanged(EditorUI *a1, cocos2d::CCObject *a2)
{
float Value; // r0
cocos2d::CCLayer *m_objectLayer; // r7
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
float v6; // r9
const cocos2d::CCPoint *v7; // r0
cocos2d::CCPoint v8; // [sp+4h] [bp-10h] BYREF
Value = SliderThumb::getValue((SliderThumb *)a2);
m_objectLayer = a1->m_editorLayer->m_objectLayer;
setPosition = m_objectLayer->setPosition;
v6 = EditorUI::xPosFromValue(a1, Value);
v7 = a1->m_editorLayer->m_objectLayer->getPosition(a1->m_editorLayer->m_objectLayer);
cocos2d::CCPoint::CCPoint(&v8, COERCE_FLOAT(LODWORD(v6) ^ 0x80000000), v7->y);
setPosition(m_objectLayer, &v8);
EditorUI::constrainGameLayerPosition(a1);
}