//
// SliderThumb::setMaxOffset from 0x593ddc to 0x593e74 (152 bytes)
//
// 2 xrefs:
// > SliderTouchLogic::setMaxOffset @ 0x594158
// > ??> @ 0xa8738
//
// 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 SliderThumb::setMaxOffset(SliderThumb *a1, float a2)
{
float Value; // s8
SliderThumb_vtbl *v5; // x2
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21
cocos2d::CCPoint v7; // [xsp+50h] [xbp+50h] BYREF
Value = SliderThumb::getValue(a1);
v5 = a1->cocos2d::CCMenuItemImage::cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_length = a2;
setPosition = v5->setPosition;
cocos2d::CCPoint::CCPoint(&v7, 0.0, 0.0);
setPosition(a1, &v7);
SliderThumb::setValue(a1, Value);
}