//
// EditorUI::getLimitedPosition from 0x10060ec00 to 0x10060ec65 (101 bytes)
//
// 6 xrefs:
// > EditorUI::onCreateObject @ 0x100010ee4
// > EditorUI::getGridSnappedPos @ 0x100011bad
// > EditorUI::createPrefab @ 0x100014902
// > EditorUI::createGradientFromSelection @ 0x100017672
// > EditorUI::findSnapObject_1 @ 0x10001a557
// > EditorUI::findSnapObject_1 @ 0x10001a755
//
// 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 12:34:33 +0000
//
_QWORD *__fastcall EditorUI::getLimitedPosition(_QWORD *a1, __int64 a2, double *a3)
{
__m128 v3; // xmm0
if ( *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a2 + 1440) + 3272LL) + 453LL) )
v3 = (__m128)0x46EB1400u;
else
v3 = (__m128)0x451BA000u;
_mm_storel_ps(
a3,
_mm_min_ps(
_mm_max_ps((__m128)*(unsigned __int64 *)a3, (__m128)xmmword_100A0D740),
_mm_insert_ps((__m128)xmmword_100A03890, v3, 16)));
sub_1002782D0(a1, a3);
return a1;
}