monoeg_g_get_current_time (struct GTimeVal * result)
{
  long int D.4793;
  long int D.4794;
  struct timeval tv;

  try
    {
      if (result == 0B) goto <D.4791>; else goto <D.4792>;
      <D.4791>:
      monoeg_g_log (0B, 8, "%s:%d: assertion \'%s\' failed", "gdate-unix.c", 39, "result != NULL");
      return;
      <D.4792>:
      gettimeofday (&tv, 0B);
      D.4793 = tv.tv_sec;
      result->tv_sec = D.4793;
      D.4794 = tv.tv_usec;
      result->tv_usec = D.4794;
    }
  finally
    {
      tv = {CLOBBER};
    }
}


monoeg_g_usleep (gulong microseconds)
{
  long unsigned int D.4798;
  long int D.4799;
  long unsigned int D.4800;
  long unsigned int D.4801;
  long int D.4802;
  int D.4803;
  int * D.4805;
  int D.4806;
  struct timespec req;
  struct timespec rem;

  try
    {
      D.4798 = microseconds / 1000000;
      D.4799 = (long int) D.4798;
      req.tv_sec = D.4799;
      D.4800 = microseconds % 1000000;
      D.4801 = D.4800 * 1000;
      D.4802 = (long int) D.4801;
      req.tv_nsec = D.4802;
      goto <D.4788>;
      <D.4787>:
      req = rem;
      <D.4788>:
      D.4803 = nanosleep (&req, &rem);
      if (D.4803 == -1) goto <D.4804>; else goto <D.4789>;
      <D.4804>:
      D.4805 = __errno_location ();
      D.4806 = *D.4805;
      if (D.4806 == 4) goto <D.4787>; else goto <D.4789>;
      <D.4789>:
    }
  finally
    {
      req = {CLOBBER};
      rem = {CLOBBER};
    }
}


