//
// __crt_stdio_output::to_integer_size from 0x18012dbb0 to 0x18012dbe6 (54 bytes)
//
// 6 xrefs:
// > sub_18012E518 @ 0x18012e53d
// > sub_18012E698 @ 0x18012e6bd
// > sub_18012E820 @ 0x18012e845
// > unknown_libname_50 @ 0x18012e9e2
// > unknown_libname_51 @ 0x18012ea6a
// > unknown_libname_52 @ 0x18012eaf2
//
// 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 __crt_stdio_output::to_integer_size(int a1)
{
__int64 result; // rax
switch ( a1 )
{
case 0:
case 3:
case 10:
result = 4;
break;
case 1:
result = 1;
break;
case 2:
result = 2;
break;
case 4:
case 5:
case 6:
case 7:
case 9:
case 11:
result = 8;
break;
default:
result = 0;
break;
}
return result;
}