//
// CreateParticlePopup::sliderBegan from 0x1405ca2f0 to 0x1405ca3a3 (179 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407f9138
// > ??> @ 0x14092e3e8
//
// 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:34:52 +0000
//
__int64 __fastcall CreateParticlePopup::sliderBegan(__int64 a1, __int64 a2)
{
__int64 v3; // kr00_8
__int64 result; // rax
v3 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2) - 6;
switch ( (int)v3 )
{
case 0:
case 1:
case 2:
case 3:
result = *(_QWORD *)(a1 + 120);
*(_DWORD *)(result + 548) = 3;
break;
case 4:
case 5:
case 44:
case 46:
result = *(_QWORD *)(a1 + 120);
*(_DWORD *)(result + 548) = 1;
break;
case 6:
case 7:
result = *(_QWORD *)(a1 + 120);
*(_DWORD *)(result + 548) = 2;
break;
default:
result = v3;
break;
}
return result;
}