monoeg_g_get_current_time (struct GTimeVal * result)
{
  long int D.4813;
  long int D.4814;
  struct timeval tv;

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


monoeg_g_usleep (gulong microseconds)
{
  long unsigned int D.4818;
  long int D.4819;
  long unsigned int D.4820;
  long unsigned int D.4821;
  long int D.4822;
  int D.4823;
  int * D.4825;
  int D.4826;
  struct timespec req;
  struct timespec rem;

  try
    {
      D.4818 = microseconds / 1000000;
      D.4819 = (long int) D.4818;
      req.tv_sec = D.4819;
      D.4820 = microseconds % 1000000;
      D.4821 = D.4820 * 1000;
      D.4822 = (long int) D.4821;
      req.tv_nsec = D.4822;
      goto <D.4808>;
      <D.4807>:
      req = rem;
      <D.4808>:
      D.4823 = nanosleep (&req, &rem);
      if (D.4823 == -1) goto <D.4824>; else goto <D.4809>;
      <D.4824>:
      D.4825 = __errno_location ();
      D.4826 = *D.4825;
      if (D.4826 == 4) goto <D.4807>; else goto <D.4809>;
      <D.4809>:
    }
  finally
    {
      req = {CLOBBER};
      rem = {CLOBBER};
    }
}


