//
// EditorUI::getLimitedPosition from 0x10015d3c4 to 0x10015d430 (108 bytes)
//
// 2 xrefs:
// > EditorUI::moveObject @ 0x10015d1fc
// > EditorUI::getGridSnappedPos @ 0x100477a48
//
// This function is hookable on this platform (idp: arm, 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 10:59:44 +0000
//
double __usercall EditorUI::getLimitedPosition@(__int64 a1@, float32x2_t *a2@, _QWORD *a3@)
{
float v3; // s0
float32x2_t v4; // d1
float32x2_t v5; // d0
v3 = 80.0;
if ( *(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3272LL) + 453LL) )
v3 = 1000.0;
v4.f32[0] = vld1_dup_f32((const float *)&dword_10075E950).f32[0];
v4.f32[1] = (float)(v3 * 30.0) + 90.0;
v5 = vmaxnm_f32(*a2, (float32x2_t)vdup_n_s32(0xC53B8000));
*a2 = (float32x2_t)vbsl_s8((int8x8_t)vcgt_f32(v4, v5), (int8x8_t)v5, (int8x8_t)v4);
return sub_1000262F4(a3, (double *)a2);
}