//
// Slider::setMaxOffset from 0x140084bd0 to 0x140084c63 (147 bytes)
//
// 8 xrefs:
// > ColorSelectLiveOverlay::init @ 0x140125412
// > ColorSelectLiveOverlay::init @ 0x140125507
// > ColorSelectLiveOverlay::init @ 0x1401255f5
// > ColorSelectLiveOverlay::init @ 0x1401256e3
// > CreateParticlePopup::createParticleSlider @ 0x1405c6457
// > SetupTriggerPopup::createValueControlAdvanced_1 @ 0x14060df6f
// > TimeSpeedControl::init @ 0x14066d96b
// > ??> @ 0x1409124e8
//
// 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
//
__int64 __fastcall Slider::setMaxOffset(__int64 a1, float a2)
{
__int64 v2; // rbx
float v3; // xmm0_4
float *v4; // rdi
float Value; // xmm0_4
__int64 v6; // rbx
float v7; // xmm6_4
__int64 v8; // rax
char v10; // [rsp+50h] [rbp+8h] BYREF
v2 = *(_QWORD *)(a1 + 408);
v3 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(v2 + 456) + 168LL))(*(_QWORD *)(v2 + 456));
v4 = *(float **)(v2 + 456);
*(float *)(v2 + 452) = v3 * a2;
Value = SliderThumb::getValue(v4);
v6 = *(_QWORD *)v4;
v4[100] = a2;
v7 = Value;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, 0.0, 0.0);
(*(void (__fastcall **)(float *, __int64))(v6 + 184))(v4, v8);
return SliderThumb::setValue(v4, v7);
}