// GetSetupVarSize - decompiled from Platform.efi
__int64 __fastcall GetSetupVarSize(unsigned __int16 a1)
{
  __int64 result; // rax

  if ( (unsigned __int16)(a1 - 48) > 9u ) /*0x57e7*/
  {
    if ( (unsigned __int16)(a1 - 97) <= 0x19u ) /*0x57f7*/
      a1 -= 32; /*0x57f9*/
    LODWORD(result) = a1 - 55; /*0x5800*/
  }
  else
  {
    LODWORD(result) = a1 - 48; /*0x57ec*/
  }
  return (int)result; /*0x5805*/
}
