//
// EditorUI::convertToBaseKey from 0x66b514 to 0x66b5ae (154 bytes)
//
// 2 xrefs:
// > EditorUI::processSmartObjectsFromType @ 0x482abe
// > EditorUI::convertKeyBasedOnNeighbors @ 0x66b5d2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:55:45 +0000
//
int __fastcall EditorUI::convertToBaseKey(EditorUI *this, 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;
}