// MigrateOldSetupVar - decompiled from Platform.efi
__int64 MigrateOldSetupVar()
{
  UINT32 Buffer; // edx
  __int64 v1; // rax
  __int64 n64; // rdx
  __int64 v3; // rax
  __int64 Buffer_1; // rax

  Buffer = Buffer; /*0x8d2a*/
  *(_BYTE *)(Buffer + 21) = 1; /*0x8d3e*/
  LODWORD(v1) = IoWrite32((UINTN)&Port__1, Buffer); /*0x8d42*/
  if ( v1 < 0 ) /*0x8d4f*/
  {
    DebugPrint(0x80000000, "\nASSERT_EFI_ERROR (Status = %r)\n", v1); /*0x8d5d*/
    Assert( /*0x8d75*/
      (__int64)"e:\\hs\\MdeModulePkg\\Library\\PiDxeS3BootScriptLib\\BootScriptSave.c",
      508,
      (__int64)"!EFI_ERROR (Status)");
  }
  v3 = SetupVariableGet(&Port__1, n64); /*0x8d81*/
  if ( v3 < 0 ) /*0x8d89*/
  {
    DebugPrint(0x80000000, "\nASSERT_EFI_ERROR (Status = %r)\n", v3); /*0x8d98*/
    Assert( /*0x8db0*/
      (__int64)"e:\\hs\\MdeModulePkg\\Library\\PiDxeS3BootScriptLib\\BootScriptSave.c",
      511,
      (__int64)"!EFI_ERROR (Status)");
  }
  Buffer_1 = Buffer; /*0x8db5*/
  *(_BYTE *)(Buffer + 21) = 0; /*0x8dbc*/
  return Buffer_1; /*0x8dc0*/
}
