//
// EditorUI::getLimitedPosition from 0x10004a790 to 0x10004a7f5 (101 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
//
cocos2d::CCPoint __fastcall EditorUI::getLimitedPosition(EditorUI *a1, cocos2d::CCPoint a2)
{
double *v2; // rdx
__int64 v3; // rsi
__m128 v4; // xmm0
cocos2d::CCPoint result; // 0:xmm0_8.8
if ( *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(v3 + 1256) + 3248LL) + 453LL) )
v4 = (__m128)0x46EB1400u;
else
v4 = (__m128)0x451BA000u;
_mm_storel_ps(
v2,
_mm_min_ps(
_mm_max_ps((__m128)*(unsigned __int64 *)v2, (__m128)xmmword_100815470),
_mm_insert_ps((__m128)xmmword_100815490, v4, 16)));
*(double *)&result = sub_10028CC60(a1);
return result;
}