//
// sub_60B8BE from 0x60b8be to 0x60b8e8 (42 bytes)
//
// 4 xrefs:
// > fmt::internal::PrintfParser::Format @ 0x60cf46
// > fmt::internal::PrintfParser::Format @ 0x60cf68
// > fmt::internal::PrintfParser::Format @ 0x60ef3a
// > fmt::internal::PrintfParser::Format @ 0x60ef5c
//
// 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_60B8BE(_DWORD *a1)
{
__int64 result; // r0
switch ( *a1 )
{
case 0:
result = (int)a1[2];
break;
case 1:
result = (unsigned int)a1[2];
break;
case 2:
case 3:
result = *((_QWORD *)a1 + 1);
break;
default:
result = -1;
break;
}
return result;
}