//
// EditorUI::findSnapObject from 0x10047cee8 to 0x10047cff8 (272 bytes)
//
// 2 xrefs:
// > EditorUI::startFreeMoveTouch @ 0x100160d7c
// > EditorUI::startFreeMoveTouch @ 0x100160db8
//
// 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 11:05:44 +0000
//
__int64 __fastcall EditorUI::findSnapObject(__int64 a1, float *a2, float a3)
{
__n128 v6; // q0
_QWORD *v7; // x21
__n128 v8; // q0
unsigned int v9; // w22
double *v10; // x23
float v12[4]; // [xsp+0h] [xbp-50h] BYREF
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) )
{
v7 = sub_1002E736C();
if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) )
{
v9 = 0;
do
{
v10 = (double *)sub_1002E75A0(*(_QWORD *)(a1 + 896), v9);
sub_1003FADCC(*(_QWORD *)(a1 + 1440), v10, 0, 0, v12);
sub_1003FADCC(*(_QWORD *)(a1 + 1440), v10, 0, 0, v12);
if ( sub_1000265E4(v12, a2) )
sub_1002E74E0((__int64)v7);
++v9;
}
while ( v9 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 896)) );
}
v8.n128_f32[0] = a3;
return EditorUI::findSnapObject_1(a1, v7, v8);
}
else
{
v6.n128_f32[0] = a3;
return EditorUI::findSnapObject_1(a1, 0, v6);
}
}