// // EditorUI::positionIsInSnapped from 0x10003a3f0 to 0x10003a487 (151 bytes) // // 0 xrefs: // // 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; // rsi unsigned int v3; // ebx __int64 v4; // r12 v3 = 0; if ( (unsigned int)sub_100720070(a1->m_snapPositions) ) { do { v4 = sub_1007200C0(a1->m_snapPositions, v3); a2.x = *(float *)(*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v4 + 192LL))(v4, *(double *)&a2); if ( a2.x == *v2 ) { a2 = (cocos2d::CCPoint)*(unsigned int *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 192LL))(v4) + 4); if ( a2.x == v2[1] ) { LOBYTE(v3) = 1; return v3; } } ++v3; } while ( v3 < (unsigned int)sub_100720070(a1->m_snapPositions) ); LOBYTE(v3) = 0; } return v3; }