//
// EditorUI::convertToBaseKey from 0xb06fa8 to 0xb07054 (172 bytes)
//
// 3 xrefs:
// > EditorUI::processSmartObjectsFromType @ 0x7c3398
// > EditorUI::convertKeyBasedOnNeighbors @ 0xb07094
// > ??> @ 0xf15b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:24 +0000
//
__int64 __fastcall EditorUI::convertToBaseKey(EditorUI *this, int a2)
{
__int64 result; // x0
if ( a2 > 2837 )
{
if ( a2 == 2845 )
return 2841;
if ( a2 <= 2845 )
{
if ( a2 != 2843 )
{
if ( a2 > 2843 )
return 2840;
if ( a2 != 2842 )
return (unsigned int)a2;
return 2838;
}
}
else if ( a2 != 2847 )
{
if ( a2 >= 2847 )
{
if ( a2 != 2848 )
{
if ( a2 == 2849 )
return 2841;
return (unsigned int)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 (unsigned int)a2;
}
result = 2703;
if ( a2 < 2808 )
return (unsigned int)a2;
return result;
}