Mono_Posix_Syscall_mmap (void * start, mph_size_t length, int prot, int flags, int fd, mph_off_t offset)
{
  int * D.6657;
  void * D.6658;
  int D.6661;
  int D.6664;
  int _flags.0;
  int _prot.1;
  int _prot;
  int _flags;

  try
    {
      if (0 != 0) goto <D.6655>; else goto <D.6656>;
      <D.6655>:
      D.6657 = __errno_location ();
      *D.6657 = 75;
      D.6658 = -1B;
      return D.6658;
      <D.6656>:
      if (0 != 0) goto <D.6659>; else goto <D.6660>;
      <D.6659>:
      D.6657 = __errno_location ();
      *D.6657 = 75;
      D.6658 = -1B;
      return D.6658;
      <D.6660>:
      D.6661 = Mono_Posix_FromMmapProts (prot, &_prot);
      if (D.6661 == -1) goto <D.6662>; else goto <D.6663>;
      <D.6662>:
      D.6658 = -1B;
      return D.6658;
      <D.6663>:
      D.6664 = Mono_Posix_FromMmapFlags (flags, &_flags);
      if (D.6664 == -1) goto <D.6665>; else goto <D.6666>;
      <D.6665>:
      D.6658 = -1B;
      return D.6658;
      <D.6666>:
      _flags.0 = _flags;
      _prot.1 = _prot;
      D.6658 = mmap (start, length, _prot.1, _flags.0, fd, offset);
      return D.6658;
    }
  finally
    {
      _prot = {CLOBBER};
      _flags = {CLOBBER};
    }
}


Mono_Posix_Syscall_munmap (void * start, mph_size_t length)
{
  int * D.6673;
  int D.6674;

  if (0 != 0) goto <D.6671>; else goto <D.6672>;
  <D.6671>:
  D.6673 = __errno_location ();
  *D.6673 = 75;
  D.6674 = -1;
  return D.6674;
  <D.6672>:
  D.6674 = munmap (start, length);
  return D.6674;
}


Mono_Posix_Syscall_mprotect (void * start, mph_size_t len, int prot)
{
  int * D.6678;
  int D.6679;
  int D.6680;
  int _prot.2;
  int _prot;

  try
    {
      if (0 != 0) goto <D.6676>; else goto <D.6677>;
      <D.6676>:
      D.6678 = __errno_location ();
      *D.6678 = 75;
      D.6679 = -1;
      return D.6679;
      <D.6677>:
      D.6680 = Mono_Posix_FromMmapProts (prot, &_prot);
      if (D.6680 == -1) goto <D.6681>; else goto <D.6682>;
      <D.6681>:
      D.6679 = -1;
      return D.6679;
      <D.6682>:
      _prot.2 = _prot;
      D.6679 = mprotect (start, len, _prot.2);
      return D.6679;
    }
  finally
    {
      _prot = {CLOBBER};
    }
}


Mono_Posix_Syscall_msync (void * start, mph_size_t len, int flags)
{
  int * D.6688;
  int D.6689;
  int D.6690;
  int _flags.3;
  int _flags;

  try
    {
      if (0 != 0) goto <D.6686>; else goto <D.6687>;
      <D.6686>:
      D.6688 = __errno_location ();
      *D.6688 = 75;
      D.6689 = -1;
      return D.6689;
      <D.6687>:
      D.6690 = Mono_Posix_FromMsyncFlags (flags, &_flags);
      if (D.6690 == -1) goto <D.6691>; else goto <D.6692>;
      <D.6691>:
      D.6689 = -1;
      return D.6689;
      <D.6692>:
      _flags.3 = _flags;
      D.6689 = msync (start, len, _flags.3);
      return D.6689;
    }
  finally
    {
      _flags = {CLOBBER};
    }
}


Mono_Posix_Syscall_mlock (void * start, mph_size_t len)
{
  int * D.6698;
  int D.6699;

  if (0 != 0) goto <D.6696>; else goto <D.6697>;
  <D.6696>:
  D.6698 = __errno_location ();
  *D.6698 = 75;
  D.6699 = -1;
  return D.6699;
  <D.6697>:
  D.6699 = mlock (start, len);
  return D.6699;
}


Mono_Posix_Syscall_munlock (void * start, mph_size_t len)
{
  int * D.6703;
  int D.6704;

  if (0 != 0) goto <D.6701>; else goto <D.6702>;
  <D.6701>:
  D.6703 = __errno_location ();
  *D.6703 = 75;
  D.6704 = -1;
  return D.6704;
  <D.6702>:
  D.6704 = munlock (start, len);
  return D.6704;
}


Mono_Posix_Syscall_mremap (void * old_address, mph_size_t old_size, mph_size_t new_size, guint64 flags)
{
  int * D.6708;
  void * D.6709;
  int D.6712;
  long unsigned int _flags.4;
  int D.6716;
  guint64 _flags;

  try
    {
      if (0 != 0) goto <D.6706>; else goto <D.6707>;
      <D.6706>:
      D.6708 = __errno_location ();
      *D.6708 = 75;
      D.6709 = -1B;
      return D.6709;
      <D.6707>:
      if (0 != 0) goto <D.6710>; else goto <D.6711>;
      <D.6710>:
      D.6708 = __errno_location ();
      *D.6708 = 75;
      D.6709 = -1B;
      return D.6709;
      <D.6711>:
      D.6712 = Mono_Posix_FromMremapFlags (flags, &_flags);
      if (D.6712 == -1) goto <D.6713>; else goto <D.6714>;
      <D.6713>:
      D.6709 = -1B;
      return D.6709;
      <D.6714>:
      _flags.4 = _flags;
      D.6716 = (int) _flags.4;
      D.6709 = mremap (old_address, old_size, new_size, D.6716);
      return D.6709;
    }
  finally
    {
      _flags = {CLOBBER};
    }
}


Mono_Posix_Syscall_mincore (void * start, mph_size_t length, unsigned char * vec)
{
  int * D.6721;
  int D.6722;

  if (0 != 0) goto <D.6719>; else goto <D.6720>;
  <D.6719>:
  D.6721 = __errno_location ();
  *D.6721 = 75;
  D.6722 = -1;
  return D.6722;
  <D.6720>:
  D.6722 = mincore (start, length, vec);
  return D.6722;
}


Mono_Posix_Syscall_posix_madvise (void * addr, mph_size_t len, gint32 advice)
{
  int * D.6726;
  int D.6727;
  int advice.5;
  int D.6729;

  if (0 != 0) goto <D.6724>; else goto <D.6725>;
  <D.6724>:
  D.6726 = __errno_location ();
  *D.6726 = 75;
  D.6727 = -1;
  return D.6727;
  <D.6725>:
  advice.5 = advice;
  D.6729 = Mono_Posix_FromPosixMadviseAdvice (advice.5, &advice);
  if (D.6729 == -1) goto <D.6730>; else goto <D.6731>;
  <D.6730>:
  D.6727 = -1;
  return D.6727;
  <D.6731>:
  advice.5 = advice;
  D.6727 = posix_madvise (addr, len, advice.5);
  return D.6727;
}


Mono_Posix_Syscall_remap_file_pages (void * start, mph_size_t size, int prot, mph_ssize_t pgoff, int flags)
{
  int * D.6735;
  int D.6736;
  int D.6739;
  int D.6742;
  int _flags.6;
  long unsigned int pgoff.7;
  int _prot.8;
  int _prot;
  int _flags;

  try
    {
      if (0 != 0) goto <D.6733>; else goto <D.6734>;
      <D.6733>:
      D.6735 = __errno_location ();
      *D.6735 = 75;
      D.6736 = -1;
      return D.6736;
      <D.6734>:
      if (0 != 0) goto <D.6737>; else goto <D.6738>;
      <D.6737>:
      D.6735 = __errno_location ();
      *D.6735 = 75;
      D.6736 = -1;
      return D.6736;
      <D.6738>:
      D.6739 = Mono_Posix_FromMmapProts (prot, &_prot);
      if (D.6739 == -1) goto <D.6740>; else goto <D.6741>;
      <D.6740>:
      D.6736 = -1;
      return D.6736;
      <D.6741>:
      D.6742 = Mono_Posix_FromMmapFlags (flags, &_flags);
      if (D.6742 == -1) goto <D.6743>; else goto <D.6744>;
      <D.6743>:
      D.6736 = -1;
      return D.6736;
      <D.6744>:
      _flags.6 = _flags;
      pgoff.7 = (long unsigned int) pgoff;
      _prot.8 = _prot;
      D.6736 = remap_file_pages (start, size, _prot.8, pgoff.7, _flags.6);
      return D.6736;
    }
  finally
    {
      _prot = {CLOBBER};
      _flags = {CLOBBER};
    }
}


