// ExtractMeSpsConfig - decompiled from Platform.efi
void __fastcall ExtractMeSpsConfig(_BYTE *SourceBuffer)
{
  unsigned __int8 v1; // bl
  unsigned __int8 *v2; // rdi
  _WORD *v4; // rax
  int v5; // r8d
  unsigned __int8 v6; // [rsp+8h] [rbp+8h] BYREF

  if ( SourceBuffer )
  {
    v1 = 0; /*0x4c00*/
    v2 = SourceBuffer + 32; /*0x4c02*/
    if ( SourceBuffer == (_BYTE *)-32LL )
    {
      Assert( /*0x4c1f*/
        (__int64)"e:\\hs\\PurleySktPkg\\Me\\Library\\DxePttHeciLib\\DxePttHeciLib.c",
        62,
        (__int64)"PttCapability != ((void *) 0)");
    }
    else
    {
      *v2 = 0; /*0x4c26*/
      if ( (unsigned int)GetManufacturingMode() == 1 ) /*0x4c30*/
      {
        v4 = HiiStringToToken2((__int64)&unk_FB60); /*0x4c39*/
        if ( v4 ) /*0x4c41*/
          *v2 = (*((_DWORD *)v4 + 6) & 0x20) != 0; /*0x4c4b*/
      }
      DebugPrint(0x40u, "[ME] PTT SkuMgr: PttCapability = %d\n", *v2);
    }
    v6 = 0; /*0x4c62*/
    if ( *v2 ) /*0x4c66*/
    {
      SetupIfrKeywordHandle(&v6); /*0x4c6f*/
      v1 = v6; /*0x4c74*/
    }
    v5 = *v2; /*0x4c78*/
    SourceBuffer[23] = v1; /*0x4c8c*/
    DebugPrint(0x40u, "[ME] PTT supported/enabled: %d/%d\n", v5, v1);
  }
}
