//
// sub_81B842 from 0x81b842 to 0x81b86c (42 bytes)
//
// 4 xrefs:
// > fmt::internal::PrintfParser::Format @ 0x81dd26
// > fmt::internal::PrintfParser::Format @ 0x81dd48
// > fmt::internal::PrintfParser::Format @ 0x81ef60
// > fmt::internal::PrintfParser::Format @ 0x81ef82
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:46 +0000
//
__int64 __fastcall sub_81B842(_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;
}