//
// EditorUI::findSnapObject from 0x10001a2f0 to 0x10001a3fe (270 bytes)
//
// 2 xrefs:
// > EditorUI::startFreeMoveTouch @ 0x1006099ca
// > EditorUI::startFreeMoveTouch @ 0x100609ae3
//
// 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:18:56 +0000
//
__int64 __fastcall EditorUI::findSnapObject(__int64 a1, __int64 a2, float a3)
{
__int64 v4; // rdi
unsigned int v5; // r12d
__int64 v6; // r15
_BYTE v8[16]; // [rsp+8h] [rbp-48h] BYREF
__int64 v9; // [rsp+18h] [rbp-38h]
float v10; // [rsp+24h] [rbp-2Ch]
v10 = a3;
v4 = *(_QWORD *)(a1 + 896);
if ( !(unsigned int)sub_1007FEF90(v4) )
return EditorUI::findSnapObject_1(a1, 0, v10);
v9 = sub_1007FE900(v4);
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) )
{
v5 = 0;
do
{
v6 = sub_1007FEFE0(*(_QWORD *)(a1 + 896), v5);
LevelEditorLayer::getObjectRect(v8, *(_QWORD *)(a1 + 1440), v6, 0, 0);
LevelEditorLayer::getObjectRect(v8, *(_QWORD *)(a1 + 1440), v6, 0, 0);
if ( (unsigned __int8)sub_100278940(v8, a2) )
sub_1007FEBF0(v9, v6);
++v5;
}
while ( v5 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 896)) );
}
return EditorUI::findSnapObject_1(a1, v9, v10);
}