//
// EditorUI::getSnapAngle from 0x1003f6270 to 0x1003f6324 (180 bytes)
//
// 2 xrefs:
// > EditorUI::transformObjectCall_1 @ 0x1003f6478
// > EditorUI::transformObjectCall_1 @ 0x1003f64a4
//
// 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 __fastcall EditorUI::getSnapAngle(EditorUI *a1, GameObject *a2, cocos2d::CCArray *a3)
{
unsigned int v6; // w21
GameObject *v7; // x0
float result; // s0
if ( !a3 || !(unsigned int)sub_10024A36C((__int64)a3) )
{
if ( a2 )
return LevelEditorLayer::rotationForSlopeNearObject(a1->m_editorLayer, a2);
return -1.0;
}
if ( !(unsigned int)sub_10024A36C((__int64)a3) )
return -1.0;
v6 = 0;
while ( 1 )
{
v7 = (GameObject *)sub_10024A388((__int64)a3, v6);
result = LevelEditorLayer::rotationForSlopeNearObject(a1->m_editorLayer, v7);
if ( result != -1.0 )
break;
if ( ++v6 >= (unsigned int)sub_10024A36C((__int64)a3) )
return -1.0;
}
return result;
}