//
// EditorUI::getSnapAngle from 0x68f050 to 0x68f0f8 (168 bytes)
//
// 4 xrefs:
// > EditorUI::transformObject @ 0x693878
// > EditorUI::transformObjectCall @ 0x6b9f8c
// > EditorUI::transformObjectCall @ 0x6ba020
// > ??> @ 0xa1df0
//
// 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
//
float EditorUI::getSnapAngle(EditorUI *a1, GameObject *a2, cocos2d::CCArray *a3)
{
int v5; // w0
unsigned int v6; // w19
GameObject *v7; // x0
float result; // s0
GameObject *v9; // [xsp+38h] [xbp+38h]
if ( a3 && (v9 = a2, v5 = cocos2d::CCArray::count(a3), a2 = v9, v5) )
{
v6 = 0;
while ( v6 < (unsigned int)cocos2d::CCArray::count(a3) )
{
v7 = (GameObject *)cocos2d::CCArray::objectAtIndex(a3, v6++);
result = LevelEditorLayer::rotationForSlopeNearObject(a1->m_editorLayer, v7);
if ( result != -1.0 )
return result;
}
}
else if ( a2 )
{
return LevelEditorLayer::rotationForSlopeNearObject(a1->m_editorLayer, a2);
}
return -1.0;
}