//
// sub_10052A448 from 0x10052a448 to 0x10052a568 (288 bytes)
//
// 1 xrefs:
// > ??> @ 0x10085b6b0
//
// 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
//
__int64 __fastcall sub_10052A448(__int64 result)
{
if ( (int)result > 109 )
{
switch ( (int)result )
{
case 'n':
case 'o':
case 'p':
case 'q':
case 'r':
result = 40;
break;
case 's':
return result;
default:
return 0xFFFFFFFFLL;
}
return result;
}
if ( (int)result > 59 )
{
if ( (int)result <= 69 )
{
if ( (_DWORD)result == 60 )
return 40;
return 0xFFFFFFFFLL;
}
if ( (int)result <= 99 )
{
if ( (int)result <= 89 )
{
if ( (int)result <= 79 )
{
if ( (_DWORD)result == 70 || (_DWORD)result == 71 )
return 40;
return 0xFFFFFFFFLL;
}
if ( (_DWORD)result != 80 )
{
if ( (_DWORD)result == 86 )
return result;
return 0xFFFFFFFFLL;
}
return 40;
}
if ( (_DWORD)result == 90 )
return 40;
}
return 0xFFFFFFFFLL;
}
if ( (int)result <= 39 )
{
if ( (unsigned int)result <= 0x1E )
{
if ( ((1 << result) & 0x40100401) != 0 )
return result;
if ( (_DWORD)result == 21 || (_DWORD)result == 22 )
return 20;
}
return 0xFFFFFFFFLL;
}
switch ( (int)result )
{
case '(':
case ')':
case '*':
case '+':
case ',':
case '-':
case '.':
case '/':
return result;
case '0':
result = 42;
break;
case '1':
case '2':
return 40;
case '3':
return 40;
default:
return 0xFFFFFFFFLL;
}
return result;
}