//
// EditorUI::positionIsInSnapped from 0x7c238c to 0x7c2430 (164 bytes)
//
// 2 xrefs:
// > EditorUI::onCreateObject @ 0x7ca378
// > ??> @ 0xf5bc0
//
// 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 12:54:07 +0000
//
__int64 __fastcall EditorUI::positionIsInSnapped(__int64 a1, float *a2)
{
unsigned int v4; // w19
bool v5; // cf
unsigned int v6; // w1
__int64 v7; // x20
float *v8; // x0
v4 = 0;
while ( 1 )
{
v5 = v4 >= (unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 880));
v6 = v4++;
if ( v5 )
break;
v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 880), v6);
v8 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 192LL))(v7);
if ( *v8 == *a2
&& *(float *)((*(__int64 (__fastcall **)(__int64, float, float))(*(_QWORD *)v7 + 192LL))(v7, *a2, *v8) + 4) == a2[1] )
{
return 1;
}
}
return 0;
}