/** @file
  MeSmmProtocolThunk.c -- MeSmmProtocolThunk

  Auto-converted from IDA decompiler output.
  Functions: 1

Copyright (c) HR650X BIOS Decompilation Project
**/

#include "MeSmmProtocolThunk.h"


// Function: ModuleEntryPoint
// Original build path:
//   PurleyRpPkg/Platform/Dxe/MeSmmProtocolThunk/MeSmmProtocolThunk/DEBUG/AutoGen.c
EFI_STATUS
ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
{
  __int64 v2; // rax

  sub_4D4(ImageHandle, SystemTable);
  qword_1078 = 0x8000000000000001uLL;

  if ( !sub_2C0(&unk_F80) )
  {
    v2 = sub_6D4();
    if ( v2 >= 0 || qword_1078 < 0 )
      qword_1078 = v2;

    sub_7E4(&unk_F80);
    sub_360(&unk_F80, -1);
    sub_904(
      "e:\\hs\\Build\\HR6N0XMLK\\DEBUG_VS2015\\X64\\PurleyRpPkg\\Platform\\Dxe\\MeSmmProtocolThunk\\MeSmmProtocolThunk\\DEBUG\\AutoGen.c",
      178,
      "((BOOLEAN)(0==1))");
    sub_904(
      "e:\\hs\\Build\\HR6N0XMLK\\DEBUG_VS2015\\X64\\PurleyRpPkg\\Platform\\Dxe\\MeSmmProtocolThunk\\MeSmmProtocolThunk\\DEBUG\\AutoGen.c",
      193,
      "((BOOLEAN)(0==1))");
  }

  return qword_1078;
}
