//
// sub_1006505B0 from 0x1006505b0 to 0x1006506d0 (288 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009e37d0
//
// 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 11:10:49 +0000
//
__int64 __fastcall sub_1006505B0(__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;
}