//
// EditorUI::positionIsInSnapped from 0x482150 to 0x4821ae (94 bytes)
//
// 1 xrefs:
// > EditorUI::onCreateObject @ 0x4873ee
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:23 +0000
//
int __fastcall EditorUI::positionIsInSnapped(int a1, float *a2)
{
unsigned int i; // r4
int v5; // r5
for ( i = 0; ; ++i )
{
if ( i >= cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 656)) )
return 0;
v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 656), i);
if ( *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v5 + 96))(v5) == *a2
&& *(float *)((*(int (__fastcall **)(int))(*(_DWORD *)v5 + 96))(v5) + 4) == a2[1] )
{
break;
}
}
return 1;
}