//
// EditorUI::findSnapObject from 0x1003f824c to 0x1003f835c (272 bytes)
//
// 2 xrefs:
// > EditorUI::ccTouchBegan @ 0x1003f894c
// > EditorUI::ccTouchBegan @ 0x1003f8988
//
// 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
//
void __fastcall EditorUI::findSnapObject(EditorUI *a1, cocos2d::CCPoint a2, float a3)
{
float *v3; // x1
float x; // s8
float *v5; // x20
cocos2d::CCArray *v7; // x21
unsigned int v8; // w22
GameObject *v9; // x23
float v10; // [xsp+0h] [xbp-50h] BYREF
x = a2.x;
v5 = v3;
if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) )
{
v7 = (cocos2d::CCArray *)sub_10024A15C();
if ( (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) )
{
v8 = 0;
do
{
v9 = (GameObject *)sub_10024A388((__int64)a1->m_selectedObjects, v8);
LevelEditorLayer::getObjectRect(a1->m_editorLayer, v9, 0, 0);
LevelEditorLayer::getObjectRect(a1->m_editorLayer, v9, 0, 0);
if ( sub_100022C60(&v10, v5) )
sub_10024A2D0((__int64)v7);
++v8;
}
while ( v8 < (unsigned int)sub_10024A36C((__int64)a1->m_selectedObjects) );
}
EditorUI::findSnapObject_1(a1, v7, x);
}
else
{
EditorUI::findSnapObject_1(a1, nullptr, x);
}
}