//
// EditorUI::convertToBaseKey from 0x9cb78c to 0x9cb838 (172 bytes)
//
// 3 xrefs:
// > EditorUI::processSmartObjectsFromType @ 0x68a394
// > EditorUI::convertKeyBasedOnNeighbors @ 0x9cb878
// > ??> @ 0xb8f08
//
// 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)
{
int result; // w0
if ( a2 > 2837 )
{
if ( a2 == 2845 )
return 2841;
if ( a2 <= 2845 )
{
if ( a2 != 2843 )
{
if ( a2 > 2843 )
return 2840;
if ( a2 != 2842 )
return a2;
return 2838;
}
}
else if ( a2 != 2847 )
{
if ( a2 >= 2847 )
{
if ( a2 != 2848 )
{
if ( a2 == 2849 )
return 2841;
return a2;
}
return 2840;
}
return 2838;
}
return 2839;
}
if ( a2 >= 2823 )
return 2704;
if ( a2 <= 1267 )
{
if ( a2 >= 1266 || (unsigned int)(a2 - 867) <= 5 )
return 869;
return a2;
}
result = 2703;
if ( a2 < 2808 )
return a2;
return result;
}