monoeg_g_get_current_time (struct GTimeVal * result)
{
  long int D.5143;
  long int D.5144;
  struct timeval tv;

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


monoeg_g_usleep (gulong microseconds)
{
  long unsigned int D.5148;
  long int D.5149;
  long unsigned int D.5150;
  long unsigned int D.5151;
  long int D.5152;
  int D.5153;
  int * D.5155;
  int D.5156;
  struct timespec req;
  struct timespec rem;

  try
    {
      D.5148 = microseconds / 1000000;
      D.5149 = (long int) D.5148;
      req.tv_sec = D.5149;
      D.5150 = microseconds % 1000000;
      D.5151 = D.5150 * 1000;
      D.5152 = (long int) D.5151;
      req.tv_nsec = D.5152;
      goto <D.5138>;
      <D.5137>:
      req = rem;
      <D.5138>:
      D.5153 = nanosleep (&req, &rem);
      if (D.5153 == -1) goto <D.5154>; else goto <D.5139>;
      <D.5154>:
      D.5155 = __errno_location ();
      D.5156 = *D.5155;
      if (D.5156 == 4) goto <D.5137>; else goto <D.5139>;
      <D.5139>:
    }
  finally
    {
      req = {CLOBBER};
      rem = {CLOBBER};
    }
}


