monoeg_g_get_current_time (struct GTimeVal * result)
{
  long int D.5246;
  long int D.5247;
  struct timeval tv;

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


monoeg_g_usleep (gulong microseconds)
{
  long unsigned int D.5251;
  long int D.5252;
  long unsigned int D.5253;
  long unsigned int D.5254;
  long int D.5255;
  int D.5256;
  int * D.5258;
  int D.5259;
  struct timespec req;
  struct timespec rem;

  try
    {
      D.5251 = microseconds / 1000000;
      D.5252 = (long int) D.5251;
      req.tv_sec = D.5252;
      D.5253 = microseconds % 1000000;
      D.5254 = D.5253 * 1000;
      D.5255 = (long int) D.5254;
      req.tv_nsec = D.5255;
      goto <D.5241>;
      <D.5240>:
      req = rem;
      <D.5241>:
      D.5256 = nanosleep (&req, &rem);
      if (D.5256 == -1) goto <D.5257>; else goto <D.5242>;
      <D.5257>:
      D.5258 = __errno_location ();
      D.5259 = *D.5258;
      if (D.5259 == 4) goto <D.5240>; else goto <D.5242>;
      <D.5242>:
    }
  finally
    {
      req = {CLOBBER};
      rem = {CLOBBER};
    }
}


