//
// EditorUI::positionIsInSnapped from 0x1003ec644 to 0x1003ec6e8 (164 bytes)
//
// 1 xrefs:
// > EditorUI::onCreateObject @ 0x1003eb4e0
//
// 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
//
bool __fastcall EditorUI::positionIsInSnapped(EditorUI *a1, cocos2d::CCPoint a2)
{
float *v2; // x1
float *v3; // x19
int v5; // w0
unsigned int v6; // w21
__int64 v7; // x22
float *v8; // x0
v3 = v2;
v5 = sub_10024A36C((__int64)a1->m_snapPositions);
if ( v5 )
{
v6 = 0;
while ( 1 )
{
v7 = sub_10024A388((__int64)a1->m_snapPositions, v6);
v8 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);
if ( *v8 == *v3
&& *(float *)((*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 192LL))(v7, *v8) + 4) == v3[1] )
{
break;
}
if ( ++v6 >= (unsigned int)sub_10024A36C((__int64)a1->m_snapPositions) )
{
LOBYTE(v5) = 0;
return v5;
}
}
LOBYTE(v5) = 1;
}
return v5;
}