//
// EditorUI::convertToBaseKey from 0x5363c4 to 0x53645e (154 bytes)
//
// 2 xrefs:
// > EditorUI::processSmartObjectsFromType @ 0x37e2d2
// > EditorUI::convertKeyBasedOnNeighbors @ 0x536482
//
// 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
//
int EditorUI::convertToBaseKey(EditorUI *a1, int a2)
{
if ( a2 > 2837 )
{
if ( a2 != 2845 )
{
if ( a2 <= 2845 )
{
if ( a2 != 2843 )
{
if ( a2 <= 2843 )
{
if ( a2 != 2842 )
return a2;
return 2838;
}
return 2840;
}
return 2839;
}
if ( a2 == 2847 )
return 2839;
if ( a2 < 2847 )
return 2838;
if ( a2 == 2848 )
return 2840;
if ( a2 != 2849 )
return a2;
}
return 2841;
}
if ( a2 >= 2823 )
return 2704;
if ( a2 <= 1267 )
{
if ( a2 >= 1266 || (unsigned int)(a2 - 867) <= 5 )
return 869;
return a2;
}
if ( a2 < 2808 )
return a2;
return 2703;
}