//
// __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 (idp: pc, 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 10:54:57 +0000
//
__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;
}