
size_t __strftime_internal(char *s,size_t maxsize,char *format,tm *tp,_Bool upcase,
                          _Bool *tzset_called,timezone_t tz,int ns)

{
  bool bVar1;
  bool bVar2;
  char cVar3;
  char cVar4;
  char cVar5;
  char upcase_00;
  int iVar6;
  char *src;
  size_t sVar7;
  time_t tVar8;
  ulong uVar9;
  ulong uVar10;
  uint uVar11;
  time_t tVar12;
  uint uVar13;
  int iVar14;
  ulong uVar15;
  char cVar16;
  char *pcVar17;
  uint uVar18;
  int iVar19;
  char *pcVar20;
  int iVar21;
  int iVar22;
  long lVar23;
  size_t sVar24;
  uint uVar25;
  int iVar26;
  size_t sVar27;
  long in_FS_OFFSET;
  bool bVar28;
  byte bVar29;
  char *local_4b8;
  tm ltm;
  char ufmt [5];
  char buf [23];
  char local_431 [1009];
  long local_40;
  
  bVar29 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar25 = tp->tm_hour;
  src = "";
  if (tp->tm_zone != (char *)0x0) {
    src = tp->tm_zone;
  }
  if ((int)uVar25 < 0xd) {
    if (uVar25 == 0) {
      uVar25 = 0xc;
    }
  }
  else {
    uVar25 = uVar25 - 0xc;
  }
  cVar4 = *format;
  if (cVar4 == '\0') {
    sVar24 = 0;
  }
  else {
    sVar24 = 0;
    do {
      if (cVar4 != '%') {
        if (maxsize - sVar24 < 2) goto LAB_00136dd9;
        if (s != (char *)0x0) {
          *s = cVar4;
          s = s + 1;
        }
        sVar24 = sVar24 + 1;
        goto LAB_001359f4;
      }
      bVar28 = false;
      upcase_00 = upcase;
      cVar4 = '\0';
      do {
        while( true ) {
          while( true ) {
            do {
              cVar3 = cVar4;
              format = format + 1;
              cVar4 = *format;
            } while (cVar4 == '0');
            if ('0' < cVar4) break;
            if (cVar4 == '#') {
              bVar28 = true;
              cVar4 = cVar3;
            }
            else if (cVar4 != '-') goto LAB_00135a68;
          }
          if (cVar4 != '^') break;
          upcase_00 = true;
          cVar4 = cVar3;
        }
      } while (cVar4 == '_');
LAB_00135a68:
      iVar26 = -1;
      if ((int)cVar4 - 0x30U < 10) {
        iVar26 = 0;
        do {
          if (iVar26 < 0xccccccd) {
            if ((iVar26 == 0xccccccc) && ('7' < *format)) {
              iVar26 = 0x7fffffff;
            }
            else {
              iVar26 = *format + -0x30 + iVar26 * 10;
            }
          }
          else {
            iVar26 = 0x7fffffff;
          }
          format = format + 1;
        } while ((int)*format - 0x30U < 10);
      }
      cVar4 = *format;
      if ((cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O')) {
        format = format + 1;
        cVar16 = cVar4;
      }
      cVar4 = *format;
      iVar14 = (int)local_431;
      local_4b8 = format;
      uVar11 = uVar25;
      iVar22 = iVar26;
      switch(cVar4) {
      case '\0':
        local_4b8 = format + -1;
        goto LAB_00136cd6;
      default:
        goto LAB_00136cd6;
      case '%':
        if (cVar16 == '\0') {
          iVar14 = 0;
          if (-1 < iVar26) {
            iVar14 = iVar26;
          }
          uVar10 = (ulong)iVar14;
          uVar15 = 1;
          if (uVar10 != 0) {
            uVar15 = uVar10;
          }
          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;
          if (s != (char *)0x0) {
            if (1 < uVar10) {
              sVar27 = (long)iVar26 - 1;
              if (cVar3 == '0') {
                memset(s,0x30,sVar27);
                s = s + sVar27;
              }
              else {
                memset(s,0x20,sVar27);
                s = s + sVar27;
              }
            }
            *s = *format;
            s = s + 1;
          }
          sVar24 = sVar24 + uVar15;
          goto LAB_001359f4;
        }
        iVar14 = 1;
        pcVar17 = format;
        goto LAB_00136d21;
      case ':':
        pcVar17 = format + 1;
        cVar5 = format[1];
        if (cVar5 == ':') {
          lVar23 = 1;
          do {
            lVar23 = lVar23 + 1;
            pcVar17 = format + lVar23;
            cVar5 = format[lVar23];
          } while (cVar5 == ':');
        }
        else {
          lVar23 = 1;
        }
        if (cVar5 == 'z') goto LAB_00136bae;
        break;
      case 'A':
        if (cVar16 != '\0') break;
        if (bVar28 != false) {
          upcase_00 = bVar28;
        }
        cVar4 = 'A';
LAB_00135bf1:
        local_4b8._0_1_ = false;
        iVar22 = 0;
        pcVar17 = ufmt + 2;
        goto LAB_00135f1c;
      case 'B':
        if (cVar16 != 'E') {
          if (bVar28 != false) {
            upcase_00 = bVar28;
          }
          cVar4 = 'B';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'C':
        if (cVar16 != 'E') {
          iVar6 = tp->tm_year;
          iVar22 = iVar6 / 100 + 0x13;
          bVar28 = iVar6 < -0x76c;
          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));
          uVar18 = 0;
          bVar2 = false;
          iVar22 = 2;
          goto LAB_00135edf;
        }
        cVar4 = 'C';
        iVar22 = 0;
        goto LAB_00135ef1;
      case 'D':
        if (cVar16 == '\0') {
          local_4b8 = "%m/%d/%y";
          goto LAB_00135ca3;
        }
        break;
      case 'F':
        if (cVar16 == '\0') {
          local_4b8 = "%Y-%m-%d";
          goto LAB_00135ca3;
        }
        break;
      case 'G':
      case 'V':
      case 'g':
        if (cVar16 != 'E') {
          iVar6 = tp->tm_year;
          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);
          iVar21 = tp->tm_wday;
          iVar19 = tp->tm_yday;
          iVar22 = (iVar19 - iVar21) + 0x17e;
          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;
          if (iVar22 < 0) {
            uVar11 = uVar11 - 1;
            uVar18 = 0;
            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {
              uVar18 = (uint)((int)uVar11 % 400 == 0);
            }
            iVar22 = iVar19 + 0x16d + uVar18;
            iVar21 = (iVar22 - iVar21) + 0x17e;
            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;
            iVar21 = -1;
          }
          else {
            uVar18 = 0;
            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {
              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);
            }
            iVar19 = iVar19 - (uVar18 + 0x16d);
            iVar21 = (iVar19 - iVar21) + 0x17e;
            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;
            if (-1 < iVar21) {
              iVar22 = iVar21;
            }
            iVar21 = (iVar21 >> 0x1f) + 1;
          }
          if (cVar4 == 'G') {
            bVar28 = iVar6 < -0x76c - iVar21;
            uVar11 = iVar6 + 0x76c + iVar21;
            uVar18 = 0;
            bVar2 = false;
            iVar22 = 4;
            goto LAB_00135edf;
          }
          if (cVar4 == 'g') {
            uVar11 = (iVar6 % 100 + iVar21) % 100;
            iVar22 = 2;
            if ((int)uVar11 < 0) {
              if (iVar6 < -0x76c - iVar21) {
                uVar11 = -uVar11;
              }
              else {
                uVar11 = uVar11 + 100;
                iVar22 = 2;
              }
            }
          }
          else {
            uVar11 = iVar22 / 7 + 1;
            iVar22 = 2;
          }
          goto LAB_00135ecc;
        }
        goto LAB_00136cd6;
      case 'H':
        if (cVar16 != 'E') {
          uVar11 = tp->tm_hour;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'I':
        if (cVar16 != 'E') {
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'M':
        if (cVar16 != 'E') {
          uVar11 = tp->tm_min;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'N':
        if (cVar16 != 'E') {
          uVar11 = ns;
          if (iVar26 == -1) {
            iVar26 = 9;
            iVar22 = 9;
          }
          else {
            iVar6 = iVar26;
            if (iVar26 < 9) {
              do {
                uVar11 = (int)uVar11 / 10;
                iVar6 = iVar6 + 1;
              } while (iVar6 != 9);
            }
          }
          goto LAB_00135ecc;
        }
        break;
      case 'P':
        local_4b8._0_1_ = true;
        goto LAB_00136492;
      case 'R':
        local_4b8 = "%H:%M";
        goto LAB_00135ca3;
      case 'S':
        if (cVar16 != 'E') {
          uVar11 = tp->tm_sec;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'T':
        local_4b8 = "%H:%M:%S";
LAB_00135ca3:
        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,
                                    tzset_called,tz,ns);
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar10 = (ulong)iVar14;
        uVar15 = uVar10;
        if (uVar10 <= sVar7) {
          uVar15 = sVar7;
        }
        if (uVar15 < maxsize - sVar24) {
          if (s != (char *)0x0) {
            if (sVar7 < uVar10) {
              sVar27 = (long)iVar26 - sVar7;
              if (cVar3 == '0') {
                memset(s,0x30,sVar27);
                s = s + sVar27;
              }
              else {
                memset(s,0x20,sVar27);
                s = s + sVar27;
              }
            }
            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)
            ;
            s = s + sVar7;
          }
          sVar24 = sVar24 + uVar15;
          goto LAB_001359f4;
        }
        goto LAB_00136dd9;
      case 'U':
        if (cVar16 != 'E') {
          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'W':
        if (cVar16 != 'E') {
          iVar22 = tp->tm_wday + 6;
          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'X':
        if (cVar16 != 'O') {
          cVar4 = 'X';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'Y':
        if (cVar16 == 'E') {
          cVar4 = 'Y';
          iVar22 = 0;
          goto LAB_00135ef1;
        }
        if (cVar16 == 'O') break;
        bVar28 = tp->tm_year < -0x76c;
        uVar11 = tp->tm_year + 0x76c;
        uVar18 = 0;
        bVar2 = false;
        iVar22 = 4;
        goto LAB_00136a29;
      case 'Z':
        if (bVar28) {
          upcase_00 = '\0';
        }
        uVar15 = 0xffffffffffffffff;
        pcVar17 = src;
        do {
          if (uVar15 == 0) break;
          uVar15 = uVar15 - 1;
          cVar4 = *pcVar17;
          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;
        } while (cVar4 != '\0');
        uVar15 = ~uVar15 - 1;
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar9 = (ulong)iVar14;
        uVar10 = uVar9;
        if (uVar9 <= uVar15) {
          uVar10 = uVar15;
        }
        if (uVar10 < maxsize - sVar24) {
          if (s != (char *)0x0) {
            if (uVar15 < uVar9) {
              sVar27 = (long)iVar26 - uVar15;
              if (cVar3 == '0') {
                memset(s,0x30,sVar27);
                s = s + sVar27;
              }
              else {
                memset(s,0x20,sVar27);
                s = s + sVar27;
              }
            }
            if (bVar28) {
              memcpy_lowcase(s,src,uVar15);
            }
            else if (upcase_00 == '\0') {
              memcpy(s,src,uVar15);
            }
            else {
              memcpy_uppcase(s,src,uVar15);
            }
            s = s + uVar15;
          }
          sVar24 = sVar24 + uVar10;
          goto LAB_001359f4;
        }
        goto LAB_00136dd9;
      case 'a':
        if (cVar16 == '\0') {
          if (bVar28 != false) {
            upcase_00 = bVar28;
          }
          cVar4 = 'a';
          goto LAB_00135bf1;
        }
        break;
      case 'b':
      case 'h':
        if (bVar28 != false) {
          upcase_00 = bVar28;
        }
        if (cVar16 != 'E') {
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
LAB_00136cd6:
        if (*local_4b8 != '%') break;
        iVar14 = 1;
        format = local_4b8;
        pcVar17 = local_4b8;
        goto LAB_00136d21;
      case 'c':
        if (cVar16 != 'O') {
          cVar4 = 'c';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'd':
        if (cVar16 != 'E') {
          uVar11 = tp->tm_mday;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'e':
        if (cVar16 != 'E') {
          uVar11 = tp->tm_mday;
LAB_00135ea8:
          if ((cVar3 == '0') || (cVar3 == '-')) {
            iVar22 = 2;
          }
          else {
            cVar3 = '_';
            iVar22 = 2;
          }
          goto LAB_00135ecc;
        }
        break;
      case 'j':
        if (cVar16 != 'E') {
          bVar28 = tp->tm_yday < -1;
          uVar11 = tp->tm_yday + 1;
          uVar18 = 0;
          bVar2 = false;
          iVar22 = 3;
          goto LAB_00135edf;
        }
        break;
      case 'k':
        if (cVar16 != 'E') {
          uVar11 = tp->tm_hour;
          goto LAB_00135ea8;
        }
        break;
      case 'l':
        if (cVar16 != 'E') goto LAB_00135ea8;
        break;
      case 'm':
        if (cVar16 != 'E') {
          bVar28 = tp->tm_mon < -1;
          uVar11 = tp->tm_mon + 1;
          uVar18 = 0;
          bVar2 = false;
          iVar22 = 2;
          goto LAB_00135edf;
        }
        break;
      case 'n':
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar10 = (ulong)iVar14;
        uVar15 = 1;
        if (uVar10 != 0) {
          uVar15 = uVar10;
        }
        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;
        if (s != (char *)0x0) {
          if (1 < uVar10) {
            sVar27 = (long)iVar26 - 1;
            if (cVar3 == '0') {
              memset(s,0x30,sVar27);
              s = s + sVar27;
            }
            else {
              memset(s,0x20,sVar27);
              s = s + sVar27;
            }
          }
          *s = '\n';
          s = s + 1;
        }
        sVar24 = sVar24 + uVar15;
        goto LAB_001359f4;
      case 'p':
        local_4b8._0_1_ = false;
LAB_00136492:
        if (bVar28 != false) {
          local_4b8._0_1_ = bVar28;
        }
        cVar4 = 'p';
        if (bVar28 != false) {
          upcase_00 = '\0';
        }
LAB_001364b6:
        if (cVar16 != '\0') {
          iVar22 = 0;
          goto LAB_00135f06;
        }
        pcVar17 = ufmt + 2;
        iVar22 = 0;
        goto LAB_00135f1c;
      case 'q':
        cVar4 = 'q';
        iVar22 = 1;
        if (cVar16 == 'O') goto LAB_00135ef1;
        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;
        uVar18 = 0;
        bVar2 = false;
        bVar28 = false;
        goto LAB_00136a33;
      case 'r':
        local_4b8._0_1_ = false;
        goto LAB_001364b6;
      case 's':
        ltm.tm_sec = tp->tm_sec;
        ltm.tm_min = tp->tm_min;
        ltm.tm_hour = tp->tm_hour;
        ltm.tm_mday = tp->tm_mday;
        ltm.tm_mon = tp->tm_mon;
        ltm.tm_year = tp->tm_year;
        ltm.tm_wday = tp->tm_wday;
        ltm.tm_yday = tp->tm_yday;
        ltm.tm_isdst = tp->tm_isdst;
        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;
        ltm.tm_gmtoff = tp->tm_gmtoff;
        ltm.tm_zone = tp->tm_zone;
        tVar8 = mktime_z(tz,&ltm);
        pcVar17 = local_431;
        tVar12 = tVar8;
        do {
          lVar23 = tVar12 / 10;
          cVar4 = (char)tVar12 + (char)lVar23 * -10;
          if (tVar8 < 0) {
            cVar4 = -cVar4;
          }
          pcVar17 = pcVar17 + -1;
          *pcVar17 = cVar4 + '0';
          tVar12 = lVar23;
        } while (lVar23 != 0);
        iVar22 = 1;
        if (0 < iVar26) {
          iVar22 = iVar26;
        }
        if (tVar8 < 0) {
          cVar4 = '-';
          goto LAB_00136e58;
        }
        goto LAB_0013605d;
      case 't':
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar10 = (ulong)iVar14;
        uVar15 = 1;
        if (uVar10 != 0) {
          uVar15 = uVar10;
        }
        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;
        if (s != (char *)0x0) {
          if (1 < uVar10) {
            sVar27 = (long)iVar26 - 1;
            if (cVar3 == '0') {
              memset(s,0x30,sVar27);
              s = s + sVar27;
            }
            else {
              memset(s,0x20,sVar27);
              s = s + sVar27;
            }
          }
          *s = '\t';
          s = s + 1;
        }
        sVar24 = sVar24 + uVar15;
        goto LAB_001359f4;
      case 'u':
        uVar11 = (tp->tm_wday + 6) % 7 + 1;
        iVar22 = 1;
        goto LAB_00135ecc;
      case 'w':
        if (cVar16 != 'E') {
          uVar11 = tp->tm_wday;
          iVar22 = 1;
          goto LAB_00135ecc;
        }
        break;
      case 'x':
        if (cVar16 != 'O') {
          cVar4 = 'x';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'y':
        if (cVar16 == 'E') {
          cVar4 = 'y';
          iVar22 = 0;
          goto LAB_00135ef1;
        }
        uVar11 = tp->tm_year % 100;
        iVar22 = 2;
        if ((int)uVar11 < 0) {
          if (tp->tm_year < -0x76c) {
            uVar11 = -uVar11;
          }
          else {
            uVar11 = uVar11 + 100;
            iVar22 = 2;
          }
        }
LAB_00135ecc:
        bVar28 = SUB41(uVar11 >> 0x1f,0);
        uVar18 = 0;
        bVar2 = false;
LAB_00135edf:
        if ((cVar16 == 'O') && (bVar28 == false)) {
LAB_00135ef1:
          local_4b8._0_1_ = false;
LAB_00135f06:
          pcVar17 = ufmt + 3;
          ufmt[2] = cVar16;
LAB_00135f1c:
          ufmt[1] = '%';
          ufmt[0] = ' ';
          *pcVar17 = cVar4;
          pcVar17[1] = '\0';
          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);
          if (sVar27 != 0) {
            uVar15 = sVar27 - 1;
            iVar14 = 0;
            if (-1 < iVar26) {
              iVar14 = iVar26;
            }
            uVar9 = (ulong)iVar14;
            uVar10 = uVar9;
            if (uVar9 <= uVar15) {
              uVar10 = uVar15;
            }
            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;
            if (s != (char *)0x0) {
              if ((iVar22 == 0) && (uVar15 < uVar9)) {
                sVar27 = (long)iVar26 - uVar15;
                if (cVar3 == '0') {
                  memset(s,0x30,sVar27);
                  s = s + sVar27;
                }
                else {
                  memset(s,0x20,sVar27);
                  s = s + sVar27;
                }
              }
              if (local_4b8._0_1_ == false) {
                if (upcase_00 == '\0') {
                  memcpy(s,buf + 1,uVar15);
                }
                else {
                  memcpy_uppcase(s,buf + 1,uVar15);
                }
              }
              else {
                memcpy_lowcase(s,buf + 1,uVar15);
              }
              s = s + uVar15;
            }
            sVar24 = sVar24 + uVar10;
          }
          goto LAB_001359f4;
        }
LAB_00136a29:
        if (bVar28 != false) {
          uVar11 = -uVar11;
        }
LAB_00136a33:
        pcVar17 = local_431;
        do {
          pcVar20 = pcVar17;
          if ((uVar18 & 1) != 0) {
            pcVar20 = pcVar17 + -1;
            pcVar17[-1] = ':';
          }
          uVar18 = (int)uVar18 >> 1;
          pcVar17 = pcVar20 + -1;
          uVar13 = uVar11 / 10;
          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';
          bVar1 = 9 < uVar11;
          uVar11 = uVar13;
        } while ((bVar1) || (uVar18 != 0));
        if (iVar22 < iVar26) {
          iVar22 = iVar26;
        }
        if (bVar28 != false) {
          cVar4 = '-';
LAB_00136e58:
          if (cVar3 == '-') {
            iVar14 = 0;
            if (-1 < iVar26) {
              iVar14 = iVar26;
            }
            uVar10 = (ulong)iVar14;
            uVar15 = 1;
            if (uVar10 != 0) {
              uVar15 = uVar10;
            }
            if (uVar15 < maxsize - sVar24) {
              if (s != (char *)0x0) {
                if ((iVar22 == 0) && (1 < uVar10)) {
                  memset(s,0x20,(long)iVar26 - 1U);
                  s = s + ((long)iVar26 - 1U);
                }
                *s = cVar4;
                s = s + 1;
              }
              sVar24 = sVar24 + uVar15;
              goto LAB_00136f44;
            }
          }
          else {
            bVar28 = cVar4 != '\0';
            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;
            if (0 < iVar14) goto LAB_00136e8a;
            iVar14 = 0;
            if (-1 < iVar26) {
              iVar14 = iVar26;
            }
            uVar10 = (ulong)iVar14;
            uVar15 = 1;
            if (uVar10 != 0) {
              uVar15 = uVar10;
            }
            if (uVar15 < maxsize - sVar24) {
              if (s != (char *)0x0) {
                if ((iVar22 == 0) && (1 < uVar10)) {
                  sVar27 = (long)iVar26 - 1;
                  if (cVar3 == '0') {
                    memset(s,0x30,sVar27);
                    s = s + sVar27;
                  }
                  else {
                    memset(s,0x20,sVar27);
                    s = s + sVar27;
                  }
                }
                *s = cVar4;
                s = s + 1;
              }
              sVar24 = sVar24 + uVar15;
              goto LAB_00136f44;
            }
          }
          goto LAB_00136dd9;
        }
        cVar4 = '+';
        if (bVar2) goto LAB_00136e58;
LAB_0013605d:
        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))
        goto LAB_00136f44;
        cVar4 = '\0';
        bVar28 = false;
LAB_00136e8a:
        if (cVar3 == '_') {
          uVar15 = (ulong)iVar14;
          if (uVar15 < maxsize - sVar24) {
            if (s != (char *)0x0) {
              memset(s,0x20,uVar15);
              s = s + uVar15;
            }
            sVar24 = sVar24 + uVar15;
            iVar6 = iVar26 - iVar14;
            bVar2 = iVar14 < iVar26;
            iVar26 = 0;
            if (bVar2) {
              iVar26 = iVar6;
            }
            if (bVar28) {
              iVar14 = 0;
              if (-1 < iVar26) {
                iVar14 = iVar26;
              }
              uVar10 = (ulong)iVar14;
              uVar15 = 1;
              if (uVar10 != 0) {
                uVar15 = uVar10;
              }
              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;
              if (s != (char *)0x0) {
                if ((iVar22 == 0) && (1 < uVar10)) {
                  memset(s,0x20,(long)iVar26 - 1U);
                  s = s + ((long)iVar26 - 1U);
                }
                *s = cVar4;
                s = s + 1;
              }
              sVar24 = sVar24 + uVar15;
            }
            goto LAB_00136f44;
          }
        }
        else if ((ulong)(long)iVar22 < maxsize - sVar24) {
          if (bVar28) {
            iVar6 = 0;
            if (-1 < iVar26) {
              iVar6 = iVar26;
            }
            uVar10 = (ulong)iVar6;
            uVar15 = 1;
            if (uVar10 != 0) {
              uVar15 = uVar10;
            }
            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;
            if (s != (char *)0x0) {
              if ((iVar22 == 0) && (1 < uVar10)) {
                sVar27 = (long)iVar26 - 1;
                if (cVar3 == '0') {
                  memset(s,0x30,sVar27);
                  s = s + sVar27;
                }
                else {
                  memset(s,0x20,sVar27);
                  s = s + sVar27;
                }
              }
              *s = cVar4;
              s = s + 1;
            }
            sVar24 = sVar24 + uVar15;
          }
          if (s != (char *)0x0) {
            memset(s,0x30,(long)iVar14);
            s = s + iVar14;
          }
          sVar24 = sVar24 + (long)iVar14;
          iVar26 = 0;
LAB_00136f44:
          uVar15 = (long)local_431 - (long)pcVar17;
          iVar14 = 0;
          if (-1 < iVar26) {
            iVar14 = iVar26;
          }
          uVar9 = (ulong)iVar14;
          uVar10 = uVar9;
          if (uVar9 <= uVar15) {
            uVar10 = uVar15;
          }
          if (uVar10 < maxsize - sVar24) {
            if (s != (char *)0x0) {
              if ((iVar22 == 0) && (uVar15 < uVar9)) {
                sVar27 = (long)iVar26 - uVar15;
                if (cVar3 == '0') {
                  memset(s,0x30,sVar27);
                  s = s + sVar27;
                }
                else {
                  memset(s,0x20,sVar27);
                  s = s + sVar27;
                }
              }
              if ((_Bool)upcase_00 == false) {
                memcpy(s,pcVar17,uVar15);
              }
              else {
                memcpy_uppcase(s,pcVar17,uVar15);
              }
              s = s + uVar15;
            }
            sVar24 = sVar24 + uVar10;
            goto LAB_001359f4;
          }
        }
        goto LAB_00136dd9;
      case 'z':
        lVar23 = 0;
        pcVar17 = format;
LAB_00136bae:
        format = pcVar17;
        if (tp->tm_isdst < 0) goto LAB_001359f4;
        bVar28 = true;
        iVar22 = (int)tp->tm_gmtoff;
        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {
          bVar28 = *src == '-';
        }
        uVar11 = iVar22 / 0xe10;
        iVar6 = (iVar22 / 0x3c) % 0x3c;
        if (lVar23 == 1) {
LAB_00136c74:
          uVar11 = uVar11 * 100 + iVar6;
          uVar18 = 4;
          bVar2 = true;
          iVar22 = 6;
        }
        else if (lVar23 == 0) {
          uVar11 = uVar11 * 100 + iVar6;
          uVar18 = 0;
          bVar2 = true;
          iVar22 = 5;
        }
        else {
          if (lVar23 != 2) {
            local_4b8 = format;
            if (lVar23 != 3) goto LAB_00136cd6;
            if (iVar22 % 0x3c == 0) {
              if (iVar6 != 0) goto LAB_00136c74;
              bVar2 = true;
              iVar22 = 3;
              uVar18 = 0;
              goto LAB_00135edf;
            }
          }
          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;
          uVar18 = 0x14;
          bVar2 = true;
          iVar22 = 9;
        }
        goto LAB_00135edf;
      }
      pcVar20 = local_4b8 + -1;
      do {
        pcVar17 = pcVar20;
        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;
        pcVar20 = pcVar17 + -1;
        format = local_4b8;
      } while (*pcVar17 != '%');
LAB_00136d21:
      local_4b8 = pcVar17;
      uVar15 = (ulong)iVar14;
      iVar14 = 0;
      if (-1 < iVar26) {
        iVar14 = iVar26;
      }
      uVar9 = (ulong)iVar14;
      uVar10 = uVar9;
      if (uVar9 <= uVar15) {
        uVar10 = uVar15;
      }
      if (maxsize - sVar24 <= uVar10) {
LAB_00136dd9:
        sVar24 = 0;
        goto LAB_00136ddf;
      }
      if (s != (char *)0x0) {
        if (uVar15 < uVar9) {
          sVar27 = (long)iVar26 - uVar15;
          if (cVar3 == '0') {
            memset(s,0x30,sVar27);
            s = s + sVar27;
          }
          else {
            memset(s,0x20,sVar27);
            s = s + sVar27;
          }
        }
        if (upcase_00 == '\0') {
          memcpy(s,local_4b8,uVar15);
        }
        else {
          memcpy_uppcase(s,local_4b8,uVar15);
        }
        s = s + uVar15;
      }
      sVar24 = sVar24 + uVar10;
LAB_001359f4:
      cVar4 = format[1];
      format = format + 1;
    } while (cVar4 != '\0');
  }
  if ((s != (char *)0x0) && (maxsize != 0)) {
    *s = '\0';
  }
LAB_00136ddf:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return sVar24;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



long FUN_00135939(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,
                 undefined8 param_6,undefined8 param_7,uint param_8)

{
  bool bVar1;
  bool bVar2;
  long lVar3;
  char cVar4;
  char cVar5;
  char cVar6;
  char cVar7;
  int iVar8;
  char *__src;
  long lVar9;
  ulong uVar10;
  ulong uVar11;
  uint uVar12;
  uint uVar13;
  int iVar14;
  ulong uVar15;
  char cVar16;
  char *pcVar17;
  uint uVar18;
  int iVar19;
  char *pcVar20;
  int iVar21;
  int iVar22;
  long lVar23;
  long lVar24;
  uint uVar25;
  int iVar26;
  size_t sVar27;
  long in_FS_OFFSET;
  bool bVar28;
  byte bVar29;
  char *local_4b8;
  undefined8 local_488;
  undefined8 uStack_480;
  undefined8 local_478;
  undefined8 uStack_470;
  undefined8 local_468;
  long lStack_460;
  char *local_458;
  char local_44d [3];
  char local_44a [2];
  char local_448;
  undefined1 local_447 [22];
  char local_431 [1009];
  long local_40;
  
  bVar29 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar25 = param_4->tm_hour;
  __src = "";
  if (param_4->tm_zone != (char *)0x0) {
    __src = param_4->tm_zone;
  }
  if ((int)uVar25 < 0xd) {
    if (uVar25 == 0) {
      uVar25 = 0xc;
    }
  }
  else {
    uVar25 = uVar25 - 0xc;
  }
  cVar5 = *param_3;
  if (cVar5 == '\0') {
    lVar24 = 0;
  }
  else {
    lVar24 = 0;
    do {
      if (cVar5 != '%') {
        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;
        if (param_1 != (char *)0x0) {
          *param_1 = cVar5;
          param_1 = param_1 + 1;
        }
        lVar24 = lVar24 + 1;
        goto LAB_001359f4;
      }
      bVar28 = false;
      cVar7 = param_5;
      cVar5 = '\0';
      do {
        while( true ) {
          while( true ) {
            do {
              cVar4 = cVar5;
              param_3 = param_3 + 1;
              cVar5 = *param_3;
            } while (cVar5 == '0');
            if ('0' < cVar5) break;
            if (cVar5 == '#') {
              bVar28 = true;
              cVar5 = cVar4;
            }
            else if (cVar5 != '-') goto LAB_00135a68;
          }
          if (cVar5 != '^') break;
          cVar7 = '\x01';
          cVar5 = cVar4;
        }
      } while (cVar5 == '_');
LAB_00135a68:
      iVar26 = -1;
      if ((int)cVar5 - 0x30U < 10) {
        iVar26 = 0;
        do {
          if (iVar26 < 0xccccccd) {
            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {
              iVar26 = 0x7fffffff;
            }
            else {
              iVar26 = *param_3 + -0x30 + iVar26 * 10;
            }
          }
          else {
            iVar26 = 0x7fffffff;
          }
          param_3 = param_3 + 1;
        } while ((int)*param_3 - 0x30U < 10);
      }
      cVar5 = *param_3;
      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {
        param_3 = param_3 + 1;
        cVar16 = cVar5;
      }
      cVar5 = *param_3;
      iVar14 = (int)local_431;
      local_4b8 = param_3;
      uVar12 = uVar25;
      iVar22 = iVar26;
      switch(cVar5) {
      case '\0':
        local_4b8 = param_3 + -1;
        goto LAB_00136cd6;
      default:
        goto LAB_00136cd6;
      case '%':
        if (cVar16 == '\0') {
          iVar14 = 0;
          if (-1 < iVar26) {
            iVar14 = iVar26;
          }
          uVar11 = (ulong)iVar14;
          uVar15 = 1;
          if (uVar11 != 0) {
            uVar15 = uVar11;
          }
          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;
          if (param_1 != (char *)0x0) {
            if (1 < uVar11) {
              sVar27 = (long)iVar26 - 1;
              if (cVar4 == '0') {
                memset(param_1,0x30,sVar27);
                param_1 = param_1 + sVar27;
              }
              else {
                memset(param_1,0x20,sVar27);
                param_1 = param_1 + sVar27;
              }
            }
            *param_1 = *param_3;
            param_1 = param_1 + 1;
          }
          lVar24 = lVar24 + uVar15;
          goto LAB_001359f4;
        }
        iVar14 = 1;
        pcVar17 = param_3;
        goto LAB_00136d21;
      case ':':
        pcVar17 = param_3 + 1;
        cVar6 = param_3[1];
        if (cVar6 == ':') {
          lVar23 = 1;
          do {
            lVar23 = lVar23 + 1;
            pcVar17 = param_3 + lVar23;
            cVar6 = param_3[lVar23];
          } while (cVar6 == ':');
        }
        else {
          lVar23 = 1;
        }
        if (cVar6 == 'z') goto LAB_00136bae;
        break;
      case 'A':
        if (cVar16 != '\0') break;
        if (bVar28 != false) {
          cVar7 = bVar28;
        }
        cVar5 = 'A';
LAB_00135bf1:
        local_4b8._0_1_ = false;
        iVar22 = 0;
        pcVar17 = local_44d + 2;
        goto LAB_00135f1c;
      case 'B':
        if (cVar16 != 'E') {
          if (bVar28 != false) {
            cVar7 = bVar28;
          }
          cVar5 = 'B';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'C':
        if (cVar16 != 'E') {
          iVar8 = param_4->tm_year;
          iVar22 = iVar8 / 100 + 0x13;
          bVar28 = iVar8 < -0x76c;
          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));
          uVar18 = 0;
          bVar2 = false;
          iVar22 = 2;
          goto LAB_00135edf;
        }
        cVar5 = 'C';
        iVar22 = 0;
        goto LAB_00135ef1;
      case 'D':
        if (cVar16 == '\0') {
          local_4b8 = "%m/%d/%y";
          goto LAB_00135ca3;
        }
        break;
      case 'F':
        if (cVar16 == '\0') {
          local_4b8 = "%Y-%m-%d";
          goto LAB_00135ca3;
        }
        break;
      case 'G':
      case 'V':
      case 'g':
        if (cVar16 != 'E') {
          iVar8 = param_4->tm_year;
          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);
          iVar21 = param_4->tm_wday;
          iVar19 = param_4->tm_yday;
          iVar22 = (iVar19 - iVar21) + 0x17e;
          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;
          if (iVar22 < 0) {
            uVar12 = uVar12 - 1;
            uVar18 = 0;
            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {
              uVar18 = (uint)((int)uVar12 % 400 == 0);
            }
            iVar22 = iVar19 + 0x16d + uVar18;
            iVar21 = (iVar22 - iVar21) + 0x17e;
            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;
            iVar21 = -1;
          }
          else {
            uVar18 = 0;
            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {
              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);
            }
            iVar19 = iVar19 - (uVar18 + 0x16d);
            iVar21 = (iVar19 - iVar21) + 0x17e;
            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;
            if (-1 < iVar21) {
              iVar22 = iVar21;
            }
            iVar21 = (iVar21 >> 0x1f) + 1;
          }
          if (cVar5 == 'G') {
            bVar28 = iVar8 < -0x76c - iVar21;
            uVar12 = iVar8 + 0x76c + iVar21;
            uVar18 = 0;
            bVar2 = false;
            iVar22 = 4;
            goto LAB_00135edf;
          }
          if (cVar5 == 'g') {
            uVar12 = (iVar8 % 100 + iVar21) % 100;
            iVar22 = 2;
            if ((int)uVar12 < 0) {
              if (iVar8 < -0x76c - iVar21) {
                uVar12 = -uVar12;
              }
              else {
                uVar12 = uVar12 + 100;
                iVar22 = 2;
              }
            }
          }
          else {
            uVar12 = iVar22 / 7 + 1;
            iVar22 = 2;
          }
          goto LAB_00135ecc;
        }
        goto LAB_00136cd6;
      case 'H':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_hour;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'I':
        if (cVar16 != 'E') {
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'M':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_min;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'N':
        if (cVar16 != 'E') {
          uVar12 = param_8;
          if (iVar26 == -1) {
            iVar26 = 9;
            iVar22 = 9;
          }
          else {
            iVar8 = iVar26;
            if (iVar26 < 9) {
              do {
                uVar12 = (int)uVar12 / 10;
                iVar8 = iVar8 + 1;
              } while (iVar8 != 9);
            }
          }
          goto LAB_00135ecc;
        }
        break;
      case 'P':
        local_4b8._0_1_ = true;
        goto LAB_00136492;
      case 'R':
        local_4b8 = "%H:%M";
        goto LAB_00135ca3;
      case 'S':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_sec;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'T':
        local_4b8 = "%H:%M:%S";
LAB_00135ca3:
        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar10 = (ulong)iVar14;
        uVar11 = uVar10;
        if (uVar10 <= uVar15) {
          uVar11 = uVar15;
        }
        if (uVar11 < (ulong)(param_2 - lVar24)) {
          if (param_1 != (char *)0x0) {
            if (uVar15 < uVar10) {
              sVar27 = (long)iVar26 - uVar15;
              if (cVar4 == '0') {
                memset(param_1,0x30,sVar27);
                param_1 = param_1 + sVar27;
              }
              else {
                memset(param_1,0x20,sVar27);
                param_1 = param_1 + sVar27;
              }
            }
            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);
            param_1 = param_1 + uVar15;
          }
          lVar24 = lVar24 + uVar11;
          goto LAB_001359f4;
        }
        goto LAB_00136dd9;
      case 'U':
        if (cVar16 != 'E') {
          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'W':
        if (cVar16 != 'E') {
          iVar22 = param_4->tm_wday + 6;
          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'X':
        if (cVar16 != 'O') {
          cVar5 = 'X';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'Y':
        if (cVar16 == 'E') {
          cVar5 = 'Y';
          iVar22 = 0;
          goto LAB_00135ef1;
        }
        if (cVar16 == 'O') break;
        bVar28 = param_4->tm_year < -0x76c;
        uVar12 = param_4->tm_year + 0x76c;
        uVar18 = 0;
        bVar2 = false;
        iVar22 = 4;
        goto LAB_00136a29;
      case 'Z':
        if (bVar28) {
          cVar7 = '\0';
        }
        uVar15 = 0xffffffffffffffff;
        pcVar17 = __src;
        do {
          if (uVar15 == 0) break;
          uVar15 = uVar15 - 1;
          cVar5 = *pcVar17;
          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;
        } while (cVar5 != '\0');
        uVar15 = ~uVar15 - 1;
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar10 = (ulong)iVar14;
        uVar11 = uVar10;
        if (uVar10 <= uVar15) {
          uVar11 = uVar15;
        }
        if (uVar11 < (ulong)(param_2 - lVar24)) {
          if (param_1 != (char *)0x0) {
            if (uVar15 < uVar10) {
              sVar27 = (long)iVar26 - uVar15;
              if (cVar4 == '0') {
                memset(param_1,0x30,sVar27);
                param_1 = param_1 + sVar27;
              }
              else {
                memset(param_1,0x20,sVar27);
                param_1 = param_1 + sVar27;
              }
            }
            if (bVar28) {
              FUN_001358c7(param_1,__src,uVar15);
            }
            else if (cVar7 == '\0') {
              memcpy(param_1,__src,uVar15);
            }
            else {
              FUN_00135900(param_1,__src,uVar15);
            }
            param_1 = param_1 + uVar15;
          }
          lVar24 = lVar24 + uVar11;
          goto LAB_001359f4;
        }
        goto LAB_00136dd9;
      case 'a':
        if (cVar16 == '\0') {
          if (bVar28 != false) {
            cVar7 = bVar28;
          }
          cVar5 = 'a';
          goto LAB_00135bf1;
        }
        break;
      case 'b':
      case 'h':
        if (bVar28 != false) {
          cVar7 = bVar28;
        }
        if (cVar16 != 'E') {
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
LAB_00136cd6:
        if (*local_4b8 != '%') break;
        iVar14 = 1;
        param_3 = local_4b8;
        pcVar17 = local_4b8;
        goto LAB_00136d21;
      case 'c':
        if (cVar16 != 'O') {
          cVar5 = 'c';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'd':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_mday;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'e':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_mday;
LAB_00135ea8:
          if ((cVar4 == '0') || (cVar4 == '-')) {
            iVar22 = 2;
          }
          else {
            cVar4 = '_';
            iVar22 = 2;
          }
          goto LAB_00135ecc;
        }
        break;
      case 'j':
        if (cVar16 != 'E') {
          bVar28 = param_4->tm_yday < -1;
          uVar12 = param_4->tm_yday + 1;
          uVar18 = 0;
          bVar2 = false;
          iVar22 = 3;
          goto LAB_00135edf;
        }
        break;
      case 'k':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_hour;
          goto LAB_00135ea8;
        }
        break;
      case 'l':
        if (cVar16 != 'E') goto LAB_00135ea8;
        break;
      case 'm':
        if (cVar16 != 'E') {
          bVar28 = param_4->tm_mon < -1;
          uVar12 = param_4->tm_mon + 1;
          uVar18 = 0;
          bVar2 = false;
          iVar22 = 2;
          goto LAB_00135edf;
        }
        break;
      case 'n':
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar11 = (ulong)iVar14;
        uVar15 = 1;
        if (uVar11 != 0) {
          uVar15 = uVar11;
        }
        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;
        if (param_1 != (char *)0x0) {
          if (1 < uVar11) {
            sVar27 = (long)iVar26 - 1;
            if (cVar4 == '0') {
              memset(param_1,0x30,sVar27);
              param_1 = param_1 + sVar27;
            }
            else {
              memset(param_1,0x20,sVar27);
              param_1 = param_1 + sVar27;
            }
          }
          *param_1 = '\n';
          param_1 = param_1 + 1;
        }
        lVar24 = lVar24 + uVar15;
        goto LAB_001359f4;
      case 'p':
        local_4b8._0_1_ = false;
LAB_00136492:
        if (bVar28 != false) {
          local_4b8._0_1_ = bVar28;
        }
        cVar5 = 'p';
        if (bVar28 != false) {
          cVar7 = '\0';
        }
LAB_001364b6:
        if (cVar16 != '\0') {
          iVar22 = 0;
          goto LAB_00135f06;
        }
        pcVar17 = local_44d + 2;
        iVar22 = 0;
        goto LAB_00135f1c;
      case 'q':
        cVar5 = 'q';
        iVar22 = 1;
        if (cVar16 == 'O') goto LAB_00135ef1;
        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;
        uVar18 = 0;
        bVar2 = false;
        bVar28 = false;
        goto LAB_00136a33;
      case 'r':
        local_4b8._0_1_ = false;
        goto LAB_001364b6;
      case 's':
        local_488._0_4_ = param_4->tm_sec;
        local_488._4_4_ = param_4->tm_min;
        uStack_480._0_4_ = param_4->tm_hour;
        uStack_480._4_4_ = param_4->tm_mday;
        local_478._0_4_ = param_4->tm_mon;
        local_478._4_4_ = param_4->tm_year;
        uStack_470._0_4_ = param_4->tm_wday;
        uStack_470._4_4_ = param_4->tm_yday;
        local_468 = *(undefined8 *)&param_4->tm_isdst;
        lStack_460 = param_4->tm_gmtoff;
        local_458 = param_4->tm_zone;
        lVar9 = FUN_00134eb1(param_7,&local_488);
        pcVar17 = local_431;
        lVar23 = lVar9;
        do {
          lVar3 = lVar23 / 10;
          cVar5 = (char)lVar23 + (char)lVar3 * -10;
          if (lVar9 < 0) {
            cVar5 = -cVar5;
          }
          pcVar17 = pcVar17 + -1;
          *pcVar17 = cVar5 + '0';
          lVar23 = lVar3;
        } while (lVar3 != 0);
        iVar22 = 1;
        if (0 < iVar26) {
          iVar22 = iVar26;
        }
        if (lVar9 < 0) {
          cVar5 = '-';
          goto LAB_00136e58;
        }
        goto LAB_0013605d;
      case 't':
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar11 = (ulong)iVar14;
        uVar15 = 1;
        if (uVar11 != 0) {
          uVar15 = uVar11;
        }
        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;
        if (param_1 != (char *)0x0) {
          if (1 < uVar11) {
            sVar27 = (long)iVar26 - 1;
            if (cVar4 == '0') {
              memset(param_1,0x30,sVar27);
              param_1 = param_1 + sVar27;
            }
            else {
              memset(param_1,0x20,sVar27);
              param_1 = param_1 + sVar27;
            }
          }
          *param_1 = '\t';
          param_1 = param_1 + 1;
        }
        lVar24 = lVar24 + uVar15;
        goto LAB_001359f4;
      case 'u':
        uVar12 = (param_4->tm_wday + 6) % 7 + 1;
        iVar22 = 1;
        goto LAB_00135ecc;
      case 'w':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_wday;
          iVar22 = 1;
          goto LAB_00135ecc;
        }
        break;
      case 'x':
        if (cVar16 != 'O') {
          cVar5 = 'x';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'y':
        if (cVar16 == 'E') {
          cVar5 = 'y';
          iVar22 = 0;
          goto LAB_00135ef1;
        }
        uVar12 = param_4->tm_year % 100;
        iVar22 = 2;
        if ((int)uVar12 < 0) {
          if (param_4->tm_year < -0x76c) {
            uVar12 = -uVar12;
          }
          else {
            uVar12 = uVar12 + 100;
            iVar22 = 2;
          }
        }
LAB_00135ecc:
        bVar28 = SUB41(uVar12 >> 0x1f,0);
        uVar18 = 0;
        bVar2 = false;
LAB_00135edf:
        if ((cVar16 == 'O') && (bVar28 == false)) {
LAB_00135ef1:
          local_4b8._0_1_ = false;
LAB_00135f06:
          pcVar17 = local_44a;
          local_44d[2] = cVar16;
LAB_00135f1c:
          local_44d[1] = 0x25;
          local_44d[0] = ' ';
          *pcVar17 = cVar5;
          pcVar17[1] = '\0';
          sVar27 = strftime(&local_448,0x400,local_44d,param_4);
          if (sVar27 != 0) {
            uVar15 = sVar27 - 1;
            iVar14 = 0;
            if (-1 < iVar26) {
              iVar14 = iVar26;
            }
            uVar10 = (ulong)iVar14;
            uVar11 = uVar10;
            if (uVar10 <= uVar15) {
              uVar11 = uVar15;
            }
            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;
            if (param_1 != (char *)0x0) {
              if ((iVar22 == 0) && (uVar15 < uVar10)) {
                sVar27 = (long)iVar26 - uVar15;
                if (cVar4 == '0') {
                  memset(param_1,0x30,sVar27);
                  param_1 = param_1 + sVar27;
                }
                else {
                  memset(param_1,0x20,sVar27);
                  param_1 = param_1 + sVar27;
                }
              }
              if (local_4b8._0_1_ == false) {
                if (cVar7 == '\0') {
                  memcpy(param_1,local_447,uVar15);
                }
                else {
                  FUN_00135900(param_1,local_447,uVar15);
                }
              }
              else {
                FUN_001358c7(param_1,local_447,uVar15);
              }
              param_1 = param_1 + uVar15;
            }
            lVar24 = lVar24 + uVar11;
          }
          goto LAB_001359f4;
        }
LAB_00136a29:
        if (bVar28 != false) {
          uVar12 = -uVar12;
        }
LAB_00136a33:
        pcVar17 = local_431;
        do {
          pcVar20 = pcVar17;
          if ((uVar18 & 1) != 0) {
            pcVar20 = pcVar17 + -1;
            pcVar17[-1] = ':';
          }
          uVar18 = (int)uVar18 >> 1;
          pcVar17 = pcVar20 + -1;
          uVar13 = uVar12 / 10;
          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';
          bVar1 = 9 < uVar12;
          uVar12 = uVar13;
        } while ((bVar1) || (uVar18 != 0));
        if (iVar22 < iVar26) {
          iVar22 = iVar26;
        }
        if (bVar28 != false) {
          cVar5 = '-';
LAB_00136e58:
          if (cVar4 == '-') {
            iVar14 = 0;
            if (-1 < iVar26) {
              iVar14 = iVar26;
            }
            uVar11 = (ulong)iVar14;
            uVar15 = 1;
            if (uVar11 != 0) {
              uVar15 = uVar11;
            }
            if (uVar15 < (ulong)(param_2 - lVar24)) {
              if (param_1 != (char *)0x0) {
                if ((iVar22 == 0) && (1 < uVar11)) {
                  memset(param_1,0x20,(long)iVar26 - 1U);
                  param_1 = param_1 + ((long)iVar26 - 1U);
                }
                *param_1 = cVar5;
                param_1 = param_1 + 1;
              }
              lVar24 = lVar24 + uVar15;
              goto LAB_00136f44;
            }
          }
          else {
            bVar28 = cVar5 != '\0';
            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;
            if (0 < iVar14) goto LAB_00136e8a;
            iVar14 = 0;
            if (-1 < iVar26) {
              iVar14 = iVar26;
            }
            uVar11 = (ulong)iVar14;
            uVar15 = 1;
            if (uVar11 != 0) {
              uVar15 = uVar11;
            }
            if (uVar15 < (ulong)(param_2 - lVar24)) {
              if (param_1 != (char *)0x0) {
                if ((iVar22 == 0) && (1 < uVar11)) {
                  sVar27 = (long)iVar26 - 1;
                  if (cVar4 == '0') {
                    memset(param_1,0x30,sVar27);
                    param_1 = param_1 + sVar27;
                  }
                  else {
                    memset(param_1,0x20,sVar27);
                    param_1 = param_1 + sVar27;
                  }
                }
                *param_1 = cVar5;
                param_1 = param_1 + 1;
              }
              lVar24 = lVar24 + uVar15;
              goto LAB_00136f44;
            }
          }
          goto LAB_00136dd9;
        }
        cVar5 = '+';
        if (bVar2) goto LAB_00136e58;
LAB_0013605d:
        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))
        goto LAB_00136f44;
        cVar5 = '\0';
        bVar28 = false;
LAB_00136e8a:
        if (cVar4 == '_') {
          uVar15 = (ulong)iVar14;
          if (uVar15 < (ulong)(param_2 - lVar24)) {
            if (param_1 != (char *)0x0) {
              memset(param_1,0x20,uVar15);
              param_1 = param_1 + uVar15;
            }
            lVar24 = lVar24 + uVar15;
            iVar8 = iVar26 - iVar14;
            bVar2 = iVar14 < iVar26;
            iVar26 = 0;
            if (bVar2) {
              iVar26 = iVar8;
            }
            if (bVar28) {
              iVar14 = 0;
              if (-1 < iVar26) {
                iVar14 = iVar26;
              }
              uVar11 = (ulong)iVar14;
              uVar15 = 1;
              if (uVar11 != 0) {
                uVar15 = uVar11;
              }
              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;
              if (param_1 != (char *)0x0) {
                if ((iVar22 == 0) && (1 < uVar11)) {
                  memset(param_1,0x20,(long)iVar26 - 1U);
                  param_1 = param_1 + ((long)iVar26 - 1U);
                }
                *param_1 = cVar5;
                param_1 = param_1 + 1;
              }
              lVar24 = lVar24 + uVar15;
            }
            goto LAB_00136f44;
          }
        }
        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {
          if (bVar28) {
            iVar8 = 0;
            if (-1 < iVar26) {
              iVar8 = iVar26;
            }
            uVar11 = (ulong)iVar8;
            uVar15 = 1;
            if (uVar11 != 0) {
              uVar15 = uVar11;
            }
            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;
            if (param_1 != (char *)0x0) {
              if ((iVar22 == 0) && (1 < uVar11)) {
                sVar27 = (long)iVar26 - 1;
                if (cVar4 == '0') {
                  memset(param_1,0x30,sVar27);
                  param_1 = param_1 + sVar27;
                }
                else {
                  memset(param_1,0x20,sVar27);
                  param_1 = param_1 + sVar27;
                }
              }
              *param_1 = cVar5;
              param_1 = param_1 + 1;
            }
            lVar24 = lVar24 + uVar15;
          }
          if (param_1 != (char *)0x0) {
            memset(param_1,0x30,(long)iVar14);
            param_1 = param_1 + iVar14;
          }
          lVar24 = lVar24 + iVar14;
          iVar26 = 0;
LAB_00136f44:
          uVar15 = (long)local_431 - (long)pcVar17;
          iVar14 = 0;
          if (-1 < iVar26) {
            iVar14 = iVar26;
          }
          uVar10 = (ulong)iVar14;
          uVar11 = uVar10;
          if (uVar10 <= uVar15) {
            uVar11 = uVar15;
          }
          if (uVar11 < (ulong)(param_2 - lVar24)) {
            if (param_1 != (char *)0x0) {
              if ((iVar22 == 0) && (uVar15 < uVar10)) {
                sVar27 = (long)iVar26 - uVar15;
                if (cVar4 == '0') {
                  memset(param_1,0x30,sVar27);
                  param_1 = param_1 + sVar27;
                }
                else {
                  memset(param_1,0x20,sVar27);
                  param_1 = param_1 + sVar27;
                }
              }
              if (cVar7 == '\0') {
                memcpy(param_1,pcVar17,uVar15);
              }
              else {
                FUN_00135900(param_1,pcVar17,uVar15);
              }
              param_1 = param_1 + uVar15;
            }
            lVar24 = lVar24 + uVar11;
            goto LAB_001359f4;
          }
        }
        goto LAB_00136dd9;
      case 'z':
        lVar23 = 0;
        pcVar17 = param_3;
LAB_00136bae:
        param_3 = pcVar17;
        if (param_4->tm_isdst < 0) goto LAB_001359f4;
        bVar28 = true;
        iVar22 = (int)param_4->tm_gmtoff;
        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {
          bVar28 = *__src == '-';
        }
        uVar12 = iVar22 / 0xe10;
        iVar8 = (iVar22 / 0x3c) % 0x3c;
        if (lVar23 == 1) {
LAB_00136c74:
          uVar12 = uVar12 * 100 + iVar8;
          uVar18 = 4;
          bVar2 = true;
          iVar22 = 6;
        }
        else if (lVar23 == 0) {
          uVar12 = uVar12 * 100 + iVar8;
          uVar18 = 0;
          bVar2 = true;
          iVar22 = 5;
        }
        else {
          if (lVar23 != 2) {
            local_4b8 = param_3;
            if (lVar23 != 3) goto LAB_00136cd6;
            if (iVar22 % 0x3c == 0) {
              if (iVar8 != 0) goto LAB_00136c74;
              bVar2 = true;
              iVar22 = 3;
              uVar18 = 0;
              goto LAB_00135edf;
            }
          }
          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;
          uVar18 = 0x14;
          bVar2 = true;
          iVar22 = 9;
        }
        goto LAB_00135edf;
      }
      pcVar20 = local_4b8 + -1;
      do {
        pcVar17 = pcVar20;
        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;
        pcVar20 = pcVar17 + -1;
        param_3 = local_4b8;
      } while (*pcVar17 != '%');
LAB_00136d21:
      local_4b8 = pcVar17;
      uVar15 = (ulong)iVar14;
      iVar14 = 0;
      if (-1 < iVar26) {
        iVar14 = iVar26;
      }
      uVar10 = (ulong)iVar14;
      uVar11 = uVar10;
      if (uVar10 <= uVar15) {
        uVar11 = uVar15;
      }
      if ((ulong)(param_2 - lVar24) <= uVar11) {
LAB_00136dd9:
        lVar24 = 0;
        goto LAB_00136ddf;
      }
      if (param_1 != (char *)0x0) {
        if (uVar15 < uVar10) {
          sVar27 = (long)iVar26 - uVar15;
          if (cVar4 == '0') {
            memset(param_1,0x30,sVar27);
            param_1 = param_1 + sVar27;
          }
          else {
            memset(param_1,0x20,sVar27);
            param_1 = param_1 + sVar27;
          }
        }
        if (cVar7 == '\0') {
          memcpy(param_1,local_4b8,uVar15);
        }
        else {
          FUN_00135900(param_1,local_4b8,uVar15);
        }
        param_1 = param_1 + uVar15;
      }
      lVar24 = lVar24 + uVar11;
LAB_001359f4:
      cVar5 = param_3[1];
      param_3 = param_3 + 1;
    } while (cVar5 != '\0');
  }
  if ((param_1 != (char *)0x0) && (param_2 != 0)) {
    *param_1 = '\0';
  }
LAB_00136ddf:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return lVar24;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x4c8
MOV R14,RDI
MOV qword ptr [RSP],RSI
MOV R13,RDX
MOV RAX,RCX
MOV qword ptr [RSP + 0x10],RCX
MOV qword ptr [RSP + 0x30],R9
MOV RCX,qword ptr [RSP + 0x500]
MOV qword ptr [RSP + 0x28],RCX
MOV byte ptr [RSP + 0xf],R8B
MOV RDI,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x4b8],RDI
XOR EDI,EDI
MOV R15D,dword ptr [RAX + 0x8]
MOV RSI,qword ptr [RAX + 0x30]
TEST RSI,RSI
LEA RAX,[0x13c8e9]
CMOVNZ RAX,RSI
MOV qword ptr [RSP + 0x38],RAX
CMP R15D,0xc
JLE 0x001359df
SUB R15D,0xc
MOVZX EAX,byte ptr [R13]
TEST AL,AL
JZ 0x00136e0b
MOV R12D,0x0
LEA RDI,[RSP + 0xb0]
MOV qword ptr [RSP + 0x18],RDI
LEA RCX,[RSP + 0xc7]
MOV qword ptr [RSP + 0x20],RCX
MOV dword ptr [RSP + 0x54],R15D
JMP 0x00135a04
TEST R15D,R15D
MOV EAX,0xc
CMOVZ R15D,EAX
JMP 0x001359ab
ADD R12,0x1
MOV RBX,R13
LEA R13,[RBX + 0x1]
MOVZX EAX,byte ptr [RBX + 0x1]
TEST AL,AL
JZ 0x00136e11
CMP AL,0x25
JZ 0x00135a27
MOV RDX,qword ptr [RSP]
SUB RDX,R12
CMP RDX,0x1
JBE 0x00136dd9
TEST R14,R14
JZ 0x001359ed
MOV byte ptr [R14],AL
ADD R14,0x1
JMP 0x001359ed
MOVZX EAX,byte ptr [RSP + 0xf]
MOV byte ptr [RSP + 0x8],AL
MOV EBX,0x0
MOV dword ptr [RSP + 0x50],0x0
MOV EDX,0x1
JMP 0x00135a4a
CMP AL,0x23
JNZ 0x00135a64
MOV EBX,EDX
ADD R13,0x1
MOVZX EAX,byte ptr [R13]
CMP AL,0x30
JZ 0x00135ab7
JLE 0x00135a44
CMP AL,0x5e
JNZ 0x00135ab3
MOV byte ptr [RSP + 0x8],0x1
JMP 0x00135a4a
CMP AL,0x2d
JZ 0x00135ab7
MOVSX EAX,AL
SUB EAX,0x30
MOV R15D,0xffffffff
CMP EAX,0x9
JBE 0x00135ac0
MOVZX EAX,byte ptr [R13]
CMP AL,0x45
JZ 0x00135b08
MOV EBP,0x0
CMP AL,0x4f
JZ 0x00135b08
MOVZX ECX,byte ptr [R13]
MOVSX EDI,CL
CMP CL,0x7a
JA 0x00136cec
MOVZX EAX,CL
LEA RSI,[0x13f428]
MOVSXD RAX,dword ptr [RSI + RAX*0x4]
ADD RAX,RSI
JMP RAX
CMP AL,0x5f
JNZ 0x00135a68
MOVSX EAX,AL
MOV dword ptr [RSP + 0x50],EAX
JMP 0x00135a4a
MOV R15D,0x0
MOV ECX,0x7fffffff
JMP 0x00135aed
CMP byte ptr [R13],0x37
JLE 0x00135af8
MOV R15D,ECX
JMP 0x00135adc
MOV R15D,ECX
ADD R13,0x1
MOVSX EAX,byte ptr [R13]
SUB EAX,0x30
CMP EAX,0x9
JA 0x00135a79
CMP R15D,0xccccccc
JG 0x00135ad9
JZ 0x00135acd
LEA EDX,[R15 + R15*0x4]
MOVSX EAX,byte ptr [R13]
LEA R15D,[RAX + RDX*0x2 + -0x30]
JMP 0x00135adc
MOVSX EBP,AL
ADD R13,0x1
JMP 0x00135a8f
LEA RAX,[0x13c726]
MOV qword ptr [RSP + 0x40],RAX
JMP 0x00135ca3
LEA RDX,[R13 + 0x1]
MOVZX EAX,byte ptr [R13 + 0x1]
CMP AL,0x3a
JZ 0x00136b89
MOV R11D,0x1
CMP AL,0x7a
JNZ 0x00136d04
MOV R13,RDX
JMP 0x00136bae
TEST EBP,EBP
JNZ 0x00136d9b
TEST R15D,R15D
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
TEST RAX,RAX
MOV EBX,0x1
CMOVNZ RBX,RAX
MOV RDX,qword ptr [RSP]
SUB RDX,R12
CMP RDX,RBX
JBE 0x00136dd9
TEST R14,R14
JZ 0x00135bb6
CMP RAX,0x1
JBE 0x00135baa
MOVSXD RBP,R15D
SUB RBP,0x1
CMP dword ptr [RSP + 0x50],0x30
JZ 0x00135bc1
MOV RDX,RBP
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,RBP
MOVZX EAX,byte ptr [R13]
MOV byte ptr [R14],AL
ADD R14,0x1
ADD R12,RBX
MOV RBX,R13
JMP 0x001359f4
MOV RDX,RBP
MOV ESI,0x30
MOV RDI,R14
CALL 0x001073f0
ADD R14,RBP
JMP 0x00135baa
TEST EBP,EBP
JNZ 0x00136d04
TEST BL,BL
MOVZX EAX,byte ptr [RSP + 0x8]
CMOVNZ EAX,EBX
MOV byte ptr [RSP + 0x8],AL
MOV EDI,0x61
MOV byte ptr [RSP + 0xab],0x20
MOV byte ptr [RSP + 0xac],0x25
MOV RBX,R13
MOV byte ptr [RSP + 0x40],0x0
MOV EBP,0x0
LEA RAX,[RSP + 0xad]
JMP 0x00135f1c
TEST EBP,EBP
JNZ 0x00136d04
TEST BL,BL
MOVZX EAX,byte ptr [RSP + 0x8]
CMOVNZ EAX,EBX
MOV byte ptr [RSP + 0x8],AL
MOV EDI,0x41
JMP 0x00135bf1
TEST BL,BL
MOVZX EAX,byte ptr [RSP + 0x8]
CMOVNZ EAX,EBX
MOV byte ptr [RSP + 0x8],AL
CMP EBP,0x45
JZ 0x00136cf3
MOV byte ptr [RSP + 0x40],0x0
JMP 0x001364b6
CMP EBP,0x45
JZ 0x00136d04
TEST BL,BL
MOVZX EAX,byte ptr [RSP + 0x8]
CMOVNZ EAX,EBX
MOV byte ptr [RSP + 0x8],AL
MOV EDI,0x42
MOV byte ptr [RSP + 0x40],0x0
JMP 0x001364b6
CMP EBP,0x4f
JZ 0x00136d04
MOV EDI,0x63
MOV byte ptr [RSP + 0x40],0x0
JMP 0x001364b6
LEA RAX,[0x13c138]
MOV qword ptr [RSP + 0x40],RAX
MOVZX EAX,byte ptr [RSP + 0x8]
MOV dword ptr [RSP + 0x8],EAX
MOV EBX,dword ptr [RSP + 0x508]
PUSH RBX
PUSH qword ptr [RSP + 0x30]
MOV R9,qword ptr [RSP + 0x40]
MOV R8D,EAX
MOV RCX,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x50]
MOV RSI,-0x1
MOV EDI,0x0
CALL 0x00135939
MOV RBX,RAX
ADD RSP,0x10
TEST R15D,R15D
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
CMP RBX,RAX
MOV RBP,RAX
CMOVNC RBP,RBX
MOV RCX,qword ptr [RSP]
SUB RCX,R12
MOV qword ptr [RSP + 0x58],RCX
CMP RCX,RBP
JBE 0x00136dd9
TEST R14,R14
JZ 0x00135d70
CMP RBX,RAX
JNC 0x00135d3c
MOVSXD RAX,R15D
SUB RAX,RBX
MOV R15,RAX
CMP dword ptr [RSP + 0x50],0x30
JZ 0x00135d7b
MOV RDX,RAX
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
MOV EAX,dword ptr [RSP + 0x508]
PUSH RAX
PUSH qword ptr [RSP + 0x30]
MOV R9,qword ptr [RSP + 0x40]
MOV R8D,dword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x68]
MOV RDI,R14
CALL 0x00135939
ADD R14,RBX
ADD RSP,0x10
ADD R12,RBP
MOV RBX,R13
JMP 0x001359f4
MOV RDX,RAX
MOV ESI,0x30
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
JMP 0x00135d3c
MOV byte ptr [RSP + 0x40],0x0
JMP 0x001364b6
MOV R10D,0x0
JMP 0x00135f06
MOV RDX,R15
MOV ESI,0x30
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
JMP 0x00135fab
MOV RAX,qword ptr [RSP + 0x18]
LEA RSI,[RAX + 0x1]
MOV RDX,R13
MOV RDI,R14
CALL 0x001358c7
JMP 0x00135fd5
MOV RAX,qword ptr [RSP + 0x18]
LEA RSI,[RAX + 0x1]
MOV RDX,R13
MOV RDI,R14
CALL 0x00107570
JMP 0x00135fd5
CMP EBP,0x45
JZ 0x00136e23
MOV RAX,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RAX + 0x14]
MOV EDX,0x51eb851f
MOV EAX,ESI
IMUL EDX
MOV EAX,EDX
SAR EAX,0x5
MOV EDX,ESI
SAR EDX,0x1f
SUB EAX,EDX
LEA ECX,[RAX + 0x13]
IMUL EAX,EAX,0x64
MOV EBX,ESI
SUB EBX,EAX
MOV EAX,EBX
SHR EAX,0x1f
TEST ECX,ECX
SETG DL
AND EAX,EDX
CMP ESI,0xfffff894
SETL R9B
SUB ECX,EAX
MOV ESI,0x0
MOV R11D,0x0
MOV R10D,0x2
JMP 0x00135edf
CMP EBP,0x4f
JZ 0x00136d04
MOV EDI,0x78
MOV byte ptr [RSP + 0x40],0x0
JMP 0x001364b6
TEST EBP,EBP
JNZ 0x00136d04
LEA RAX,[0x13f413]
MOV qword ptr [RSP + 0x40],RAX
JMP 0x00135ca3
CMP EBP,0x45
JZ 0x00136d04
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0xc]
MOV R10D,0x2
JMP 0x00135ecc
CMP EBP,0x45
JZ 0x00136d04
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0xc]
MOV EAX,dword ptr [RSP + 0x50]
CMP EAX,0x30
JZ 0x00135fe2
CMP EAX,0x2d
JZ 0x00135fe2
MOV R10D,0x2
MOV dword ptr [RSP + 0x50],0x5f
MOV EAX,ECX
SHR EAX,0x1f
MOV R9D,EAX
MOV ESI,0x0
MOV R11D,0x0
CMP EBP,0x4f
JNZ 0x00136a29
TEST R9B,R9B
JNZ 0x00136a29
MOV byte ptr [RSP + 0xab],0x20
MOV byte ptr [RSP + 0xac],0x25
MOV byte ptr [RSP + 0x40],0x0
MOV byte ptr [RSP + 0xad],BPL
MOV EBP,R10D
MOV RBX,R13
LEA RAX,[RSP + 0xae]
MOV byte ptr [RAX],DIL
MOV byte ptr [RAX + 0x1],0x0
LEA RDX,[RSP + 0xab]
MOV RCX,qword ptr [RSP + 0x10]
MOV ESI,0x400
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00107760
TEST RAX,RAX
JZ 0x001359f4
LEA R13,[RAX + -0x1]
TEST R15D,R15D
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
CMP R13,RAX
MOV RCX,RAX
CMOVNC RCX,R13
MOV qword ptr [RSP + 0x58],RCX
MOV RDX,qword ptr [RSP]
SUB RDX,R12
CMP RDX,RCX
JBE 0x00136dd9
TEST R14,R14
JZ 0x00135fd8
TEST EBP,EBP
JNZ 0x00135fab
CMP R13,RAX
JNC 0x00135fab
MOVSXD R15,R15D
SUB R15,R13
CMP dword ptr [RSP + 0x50],0x30
JZ 0x00135da5
MOV RDX,R15
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
CMP byte ptr [RSP + 0x40],0x0
JNZ 0x00135dbd
CMP byte ptr [RSP + 0x8],0x0
JZ 0x00135dd6
MOV RAX,qword ptr [RSP + 0x18]
LEA RSI,[RAX + 0x1]
MOV RDX,R13
MOV RDI,R14
CALL 0x00135900
ADD R14,R13
ADD R12,qword ptr [RSP + 0x58]
JMP 0x001359f4
MOV R10D,0x2
JMP 0x00135ecc
MOV ECX,dword ptr [RSP + 0x508]
MOV R10D,R15D
JMP 0x00135ecc
MOV ECX,EDX
MOV RDI,RBP
TEST SIL,0x1
JZ 0x0013600f
LEA RDI,[RBP + -0x1]
MOV byte ptr [RBP + -0x1],0x3a
SAR ESI,0x1
LEA RBP,[RDI + -0x1]
MOV EAX,ECX
MUL R8D
SHR EDX,0x3
LEA EAX,[RDX + RDX*0x4]
ADD EAX,EAX
MOV EBX,ECX
SUB EBX,EAX
MOV EAX,EBX
ADD EAX,0x30
MOV byte ptr [RDI + -0x1],AL
CMP ECX,0x9
JA 0x00135ffc
TEST ESI,ESI
JNZ 0x00135ffc
CMP R10D,R15D
CMOVL R10D,R15D
MOV dword ptr [RSP + 0x40],R10D
TEST R9B,R9B
JNZ 0x00136e53
MOV byte ptr [RSP + 0x58],0x2b
MOV RBX,R13
TEST R11B,R11B
JNZ 0x00136e58
CMP dword ptr [RSP + 0x50],0x2d
JZ 0x00136f44
MOV RAX,qword ptr [RSP + 0x20]
SUB RAX,RBP
MOV ECX,dword ptr [RSP + 0x40]
SUB ECX,EAX
MOV dword ptr [RSP + 0x60],ECX
TEST ECX,ECX
JLE 0x00136f44
MOV R13,RBX
MOV byte ptr [RSP + 0x58],0x0
MOV EBX,0x0
JMP 0x00136e8a
TEST R15D,R15D
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
TEST RAX,RAX
MOV EBX,0x1
CMOVNZ RBX,RAX
MOV RDX,qword ptr [RSP]
SUB RDX,R12
CMP RDX,RBX
JBE 0x00136dd9
TEST R14,R14
JZ 0x001360fd
CMP dword ptr [RSP + 0x40],0x0
JNZ 0x001360f1
CMP RAX,0x1
JBE 0x001360f1
MOVSXD RAX,R15D
SUB RAX,0x1
MOV qword ptr [RSP + 0x60],RAX
MOV RDX,RAX
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,qword ptr [RSP + 0x60]
MOVZX EAX,byte ptr [RSP + 0x58]
MOV byte ptr [R14],AL
ADD R14,0x1
ADD R12,RBX
MOV RBX,R13
JMP 0x00136f44
MOVSXD RCX,dword ptr [RSP + 0x60]
MOV qword ptr [RSP + 0x68],RCX
MOV RAX,qword ptr [RSP]
SUB RAX,R12
CMP RCX,RAX
JNC 0x00136dd9
TEST R14,R14
JZ 0x0013613c
MOV RDX,RCX
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,qword ptr [RSP + 0x68]
ADD R12,qword ptr [RSP + 0x68]
MOV EDX,R15D
MOV EAX,dword ptr [RSP + 0x60]
SUB EDX,EAX
CMP R15D,EAX
MOV EAX,0x0
CMOVG EAX,EDX
MOV R15D,EAX
TEST BL,BL
JZ 0x00136282
TEST EAX,EAX
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
TEST RAX,RAX
MOV EDX,0x1
MOV RDI,RDX
CMOVNZ RDI,RAX
MOV qword ptr [RSP + 0x60],RDI
MOV RDX,qword ptr [RSP]
SUB RDX,R12
CMP RDX,RDI
JBE 0x00136dd9
TEST R14,R14
JZ 0x001361c9
CMP dword ptr [RSP + 0x40],0x0
JNZ 0x001361bd
CMP RAX,0x1
JBE 0x001361bd
MOVSXD RBX,R15D
SUB RBX,0x1
MOV RDX,RBX
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,RBX
MOVZX EAX,byte ptr [RSP + 0x58]
MOV byte ptr [R14],AL
ADD R14,0x1
ADD R12,qword ptr [RSP + 0x60]
MOV RBX,R13
JMP 0x00136f44
MOV RDX,R15
MOV ESI,0x30
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
JMP 0x00136f07
TEST R15D,R15D
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
TEST RAX,RAX
MOV EBX,0x1
CMOVNZ RBX,RAX
MOV RDX,qword ptr [RSP]
SUB RDX,R12
CMP RDX,RBX
JBE 0x00136dd9
TEST R14,R14
JZ 0x00136260
CMP dword ptr [RSP + 0x40],0x0
JNZ 0x00136254
CMP RAX,0x1
JBE 0x00136254
MOVSXD RAX,R15D
SUB RAX,0x1
MOV qword ptr [RSP + 0x60],RAX
CMP dword ptr [RSP + 0x50],0x30
JZ 0x0013626b
MOV RDX,qword ptr [RSP + 0x60]
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,qword ptr [RSP + 0x60]
MOVZX EAX,byte ptr [RSP + 0x58]
MOV byte ptr [R14],AL
ADD R14,0x1
ADD R12,RBX
MOV RBX,R13
JMP 0x00136f44
MOV RDX,RAX
MOV ESI,0x30
MOV RDI,R14
CALL 0x001073f0
ADD R14,qword ptr [RSP + 0x60]
JMP 0x00136254
MOV RBX,R13
JMP 0x00136f44
MOV RDX,RAX
MOV ESI,0x30
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
JMP 0x00136fb1
MOV RDX,R13
MOV RSI,RBP
MOV RDI,R14
CALL 0x00107570
JMP 0x00136fca
TEST EBP,EBP
JNZ 0x00136d04
LEA RAX,[0x13f41c]
MOV qword ptr [RSP + 0x40],RAX
JMP 0x00135ca3
CMP EBP,0x45
JZ 0x00136d04
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x8]
MOV R10D,0x2
JMP 0x00135ecc
CMP EBP,0x45
JZ 0x00136d04
MOV ECX,dword ptr [RSP + 0x54]
MOV R10D,0x2
JMP 0x00135ecc
CMP EBP,0x45
JZ 0x00136d04
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x8]
JMP 0x00135ea8
CMP EBP,0x45
JZ 0x00136d04
MOV ECX,dword ptr [RSP + 0x54]
JMP 0x00135ea8
CMP EBP,0x45
JZ 0x00136d04
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x1c]
CMP ECX,-0x1
SETL R9B
ADD ECX,0x1
MOV ESI,0x0
MOV R11D,0x0
MOV R10D,0x3
JMP 0x00135edf
CMP EBP,0x45
JZ 0x00136d04
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x4]
MOV R10D,0x2
JMP 0x00135ecc
CMP EBP,0x45
JZ 0x00136d04
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x10]
CMP ECX,-0x1
SETL R9B
ADD ECX,0x1
MOV ESI,0x0
MOV R11D,0x0
MOV R10D,0x2
JMP 0x00135edf
CMP EBP,0x45
JZ 0x00136d04
CMP R15D,-0x1
JNZ 0x001363cf
MOV ECX,dword ptr [RSP + 0x508]
MOV R15D,0x9
MOV R10D,0x9
JMP 0x00135ecc
CMP R15D,0x8
JG 0x00135fed
MOV ESI,R15D
MOV ECX,dword ptr [RSP + 0x508]
MOV R8D,0x66666667
MOV EAX,ECX
IMUL R8D
SAR EDX,0x2
SAR ECX,0x1f
SUB EDX,ECX
MOV ECX,EDX
ADD ESI,0x1
CMP ESI,0x9
JNZ 0x001363e9
MOV R10D,R15D
JMP 0x00135ecc
TEST R15D,R15D
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
TEST RAX,RAX
MOV EBX,0x1
CMOVNZ RBX,RAX
MOV RDX,qword ptr [RSP]
SUB RDX,R12
CMP RDX,RBX
JBE 0x00136dd9
TEST R14,R14
JZ 0x00136466
CMP RAX,0x1
JBE 0x0013645e
MOVSXD RBP,R15D
SUB RBP,0x1
CMP dword ptr [RSP + 0x50],0x30
JZ 0x00136471
MOV RDX,RBP
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,RBP
MOV byte ptr [R14],0xa
ADD R14,0x1
ADD R12,RBX
MOV RBX,R13
JMP 0x001359f4
MOV RDX,RBP
MOV ESI,0x30
MOV RDI,R14
CALL 0x001073f0
ADD R14,RBP
JMP 0x0013645e
MOV byte ptr [RSP + 0x40],0x1
JMP 0x00136492
MOV byte ptr [RSP + 0x40],0x0
TEST BL,BL
MOVZX EAX,byte ptr [RSP + 0x40]
CMOVNZ EAX,EBX
MOV byte ptr [RSP + 0x40],AL
MOV EDI,0x70
MOV EAX,0x0
MOVZX EBX,byte ptr [RSP + 0x8]
CMOVNZ EBX,EAX
MOV byte ptr [RSP + 0x8],BL
MOV byte ptr [RSP + 0xab],0x20
MOV byte ptr [RSP + 0xac],0x25
TEST EBP,EBP
JNZ 0x00135d9a
MOV RBX,R13
LEA RAX,[RSP + 0xad]
JMP 0x00135f1c
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x10]
MOV EDI,0x71
MOV R10D,0x1
CMP EBP,0x4f
JZ 0x00135ef1
LEA EDX,[RAX + RAX*0x4]
LEA ECX,[RAX + RDX*0x2]
SAR ECX,0x5
ADD ECX,0x1
MOV ESI,0x0
MOV R11D,0x0
MOV R9D,0x0
JMP 0x00136a33
CMP EBP,0x45
JZ 0x00136d04
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX]
MOV R10D,0x2
JMP 0x00135ecc
MOV RAX,qword ptr [RSP + 0x10]
MOVDQU XMM0,xmmword ptr [RAX]
MOVAPS xmmword ptr [RSP + 0x70],XMM0
MOVDQU XMM2,xmmword ptr [RAX + 0x10]
MOVAPS xmmword ptr [RSP + 0x80],XMM2
MOVDQU XMM4,xmmword ptr [RAX + 0x20]
MOVAPS xmmword ptr [RSP + 0x40],XMM4
MOVAPS xmmword ptr [RSP + 0x90],XMM4
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP + 0xa0],RAX
LEA RSI,[RSP + 0x70]
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00134eb1
MOV RSI,RAX
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x18]
LEA RBP,[RAX + 0x17]
MOV EDI,0x30
MOV RAX,0x6666666666666667
IMUL RCX
SAR RDX,0x2
MOV RAX,RCX
SAR RAX,0x3f
SUB RDX,RAX
MOV R8,RDX
LEA RAX,[RDX + RDX*0x4]
ADD RAX,RAX
SUB RCX,RAX
MOV RDX,RCX
MOV RCX,R8
MOV EAX,EDI
SUB EAX,EDX
ADD EDX,0x30
TEST RSI,RSI
CMOVS EDX,EAX
SUB RBP,0x1
MOV byte ptr [RBP],DL
TEST R8,R8
JNZ 0x00136593
TEST R15D,R15D
MOV EAX,0x1
CMOVG EAX,R15D
MOV dword ptr [RSP + 0x40],EAX
MOV RBX,R13
TEST RSI,RSI
JNS 0x0013605d
MOV byte ptr [RSP + 0x58],0x2d
JMP 0x00136e58
CMP EBP,0x4f
JZ 0x00136d04
MOV EDI,0x58
MOV byte ptr [RSP + 0x40],0x0
JMP 0x001364b6
TEST R15D,R15D
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
TEST RAX,RAX
MOV EBX,0x1
CMOVNZ RBX,RAX
MOV RDX,qword ptr [RSP]
SUB RDX,R12
CMP RDX,RBX
JBE 0x00136dd9
TEST R14,R14
JZ 0x00136676
CMP RAX,0x1
JBE 0x0013666e
MOVSXD RBP,R15D
SUB RBP,0x1
CMP dword ptr [RSP + 0x50],0x30
JZ 0x00136681
MOV RDX,RBP
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,RBP
MOV byte ptr [R14],0x9
ADD R14,0x1
ADD R12,RBX
MOV RBX,R13
JMP 0x001359f4
MOV RDX,RBP
MOV ESI,0x30
MOV RDI,R14
CALL 0x001073f0
ADD R14,RBP
JMP 0x0013666e
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x18]
MOV dword ptr [RSP + 0x40],EAX
LEA ECX,[RAX + 0x6]
MOV EDX,0x92492493
MOV EAX,ECX
IMUL EDX
LEA EAX,[RDX + RCX*0x1]
SAR EAX,0x2
MOV EDX,ECX
SAR EDX,0x1f
SUB EAX,EDX
LEA EDX,[RAX*0x8]
SUB EDX,EAX
SUB ECX,EDX
ADD ECX,0x1
MOV R10D,0x1
JMP 0x00135ecc
CMP EBP,0x45
JZ 0x00136d04
MOV RAX,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RAX + 0x1c]
SUB ESI,dword ptr [RAX + 0x18]
ADD ESI,0x7
MOV EDX,0x92492493
MOV EAX,ESI
IMUL EDX
LEA ECX,[RDX + RSI*0x1]
SAR ECX,0x2
SAR ESI,0x1f
SUB ECX,ESI
MOV R10D,0x2
JMP 0x00135ecc
CMP EBP,0x45
JZ 0x00136cfa
MOV RBX,qword ptr [RSP + 0x10]
MOV R8D,dword ptr [RBX + 0x14]
MOV EAX,R8D
SAR EAX,0x1f
AND EAX,0x190
LEA R9D,[R8 + RAX*0x1 + -0x64]
MOV R11D,dword ptr [RBX + 0x18]
MOV ESI,dword ptr [RBX + 0x1c]
MOV R10D,ESI
SUB R10D,R11D
ADD R10D,0x17e
MOV EDX,0x92492493
MOV EAX,R10D
IMUL EDX
LEA EAX,[RDX + R10*0x1]
SAR EAX,0x2
MOV EDX,R10D
SAR EDX,0x1f
SUB EAX,EDX
LEA EDX,[RAX*0x8]
SUB EDX,EAX
MOV EAX,EDX
MOV EDX,ESI
SUB EDX,R10D
LEA R10D,[RDX + RAX*0x1 + 0x3]
TEST R10D,R10D
JS 0x00136886
MOV EAX,0x0
TEST R9B,0x3
JNZ 0x001367ca
MOV EDX,0x51eb851f
MOV EAX,R9D
IMUL EDX
SAR EDX,0x5
MOV EAX,R9D
SAR EAX,0x1f
SUB EDX,EAX
IMUL EDX,EDX,0x64
MOV EAX,0x1
CMP R9D,EDX
JNZ 0x001367ca
MOV EDX,0x51eb851f
MOV EAX,R9D
IMUL EDX
MOV EAX,EDX
SAR EAX,0x7
MOV EDX,R9D
SAR EDX,0x1f
SUB EAX,EDX
IMUL EAX,EAX,0x190
CMP R9D,EAX
SETZ AL
MOVZX EAX,AL
ADD EAX,0x16d
SUB ESI,EAX
MOV R9D,ESI
SUB R9D,R11D
ADD R9D,0x17e
MOV EDX,0x92492493
MOV EAX,R9D
IMUL EDX
LEA EAX,[RDX + R9*0x1]
SAR EAX,0x2
MOV EDX,R9D
SAR EDX,0x1f
SUB EAX,EDX
LEA EDX,[RAX*0x8]
SUB EDX,EAX
SUB ESI,R9D
LEA ESI,[RSI + RDX*0x1 + 0x3]
TEST ESI,ESI
CMOVNS R10D,ESI
SAR ESI,0x1f
ADD ESI,0x1
CMP CL,0x47
JZ 0x00136924
CMP CL,0x67
JNZ 0x00136950
MOV ECX,0x51eb851f
MOV EAX,R8D
IMUL ECX
MOV EAX,EDX
SAR EAX,0x5
MOV EDX,R8D
SAR EDX,0x1f
SUB EAX,EDX
IMUL EAX,EAX,0x64
MOV R9D,R8D
SUB R9D,EAX
ADD R9D,ESI
MOV EAX,R9D
IMUL ECX
MOV ECX,EDX
SAR ECX,0x5
MOV EAX,R9D
SAR EAX,0x1f
SUB ECX,EAX
IMUL ECX,ECX,0x64
MOV R10D,0x2
SUB R9D,ECX
MOV ECX,R9D
JNS 0x00135ecc
MOV EAX,0xfffff894
SUB EAX,ESI
CMP R8D,EAX
JGE 0x00136916
NEG ECX
JMP 0x00135ecc
SUB R9D,0x1
MOV EDX,0x0
TEST R9B,0x3
JNZ 0x001368ce
MOV EDX,0x51eb851f
MOV EAX,R9D
IMUL EDX
MOV EAX,EDX
SAR EAX,0x5
MOV EDX,R9D
SAR EDX,0x1f
SUB EAX,EDX
IMUL EAX,EAX,0x64
MOV EDX,0x1
CMP R9D,EAX
JNZ 0x001368ce
MOV R10D,0x190
MOV EAX,R9D
CDQ
IDIV R10D
TEST EDX,EDX
SETZ DL
MOVZX EDX,DL
LEA ESI,[RSI + RDX*0x1 + 0x16d]
MOV R9D,ESI
SUB R9D,R11D
ADD R9D,0x17e
MOV EDX,0x92492493
MOV EAX,R9D
IMUL EDX
LEA EAX,[RDX + R9*0x1]
SAR EAX,0x2
MOV EDX,R9D
SAR EDX,0x1f
SUB EAX,EDX
LEA EDX,[RAX*0x8]
SUB EDX,EAX
SUB ESI,R9D
LEA R10D,[RSI + RDX*0x1 + 0x3]
MOV ESI,0xffffffff
JMP 0x00136813
ADD ECX,0x64
MOV R10D,0x2
JMP 0x00135ecc
MOV EAX,0xfffff894
SUB EAX,ESI
CMP R8D,EAX
SETL R9B
LEA ECX,[R8 + RSI*0x1 + 0x76c]
MOV ESI,0x0
MOV R11D,0x0
MOV R10D,0x4
JMP 0x00135edf
MOV EDX,0x92492493
MOV EAX,R10D
IMUL EDX
LEA ECX,[RDX + R10*0x1]
SAR ECX,0x2
SAR R10D,0x1f
SUB ECX,R10D
ADD ECX,0x1
MOV R10D,0x2
JMP 0x00135ecc
CMP EBP,0x45
JZ 0x00136d04
MOV RBX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RBX + 0x18]
MOV dword ptr [RSP + 0x40],EAX
LEA ESI,[RAX + 0x6]
MOV ECX,0x92492493
MOV EAX,ESI
IMUL ECX
LEA EAX,[RDX + RSI*0x1]
SAR EAX,0x2
MOV EDX,ESI
SAR EDX,0x1f
SUB EAX,EDX
LEA EDX,[RAX*0x8]
SUB EDX,EAX
MOV EAX,EDX
MOV EDX,dword ptr [RBX + 0x1c]
SUB EAX,ESI
LEA ESI,[RAX + RDX*0x1 + 0x7]
MOV EAX,ESI
IMUL ECX
LEA ECX,[RDX + RSI*0x1]
SAR ECX,0x2
SAR ESI,0x1f
SUB ECX,ESI
MOV R10D,0x2
JMP 0x00135ecc
CMP EBP,0x45
JZ 0x00136d04
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x18]
MOV R10D,0x1
JMP 0x00135ecc
CMP EBP,0x45
JZ 0x00136e33
CMP EBP,0x4f
JZ 0x00136d04
MOV RAX,qword ptr [RSP + 0x10]
MOV ECX,dword ptr [RAX + 0x14]
CMP ECX,0xfffff894
SETL R9B
ADD ECX,0x76c
MOV ESI,0x0
MOV R11D,0x0
MOV R10D,0x4
MOV EAX,ECX
NEG EAX
TEST R9B,R9B
CMOVNZ ECX,EAX
MOV RAX,qword ptr [RSP + 0x18]
LEA RBP,[RAX + 0x17]
MOV R8D,0xcccccccd
JMP 0x00135ffe
CMP EBP,0x45
JZ 0x00136e43
MOV RAX,qword ptr [RSP + 0x10]
MOV ESI,dword ptr [RAX + 0x14]
MOV EDX,0x51eb851f
MOV EAX,ESI
IMUL EDX
MOV ECX,EDX
SAR ECX,0x5
MOV EAX,ESI
SAR EAX,0x1f
SUB ECX,EAX
IMUL ECX,ECX,0x64
MOV R10D,0x2
MOV EAX,ESI
SUB EAX,ECX
MOV ECX,EAX
JNS 0x00135ecc
CMP ESI,0xfffff894
JGE 0x00136a91
NEG ECX
JMP 0x00135ecc
ADD ECX,0x64
MOV R10D,0x2
JMP 0x00135ecc
TEST BL,BL
MOV EAX,0x0
MOVZX EDI,byte ptr [RSP + 0x8]
CMOVNZ EDI,EAX
MOV byte ptr [RSP + 0x8],DIL
MOV RCX,-0x1
MOV RDI,qword ptr [RSP + 0x38]
SCASB.REPNE RDI
MOV RAX,RCX
NOT RAX
LEA RBP,[RAX + -0x1]
TEST R15D,R15D
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
CMP RBP,RAX
MOV RCX,RAX
CMOVNC RCX,RBP
MOV qword ptr [RSP + 0x40],RCX
MOV RDX,qword ptr [RSP]
SUB RDX,R12
CMP RDX,RCX
JBE 0x00136dd9
TEST R14,R14
JZ 0x00136b43
CMP RBP,RAX
JNC 0x00136b25
MOVSXD RAX,R15D
SUB RAX,RBP
MOV R15,RAX
CMP dword ptr [RSP + 0x50],0x30
JZ 0x00136b50
MOV RDX,RAX
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
TEST BL,BL
JNZ 0x00136b65
CMP byte ptr [RSP + 0x8],0x0
JZ 0x00136b77
MOV RDX,RBP
MOV RSI,qword ptr [RSP + 0x38]
MOV RDI,R14
CALL 0x00135900
ADD R14,RBP
ADD R12,qword ptr [RSP + 0x40]
MOV RBX,R13
JMP 0x001359f4
MOV RDX,RAX
MOV ESI,0x30
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
JMP 0x00136b25
MOV RDX,RBP
MOV RSI,qword ptr [RSP + 0x38]
MOV RDI,R14
CALL 0x001358c7
JMP 0x00136b40
MOV RDX,RBP
MOV RSI,qword ptr [RSP + 0x38]
MOV RDI,R14
CALL 0x00107570
JMP 0x00136b40
MOV R11D,0x1
ADD R11,0x1
LEA RDX,[R13 + R11*0x1]
MOVZX EAX,byte ptr [R13 + R11*0x1]
CMP AL,0x3a
JNZ 0x00135b3c
JMP 0x00136b8f
MOV R11D,0x0
MOV RAX,qword ptr [RSP + 0x10]
CMP dword ptr [RAX + 0x20],0x0
JS 0x00136dd1
MOV R10,qword ptr [RAX + 0x28]
MOV R9D,0x1
TEST R10D,R10D
JS 0x00136be4
MOV R9D,0x0
JNZ 0x00136be4
MOV RAX,qword ptr [RSP + 0x38]
CMP byte ptr [RAX],0x2d
SETZ R9B
MOVZX R9D,R9B
AND R9D,0x1
MOV EDX,0x91a2b3c5
MOV EAX,R10D
IMUL EDX
LEA ECX,[RDX + R10*0x1]
SAR ECX,0xb
MOV EBX,R10D
SAR EBX,0x1f
SUB ECX,EBX
MOV ESI,0x88888889
MOV EAX,R10D
IMUL ESI
LEA R8D,[RDX + R10*0x1]
SAR R8D,0x5
SUB R8D,EBX
MOV EAX,R8D
IMUL ESI
LEA ESI,[RDX + R8*0x1]
SAR ESI,0x5
MOV EAX,R8D
SAR EAX,0x1f
SUB ESI,EAX
IMUL ESI,ESI,0x3c
MOV EAX,R8D
SUB EAX,ESI
MOV ESI,EAX
IMUL R8D,R8D,0x3c
SUB R10D,R8D
CMP R11,0x1
JZ 0x00136c74
TEST R11,R11
JZ 0x00136c59
CMP R11,0x2
JZ 0x00136c8f
CMP R11,0x3
JZ 0x00136cb3
MOV qword ptr [RSP + 0x40],R13
JMP 0x00136cd6
IMUL ECX,ECX,0x64
ADD ECX,EAX
MOV ESI,0x0
MOV R11D,0x1
MOV R10D,0x5
JMP 0x00135edf
IMUL ECX,ECX,0x64
ADD ECX,ESI
MOV ESI,0x4
MOV R11D,0x1
MOV R10D,0x6
JMP 0x00135edf
IMUL ECX,ECX,0x2710
IMUL ESI,ESI,0x64
ADD ECX,ESI
ADD ECX,R10D
MOV ESI,0x14
MOV R11D,0x1
MOV R10D,0x9
JMP 0x00135edf
TEST R10D,R10D
JNZ 0x00136c8f
TEST EAX,EAX
JNZ 0x00136c74
MOV R11D,0x1
MOV R10D,0x3
JMP 0x00135edf
LEA RAX,[R13 + -0x1]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x40]
CMP byte ptr [RAX],0x25
JNZ 0x00136d01
MOV R13,qword ptr [RSP + 0x40]
MOV EBX,0x1
JMP 0x00136d21
MOV qword ptr [RSP + 0x40],R13
JMP 0x00136cd6
MOV qword ptr [RSP + 0x40],R13
JMP 0x00136cd6
MOV qword ptr [RSP + 0x40],R13
JMP 0x00136cd6
MOV R13,RAX
LEA RDX,[R13 + -0x1]
MOV RAX,RDX
ADD EDX,0x2
MOV EBX,EDX
SUB EBX,EAX
MOV qword ptr [RSP + 0x40],RAX
SUB RAX,0x1
CMP byte ptr [RAX + 0x1],0x25
JNZ 0x00136d0e
MOVSXD RBX,EBX
TEST R15D,R15D
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
CMP RBX,RAX
MOV RBP,RAX
CMOVNC RBP,RBX
MOV RDX,qword ptr [RSP]
SUB RDX,R12
CMP RDX,RBP
JBE 0x00136dd9
TEST R14,R14
JZ 0x00136d90
CMP RBX,RAX
JNC 0x00136d76
MOVSXD R15,R15D
SUB R15,RBX
CMP dword ptr [RSP + 0x50],0x30
JZ 0x00136daa
MOV RDX,R15
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
CMP byte ptr [RSP + 0x8],0x0
JZ 0x00136dbf
MOV RDX,RBX
MOV RSI,qword ptr [RSP + 0x40]
MOV RDI,R14
CALL 0x00135900
ADD R14,RBX
ADD R12,RBP
MOV RBX,R13
JMP 0x001359f4
MOV qword ptr [RSP + 0x40],R13
MOV EBX,0x1
JMP 0x00136d21
MOV RDX,R15
MOV ESI,0x30
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
JMP 0x00136d76
MOV RDX,RBX
MOV RSI,qword ptr [RSP + 0x40]
MOV RDI,R14
CALL 0x00107570
JMP 0x00136d8d
MOV RBX,R13
JMP 0x001359f4
MOV R12D,0x0
MOV RAX,R12
MOV RBX,qword ptr [RSP + 0x4b8]
XOR RBX,qword ptr FS:[0x28]
JNZ 0x00136fd7
ADD RSP,0x4c8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV R12D,0x0
TEST R14,R14
JZ 0x00136ddf
CMP qword ptr [RSP],0x0
JZ 0x00136ddf
MOV byte ptr [R14],0x0
JMP 0x00136ddf
MOV EDI,0x43
MOV R10D,0x0
JMP 0x00135ef1
MOV EDI,0x59
MOV R10D,0x0
JMP 0x00135ef1
MOV EDI,0x79
MOV R10D,0x0
JMP 0x00135ef1
MOV byte ptr [RSP + 0x58],0x2d
CMP dword ptr [RSP + 0x50],0x2d
JZ 0x00136094
CMP byte ptr [RSP + 0x58],0x0
SETNZ BL
MOV RAX,qword ptr [RSP + 0x20]
SUB RAX,RBP
MOV EDX,dword ptr [RSP + 0x40]
SUB EDX,EAX
MOVZX EAX,BL
SUB EDX,EAX
MOV dword ptr [RSP + 0x60],EDX
TEST EDX,EDX
JLE 0x001361ee
CMP dword ptr [RSP + 0x50],0x5f
JZ 0x00136108
MOV RDX,qword ptr [RSP]
SUB RDX,R12
MOV EDI,dword ptr [RSP + 0x40]
MOVSXD RAX,EDI
CMP RAX,RDX
JNC 0x00136dd9
TEST BL,BL
JZ 0x00136f16
TEST R15D,R15D
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
TEST RAX,RAX
MOV EBX,0x1
CMOVNZ RBX,RAX
CMP RDX,RBX
JBE 0x00136dd9
TEST R14,R14
JZ 0x00136f13
TEST EDI,EDI
JNZ 0x00136f07
CMP RAX,0x1
JBE 0x00136f07
MOVSXD R15,R15D
SUB R15,0x1
CMP dword ptr [RSP + 0x50],0x30
JZ 0x001361d6
MOV RDX,R15
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
MOVZX EAX,byte ptr [RSP + 0x58]
MOV byte ptr [R14],AL
ADD R14,0x1
ADD R12,RBX
TEST R14,R14
JZ 0x00136f33
MOVSXD RBX,dword ptr [RSP + 0x60]
MOV RDX,RBX
MOV ESI,0x30
MOV RDI,R14
CALL 0x001073f0
ADD R14,RBX
MOVSXD RAX,dword ptr [RSP + 0x60]
ADD R12,RAX
MOV RBX,R13
MOV R15D,0x0
MOV R13,qword ptr [RSP + 0x20]
SUB R13,RBP
TEST R15D,R15D
MOV EAX,0x0
CMOVNS EAX,R15D
CDQE
CMP R13,RAX
MOV RDI,RAX
CMOVNC RDI,R13
MOV qword ptr [RSP + 0x58],RDI
MOV RDX,qword ptr [RSP]
SUB RDX,R12
CMP RDX,RDI
JBE 0x00136dd9
TEST R14,R14
JZ 0x00136fcd
CMP dword ptr [RSP + 0x40],0x0
JNZ 0x00136fb1
CMP R13,RAX
JNC 0x00136fb1
MOVSXD RAX,R15D
SUB RAX,R13
MOV R15,RAX
CMP dword ptr [RSP + 0x50],0x30
JZ 0x0013628a
MOV RDX,RAX
MOV ESI,0x20
MOV RDI,R14
CALL 0x001073f0
ADD R14,R15
CMP byte ptr [RSP + 0x8],0x0
JZ 0x001362a2
MOV RDX,R13
MOV RSI,RBP
MOV RDI,R14
CALL 0x00135900
ADD R14,R13
ADD R12,qword ptr [RSP + 0x58]
JMP 0x001359f4
CALL 0x001072c0
(translation_unit "long FUN_00135939(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,\n                 undefined8 param_6,undefined8 param_7,uint param_8)\n\n{\n  bool bVar1;\n  bool bVar2;\n  long lVar3;\n  char cVar4;\n  char cVar5;\n  char cVar6;\n  char cVar7;\n  int iVar8;\n  char *__src;\n  long lVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  ulong uVar15;\n  char cVar16;\n  char *pcVar17;\n  uint uVar18;\n  int iVar19;\n  char *pcVar20;\n  int iVar21;\n  int iVar22;\n  long lVar23;\n  long lVar24;\n  uint uVar25;\n  int iVar26;\n  size_t sVar27;\n  long in_FS_OFFSET;\n  bool bVar28;\n  byte bVar29;\n  char *local_4b8;\n  undefined8 local_488;\n  undefined8 uStack_480;\n  undefined8 local_478;\n  undefined8 uStack_470;\n  undefined8 local_468;\n  long lStack_460;\n  char *local_458;\n  char local_44d [3];\n  char local_44a [2];\n  char local_448;\n  undefined1 local_447 [22];\n  char local_431 [1009];\n  long local_40;\n  \n  bVar29 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar25 = param_4->tm_hour;\n  __src = "";\n  if (param_4->tm_zone != (char *)0x0) {\n    __src = param_4->tm_zone;\n  }\n  if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }\n  cVar5 = *param_3;\n  if (cVar5 == '\0') {\n    lVar24 = 0;\n  }\n  else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }\n  if ((param_1 != (char *)0x0) && (param_2 != 0)) {\n    *param_1 = '\0';\n  }\nLAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "long FUN_00135939(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,\n                 undefined8 param_6,undefined8 param_7,uint param_8)\n\n{\n  bool bVar1;\n  bool bVar2;\n  long lVar3;\n  char cVar4;\n  char cVar5;\n  char cVar6;\n  char cVar7;\n  int iVar8;\n  char *__src;\n  long lVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  ulong uVar15;\n  char cVar16;\n  char *pcVar17;\n  uint uVar18;\n  int iVar19;\n  char *pcVar20;\n  int iVar21;\n  int iVar22;\n  long lVar23;\n  long lVar24;\n  uint uVar25;\n  int iVar26;\n  size_t sVar27;\n  long in_FS_OFFSET;\n  bool bVar28;\n  byte bVar29;\n  char *local_4b8;\n  undefined8 local_488;\n  undefined8 uStack_480;\n  undefined8 local_478;\n  undefined8 uStack_470;\n  undefined8 local_468;\n  long lStack_460;\n  char *local_458;\n  char local_44d [3];\n  char local_44a [2];\n  char local_448;\n  undefined1 local_447 [22];\n  char local_431 [1009];\n  long local_40;\n  \n  bVar29 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar25 = param_4->tm_hour;\n  __src = "";\n  if (param_4->tm_zone != (char *)0x0) {\n    __src = param_4->tm_zone;\n  }\n  if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }\n  cVar5 = *param_3;\n  if (cVar5 == '\0') {\n    lVar24 = 0;\n  }\n  else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }\n  if ((param_1 != (char *)0x0) && (param_2 != 0)) {\n    *param_1 = '\0';\n  }\nLAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00135939(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,\n                 undefined8 param_6,undefined8 param_7,uint param_8)" identifier (parameter_list "(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,\n                 undefined8 param_6,undefined8 param_7,uint param_8)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "tm *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "char param_5" primitive_type identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "uint param_8" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  bool bVar2;\n  long lVar3;\n  char cVar4;\n  char cVar5;\n  char cVar6;\n  char cVar7;\n  int iVar8;\n  char *__src;\n  long lVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  ulong uVar15;\n  char cVar16;\n  char *pcVar17;\n  uint uVar18;\n  int iVar19;\n  char *pcVar20;\n  int iVar21;\n  int iVar22;\n  long lVar23;\n  long lVar24;\n  uint uVar25;\n  int iVar26;\n  size_t sVar27;\n  long in_FS_OFFSET;\n  bool bVar28;\n  byte bVar29;\n  char *local_4b8;\n  undefined8 local_488;\n  undefined8 uStack_480;\n  undefined8 local_478;\n  undefined8 uStack_470;\n  undefined8 local_468;\n  long lStack_460;\n  char *local_458;\n  char local_44d [3];\n  char local_44a [2];\n  char local_448;\n  undefined1 local_447 [22];\n  char local_431 [1009];\n  long local_40;\n  \n  bVar29 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar25 = param_4->tm_hour;\n  __src = "";\n  if (param_4->tm_zone != (char *)0x0) {\n    __src = param_4->tm_zone;\n  }\n  if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }\n  cVar5 = *param_3;\n  if (cVar5 == '\0') {\n    lVar24 = 0;\n  }\n  else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }\n  if ((param_1 != (char *)0x0) && (param_2 != 0)) {\n    *param_1 = '\0';\n  }\nLAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "char cVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "ulong uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "ulong uVar15;" type_identifier identifier ;) (declaration "char cVar16;" primitive_type identifier ;) (declaration "char *pcVar17;" primitive_type (pointer_declarator "*pcVar17" * identifier) ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "char *pcVar20;" primitive_type (pointer_declarator "*pcVar20" * identifier) ;) (declaration "int iVar21;" primitive_type identifier ;) (declaration "int iVar22;" primitive_type identifier ;) (declaration "long lVar23;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar24;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar25;" type_identifier identifier ;) (declaration "int iVar26;" primitive_type identifier ;) (declaration "size_t sVar27;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar28;" primitive_type identifier ;) (declaration "byte bVar29;" type_identifier identifier ;) (declaration "char *local_4b8;" primitive_type (pointer_declarator "*local_4b8" * identifier) ;) (declaration "undefined8 local_488;" type_identifier identifier ;) (declaration "undefined8 uStack_480;" type_identifier identifier ;) (declaration "undefined8 local_478;" type_identifier identifier ;) (declaration "undefined8 uStack_470;" type_identifier identifier ;) (declaration "undefined8 local_468;" type_identifier identifier ;) (declaration "long lStack_460;" (sized_type_specifier "long" long) identifier ;) (declaration "char *local_458;" primitive_type (pointer_declarator "*local_458" * identifier) ;) (declaration "char local_44d [3];" primitive_type (array_declarator "local_44d [3]" identifier [ number_literal ]) ;) (declaration "char local_44a [2];" primitive_type (array_declarator "local_44a [2]" identifier [ number_literal ]) ;) (declaration "char local_448;" primitive_type identifier ;) (declaration "undefined1 local_447 [22];" type_identifier (array_declarator "local_447 [22]" identifier [ number_literal ]) ;) (declaration "char local_431 [1009];" primitive_type (array_declarator "local_431 [1009]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar29 = 0;" (assignment_expression "bVar29 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar25 = param_4->tm_hour;" (assignment_expression "uVar25 = param_4->tm_hour" identifier = (field_expression "param_4->tm_hour" identifier -> field_identifier)) ;) (expression_statement "__src = "";" (assignment_expression "__src = """ identifier = (string_literal """" " ")) ;) (if_statement "if (param_4->tm_zone != (char *)0x0) {\n    __src = param_4->tm_zone;\n  }" if (parenthesized_expression "(param_4->tm_zone != (char *)0x0)" ( (binary_expression "param_4->tm_zone != (char *)0x0" (field_expression "param_4->tm_zone" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __src = param_4->tm_zone;\n  }" { (expression_statement "__src = param_4->tm_zone;" (assignment_expression "__src = param_4->tm_zone" identifier = (field_expression "param_4->tm_zone" identifier -> field_identifier)) ;) })) (if_statement "if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }" if (parenthesized_expression "((int)uVar25 < 0xd)" ( (binary_expression "(int)uVar25 < 0xd" (cast_expression "(int)uVar25" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }" { (if_statement "if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }" if (parenthesized_expression "(uVar25 == 0)" ( (binary_expression "uVar25 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar25 = 0xc;\n    }" { (expression_statement "uVar25 = 0xc;" (assignment_expression "uVar25 = 0xc" identifier = number_literal) ;) })) }) (else_clause "else {\n    uVar25 = uVar25 - 0xc;\n  }" else (compound_statement "{\n    uVar25 = uVar25 - 0xc;\n  }" { (expression_statement "uVar25 = uVar25 - 0xc;" (assignment_expression "uVar25 = uVar25 - 0xc" identifier = (binary_expression "uVar25 - 0xc" identifier - number_literal)) ;) }))) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if (cVar5 == '\0') {\n    lVar24 = 0;\n  }\n  else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }" if (parenthesized_expression "(cVar5 == '\0')" ( (binary_expression "cVar5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    lVar24 = 0;\n  }" { (expression_statement "lVar24 = 0;" (assignment_expression "lVar24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }" else (compound_statement "{\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }" { (expression_statement "lVar24 = 0;" (assignment_expression "lVar24 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');" do (compound_statement "{\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    }" { (if_statement "if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }" if (parenthesized_expression "(cVar5 != '%')" ( (binary_expression "cVar5 != '%'" identifier != (char_literal "'%'" ' character ')) )) (compound_statement "{\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }" { (if_statement "if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) < 2)" ( (binary_expression "(ulong)(param_2 - lVar24) < 2" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) < number_literal) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }" { (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + 1;" (assignment_expression "lVar24 = lVar24 + 1" identifier = (binary_expression "lVar24 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" identifier = false) ;) (expression_statement "cVar7 = param_5;" (assignment_expression "cVar7 = param_5" identifier = identifier) ;) (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (do_statement "do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');" do (compound_statement "{\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      }" { (while_statement "while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }" { (while_statement "while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }" { (do_statement "do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');" do (compound_statement "{\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            }" { (expression_statement "cVar4 = cVar5;" (assignment_expression "cVar4 = cVar5" identifier = identifier) ;) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) }) while (parenthesized_expression "(cVar5 == '0')" ( (binary_expression "cVar5 == '0'" identifier == (char_literal "'0'" ' character ')) )) ;) (if_statement "if ('0' < cVar5) break;" if (parenthesized_expression "('0' < cVar5)" ( (binary_expression "'0' < cVar5" (char_literal "'0'" ' character ') < identifier) )) (break_statement "break;" break ;)) (if_statement "if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;" if (parenthesized_expression "(cVar5 == '#')" ( (binary_expression "cVar5 == '#'" identifier == (char_literal "'#'" ' character ')) )) (compound_statement "{\n              bVar28 = true;\n              cVar5 = cVar4;\n            }" { (expression_statement "bVar28 = true;" (assignment_expression "bVar28 = true" identifier = true) ;) (expression_statement "cVar5 = cVar4;" (assignment_expression "cVar5 = cVar4" identifier = identifier) ;) }) (else_clause "else if (cVar5 != '-') goto LAB_00135a68;" else (if_statement "if (cVar5 != '-') goto LAB_00135a68;" if (parenthesized_expression "(cVar5 != '-')" ( (binary_expression "cVar5 != '-'" identifier != (char_literal "'-'" ' character ')) )) (goto_statement "goto LAB_00135a68;" goto statement_identifier ;)))) })) (if_statement "if (cVar5 != '^') break;" if (parenthesized_expression "(cVar5 != '^')" ( (binary_expression "cVar5 != '^'" identifier != (char_literal "'^'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "cVar7 = '\x01';" (assignment_expression "cVar7 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "cVar5 = cVar4;" (assignment_expression "cVar5 = cVar4" identifier = identifier) ;) })) }) while (parenthesized_expression "(cVar5 == '_')" ( (binary_expression "cVar5 == '_'" identifier == (char_literal "'_'" ' character ')) )) ;) (labeled_statement "LAB_00135a68:\n      iVar26 = -1;" statement_identifier : (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" identifier = number_literal) ;)) (if_statement "if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }" if (parenthesized_expression "((int)cVar5 - 0x30U < 10)" ( (binary_expression "(int)cVar5 - 0x30U < 10" (binary_expression "(int)cVar5 - 0x30U" (cast_expression "(int)cVar5" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) < number_literal) )) (compound_statement "{\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }" { (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" identifier = number_literal) ;) (do_statement "do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);" do (compound_statement "{\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        }" { (if_statement "if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }" if (parenthesized_expression "(iVar26 < 0xccccccd)" ( (binary_expression "iVar26 < 0xccccccd" identifier < number_literal) )) (compound_statement "{\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }" { (if_statement "if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }" if (parenthesized_expression "((iVar26 == 0xccccccc) && ('7' < *param_3))" ( (binary_expression "(iVar26 == 0xccccccc) && ('7' < *param_3)" (parenthesized_expression "(iVar26 == 0xccccccc)" ( (binary_expression "iVar26 == 0xccccccc" identifier == number_literal) )) && (parenthesized_expression "('7' < *param_3)" ( (binary_expression "'7' < *param_3" (char_literal "'7'" ' character ') < (pointer_expression "*param_3" * identifier)) ))) )) (compound_statement "{\n              iVar26 = 0x7fffffff;\n            }" { (expression_statement "iVar26 = 0x7fffffff;" (assignment_expression "iVar26 = 0x7fffffff" identifier = number_literal) ;) }) (else_clause "else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }" else (compound_statement "{\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }" { (expression_statement "iVar26 = *param_3 + -0x30 + iVar26 * 10;" (assignment_expression "iVar26 = *param_3 + -0x30 + iVar26 * 10" identifier = (binary_expression "*param_3 + -0x30 + iVar26 * 10" (binary_expression "*param_3 + -0x30" (pointer_expression "*param_3" * identifier) + number_literal) + (binary_expression "iVar26 * 10" identifier * number_literal))) ;) }))) }) (else_clause "else {\n            iVar26 = 0x7fffffff;\n          }" else (compound_statement "{\n            iVar26 = 0x7fffffff;\n          }" { (expression_statement "iVar26 = 0x7fffffff;" (assignment_expression "iVar26 = 0x7fffffff" identifier = number_literal) ;) }))) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)*param_3 - 0x30U < 10)" ( (binary_expression "(int)*param_3 - 0x30U < 10" (binary_expression "(int)*param_3 - 0x30U" (cast_expression "(int)*param_3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_3" * identifier)) - number_literal) < number_literal) )) ;) })) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }" if (parenthesized_expression "((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O'))" ( (binary_expression "(cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')" (parenthesized_expression "(cVar5 == 'E')" ( (binary_expression "cVar5 == 'E'" identifier == (char_literal "'E'" ' character ')) )) || (parenthesized_expression "(cVar16 = '\0', cVar5 == 'O')" ( (comma_expression "cVar16 = '\0', cVar5 == 'O'" (assignment_expression "cVar16 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) , (binary_expression "cVar5 == 'O'" identifier == (char_literal "'O'" ' character '))) ))) )) (compound_statement "{\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }" { (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "cVar16 = cVar5;" (assignment_expression "cVar16 = cVar5" identifier = identifier) ;) })) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar14 = (int)local_431;" (assignment_expression "iVar14 = (int)local_431" identifier = (cast_expression "(int)local_431" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_4b8 = param_3;" (assignment_expression "local_4b8 = param_3" identifier = identifier) ;) (expression_statement "uVar12 = uVar25;" (assignment_expression "uVar12 = uVar25" identifier = identifier) ;) (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" identifier = identifier) ;) (switch_statement "switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }" switch (parenthesized_expression "(cVar5)" ( identifier )) (compound_statement "{\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }" { (case_statement "case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;" case (char_literal "'\0'" ' escape_sequence ') : (expression_statement "local_4b8 = param_3 + -1;" (assignment_expression "local_4b8 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (case_statement "default:\n        goto LAB_00136cd6;" default : (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (case_statement "case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;" case (char_literal "'%'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n            iVar14 = iVar26;\n          }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n            uVar15 = uVar11;\n          }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }" { (if_statement "if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" if (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) )) (compound_statement "{\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" else (compound_statement "{\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*param_1 = *param_3;" (assignment_expression "*param_1 = *param_3" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (expression_statement "iVar14 = 1;" (assignment_expression "iVar14 = 1" identifier = number_literal) ;) (expression_statement "pcVar17 = param_3;" (assignment_expression "pcVar17 = param_3" identifier = identifier) ;) (goto_statement "goto LAB_00136d21;" goto statement_identifier ;)) (case_statement "case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;" case (char_literal "':'" ' character ') : (expression_statement "pcVar17 = param_3 + 1;" (assignment_expression "pcVar17 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "cVar6 = param_3[1];" (assignment_expression "cVar6 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }" if (parenthesized_expression "(cVar6 == ':')" ( (binary_expression "cVar6 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }" { (expression_statement "lVar23 = 1;" (assignment_expression "lVar23 = 1" identifier = number_literal) ;) (do_statement "do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');" do (compound_statement "{\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          }" { (expression_statement "lVar23 = lVar23 + 1;" (assignment_expression "lVar23 = lVar23 + 1" identifier = (binary_expression "lVar23 + 1" identifier + number_literal)) ;) (expression_statement "pcVar17 = param_3 + lVar23;" (assignment_expression "pcVar17 = param_3 + lVar23" identifier = (binary_expression "param_3 + lVar23" identifier + identifier)) ;) (expression_statement "cVar6 = param_3[lVar23];" (assignment_expression "cVar6 = param_3[lVar23]" identifier = (subscript_expression "param_3[lVar23]" identifier [ identifier ])) ;) }) while (parenthesized_expression "(cVar6 == ':')" ( (binary_expression "cVar6 == ':'" identifier == (char_literal "':'" ' character ')) )) ;) }) (else_clause "else {\n          lVar23 = 1;\n        }" else (compound_statement "{\n          lVar23 = 1;\n        }" { (expression_statement "lVar23 = 1;" (assignment_expression "lVar23 = 1" identifier = number_literal) ;) }))) (if_statement "if (cVar6 == 'z') goto LAB_00136bae;" if (parenthesized_expression "(cVar6 == 'z')" ( (binary_expression "cVar6 == 'z'" identifier == (char_literal "'z'" ' character ')) )) (goto_statement "goto LAB_00136bae;" goto statement_identifier ;)) (break_statement "break;" break ;)) (case_statement "case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;" case (char_literal "'A'" ' character ') : (if_statement "if (cVar16 != '\0') break;" if (parenthesized_expression "(cVar16 != '\0')" ( (binary_expression "cVar16 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (bVar28 != false) {\n          cVar7 = bVar28;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          cVar7 = bVar28;\n        }" { (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" identifier = identifier) ;) })) (expression_statement "cVar5 = 'A';" (assignment_expression "cVar5 = 'A'" identifier = (char_literal "'A'" ' character ')) ;) (labeled_statement "LAB_00135bf1:\n        local_4b8._0_1_ = false;" statement_identifier : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;)) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (expression_statement "pcVar17 = local_44d + 2;" (assignment_expression "pcVar17 = local_44d + 2" identifier = (binary_expression "local_44d + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_00135f1c;" goto statement_identifier ;)) (case_statement "case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'B'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (if_statement "if (bVar28 != false) {\n            cVar7 = bVar28;\n          }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n            cVar7 = bVar28;\n          }" { (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" identifier = identifier) ;) })) (expression_statement "cVar5 = 'B';" (assignment_expression "cVar5 = 'B'" identifier = (char_literal "'B'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;" case (char_literal "'C'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" { (expression_statement "iVar8 = param_4->tm_year;" (assignment_expression "iVar8 = param_4->tm_year" identifier = (field_expression "param_4->tm_year" identifier -> field_identifier)) ;) (expression_statement "iVar22 = iVar8 / 100 + 0x13;" (assignment_expression "iVar22 = iVar8 / 100 + 0x13" identifier = (binary_expression "iVar8 / 100 + 0x13" (binary_expression "iVar8 / 100" identifier / number_literal) + number_literal)) ;) (expression_statement "bVar28 = iVar8 < -0x76c;" (assignment_expression "bVar28 = iVar8 < -0x76c" identifier = (binary_expression "iVar8 < -0x76c" identifier < number_literal)) ;) (expression_statement "uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));" (assignment_expression "uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22))" identifier = (binary_expression "iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22))" identifier - (parenthesized_expression "((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22))" ( (binary_expression "(uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22)" (binary_expression "(uint)(iVar8 % 100) >> 0x1f" (call_expression "(uint)(iVar8 % 100)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar8 % 100)" ( (binary_expression "iVar8 % 100" identifier % number_literal) ))) >> number_literal) & (call_expression "(uint)(0 < iVar22)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar22)" ( (binary_expression "0 < iVar22" number_literal < identifier) )))) )))) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (expression_statement "cVar5 = 'C';" (assignment_expression "cVar5 = 'C'" identifier = (char_literal "'C'" ' character ')) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;)) (case_statement "case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;" case (char_literal "'D'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }" { (expression_statement "local_4b8 = "%m/%d/%y";" (assignment_expression "local_4b8 = "%m/%d/%y"" identifier = (string_literal ""%m/%d/%y"" " string_content ")) ;) (goto_statement "goto LAB_00135ca3;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;" case (char_literal "'F'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }" { (expression_statement "local_4b8 = "%Y-%m-%d";" (assignment_expression "local_4b8 = "%Y-%m-%d"" identifier = (string_literal ""%Y-%m-%d"" " string_content ")) ;) (goto_statement "goto LAB_00135ca3;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'G':" case (char_literal "'G'" ' character ') :) (case_statement "case 'V':" case (char_literal "'V'" ' character ') :) (case_statement "case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;" case (char_literal "'g'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" { (expression_statement "iVar8 = param_4->tm_year;" (assignment_expression "iVar8 = param_4->tm_year" identifier = (field_expression "param_4->tm_year" identifier -> field_identifier)) ;) (expression_statement "uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);" (assignment_expression "uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U)" identifier = (binary_expression "iVar8 + -100 + (iVar8 >> 0x1f & 400U)" (binary_expression "iVar8 + -100" identifier + number_literal) + (parenthesized_expression "(iVar8 >> 0x1f & 400U)" ( (binary_expression "iVar8 >> 0x1f & 400U" (binary_expression "iVar8 >> 0x1f" identifier >> number_literal) & number_literal) )))) ;) (expression_statement "iVar21 = param_4->tm_wday;" (assignment_expression "iVar21 = param_4->tm_wday" identifier = (field_expression "param_4->tm_wday" identifier -> field_identifier)) ;) (expression_statement "iVar19 = param_4->tm_yday;" (assignment_expression "iVar19 = param_4->tm_yday" identifier = (field_expression "param_4->tm_yday" identifier -> field_identifier)) ;) (expression_statement "iVar22 = (iVar19 - iVar21) + 0x17e;" (assignment_expression "iVar22 = (iVar19 - iVar21) + 0x17e" identifier = (binary_expression "(iVar19 - iVar21) + 0x17e" (parenthesized_expression "(iVar19 - iVar21)" ( (binary_expression "iVar19 - iVar21" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;" (assignment_expression "iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7" identifier = (binary_expression "(iVar19 - iVar22) + 3 + (iVar22 / 7) * 7" (binary_expression "(iVar19 - iVar22) + 3" (parenthesized_expression "(iVar19 - iVar22)" ( (binary_expression "iVar19 - iVar22" identifier - identifier) )) + number_literal) + (binary_expression "(iVar22 / 7) * 7" (parenthesized_expression "(iVar22 / 7)" ( (binary_expression "iVar22 / 7" identifier / number_literal) )) * number_literal))) ;) (if_statement "if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" if (parenthesized_expression "(iVar22 < 0)" ( (binary_expression "iVar22 < 0" identifier < number_literal) )) (compound_statement "{\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }" { (expression_statement "uVar12 = uVar12 - 1;" (assignment_expression "uVar12 = uVar12 - 1" identifier = (binary_expression "uVar12 - 1" identifier - number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (if_statement "if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }" if (parenthesized_expression "(((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100))" ( (binary_expression "((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" (parenthesized_expression "((uVar12 & 3) == 0)" ( (binary_expression "(uVar12 & 3) == 0" (parenthesized_expression "(uVar12 & 3)" ( (binary_expression "uVar12 & 3" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" ( (comma_expression "uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100" (assignment_expression "uVar18 = 1" identifier = number_literal) , (binary_expression "uVar12 == ((int)uVar12 / 100) * 100" identifier == (binary_expression "((int)uVar12 / 100) * 100" (parenthesized_expression "((int)uVar12 / 100)" ( (binary_expression "(int)uVar12 / 100" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) )) * number_literal))) ))) )) (compound_statement "{\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }" { (expression_statement "uVar18 = (uint)((int)uVar12 % 400 == 0);" (assignment_expression "uVar18 = (uint)((int)uVar12 % 400 == 0)" identifier = (call_expression "(uint)((int)uVar12 % 400 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)uVar12 % 400 == 0)" ( (binary_expression "(int)uVar12 % 400 == 0" (binary_expression "(int)uVar12 % 400" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) % number_literal) == number_literal) )))) ;) })) (expression_statement "iVar22 = iVar19 + 0x16d + uVar18;" (assignment_expression "iVar22 = iVar19 + 0x16d + uVar18" identifier = (binary_expression "iVar19 + 0x16d + uVar18" (binary_expression "iVar19 + 0x16d" identifier + number_literal) + identifier)) ;) (expression_statement "iVar21 = (iVar22 - iVar21) + 0x17e;" (assignment_expression "iVar21 = (iVar22 - iVar21) + 0x17e" identifier = (binary_expression "(iVar22 - iVar21) + 0x17e" (parenthesized_expression "(iVar22 - iVar21)" ( (binary_expression "iVar22 - iVar21" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;" (assignment_expression "iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7" identifier = (binary_expression "(iVar22 - iVar21) + 3 + (iVar21 / 7) * 7" (binary_expression "(iVar22 - iVar21) + 3" (parenthesized_expression "(iVar22 - iVar21)" ( (binary_expression "iVar22 - iVar21" identifier - identifier) )) + number_literal) + (binary_expression "(iVar21 / 7) * 7" (parenthesized_expression "(iVar21 / 7)" ( (binary_expression "iVar21 / 7" identifier / number_literal) )) * number_literal))) ;) (expression_statement "iVar21 = -1;" (assignment_expression "iVar21 = -1" identifier = number_literal) ;) }) (else_clause "else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" else (compound_statement "{\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" { (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (if_statement "if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }" if (parenthesized_expression "(((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100))" ( (binary_expression "((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" (parenthesized_expression "((uVar12 & 3) == 0)" ( (binary_expression "(uVar12 & 3) == 0" (parenthesized_expression "(uVar12 & 3)" ( (binary_expression "uVar12 & 3" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" ( (comma_expression "uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100" (assignment_expression "uVar18 = 1" identifier = number_literal) , (binary_expression "uVar12 == ((int)uVar12 / 100) * 100" identifier == (binary_expression "((int)uVar12 / 100) * 100" (parenthesized_expression "((int)uVar12 / 100)" ( (binary_expression "(int)uVar12 / 100" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) )) * number_literal))) ))) )) (compound_statement "{\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }" { (expression_statement "uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);" (assignment_expression "uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400)" identifier = (call_expression "(uint)(uVar12 == ((int)uVar12 / 400) * 400)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar12 == ((int)uVar12 / 400) * 400)" ( (binary_expression "uVar12 == ((int)uVar12 / 400) * 400" identifier == (binary_expression "((int)uVar12 / 400) * 400" (parenthesized_expression "((int)uVar12 / 400)" ( (binary_expression "(int)uVar12 / 400" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) )) * number_literal)) )))) ;) })) (expression_statement "iVar19 = iVar19 - (uVar18 + 0x16d);" (assignment_expression "iVar19 = iVar19 - (uVar18 + 0x16d)" identifier = (binary_expression "iVar19 - (uVar18 + 0x16d)" identifier - (parenthesized_expression "(uVar18 + 0x16d)" ( (binary_expression "uVar18 + 0x16d" identifier + number_literal) )))) ;) (expression_statement "iVar21 = (iVar19 - iVar21) + 0x17e;" (assignment_expression "iVar21 = (iVar19 - iVar21) + 0x17e" identifier = (binary_expression "(iVar19 - iVar21) + 0x17e" (parenthesized_expression "(iVar19 - iVar21)" ( (binary_expression "iVar19 - iVar21" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;" (assignment_expression "iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7" identifier = (binary_expression "(iVar19 - iVar21) + 3 + (iVar21 / 7) * 7" (binary_expression "(iVar19 - iVar21) + 3" (parenthesized_expression "(iVar19 - iVar21)" ( (binary_expression "iVar19 - iVar21" identifier - identifier) )) + number_literal) + (binary_expression "(iVar21 / 7) * 7" (parenthesized_expression "(iVar21 / 7)" ( (binary_expression "iVar21 / 7" identifier / number_literal) )) * number_literal))) ;) (if_statement "if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }" if (parenthesized_expression "(-1 < iVar21)" ( (binary_expression "-1 < iVar21" number_literal < identifier) )) (compound_statement "{\n              iVar22 = iVar21;\n            }" { (expression_statement "iVar22 = iVar21;" (assignment_expression "iVar22 = iVar21" identifier = identifier) ;) })) (expression_statement "iVar21 = (iVar21 >> 0x1f) + 1;" (assignment_expression "iVar21 = (iVar21 >> 0x1f) + 1" identifier = (binary_expression "(iVar21 >> 0x1f) + 1" (parenthesized_expression "(iVar21 >> 0x1f)" ( (binary_expression "iVar21 >> 0x1f" identifier >> number_literal) )) + number_literal)) ;) }))) (if_statement "if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }" if (parenthesized_expression "(cVar5 == 'G')" ( (binary_expression "cVar5 == 'G'" identifier == (char_literal "'G'" ' character ')) )) (compound_statement "{\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }" { (expression_statement "bVar28 = iVar8 < -0x76c - iVar21;" (assignment_expression "bVar28 = iVar8 < -0x76c - iVar21" identifier = (binary_expression "iVar8 < -0x76c - iVar21" identifier < (binary_expression "-0x76c - iVar21" number_literal - identifier))) ;) (expression_statement "uVar12 = iVar8 + 0x76c + iVar21;" (assignment_expression "uVar12 = iVar8 + 0x76c + iVar21" identifier = (binary_expression "iVar8 + 0x76c + iVar21" (binary_expression "iVar8 + 0x76c" identifier + number_literal) + identifier)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 4;" (assignment_expression "iVar22 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (if_statement "if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" if (parenthesized_expression "(cVar5 == 'g')" ( (binary_expression "cVar5 == 'g'" identifier == (char_literal "'g'" ' character ')) )) (compound_statement "{\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }" { (expression_statement "uVar12 = (iVar8 % 100 + iVar21) % 100;" (assignment_expression "uVar12 = (iVar8 % 100 + iVar21) % 100" identifier = (binary_expression "(iVar8 % 100 + iVar21) % 100" (parenthesized_expression "(iVar8 % 100 + iVar21)" ( (binary_expression "iVar8 % 100 + iVar21" (binary_expression "iVar8 % 100" identifier % number_literal) + identifier) )) % number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (if_statement "if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }" if (parenthesized_expression "((int)uVar12 < 0)" ( (binary_expression "(int)uVar12 < 0" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }" { (if_statement "if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }" if (parenthesized_expression "(iVar8 < -0x76c - iVar21)" ( (binary_expression "iVar8 < -0x76c - iVar21" identifier < (binary_expression "-0x76c - iVar21" number_literal - identifier)) )) (compound_statement "{\n                uVar12 = -uVar12;\n              }" { (expression_statement "uVar12 = -uVar12;" (assignment_expression "uVar12 = -uVar12" identifier = (unary_expression "-uVar12" - identifier)) ;) }) (else_clause "else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }" else (compound_statement "{\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }" { (expression_statement "uVar12 = uVar12 + 100;" (assignment_expression "uVar12 = uVar12 + 100" identifier = (binary_expression "uVar12 + 100" identifier + number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }))) })) }) (else_clause "else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" else (compound_statement "{\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" { (expression_statement "uVar12 = iVar22 / 7 + 1;" (assignment_expression "uVar12 = iVar22 / 7 + 1" identifier = (binary_expression "iVar22 / 7 + 1" (binary_expression "iVar22 / 7" identifier / number_literal) + number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }))) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (case_statement "case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'H'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_hour;" (assignment_expression "uVar12 = param_4->tm_hour" identifier = (field_expression "param_4->tm_hour" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'I'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'M'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_min;" (assignment_expression "uVar12 = param_4->tm_min" identifier = (field_expression "param_4->tm_min" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'N'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_8;" (assignment_expression "uVar12 = param_8" identifier = identifier) ;) (if_statement "if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }" if (parenthesized_expression "(iVar26 == -1)" ( (binary_expression "iVar26 == -1" identifier == number_literal) )) (compound_statement "{\n            iVar26 = 9;\n            iVar22 = 9;\n          }" { (expression_statement "iVar26 = 9;" (assignment_expression "iVar26 = 9" identifier = number_literal) ;) (expression_statement "iVar22 = 9;" (assignment_expression "iVar22 = 9" identifier = number_literal) ;) }) (else_clause "else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }" else (compound_statement "{\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }" { (expression_statement "iVar8 = iVar26;" (assignment_expression "iVar8 = iVar26" identifier = identifier) ;) (if_statement "if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }" if (parenthesized_expression "(iVar26 < 9)" ( (binary_expression "iVar26 < 9" identifier < number_literal) )) (compound_statement "{\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }" { (do_statement "do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);" do (compound_statement "{\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              }" { (expression_statement "uVar12 = (int)uVar12 / 10;" (assignment_expression "uVar12 = (int)uVar12 / 10" identifier = (binary_expression "(int)uVar12 / 10" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal)) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 != 9)" ( (binary_expression "iVar8 != 9" identifier != number_literal) )) ;) })) }))) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;" case (char_literal "'P'" ' character ') : (expression_statement "local_4b8._0_1_ = true;" (assignment_expression "local_4b8._0_1_ = true" (field_expression "local_4b8._0_1_" identifier . field_identifier) = true) ;) (goto_statement "goto LAB_00136492;" goto statement_identifier ;)) (case_statement "case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;" case (char_literal "'R'" ' character ') : (expression_statement "local_4b8 = "%H:%M";" (assignment_expression "local_4b8 = "%H:%M"" identifier = (string_literal ""%H:%M"" " string_content ")) ;) (goto_statement "goto LAB_00135ca3;" goto statement_identifier ;)) (case_statement "case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'S'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_sec;" (assignment_expression "uVar12 = param_4->tm_sec" identifier = (field_expression "param_4->tm_sec" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;" case (char_literal "'T'" ' character ') : (expression_statement "local_4b8 = "%H:%M:%S";" (assignment_expression "local_4b8 = "%H:%M:%S"" identifier = (string_literal ""%H:%M:%S"" " string_content ")) ;) (labeled_statement "LAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);" statement_identifier : (expression_statement "uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);" (assignment_expression "uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8)" identifier = (call_expression "FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8)" identifier (argument_list "(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8)" ( number_literal , number_literal , identifier , identifier , identifier , identifier , identifier , identifier )))) ;)) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" identifier = identifier) ;) (if_statement "if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }" if (parenthesized_expression "(uVar10 <= uVar15)" ( (binary_expression "uVar10 <= uVar15" identifier <= identifier) )) (compound_statement "{\n          uVar11 = uVar15;\n        }" { (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" identifier = identifier) ;) })) (if_statement "if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "(uVar11 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar11 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" { (if_statement "if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }" { (if_statement "if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" if (parenthesized_expression "(uVar15 < uVar10)" ( (binary_expression "uVar15 < uVar10" identifier < identifier) )) (compound_statement "{\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" else (compound_statement "{\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);" (call_expression "FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8)" identifier (argument_list "(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8)" ( identifier , (binary_expression "param_2 - lVar24" identifier - identifier) , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" identifier = (binary_expression "lVar24 + uVar11" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (case_statement "case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'U'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;" (assignment_expression "uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7" identifier = (binary_expression "((param_4->tm_yday - param_4->tm_wday) + 7) / 7" (parenthesized_expression "((param_4->tm_yday - param_4->tm_wday) + 7)" ( (binary_expression "(param_4->tm_yday - param_4->tm_wday) + 7" (parenthesized_expression "(param_4->tm_yday - param_4->tm_wday)" ( (binary_expression "param_4->tm_yday - param_4->tm_wday" (field_expression "param_4->tm_yday" identifier -> field_identifier) - (field_expression "param_4->tm_wday" identifier -> field_identifier)) )) + number_literal) )) / number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'W'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "iVar22 = param_4->tm_wday + 6;" (assignment_expression "iVar22 = param_4->tm_wday + 6" identifier = (binary_expression "param_4->tm_wday + 6" (field_expression "param_4->tm_wday" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;" (assignment_expression "uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7" identifier = (binary_expression "(((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7" (parenthesized_expression "(((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday)" ( (binary_expression "((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday" (binary_expression "((iVar22 / 7) * 7 - iVar22) + 7" (parenthesized_expression "((iVar22 / 7) * 7 - iVar22)" ( (binary_expression "(iVar22 / 7) * 7 - iVar22" (binary_expression "(iVar22 / 7) * 7" (parenthesized_expression "(iVar22 / 7)" ( (binary_expression "iVar22 / 7" identifier / number_literal) )) * number_literal) - identifier) )) + number_literal) + (field_expression "param_4->tm_yday" identifier -> field_identifier)) )) / number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'X'" ' character ') : (if_statement "if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'O')" ( (binary_expression "cVar16 != 'O'" identifier != (char_literal "'O'" ' character ')) )) (compound_statement "{\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "cVar5 = 'X';" (assignment_expression "cVar5 = 'X'" identifier = (char_literal "'X'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;" case (char_literal "'Y'" ' character ') : (if_statement "if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" if (parenthesized_expression "(cVar16 == 'E')" ( (binary_expression "cVar16 == 'E'" identifier == (char_literal "'E'" ' character ')) )) (compound_statement "{\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" { (expression_statement "cVar5 = 'Y';" (assignment_expression "cVar5 = 'Y'" identifier = (char_literal "'Y'" ' character ')) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;) })) (if_statement "if (cVar16 == 'O') break;" if (parenthesized_expression "(cVar16 == 'O')" ( (binary_expression "cVar16 == 'O'" identifier == (char_literal "'O'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "bVar28 = param_4->tm_year < -0x76c;" (assignment_expression "bVar28 = param_4->tm_year < -0x76c" identifier = (binary_expression "param_4->tm_year < -0x76c" (field_expression "param_4->tm_year" identifier -> field_identifier) < number_literal)) ;) (expression_statement "uVar12 = param_4->tm_year + 0x76c;" (assignment_expression "uVar12 = param_4->tm_year + 0x76c" identifier = (binary_expression "param_4->tm_year + 0x76c" (field_expression "param_4->tm_year" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 4;" (assignment_expression "iVar22 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_00136a29;" goto statement_identifier ;)) (case_statement "case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;" case (char_literal "'Z'" ' character ') : (if_statement "if (bVar28) {\n          cVar7 = '\0';\n        }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n          cVar7 = '\0';\n        }" { (expression_statement "cVar7 = '\0';" (assignment_expression "cVar7 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "uVar15 = 0xffffffffffffffff;" (assignment_expression "uVar15 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar17 = __src;" (assignment_expression "pcVar17 = __src" identifier = identifier) ;) (do_statement "do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');" do (compound_statement "{\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        }" { (if_statement "if (uVar15 == 0) break;" if (parenthesized_expression "(uVar15 == 0)" ( (binary_expression "uVar15 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar15 = uVar15 - 1;" (assignment_expression "uVar15 = uVar15 - 1" identifier = (binary_expression "uVar15 - 1" identifier - number_literal)) ;) (expression_statement "cVar5 = *pcVar17;" (assignment_expression "cVar5 = *pcVar17" identifier = (pointer_expression "*pcVar17" * identifier)) ;) (expression_statement "pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;" (assignment_expression "pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1" identifier = (binary_expression "pcVar17 + (ulong)bVar29 * -2 + 1" (binary_expression "pcVar17 + (ulong)bVar29 * -2" identifier + (binary_expression "(ulong)bVar29 * -2" (cast_expression "(ulong)bVar29" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar15 = ~uVar15 - 1;" (assignment_expression "uVar15 = ~uVar15 - 1" identifier = (binary_expression "~uVar15 - 1" (unary_expression "~uVar15" ~ identifier) - number_literal)) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" identifier = identifier) ;) (if_statement "if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }" if (parenthesized_expression "(uVar10 <= uVar15)" ( (binary_expression "uVar10 <= uVar15" identifier <= identifier) )) (compound_statement "{\n          uVar11 = uVar15;\n        }" { (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" identifier = identifier) ;) })) (if_statement "if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "(uVar11 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar11 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" { (if_statement "if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }" { (if_statement "if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" if (parenthesized_expression "(uVar15 < uVar10)" ( (binary_expression "uVar15 < uVar10" identifier < identifier) )) (compound_statement "{\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" else (compound_statement "{\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n              FUN_001358c7(param_1,__src,uVar15);\n            }" { (expression_statement "FUN_001358c7(param_1,__src,uVar15);" (call_expression "FUN_001358c7(param_1,__src,uVar15)" identifier (argument_list "(param_1,__src,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" else (if_statement "if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" if (parenthesized_expression "(cVar7 == '\0')" ( (binary_expression "cVar7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              memcpy(param_1,__src,uVar15);\n            }" { (expression_statement "memcpy(param_1,__src,uVar15);" (call_expression "memcpy(param_1,__src,uVar15)" identifier (argument_list "(param_1,__src,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" else (compound_statement "{\n              FUN_00135900(param_1,__src,uVar15);\n            }" { (expression_statement "FUN_00135900(param_1,__src,uVar15);" (call_expression "FUN_00135900(param_1,__src,uVar15)" identifier (argument_list "(param_1,__src,uVar15)" ( identifier , identifier , identifier ))) ;) }))))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" identifier = (binary_expression "lVar24 + uVar11" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (case_statement "case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;" case (char_literal "'a'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }" { (if_statement "if (bVar28 != false) {\n            cVar7 = bVar28;\n          }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n            cVar7 = bVar28;\n          }" { (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" identifier = identifier) ;) })) (expression_statement "cVar5 = 'a';" (assignment_expression "cVar5 = 'a'" identifier = (char_literal "'a'" ' character ')) ;) (goto_statement "goto LAB_00135bf1;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'b':" case (char_literal "'b'" ' character ') :) (case_statement "case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;" case (char_literal "'h'" ' character ') : (if_statement "if (bVar28 != false) {\n          cVar7 = bVar28;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          cVar7 = bVar28;\n        }" { (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" identifier = identifier) ;) })) (if_statement "if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (labeled_statement "LAB_00136cd6:\n        if (*local_4b8 != '%') break;" statement_identifier : (if_statement "if (*local_4b8 != '%') break;" if (parenthesized_expression "(*local_4b8 != '%')" ( (binary_expression "*local_4b8 != '%'" (pointer_expression "*local_4b8" * identifier) != (char_literal "'%'" ' character ')) )) (break_statement "break;" break ;))) (expression_statement "iVar14 = 1;" (assignment_expression "iVar14 = 1" identifier = number_literal) ;) (expression_statement "param_3 = local_4b8;" (assignment_expression "param_3 = local_4b8" identifier = identifier) ;) (expression_statement "pcVar17 = local_4b8;" (assignment_expression "pcVar17 = local_4b8" identifier = identifier) ;) (goto_statement "goto LAB_00136d21;" goto statement_identifier ;)) (case_statement "case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'c'" ' character ') : (if_statement "if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'O')" ( (binary_expression "cVar16 != 'O'" identifier != (char_literal "'O'" ' character ')) )) (compound_statement "{\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "cVar5 = 'c';" (assignment_expression "cVar5 = 'c'" identifier = (char_literal "'c'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'d'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_mday;" (assignment_expression "uVar12 = param_4->tm_mday" identifier = (field_expression "param_4->tm_mday" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'e'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_mday;" (assignment_expression "uVar12 = param_4->tm_mday" identifier = (field_expression "param_4->tm_mday" identifier -> field_identifier)) ;) (labeled_statement "LAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }" statement_identifier : (if_statement "if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }" if (parenthesized_expression "((cVar4 == '0') || (cVar4 == '-'))" ( (binary_expression "(cVar4 == '0') || (cVar4 == '-')" (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) || (parenthesized_expression "(cVar4 == '-')" ( (binary_expression "cVar4 == '-'" identifier == (char_literal "'-'" ' character ')) ))) )) (compound_statement "{\n            iVar22 = 2;\n          }" { (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }) (else_clause "else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }" else (compound_statement "{\n            cVar4 = '_';\n            iVar22 = 2;\n          }" { (expression_statement "cVar4 = '_';" (assignment_expression "cVar4 = '_'" identifier = (char_literal "'_'" ' character ')) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) })))) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;" case (char_literal "'j'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }" { (expression_statement "bVar28 = param_4->tm_yday < -1;" (assignment_expression "bVar28 = param_4->tm_yday < -1" identifier = (binary_expression "param_4->tm_yday < -1" (field_expression "param_4->tm_yday" identifier -> field_identifier) < number_literal)) ;) (expression_statement "uVar12 = param_4->tm_yday + 1;" (assignment_expression "uVar12 = param_4->tm_yday + 1" identifier = (binary_expression "param_4->tm_yday + 1" (field_expression "param_4->tm_yday" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 3;" (assignment_expression "iVar22 = 3" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;" case (char_literal "'k'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }" { (expression_statement "uVar12 = param_4->tm_hour;" (assignment_expression "uVar12 = param_4->tm_hour" identifier = (field_expression "param_4->tm_hour" identifier -> field_identifier)) ;) (goto_statement "goto LAB_00135ea8;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;" case (char_literal "'l'" ' character ') : (if_statement "if (cVar16 != 'E') goto LAB_00135ea8;" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (goto_statement "goto LAB_00135ea8;" goto statement_identifier ;)) (break_statement "break;" break ;)) (case_statement "case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;" case (char_literal "'m'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" { (expression_statement "bVar28 = param_4->tm_mon < -1;" (assignment_expression "bVar28 = param_4->tm_mon < -1" identifier = (binary_expression "param_4->tm_mon < -1" (field_expression "param_4->tm_mon" identifier -> field_identifier) < number_literal)) ;) (expression_statement "uVar12 = param_4->tm_mon + 1;" (assignment_expression "uVar12 = param_4->tm_mon + 1" identifier = (binary_expression "param_4->tm_mon + 1" (field_expression "param_4->tm_mon" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;" case (char_literal "'n'" ' character ') : (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar15 = uVar11;\n        }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }" { (if_statement "if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" if (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) )) (compound_statement "{\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" else (compound_statement "{\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*param_1 = '\n';" (assignment_expression "*param_1 = '\n'" (pointer_expression "*param_1" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;)) (case_statement "case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;" case (char_literal "'p'" ' character ') : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (labeled_statement "LAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }" statement_identifier : (if_statement "if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          local_4b8._0_1_ = bVar28;\n        }" { (expression_statement "local_4b8._0_1_ = bVar28;" (assignment_expression "local_4b8._0_1_ = bVar28" (field_expression "local_4b8._0_1_" identifier . field_identifier) = identifier) ;) }))) (expression_statement "cVar5 = 'p';" (assignment_expression "cVar5 = 'p'" identifier = (char_literal "'p'" ' character ')) ;) (if_statement "if (bVar28 != false) {\n          cVar7 = '\0';\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          cVar7 = '\0';\n        }" { (expression_statement "cVar7 = '\0';" (assignment_expression "cVar7 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) })) (labeled_statement "LAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" statement_identifier : (if_statement "if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" if (parenthesized_expression "(cVar16 != '\0')" ( (binary_expression "cVar16 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" { (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135f06;" goto statement_identifier ;) }))) (expression_statement "pcVar17 = local_44d + 2;" (assignment_expression "pcVar17 = local_44d + 2" identifier = (binary_expression "local_44d + 2" identifier + number_literal)) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135f1c;" goto statement_identifier ;)) (case_statement "case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;" case (char_literal "'q'" ' character ') : (expression_statement "cVar5 = 'q';" (assignment_expression "cVar5 = 'q'" identifier = (char_literal "'q'" ' character ')) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (if_statement "if (cVar16 == 'O') goto LAB_00135ef1;" if (parenthesized_expression "(cVar16 == 'O')" ( (binary_expression "cVar16 == 'O'" identifier == (char_literal "'O'" ' character ')) )) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;)) (expression_statement "uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;" (assignment_expression "uVar12 = (param_4->tm_mon * 0xb >> 5) + 1" identifier = (binary_expression "(param_4->tm_mon * 0xb >> 5) + 1" (parenthesized_expression "(param_4->tm_mon * 0xb >> 5)" ( (binary_expression "param_4->tm_mon * 0xb >> 5" (binary_expression "param_4->tm_mon * 0xb" (field_expression "param_4->tm_mon" identifier -> field_identifier) * number_literal) >> number_literal) )) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" identifier = false) ;) (goto_statement "goto LAB_00136a33;" goto statement_identifier ;)) (case_statement "case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;" case (char_literal "'r'" ' character ') : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;)) (case_statement "case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;" case (char_literal "'s'" ' character ') : (expression_statement "local_488._0_4_ = param_4->tm_sec;" (assignment_expression "local_488._0_4_ = param_4->tm_sec" (field_expression "local_488._0_4_" identifier . field_identifier) = (field_expression "param_4->tm_sec" identifier -> field_identifier)) ;) (expression_statement "local_488._4_4_ = param_4->tm_min;" (assignment_expression "local_488._4_4_ = param_4->tm_min" (field_expression "local_488._4_4_" identifier . field_identifier) = (field_expression "param_4->tm_min" identifier -> field_identifier)) ;) (expression_statement "uStack_480._0_4_ = param_4->tm_hour;" (assignment_expression "uStack_480._0_4_ = param_4->tm_hour" (field_expression "uStack_480._0_4_" identifier . field_identifier) = (field_expression "param_4->tm_hour" identifier -> field_identifier)) ;) (expression_statement "uStack_480._4_4_ = param_4->tm_mday;" (assignment_expression "uStack_480._4_4_ = param_4->tm_mday" (field_expression "uStack_480._4_4_" identifier . field_identifier) = (field_expression "param_4->tm_mday" identifier -> field_identifier)) ;) (expression_statement "local_478._0_4_ = param_4->tm_mon;" (assignment_expression "local_478._0_4_ = param_4->tm_mon" (field_expression "local_478._0_4_" identifier . field_identifier) = (field_expression "param_4->tm_mon" identifier -> field_identifier)) ;) (expression_statement "local_478._4_4_ = param_4->tm_year;" (assignment_expression "local_478._4_4_ = param_4->tm_year" (field_expression "local_478._4_4_" identifier . field_identifier) = (field_expression "param_4->tm_year" identifier -> field_identifier)) ;) (expression_statement "uStack_470._0_4_ = param_4->tm_wday;" (assignment_expression "uStack_470._0_4_ = param_4->tm_wday" (field_expression "uStack_470._0_4_" identifier . field_identifier) = (field_expression "param_4->tm_wday" identifier -> field_identifier)) ;) (expression_statement "uStack_470._4_4_ = param_4->tm_yday;" (assignment_expression "uStack_470._4_4_ = param_4->tm_yday" (field_expression "uStack_470._4_4_" identifier . field_identifier) = (field_expression "param_4->tm_yday" identifier -> field_identifier)) ;) (expression_statement "local_468 = *(undefined8 *)&param_4->tm_isdst;" (assignment_expression "local_468 = *(undefined8 *)&param_4->tm_isdst" identifier = (pointer_expression "*(undefined8 *)&param_4->tm_isdst" * (cast_expression "(undefined8 *)&param_4->tm_isdst" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&param_4->tm_isdst" & (field_expression "param_4->tm_isdst" identifier -> field_identifier))))) ;) (expression_statement "lStack_460 = param_4->tm_gmtoff;" (assignment_expression "lStack_460 = param_4->tm_gmtoff" identifier = (field_expression "param_4->tm_gmtoff" identifier -> field_identifier)) ;) (expression_statement "local_458 = param_4->tm_zone;" (assignment_expression "local_458 = param_4->tm_zone" identifier = (field_expression "param_4->tm_zone" identifier -> field_identifier)) ;) (expression_statement "lVar9 = FUN_00134eb1(param_7,&local_488);" (assignment_expression "lVar9 = FUN_00134eb1(param_7,&local_488)" identifier = (call_expression "FUN_00134eb1(param_7,&local_488)" identifier (argument_list "(param_7,&local_488)" ( identifier , (pointer_expression "&local_488" & identifier) )))) ;) (expression_statement "pcVar17 = local_431;" (assignment_expression "pcVar17 = local_431" identifier = identifier) ;) (expression_statement "lVar23 = lVar9;" (assignment_expression "lVar23 = lVar9" identifier = identifier) ;) (do_statement "do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);" do (compound_statement "{\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        }" { (expression_statement "lVar3 = lVar23 / 10;" (assignment_expression "lVar3 = lVar23 / 10" identifier = (binary_expression "lVar23 / 10" identifier / number_literal)) ;) (expression_statement "cVar5 = (char)lVar23 + (char)lVar3 * -10;" (assignment_expression "cVar5 = (char)lVar23 + (char)lVar3 * -10" identifier = (binary_expression "(char)lVar23 + (char)lVar3 * -10" (cast_expression "(char)lVar23" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)lVar3 * -10" (cast_expression "(char)lVar3" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal))) ;) (if_statement "if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }" if (parenthesized_expression "(lVar9 < 0)" ( (binary_expression "lVar9 < 0" identifier < number_literal) )) (compound_statement "{\n            cVar5 = -cVar5;\n          }" { (expression_statement "cVar5 = -cVar5;" (assignment_expression "cVar5 = -cVar5" identifier = (unary_expression "-cVar5" - identifier)) ;) })) (expression_statement "pcVar17 = pcVar17 + -1;" (assignment_expression "pcVar17 = pcVar17 + -1" identifier = (binary_expression "pcVar17 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar17 = cVar5 + '0';" (assignment_expression "*pcVar17 = cVar5 + '0'" (pointer_expression "*pcVar17" * identifier) = (binary_expression "cVar5 + '0'" identifier + (char_literal "'0'" ' character '))) ;) (expression_statement "lVar23 = lVar3;" (assignment_expression "lVar23 = lVar3" identifier = identifier) ;) }) while (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (if_statement "if (0 < iVar26) {\n          iVar22 = iVar26;\n        }" if (parenthesized_expression "(0 < iVar26)" ( (binary_expression "0 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar22 = iVar26;\n        }" { (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" identifier = identifier) ;) })) (if_statement "if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }" if (parenthesized_expression "(lVar9 < 0)" ( (binary_expression "lVar9 < 0" identifier < number_literal) )) (compound_statement "{\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }" { (expression_statement "cVar5 = '-';" (assignment_expression "cVar5 = '-'" identifier = (char_literal "'-'" ' character ')) ;) (goto_statement "goto LAB_00136e58;" goto statement_identifier ;) })) (goto_statement "goto LAB_0013605d;" goto statement_identifier ;)) (case_statement "case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;" case (char_literal "'t'" ' character ') : (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar15 = uVar11;\n        }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }" { (if_statement "if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" if (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) )) (compound_statement "{\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" else (compound_statement "{\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*param_1 = '\t';" (assignment_expression "*param_1 = '\t'" (pointer_expression "*param_1" * identifier) = (char_literal "'\t'" ' escape_sequence ')) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;)) (case_statement "case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;" case (char_literal "'u'" ' character ') : (expression_statement "uVar12 = (param_4->tm_wday + 6) % 7 + 1;" (assignment_expression "uVar12 = (param_4->tm_wday + 6) % 7 + 1" identifier = (binary_expression "(param_4->tm_wday + 6) % 7 + 1" (binary_expression "(param_4->tm_wday + 6) % 7" (parenthesized_expression "(param_4->tm_wday + 6)" ( (binary_expression "param_4->tm_wday + 6" (field_expression "param_4->tm_wday" identifier -> field_identifier) + number_literal) )) % number_literal) + number_literal)) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;)) (case_statement "case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'w'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_wday;" (assignment_expression "uVar12 = param_4->tm_wday" identifier = (field_expression "param_4->tm_wday" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'x'" ' character ') : (if_statement "if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'O')" ( (binary_expression "cVar16 != 'O'" identifier != (char_literal "'O'" ' character ')) )) (compound_statement "{\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "cVar5 = 'x';" (assignment_expression "cVar5 = 'x'" identifier = (char_literal "'x'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;" case (char_literal "'y'" ' character ') : (if_statement "if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" if (parenthesized_expression "(cVar16 == 'E')" ( (binary_expression "cVar16 == 'E'" identifier == (char_literal "'E'" ' character ')) )) (compound_statement "{\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" { (expression_statement "cVar5 = 'y';" (assignment_expression "cVar5 = 'y'" identifier = (char_literal "'y'" ' character ')) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;) })) (expression_statement "uVar12 = param_4->tm_year % 100;" (assignment_expression "uVar12 = param_4->tm_year % 100" identifier = (binary_expression "param_4->tm_year % 100" (field_expression "param_4->tm_year" identifier -> field_identifier) % number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (if_statement "if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }" if (parenthesized_expression "((int)uVar12 < 0)" ( (binary_expression "(int)uVar12 < 0" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }" { (if_statement "if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }" if (parenthesized_expression "(param_4->tm_year < -0x76c)" ( (binary_expression "param_4->tm_year < -0x76c" (field_expression "param_4->tm_year" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n            uVar12 = -uVar12;\n          }" { (expression_statement "uVar12 = -uVar12;" (assignment_expression "uVar12 = -uVar12" identifier = (unary_expression "-uVar12" - identifier)) ;) }) (else_clause "else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }" else (compound_statement "{\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }" { (expression_statement "uVar12 = uVar12 + 100;" (assignment_expression "uVar12 = uVar12 + 100" identifier = (binary_expression "uVar12 + 100" identifier + number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }))) })) (labeled_statement "LAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);" statement_identifier : (expression_statement "bVar28 = SUB41(uVar12 >> 0x1f,0);" (assignment_expression "bVar28 = SUB41(uVar12 >> 0x1f,0)" identifier = (call_expression "SUB41(uVar12 >> 0x1f,0)" identifier (argument_list "(uVar12 >> 0x1f,0)" ( (binary_expression "uVar12 >> 0x1f" identifier >> number_literal) , number_literal )))) ;)) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (labeled_statement "LAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }" statement_identifier : (if_statement "if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "((cVar16 == 'O') && (bVar28 == false))" ( (binary_expression "(cVar16 == 'O') && (bVar28 == false)" (parenthesized_expression "(cVar16 == 'O')" ( (binary_expression "cVar16 == 'O'" identifier == (char_literal "'O'" ' character ')) )) && (parenthesized_expression "(bVar28 == false)" ( (binary_expression "bVar28 == false" identifier == false) ))) )) (compound_statement "{\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }" { (labeled_statement "LAB_00135ef1:\n          local_4b8._0_1_ = false;" statement_identifier : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;)) (labeled_statement "LAB_00135f06:\n          pcVar17 = local_44a;" statement_identifier : (expression_statement "pcVar17 = local_44a;" (assignment_expression "pcVar17 = local_44a" identifier = identifier) ;)) (expression_statement "local_44d[2] = cVar16;" (assignment_expression "local_44d[2] = cVar16" (subscript_expression "local_44d[2]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_00135f1c:\n          local_44d[1] = 0x25;" statement_identifier : (expression_statement "local_44d[1] = 0x25;" (assignment_expression "local_44d[1] = 0x25" (subscript_expression "local_44d[1]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "local_44d[0] = ' ';" (assignment_expression "local_44d[0] = ' '" (subscript_expression "local_44d[0]" identifier [ number_literal ]) = (char_literal "' '" ' character ')) ;) (expression_statement "*pcVar17 = cVar5;" (assignment_expression "*pcVar17 = cVar5" (pointer_expression "*pcVar17" * identifier) = identifier) ;) (expression_statement "pcVar17[1] = '\0';" (assignment_expression "pcVar17[1] = '\0'" (subscript_expression "pcVar17[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "sVar27 = strftime(&local_448,0x400,local_44d,param_4);" (assignment_expression "sVar27 = strftime(&local_448,0x400,local_44d,param_4)" identifier = (call_expression "strftime(&local_448,0x400,local_44d,param_4)" identifier (argument_list "(&local_448,0x400,local_44d,param_4)" ( (pointer_expression "&local_448" & identifier) , number_literal , identifier , identifier )))) ;) (if_statement "if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }" if (parenthesized_expression "(sVar27 != 0)" ( (binary_expression "sVar27 != 0" identifier != number_literal) )) (compound_statement "{\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }" { (expression_statement "uVar15 = sVar27 - 1;" (assignment_expression "uVar15 = sVar27 - 1" identifier = (binary_expression "sVar27 - 1" identifier - number_literal)) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar14 = iVar26;\n            }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" identifier = identifier) ;) (if_statement "if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }" if (parenthesized_expression "(uVar10 <= uVar15)" ( (binary_expression "uVar10 <= uVar15" identifier <= identifier) )) (compound_statement "{\n              uVar11 = uVar15;\n            }" { (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar11)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar11" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" { (if_statement "if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" if (parenthesized_expression "((iVar22 == 0) && (uVar15 < uVar10))" ( (binary_expression "(iVar22 == 0) && (uVar15 < uVar10)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar15 < uVar10)" ( (binary_expression "uVar15 < uVar10" identifier < identifier) ))) )) (compound_statement "{\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" else (compound_statement "{\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }" if (parenthesized_expression "(local_4b8._0_1_ == false)" ( (binary_expression "local_4b8._0_1_ == false" (field_expression "local_4b8._0_1_" identifier . field_identifier) == false) )) (compound_statement "{\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }" { (if_statement "if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }" if (parenthesized_expression "(cVar7 == '\0')" ( (binary_expression "cVar7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                  memcpy(param_1,local_447,uVar15);\n                }" { (expression_statement "memcpy(param_1,local_447,uVar15);" (call_expression "memcpy(param_1,local_447,uVar15)" identifier (argument_list "(param_1,local_447,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }" else (compound_statement "{\n                  FUN_00135900(param_1,local_447,uVar15);\n                }" { (expression_statement "FUN_00135900(param_1,local_447,uVar15);" (call_expression "FUN_00135900(param_1,local_447,uVar15)" identifier (argument_list "(param_1,local_447,uVar15)" ( identifier , identifier , identifier ))) ;) }))) }) (else_clause "else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }" else (compound_statement "{\n                FUN_001358c7(param_1,local_447,uVar15);\n              }" { (expression_statement "FUN_001358c7(param_1,local_447,uVar15);" (call_expression "FUN_001358c7(param_1,local_447,uVar15)" identifier (argument_list "(param_1,local_447,uVar15)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" identifier = (binary_expression "lVar24 + uVar11" identifier + identifier)) ;) })) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) }))) (labeled_statement "LAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }" statement_identifier : (if_statement "if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          uVar12 = -uVar12;\n        }" { (expression_statement "uVar12 = -uVar12;" (assignment_expression "uVar12 = -uVar12" identifier = (unary_expression "-uVar12" - identifier)) ;) }))) (labeled_statement "LAB_00136a33:\n        pcVar17 = local_431;" statement_identifier : (expression_statement "pcVar17 = local_431;" (assignment_expression "pcVar17 = local_431" identifier = identifier) ;)) (do_statement "do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));" do (compound_statement "{\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        }" { (expression_statement "pcVar20 = pcVar17;" (assignment_expression "pcVar20 = pcVar17" identifier = identifier) ;) (if_statement "if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }" if (parenthesized_expression "((uVar18 & 1) != 0)" ( (binary_expression "(uVar18 & 1) != 0" (parenthesized_expression "(uVar18 & 1)" ( (binary_expression "uVar18 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }" { (expression_statement "pcVar20 = pcVar17 + -1;" (assignment_expression "pcVar20 = pcVar17 + -1" identifier = (binary_expression "pcVar17 + -1" identifier + number_literal)) ;) (expression_statement "pcVar17[-1] = ':';" (assignment_expression "pcVar17[-1] = ':'" (subscript_expression "pcVar17[-1]" identifier [ number_literal ]) = (char_literal "':'" ' character ')) ;) })) (expression_statement "uVar18 = (int)uVar18 >> 1;" (assignment_expression "uVar18 = (int)uVar18 >> 1" identifier = (binary_expression "(int)uVar18 >> 1" (cast_expression "(int)uVar18" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "pcVar17 = pcVar20 + -1;" (assignment_expression "pcVar17 = pcVar20 + -1" identifier = (binary_expression "pcVar20 + -1" identifier + number_literal)) ;) (expression_statement "uVar13 = uVar12 / 10;" (assignment_expression "uVar13 = uVar12 / 10" identifier = (binary_expression "uVar12 / 10" identifier / number_literal)) ;) (expression_statement "pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';" (assignment_expression "pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0'" (subscript_expression "pcVar20[-1]" identifier [ number_literal ]) = (binary_expression "(char)uVar12 + (char)uVar13 * -10 + '0'" (binary_expression "(char)uVar12 + (char)uVar13 * -10" (cast_expression "(char)uVar12" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)uVar13 * -10" (cast_expression "(char)uVar13" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "bVar1 = 9 < uVar12;" (assignment_expression "bVar1 = 9 < uVar12" identifier = (binary_expression "9 < uVar12" number_literal < identifier)) ;) (expression_statement "uVar12 = uVar13;" (assignment_expression "uVar12 = uVar13" identifier = identifier) ;) }) while (parenthesized_expression "((bVar1) || (uVar18 != 0))" ( (binary_expression "(bVar1) || (uVar18 != 0)" (parenthesized_expression "(bVar1)" ( identifier )) || (parenthesized_expression "(uVar18 != 0)" ( (binary_expression "uVar18 != 0" identifier != number_literal) ))) )) ;) (if_statement "if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }" if (parenthesized_expression "(iVar22 < iVar26)" ( (binary_expression "iVar22 < iVar26" identifier < identifier) )) (compound_statement "{\n          iVar22 = iVar26;\n        }" { (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" identifier = identifier) ;) })) (if_statement "if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }" { (expression_statement "cVar5 = '-';" (assignment_expression "cVar5 = '-'" identifier = (char_literal "'-'" ' character ')) ;) (labeled_statement "LAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" statement_identifier : (if_statement "if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" if (parenthesized_expression "(cVar4 == '-')" ( (binary_expression "cVar4 == '-'" identifier == (char_literal "'-'" ' character ')) )) (compound_statement "{\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar14 = iVar26;\n            }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar15 = uVar11;\n            }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" if (parenthesized_expression "(uVar15 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar15 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" { (if_statement "if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" { (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" ( (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) ))) )) (compound_statement "{\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" { (expression_statement "memset(param_1,0x20,(long)iVar26 - 1U);" (call_expression "memset(param_1,0x20,(long)iVar26 - 1U)" identifier (argument_list "(param_1,0x20,(long)iVar26 - 1U)" ( identifier , number_literal , (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) ))) ;) (expression_statement "param_1 = param_1 + ((long)iVar26 - 1U);" (assignment_expression "param_1 = param_1 + ((long)iVar26 - 1U)" identifier = (binary_expression "param_1 + ((long)iVar26 - 1U)" identifier + (parenthesized_expression "((long)iVar26 - 1U)" ( (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) )))) ;) })) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;) })) }) (else_clause "else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" else (compound_statement "{\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" { (expression_statement "bVar28 = cVar5 != '\0';" (assignment_expression "bVar28 = cVar5 != '\0'" identifier = (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ;) (expression_statement "iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;" (assignment_expression "iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28" identifier = (binary_expression "(iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28" (parenthesized_expression "(iVar22 - (iVar14 - (int)pcVar17))" ( (binary_expression "iVar22 - (iVar14 - (int)pcVar17)" identifier - (parenthesized_expression "(iVar14 - (int)pcVar17)" ( (binary_expression "iVar14 - (int)pcVar17" identifier - (cast_expression "(int)pcVar17" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) - (cast_expression "(uint)bVar28" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (if_statement "if (0 < iVar14) goto LAB_00136e8a;" if (parenthesized_expression "(0 < iVar14)" ( (binary_expression "0 < iVar14" number_literal < identifier) )) (goto_statement "goto LAB_00136e8a;" goto statement_identifier ;)) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar14 = iVar26;\n            }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar15 = uVar11;\n            }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" if (parenthesized_expression "(uVar15 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar15 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" { (if_statement "if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" { (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" ( (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) ))) )) (compound_statement "{\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" else (compound_statement "{\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;) })) })))) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;) })) (expression_statement "cVar5 = '+';" (assignment_expression "cVar5 = '+'" identifier = (char_literal "'+'" ' character ')) ;) (if_statement "if (bVar2) goto LAB_00136e58;" if (parenthesized_expression "(bVar2)" ( identifier )) (goto_statement "goto LAB_00136e58;" goto statement_identifier ;)) (labeled_statement "LAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;" statement_identifier : (if_statement "if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;" if (parenthesized_expression "((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))" ( (binary_expression "(cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1)" (parenthesized_expression "(cVar4 == '-')" ( (binary_expression "cVar4 == '-'" identifier == (char_literal "'-'" ' character ')) )) || (parenthesized_expression "(iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1)" ( (comma_expression "iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1" (assignment_expression "iVar14 = iVar22 - (iVar14 - (int)pcVar17)" identifier = (binary_expression "iVar22 - (iVar14 - (int)pcVar17)" identifier - (parenthesized_expression "(iVar14 - (int)pcVar17)" ( (binary_expression "iVar14 - (int)pcVar17" identifier - (cast_expression "(int)pcVar17" ( (type_descriptor "int" primitive_type) ) identifier)) )))) , (binary_expression "iVar14 < 1" identifier < number_literal)) ))) )) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;))) (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" identifier = false) ;) (labeled_statement "LAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" statement_identifier : (if_statement "if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" if (parenthesized_expression "(cVar4 == '_')" ( (binary_expression "cVar4 == '_'" identifier == (char_literal "'_'" ' character ')) )) (compound_statement "{\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }" { (expression_statement "uVar15 = (ulong)iVar14;" (assignment_expression "uVar15 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }" if (parenthesized_expression "(uVar15 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar15 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }" { (if_statement "if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }" { (expression_statement "memset(param_1,0x20,uVar15);" (call_expression "memset(param_1,0x20,uVar15)" identifier (argument_list "(param_1,0x20,uVar15)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (expression_statement "iVar8 = iVar26 - iVar14;" (assignment_expression "iVar8 = iVar26 - iVar14" identifier = (binary_expression "iVar26 - iVar14" identifier - identifier)) ;) (expression_statement "bVar2 = iVar14 < iVar26;" (assignment_expression "bVar2 = iVar14 < iVar26" identifier = (binary_expression "iVar14 < iVar26" identifier < identifier)) ;) (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" identifier = number_literal) ;) (if_statement "if (bVar2) {\n              iVar26 = iVar8;\n            }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n              iVar26 = iVar8;\n            }" { (expression_statement "iVar26 = iVar8;" (assignment_expression "iVar26 = iVar8" identifier = identifier) ;) })) (if_statement "if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n                iVar14 = iVar26;\n              }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n                uVar15 = uVar11;\n              }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" { (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" ( (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) ))) )) (compound_statement "{\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" { (expression_statement "memset(param_1,0x20,(long)iVar26 - 1U);" (call_expression "memset(param_1,0x20,(long)iVar26 - 1U)" identifier (argument_list "(param_1,0x20,(long)iVar26 - 1U)" ( identifier , number_literal , (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) ))) ;) (expression_statement "param_1 = param_1 + ((long)iVar26 - 1U);" (assignment_expression "param_1 = param_1 + ((long)iVar26 - 1U)" identifier = (binary_expression "param_1 + ((long)iVar26 - 1U)" identifier + (parenthesized_expression "((long)iVar26 - 1U)" ( (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) )))) ;) })) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) })) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;) })) }) (else_clause "else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" else (if_statement "if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" if (parenthesized_expression "((ulong)(long)iVar22 < (ulong)(param_2 - lVar24))" ( (binary_expression "(ulong)(long)iVar22 < (ulong)(param_2 - lVar24)" (cast_expression "(ulong)(long)iVar22" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(long)iVar22" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" { (if_statement "if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar8 = iVar26;\n            }" { (expression_statement "iVar8 = iVar26;" (assignment_expression "iVar8 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar8;" (assignment_expression "uVar11 = (ulong)iVar8" identifier = (cast_expression "(ulong)iVar8" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar15 = uVar11;\n            }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }" { (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" ( (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) ))) )) (compound_statement "{\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" else (compound_statement "{\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) })) (if_statement "if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }" { (expression_statement "memset(param_1,0x30,(long)iVar14);" (call_expression "memset(param_1,0x30,(long)iVar14)" identifier (argument_list "(param_1,0x30,(long)iVar14)" ( identifier , number_literal , (cast_expression "(long)iVar14" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "param_1 = param_1 + iVar14;" (assignment_expression "param_1 = param_1 + iVar14" identifier = (binary_expression "param_1 + iVar14" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + iVar14;" (assignment_expression "lVar24 = lVar24 + iVar14" identifier = (binary_expression "lVar24 + iVar14" identifier + identifier)) ;) (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;" statement_identifier : (expression_statement "uVar15 = (long)local_431 - (long)pcVar17;" (assignment_expression "uVar15 = (long)local_431 - (long)pcVar17" identifier = (binary_expression "(long)local_431 - (long)pcVar17" (cast_expression "(long)local_431" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pcVar17" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;)) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n            iVar14 = iVar26;\n          }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" identifier = identifier) ;) (if_statement "if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }" if (parenthesized_expression "(uVar10 <= uVar15)" ( (binary_expression "uVar10 <= uVar15" identifier <= identifier) )) (compound_statement "{\n            uVar11 = uVar15;\n          }" { (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" identifier = identifier) ;) })) (if_statement "if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }" if (parenthesized_expression "(uVar11 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar11 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }" { (if_statement "if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" { (if_statement "if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" if (parenthesized_expression "((iVar22 == 0) && (uVar15 < uVar10))" ( (binary_expression "(iVar22 == 0) && (uVar15 < uVar10)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar15 < uVar10)" ( (binary_expression "uVar15 < uVar10" identifier < identifier) ))) )) (compound_statement "{\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" else (compound_statement "{\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }" if (parenthesized_expression "(cVar7 == '\0')" ( (binary_expression "cVar7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                memcpy(param_1,pcVar17,uVar15);\n              }" { (expression_statement "memcpy(param_1,pcVar17,uVar15);" (call_expression "memcpy(param_1,pcVar17,uVar15)" identifier (argument_list "(param_1,pcVar17,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }" else (compound_statement "{\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }" { (expression_statement "FUN_00135900(param_1,pcVar17,uVar15);" (call_expression "FUN_00135900(param_1,pcVar17,uVar15)" identifier (argument_list "(param_1,pcVar17,uVar15)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" identifier = (binary_expression "lVar24 + uVar11" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) }))))) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (case_statement "case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;" case (char_literal "'z'" ' character ') : (expression_statement "lVar23 = 0;" (assignment_expression "lVar23 = 0" identifier = number_literal) ;) (expression_statement "pcVar17 = param_3;" (assignment_expression "pcVar17 = param_3" identifier = identifier) ;) (labeled_statement "LAB_00136bae:\n        param_3 = pcVar17;" statement_identifier : (expression_statement "param_3 = pcVar17;" (assignment_expression "param_3 = pcVar17" identifier = identifier) ;)) (if_statement "if (param_4->tm_isdst < 0) goto LAB_001359f4;" if (parenthesized_expression "(param_4->tm_isdst < 0)" ( (binary_expression "param_4->tm_isdst < 0" (field_expression "param_4->tm_isdst" identifier -> field_identifier) < number_literal) )) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;)) (expression_statement "bVar28 = true;" (assignment_expression "bVar28 = true" identifier = true) ;) (expression_statement "iVar22 = (int)param_4->tm_gmtoff;" (assignment_expression "iVar22 = (int)param_4->tm_gmtoff" identifier = (cast_expression "(int)param_4->tm_gmtoff" ( (type_descriptor "int" primitive_type) ) (field_expression "param_4->tm_gmtoff" identifier -> field_identifier))) ;) (if_statement "if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }" if (parenthesized_expression "((-1 < iVar22) && (bVar28 = false, iVar22 == 0))" ( (binary_expression "(-1 < iVar22) && (bVar28 = false, iVar22 == 0)" (parenthesized_expression "(-1 < iVar22)" ( (binary_expression "-1 < iVar22" number_literal < identifier) )) && (parenthesized_expression "(bVar28 = false, iVar22 == 0)" ( (comma_expression "bVar28 = false, iVar22 == 0" (assignment_expression "bVar28 = false" identifier = false) , (binary_expression "iVar22 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          bVar28 = *__src == '-';\n        }" { (expression_statement "bVar28 = *__src == '-';" (assignment_expression "bVar28 = *__src == '-'" identifier = (binary_expression "*__src == '-'" (pointer_expression "*__src" * identifier) == (char_literal "'-'" ' character '))) ;) })) (expression_statement "uVar12 = iVar22 / 0xe10;" (assignment_expression "uVar12 = iVar22 / 0xe10" identifier = (binary_expression "iVar22 / 0xe10" identifier / number_literal)) ;) (expression_statement "iVar8 = (iVar22 / 0x3c) % 0x3c;" (assignment_expression "iVar8 = (iVar22 / 0x3c) % 0x3c" identifier = (binary_expression "(iVar22 / 0x3c) % 0x3c" (parenthesized_expression "(iVar22 / 0x3c)" ( (binary_expression "iVar22 / 0x3c" identifier / number_literal) )) % number_literal)) ;) (if_statement "if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" if (parenthesized_expression "(lVar23 == 1)" ( (binary_expression "lVar23 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }" { (labeled_statement "LAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;" statement_identifier : (expression_statement "uVar12 = uVar12 * 100 + iVar8;" (assignment_expression "uVar12 = uVar12 * 100 + iVar8" identifier = (binary_expression "uVar12 * 100 + iVar8" (binary_expression "uVar12 * 100" identifier * number_literal) + identifier)) ;)) (expression_statement "uVar18 = 4;" (assignment_expression "uVar18 = 4" identifier = number_literal) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 6;" (assignment_expression "iVar22 = 6" identifier = number_literal) ;) }) (else_clause "else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" else (if_statement "if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" if (parenthesized_expression "(lVar23 == 0)" ( (binary_expression "lVar23 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }" { (expression_statement "uVar12 = uVar12 * 100 + iVar8;" (assignment_expression "uVar12 = uVar12 * 100 + iVar8" identifier = (binary_expression "uVar12 * 100 + iVar8" (binary_expression "uVar12 * 100" identifier * number_literal) + identifier)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 5;" (assignment_expression "iVar22 = 5" identifier = number_literal) ;) }) (else_clause "else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" else (compound_statement "{\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" { (if_statement "if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }" if (parenthesized_expression "(lVar23 != 2)" ( (binary_expression "lVar23 != 2" identifier != number_literal) )) (compound_statement "{\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }" { (expression_statement "local_4b8 = param_3;" (assignment_expression "local_4b8 = param_3" identifier = identifier) ;) (if_statement "if (lVar23 != 3) goto LAB_00136cd6;" if (parenthesized_expression "(lVar23 != 3)" ( (binary_expression "lVar23 != 3" identifier != number_literal) )) (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (if_statement "if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }" if (parenthesized_expression "(iVar22 % 0x3c == 0)" ( (binary_expression "iVar22 % 0x3c == 0" (binary_expression "iVar22 % 0x3c" identifier % number_literal) == number_literal) )) (compound_statement "{\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }" { (if_statement "if (iVar8 != 0) goto LAB_00136c74;" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00136c74;" goto statement_identifier ;)) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 3;" (assignment_expression "iVar22 = 3" identifier = number_literal) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) })) (expression_statement "uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;" (assignment_expression "uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c" identifier = (binary_expression "uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c" (binary_expression "uVar12 * 10000 + iVar8 * 100" (binary_expression "uVar12 * 10000" identifier * number_literal) + (binary_expression "iVar8 * 100" identifier * number_literal)) + (binary_expression "iVar22 % 0x3c" identifier % number_literal))) ;) (expression_statement "uVar18 = 0x14;" (assignment_expression "uVar18 = 0x14" identifier = number_literal) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 9;" (assignment_expression "iVar22 = 9" identifier = number_literal) ;) }))))) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;)) })) (expression_statement "pcVar20 = local_4b8 + -1;" (assignment_expression "pcVar20 = local_4b8 + -1" identifier = (binary_expression "local_4b8 + -1" identifier + number_literal)) ;) (do_statement "do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');" do (compound_statement "{\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      }" { (expression_statement "pcVar17 = pcVar20;" (assignment_expression "pcVar17 = pcVar20" identifier = identifier) ;) (expression_statement "iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;" (assignment_expression "iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17" identifier = (binary_expression "((int)(local_4b8 + -1) + 2) - (int)pcVar17" (parenthesized_expression "((int)(local_4b8 + -1) + 2)" ( (binary_expression "(int)(local_4b8 + -1) + 2" (cast_expression "(int)(local_4b8 + -1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_4b8 + -1)" ( (binary_expression "local_4b8 + -1" identifier + number_literal) ))) + number_literal) )) - (cast_expression "(int)pcVar17" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pcVar20 = pcVar17 + -1;" (assignment_expression "pcVar20 = pcVar17 + -1" identifier = (binary_expression "pcVar17 + -1" identifier + number_literal)) ;) (expression_statement "param_3 = local_4b8;" (assignment_expression "param_3 = local_4b8" identifier = identifier) ;) }) while (parenthesized_expression "(*pcVar17 != '%')" ( (binary_expression "*pcVar17 != '%'" (pointer_expression "*pcVar17" * identifier) != (char_literal "'%'" ' character ')) )) ;) (labeled_statement "LAB_00136d21:\n      local_4b8 = pcVar17;" statement_identifier : (expression_statement "local_4b8 = pcVar17;" (assignment_expression "local_4b8 = pcVar17" identifier = identifier) ;)) (expression_statement "uVar15 = (ulong)iVar14;" (assignment_expression "uVar15 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n        iVar14 = iVar26;\n      }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" identifier = identifier) ;) (if_statement "if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }" if (parenthesized_expression "(uVar10 <= uVar15)" ( (binary_expression "uVar10 <= uVar15" identifier <= identifier) )) (compound_statement "{\n        uVar11 = uVar15;\n      }" { (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar11)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar11" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (compound_statement "{\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }" { (labeled_statement "LAB_00136dd9:\n        lVar24 = 0;" statement_identifier : (expression_statement "lVar24 = 0;" (assignment_expression "lVar24 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_00136ddf;" goto statement_identifier ;) })) (if_statement "if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }" { (if_statement "if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }" if (parenthesized_expression "(uVar15 < uVar10)" ( (binary_expression "uVar15 < uVar10" identifier < identifier) )) (compound_statement "{\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }" else (compound_statement "{\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }" if (parenthesized_expression "(cVar7 == '\0')" ( (binary_expression "cVar7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          memcpy(param_1,local_4b8,uVar15);\n        }" { (expression_statement "memcpy(param_1,local_4b8,uVar15);" (call_expression "memcpy(param_1,local_4b8,uVar15)" identifier (argument_list "(param_1,local_4b8,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }" else (compound_statement "{\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }" { (expression_statement "FUN_00135900(param_1,local_4b8,uVar15);" (call_expression "FUN_00135900(param_1,local_4b8,uVar15)" identifier (argument_list "(param_1,local_4b8,uVar15)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" identifier = (binary_expression "lVar24 + uVar11" identifier + identifier)) ;) (labeled_statement "LAB_001359f4:\n      cVar5 = param_3[1];" statement_identifier : (expression_statement "cVar5 = param_3[1];" (assignment_expression "cVar5 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;)) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) }))) (if_statement "if ((param_1 != (char *)0x0) && (param_2 != 0)) {\n    *param_1 = '\0';\n  }" if (parenthesized_expression "((param_1 != (char *)0x0) && (param_2 != 0))" ( (binary_expression "(param_1 != (char *)0x0) && (param_2 != 0)" (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    *param_1 = '\0';\n  }" { (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (labeled_statement "LAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return lVar24;\n  }" { (return_statement "return lVar24;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "size_t __strftime_internal(char *s,size_t maxsize,char *format,tm *tp,_Bool upcase,\n                          _Bool *tzset_called,timezone_t tz,int ns)\n\n{\n  bool bVar1;\n  bool bVar2;\n  char cVar3;\n  char cVar4;\n  char cVar5;\n  char upcase_00;\n  int iVar6;\n  char *src;\n  size_t sVar7;\n  time_t tVar8;\n  ulong uVar9;\n  ulong uVar10;\n  uint uVar11;\n  time_t tVar12;\n  uint uVar13;\n  int iVar14;\n  ulong uVar15;\n  char cVar16;\n  char *pcVar17;\n  uint uVar18;\n  int iVar19;\n  char *pcVar20;\n  int iVar21;\n  int iVar22;\n  long lVar23;\n  size_t sVar24;\n  uint uVar25;\n  int iVar26;\n  size_t sVar27;\n  long in_FS_OFFSET;\n  bool bVar28;\n  byte bVar29;\n  char *local_4b8;\n  tm ltm;\n  char ufmt [5];\n  char buf [23];\n  char local_431 [1009];\n  long local_40;\n  \n  bVar29 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar25 = tp->tm_hour;\n  src = "";\n  if (tp->tm_zone != (char *)0x0) {\n    src = tp->tm_zone;\n  }\n  if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }\n  cVar4 = *format;\n  if (cVar4 == '\0') {\n    sVar24 = 0;\n  }\n  else {\n    sVar24 = 0;\n    do {\n      if (cVar4 != '%') {\n        if (maxsize - sVar24 < 2) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          *s = cVar4;\n          s = s + 1;\n        }\n        sVar24 = sVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      upcase_00 = upcase;\n      cVar4 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }\n      } while (cVar4 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar4 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        } while ((int)*format - 0x30U < 10);\n      }\n      cVar4 = *format;\n      if ((cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O')) {\n        format = format + 1;\n        cVar16 = cVar4;\n      }\n      cVar4 = *format;\n      iVar14 = (int)local_431;\n      local_4b8 = format;\n      uVar11 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar4) {\n      case '\0':\n        local_4b8 = format + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = format;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = format + 1;\n        cVar5 = format[1];\n        if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar5 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        cVar4 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = ufmt + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar4 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = uVar10;\n        if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }\n        if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = tp->tm_year < -0x76c;\n        uVar11 = tp->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          upcase_00 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar9 = (ulong)iVar14;\n        uVar10 = uVar9;\n        if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }\n        if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        format = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar4 = 'p';\n        if (bVar28 != false) {\n          upcase_00 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = ufmt + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar4 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        ltm.tm_sec = tp->tm_sec;\n        ltm.tm_min = tp->tm_min;\n        ltm.tm_hour = tp->tm_hour;\n        ltm.tm_mday = tp->tm_mday;\n        ltm.tm_mon = tp->tm_mon;\n        ltm.tm_year = tp->tm_year;\n        ltm.tm_wday = tp->tm_wday;\n        ltm.tm_yday = tp->tm_yday;\n        ltm.tm_isdst = tp->tm_isdst;\n        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;\n        ltm.tm_gmtoff = tp->tm_gmtoff;\n        ltm.tm_zone = tp->tm_zone;\n        tVar8 = mktime_z(tz,&ltm);\n        pcVar17 = local_431;\n        tVar12 = tVar8;\n        do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar11 = (tp->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar11 = tp->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar4 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar4 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = format;\nLAB_00136bae:\n        format = pcVar17;\n        if (tp->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)tp->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }\n        uVar11 = iVar22 / 0xe10;\n        iVar6 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        format = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar9 = (ulong)iVar14;\n      uVar10 = uVar9;\n      if (uVar9 <= uVar15) {\n        uVar10 = uVar15;\n      }\n      if (maxsize - sVar24 <= uVar10) {\nLAB_00136dd9:\n        sVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (s != (char *)0x0) {\n        if (uVar15 < uVar9) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }\n        if (upcase_00 == '\0') {\n          memcpy(s,local_4b8,uVar15);\n        }\n        else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }\n        s = s + uVar15;\n      }\n      sVar24 = sVar24 + uVar10;\nLAB_001359f4:\n      cVar4 = format[1];\n      format = format + 1;\n    } while (cVar4 != '\0');\n  }\n  if ((s != (char *)0x0) && (maxsize != 0)) {\n    *s = '\0';\n  }\nLAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return sVar24;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "size_t __strftime_internal(char *s,size_t maxsize,char *format,tm *tp,_Bool upcase,\n                          _Bool *tzset_called,timezone_t tz,int ns)\n\n{\n  bool bVar1;\n  bool bVar2;\n  char cVar3;\n  char cVar4;\n  char cVar5;\n  char upcase_00;\n  int iVar6;\n  char *src;\n  size_t sVar7;\n  time_t tVar8;\n  ulong uVar9;\n  ulong uVar10;\n  uint uVar11;\n  time_t tVar12;\n  uint uVar13;\n  int iVar14;\n  ulong uVar15;\n  char cVar16;\n  char *pcVar17;\n  uint uVar18;\n  int iVar19;\n  char *pcVar20;\n  int iVar21;\n  int iVar22;\n  long lVar23;\n  size_t sVar24;\n  uint uVar25;\n  int iVar26;\n  size_t sVar27;\n  long in_FS_OFFSET;\n  bool bVar28;\n  byte bVar29;\n  char *local_4b8;\n  tm ltm;\n  char ufmt [5];\n  char buf [23];\n  char local_431 [1009];\n  long local_40;\n  \n  bVar29 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar25 = tp->tm_hour;\n  src = "";\n  if (tp->tm_zone != (char *)0x0) {\n    src = tp->tm_zone;\n  }\n  if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }\n  cVar4 = *format;\n  if (cVar4 == '\0') {\n    sVar24 = 0;\n  }\n  else {\n    sVar24 = 0;\n    do {\n      if (cVar4 != '%') {\n        if (maxsize - sVar24 < 2) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          *s = cVar4;\n          s = s + 1;\n        }\n        sVar24 = sVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      upcase_00 = upcase;\n      cVar4 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }\n      } while (cVar4 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar4 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        } while ((int)*format - 0x30U < 10);\n      }\n      cVar4 = *format;\n      if ((cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O')) {\n        format = format + 1;\n        cVar16 = cVar4;\n      }\n      cVar4 = *format;\n      iVar14 = (int)local_431;\n      local_4b8 = format;\n      uVar11 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar4) {\n      case '\0':\n        local_4b8 = format + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = format;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = format + 1;\n        cVar5 = format[1];\n        if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar5 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        cVar4 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = ufmt + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar4 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = uVar10;\n        if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }\n        if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = tp->tm_year < -0x76c;\n        uVar11 = tp->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          upcase_00 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar9 = (ulong)iVar14;\n        uVar10 = uVar9;\n        if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }\n        if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        format = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar4 = 'p';\n        if (bVar28 != false) {\n          upcase_00 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = ufmt + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar4 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        ltm.tm_sec = tp->tm_sec;\n        ltm.tm_min = tp->tm_min;\n        ltm.tm_hour = tp->tm_hour;\n        ltm.tm_mday = tp->tm_mday;\n        ltm.tm_mon = tp->tm_mon;\n        ltm.tm_year = tp->tm_year;\n        ltm.tm_wday = tp->tm_wday;\n        ltm.tm_yday = tp->tm_yday;\n        ltm.tm_isdst = tp->tm_isdst;\n        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;\n        ltm.tm_gmtoff = tp->tm_gmtoff;\n        ltm.tm_zone = tp->tm_zone;\n        tVar8 = mktime_z(tz,&ltm);\n        pcVar17 = local_431;\n        tVar12 = tVar8;\n        do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar11 = (tp->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar11 = tp->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar4 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar4 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = format;\nLAB_00136bae:\n        format = pcVar17;\n        if (tp->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)tp->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }\n        uVar11 = iVar22 / 0xe10;\n        iVar6 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        format = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar9 = (ulong)iVar14;\n      uVar10 = uVar9;\n      if (uVar9 <= uVar15) {\n        uVar10 = uVar15;\n      }\n      if (maxsize - sVar24 <= uVar10) {\nLAB_00136dd9:\n        sVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (s != (char *)0x0) {\n        if (uVar15 < uVar9) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }\n        if (upcase_00 == '\0') {\n          memcpy(s,local_4b8,uVar15);\n        }\n        else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }\n        s = s + uVar15;\n      }\n      sVar24 = sVar24 + uVar10;\nLAB_001359f4:\n      cVar4 = format[1];\n      format = format + 1;\n    } while (cVar4 != '\0');\n  }\n  if ((s != (char *)0x0) && (maxsize != 0)) {\n    *s = '\0';\n  }\nLAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return sVar24;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "__strftime_internal(char *s,size_t maxsize,char *format,tm *tp,_Bool upcase,\n                          _Bool *tzset_called,timezone_t tz,int ns)" identifier (parameter_list "(char *s,size_t maxsize,char *format,tm *tp,_Bool upcase,\n                          _Bool *tzset_called,timezone_t tz,int ns)" ( (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) , (parameter_declaration "size_t maxsize" primitive_type identifier) , (parameter_declaration "char *format" primitive_type (pointer_declarator "*format" * identifier)) , (parameter_declaration "tm *tp" type_identifier (pointer_declarator "*tp" * identifier)) , (parameter_declaration "_Bool upcase" type_identifier identifier) , (parameter_declaration "_Bool *tzset_called" type_identifier (pointer_declarator "*tzset_called" * identifier)) , (parameter_declaration "timezone_t tz" type_identifier identifier) , (parameter_declaration "int ns" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  bool bVar2;\n  char cVar3;\n  char cVar4;\n  char cVar5;\n  char upcase_00;\n  int iVar6;\n  char *src;\n  size_t sVar7;\n  time_t tVar8;\n  ulong uVar9;\n  ulong uVar10;\n  uint uVar11;\n  time_t tVar12;\n  uint uVar13;\n  int iVar14;\n  ulong uVar15;\n  char cVar16;\n  char *pcVar17;\n  uint uVar18;\n  int iVar19;\n  char *pcVar20;\n  int iVar21;\n  int iVar22;\n  long lVar23;\n  size_t sVar24;\n  uint uVar25;\n  int iVar26;\n  size_t sVar27;\n  long in_FS_OFFSET;\n  bool bVar28;\n  byte bVar29;\n  char *local_4b8;\n  tm ltm;\n  char ufmt [5];\n  char buf [23];\n  char local_431 [1009];\n  long local_40;\n  \n  bVar29 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar25 = tp->tm_hour;\n  src = "";\n  if (tp->tm_zone != (char *)0x0) {\n    src = tp->tm_zone;\n  }\n  if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }\n  cVar4 = *format;\n  if (cVar4 == '\0') {\n    sVar24 = 0;\n  }\n  else {\n    sVar24 = 0;\n    do {\n      if (cVar4 != '%') {\n        if (maxsize - sVar24 < 2) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          *s = cVar4;\n          s = s + 1;\n        }\n        sVar24 = sVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      upcase_00 = upcase;\n      cVar4 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }\n      } while (cVar4 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar4 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        } while ((int)*format - 0x30U < 10);\n      }\n      cVar4 = *format;\n      if ((cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O')) {\n        format = format + 1;\n        cVar16 = cVar4;\n      }\n      cVar4 = *format;\n      iVar14 = (int)local_431;\n      local_4b8 = format;\n      uVar11 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar4) {\n      case '\0':\n        local_4b8 = format + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = format;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = format + 1;\n        cVar5 = format[1];\n        if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar5 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        cVar4 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = ufmt + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar4 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = uVar10;\n        if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }\n        if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = tp->tm_year < -0x76c;\n        uVar11 = tp->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          upcase_00 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar9 = (ulong)iVar14;\n        uVar10 = uVar9;\n        if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }\n        if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        format = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar4 = 'p';\n        if (bVar28 != false) {\n          upcase_00 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = ufmt + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar4 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        ltm.tm_sec = tp->tm_sec;\n        ltm.tm_min = tp->tm_min;\n        ltm.tm_hour = tp->tm_hour;\n        ltm.tm_mday = tp->tm_mday;\n        ltm.tm_mon = tp->tm_mon;\n        ltm.tm_year = tp->tm_year;\n        ltm.tm_wday = tp->tm_wday;\n        ltm.tm_yday = tp->tm_yday;\n        ltm.tm_isdst = tp->tm_isdst;\n        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;\n        ltm.tm_gmtoff = tp->tm_gmtoff;\n        ltm.tm_zone = tp->tm_zone;\n        tVar8 = mktime_z(tz,&ltm);\n        pcVar17 = local_431;\n        tVar12 = tVar8;\n        do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar11 = (tp->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar11 = tp->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar4 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar4 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = format;\nLAB_00136bae:\n        format = pcVar17;\n        if (tp->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)tp->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }\n        uVar11 = iVar22 / 0xe10;\n        iVar6 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        format = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar9 = (ulong)iVar14;\n      uVar10 = uVar9;\n      if (uVar9 <= uVar15) {\n        uVar10 = uVar15;\n      }\n      if (maxsize - sVar24 <= uVar10) {\nLAB_00136dd9:\n        sVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (s != (char *)0x0) {\n        if (uVar15 < uVar9) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }\n        if (upcase_00 == '\0') {\n          memcpy(s,local_4b8,uVar15);\n        }\n        else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }\n        s = s + uVar15;\n      }\n      sVar24 = sVar24 + uVar10;\nLAB_001359f4:\n      cVar4 = format[1];\n      format = format + 1;\n    } while (cVar4 != '\0');\n  }\n  if ((s != (char *)0x0) && (maxsize != 0)) {\n    *s = '\0';\n  }\nLAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return sVar24;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "char upcase_00;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *src;" primitive_type (pointer_declarator "*src" * identifier) ;) (declaration "size_t sVar7;" primitive_type identifier ;) (declaration "time_t tVar8;" type_identifier identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "time_t tVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "ulong uVar15;" type_identifier identifier ;) (declaration "char cVar16;" primitive_type identifier ;) (declaration "char *pcVar17;" primitive_type (pointer_declarator "*pcVar17" * identifier) ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "char *pcVar20;" primitive_type (pointer_declarator "*pcVar20" * identifier) ;) (declaration "int iVar21;" primitive_type identifier ;) (declaration "int iVar22;" primitive_type identifier ;) (declaration "long lVar23;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t sVar24;" primitive_type identifier ;) (declaration "uint uVar25;" type_identifier identifier ;) (declaration "int iVar26;" primitive_type identifier ;) (declaration "size_t sVar27;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar28;" primitive_type identifier ;) (declaration "byte bVar29;" type_identifier identifier ;) (declaration "char *local_4b8;" primitive_type (pointer_declarator "*local_4b8" * identifier) ;) (declaration "tm ltm;" type_identifier identifier ;) (declaration "char ufmt [5];" primitive_type (array_declarator "ufmt [5]" identifier [ number_literal ]) ;) (declaration "char buf [23];" primitive_type (array_declarator "buf [23]" identifier [ number_literal ]) ;) (declaration "char local_431 [1009];" primitive_type (array_declarator "local_431 [1009]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar29 = 0;" (assignment_expression "bVar29 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar25 = tp->tm_hour;" (assignment_expression "uVar25 = tp->tm_hour" identifier = (field_expression "tp->tm_hour" identifier -> field_identifier)) ;) (expression_statement "src = "";" (assignment_expression "src = """ identifier = (string_literal """" " ")) ;) (if_statement "if (tp->tm_zone != (char *)0x0) {\n    src = tp->tm_zone;\n  }" if (parenthesized_expression "(tp->tm_zone != (char *)0x0)" ( (binary_expression "tp->tm_zone != (char *)0x0" (field_expression "tp->tm_zone" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    src = tp->tm_zone;\n  }" { (expression_statement "src = tp->tm_zone;" (assignment_expression "src = tp->tm_zone" identifier = (field_expression "tp->tm_zone" identifier -> field_identifier)) ;) })) (if_statement "if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }" if (parenthesized_expression "((int)uVar25 < 0xd)" ( (binary_expression "(int)uVar25 < 0xd" (cast_expression "(int)uVar25" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }" { (if_statement "if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }" if (parenthesized_expression "(uVar25 == 0)" ( (binary_expression "uVar25 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar25 = 0xc;\n    }" { (expression_statement "uVar25 = 0xc;" (assignment_expression "uVar25 = 0xc" identifier = number_literal) ;) })) }) (else_clause "else {\n    uVar25 = uVar25 - 0xc;\n  }" else (compound_statement "{\n    uVar25 = uVar25 - 0xc;\n  }" { (expression_statement "uVar25 = uVar25 - 0xc;" (assignment_expression "uVar25 = uVar25 - 0xc" identifier = (binary_expression "uVar25 - 0xc" identifier - number_literal)) ;) }))) (expression_statement "cVar4 = *format;" (assignment_expression "cVar4 = *format" identifier = (pointer_expression "*format" * identifier)) ;) (if_statement "if (cVar4 == '\0') {\n    sVar24 = 0;\n  }\n  else {\n    sVar24 = 0;\n    do {\n      if (cVar4 != '%') {\n        if (maxsize - sVar24 < 2) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          *s = cVar4;\n          s = s + 1;\n        }\n        sVar24 = sVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      upcase_00 = upcase;\n      cVar4 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }\n      } while (cVar4 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar4 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        } while ((int)*format - 0x30U < 10);\n      }\n      cVar4 = *format;\n      if ((cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O')) {\n        format = format + 1;\n        cVar16 = cVar4;\n      }\n      cVar4 = *format;\n      iVar14 = (int)local_431;\n      local_4b8 = format;\n      uVar11 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar4) {\n      case '\0':\n        local_4b8 = format + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = format;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = format + 1;\n        cVar5 = format[1];\n        if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar5 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        cVar4 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = ufmt + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar4 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = uVar10;\n        if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }\n        if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = tp->tm_year < -0x76c;\n        uVar11 = tp->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          upcase_00 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar9 = (ulong)iVar14;\n        uVar10 = uVar9;\n        if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }\n        if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        format = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar4 = 'p';\n        if (bVar28 != false) {\n          upcase_00 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = ufmt + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar4 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        ltm.tm_sec = tp->tm_sec;\n        ltm.tm_min = tp->tm_min;\n        ltm.tm_hour = tp->tm_hour;\n        ltm.tm_mday = tp->tm_mday;\n        ltm.tm_mon = tp->tm_mon;\n        ltm.tm_year = tp->tm_year;\n        ltm.tm_wday = tp->tm_wday;\n        ltm.tm_yday = tp->tm_yday;\n        ltm.tm_isdst = tp->tm_isdst;\n        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;\n        ltm.tm_gmtoff = tp->tm_gmtoff;\n        ltm.tm_zone = tp->tm_zone;\n        tVar8 = mktime_z(tz,&ltm);\n        pcVar17 = local_431;\n        tVar12 = tVar8;\n        do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar11 = (tp->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar11 = tp->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar4 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar4 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = format;\nLAB_00136bae:\n        format = pcVar17;\n        if (tp->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)tp->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }\n        uVar11 = iVar22 / 0xe10;\n        iVar6 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        format = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar9 = (ulong)iVar14;\n      uVar10 = uVar9;\n      if (uVar9 <= uVar15) {\n        uVar10 = uVar15;\n      }\n      if (maxsize - sVar24 <= uVar10) {\nLAB_00136dd9:\n        sVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (s != (char *)0x0) {\n        if (uVar15 < uVar9) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }\n        if (upcase_00 == '\0') {\n          memcpy(s,local_4b8,uVar15);\n        }\n        else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }\n        s = s + uVar15;\n      }\n      sVar24 = sVar24 + uVar10;\nLAB_001359f4:\n      cVar4 = format[1];\n      format = format + 1;\n    } while (cVar4 != '\0');\n  }" if (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sVar24 = 0;\n  }" { (expression_statement "sVar24 = 0;" (assignment_expression "sVar24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    sVar24 = 0;\n    do {\n      if (cVar4 != '%') {\n        if (maxsize - sVar24 < 2) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          *s = cVar4;\n          s = s + 1;\n        }\n        sVar24 = sVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      upcase_00 = upcase;\n      cVar4 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }\n      } while (cVar4 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar4 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        } while ((int)*format - 0x30U < 10);\n      }\n      cVar4 = *format;\n      if ((cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O')) {\n        format = format + 1;\n        cVar16 = cVar4;\n      }\n      cVar4 = *format;\n      iVar14 = (int)local_431;\n      local_4b8 = format;\n      uVar11 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar4) {\n      case '\0':\n        local_4b8 = format + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = format;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = format + 1;\n        cVar5 = format[1];\n        if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar5 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        cVar4 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = ufmt + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar4 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = uVar10;\n        if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }\n        if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = tp->tm_year < -0x76c;\n        uVar11 = tp->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          upcase_00 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar9 = (ulong)iVar14;\n        uVar10 = uVar9;\n        if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }\n        if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        format = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar4 = 'p';\n        if (bVar28 != false) {\n          upcase_00 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = ufmt + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar4 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        ltm.tm_sec = tp->tm_sec;\n        ltm.tm_min = tp->tm_min;\n        ltm.tm_hour = tp->tm_hour;\n        ltm.tm_mday = tp->tm_mday;\n        ltm.tm_mon = tp->tm_mon;\n        ltm.tm_year = tp->tm_year;\n        ltm.tm_wday = tp->tm_wday;\n        ltm.tm_yday = tp->tm_yday;\n        ltm.tm_isdst = tp->tm_isdst;\n        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;\n        ltm.tm_gmtoff = tp->tm_gmtoff;\n        ltm.tm_zone = tp->tm_zone;\n        tVar8 = mktime_z(tz,&ltm);\n        pcVar17 = local_431;\n        tVar12 = tVar8;\n        do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar11 = (tp->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar11 = tp->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar4 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar4 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = format;\nLAB_00136bae:\n        format = pcVar17;\n        if (tp->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)tp->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }\n        uVar11 = iVar22 / 0xe10;\n        iVar6 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        format = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar9 = (ulong)iVar14;\n      uVar10 = uVar9;\n      if (uVar9 <= uVar15) {\n        uVar10 = uVar15;\n      }\n      if (maxsize - sVar24 <= uVar10) {\nLAB_00136dd9:\n        sVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (s != (char *)0x0) {\n        if (uVar15 < uVar9) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }\n        if (upcase_00 == '\0') {\n          memcpy(s,local_4b8,uVar15);\n        }\n        else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }\n        s = s + uVar15;\n      }\n      sVar24 = sVar24 + uVar10;\nLAB_001359f4:\n      cVar4 = format[1];\n      format = format + 1;\n    } while (cVar4 != '\0');\n  }" else (compound_statement "{\n    sVar24 = 0;\n    do {\n      if (cVar4 != '%') {\n        if (maxsize - sVar24 < 2) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          *s = cVar4;\n          s = s + 1;\n        }\n        sVar24 = sVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      upcase_00 = upcase;\n      cVar4 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }\n      } while (cVar4 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar4 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        } while ((int)*format - 0x30U < 10);\n      }\n      cVar4 = *format;\n      if ((cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O')) {\n        format = format + 1;\n        cVar16 = cVar4;\n      }\n      cVar4 = *format;\n      iVar14 = (int)local_431;\n      local_4b8 = format;\n      uVar11 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar4) {\n      case '\0':\n        local_4b8 = format + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = format;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = format + 1;\n        cVar5 = format[1];\n        if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar5 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        cVar4 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = ufmt + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar4 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = uVar10;\n        if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }\n        if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = tp->tm_year < -0x76c;\n        uVar11 = tp->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          upcase_00 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar9 = (ulong)iVar14;\n        uVar10 = uVar9;\n        if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }\n        if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        format = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar4 = 'p';\n        if (bVar28 != false) {\n          upcase_00 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = ufmt + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar4 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        ltm.tm_sec = tp->tm_sec;\n        ltm.tm_min = tp->tm_min;\n        ltm.tm_hour = tp->tm_hour;\n        ltm.tm_mday = tp->tm_mday;\n        ltm.tm_mon = tp->tm_mon;\n        ltm.tm_year = tp->tm_year;\n        ltm.tm_wday = tp->tm_wday;\n        ltm.tm_yday = tp->tm_yday;\n        ltm.tm_isdst = tp->tm_isdst;\n        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;\n        ltm.tm_gmtoff = tp->tm_gmtoff;\n        ltm.tm_zone = tp->tm_zone;\n        tVar8 = mktime_z(tz,&ltm);\n        pcVar17 = local_431;\n        tVar12 = tVar8;\n        do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar11 = (tp->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar11 = tp->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar4 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar4 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = format;\nLAB_00136bae:\n        format = pcVar17;\n        if (tp->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)tp->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }\n        uVar11 = iVar22 / 0xe10;\n        iVar6 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        format = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar9 = (ulong)iVar14;\n      uVar10 = uVar9;\n      if (uVar9 <= uVar15) {\n        uVar10 = uVar15;\n      }\n      if (maxsize - sVar24 <= uVar10) {\nLAB_00136dd9:\n        sVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (s != (char *)0x0) {\n        if (uVar15 < uVar9) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }\n        if (upcase_00 == '\0') {\n          memcpy(s,local_4b8,uVar15);\n        }\n        else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }\n        s = s + uVar15;\n      }\n      sVar24 = sVar24 + uVar10;\nLAB_001359f4:\n      cVar4 = format[1];\n      format = format + 1;\n    } while (cVar4 != '\0');\n  }" { (expression_statement "sVar24 = 0;" (assignment_expression "sVar24 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (cVar4 != '%') {\n        if (maxsize - sVar24 < 2) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          *s = cVar4;\n          s = s + 1;\n        }\n        sVar24 = sVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      upcase_00 = upcase;\n      cVar4 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }\n      } while (cVar4 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar4 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        } while ((int)*format - 0x30U < 10);\n      }\n      cVar4 = *format;\n      if ((cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O')) {\n        format = format + 1;\n        cVar16 = cVar4;\n      }\n      cVar4 = *format;\n      iVar14 = (int)local_431;\n      local_4b8 = format;\n      uVar11 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar4) {\n      case '\0':\n        local_4b8 = format + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = format;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = format + 1;\n        cVar5 = format[1];\n        if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar5 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        cVar4 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = ufmt + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar4 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = uVar10;\n        if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }\n        if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = tp->tm_year < -0x76c;\n        uVar11 = tp->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          upcase_00 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar9 = (ulong)iVar14;\n        uVar10 = uVar9;\n        if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }\n        if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        format = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar4 = 'p';\n        if (bVar28 != false) {\n          upcase_00 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = ufmt + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar4 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        ltm.tm_sec = tp->tm_sec;\n        ltm.tm_min = tp->tm_min;\n        ltm.tm_hour = tp->tm_hour;\n        ltm.tm_mday = tp->tm_mday;\n        ltm.tm_mon = tp->tm_mon;\n        ltm.tm_year = tp->tm_year;\n        ltm.tm_wday = tp->tm_wday;\n        ltm.tm_yday = tp->tm_yday;\n        ltm.tm_isdst = tp->tm_isdst;\n        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;\n        ltm.tm_gmtoff = tp->tm_gmtoff;\n        ltm.tm_zone = tp->tm_zone;\n        tVar8 = mktime_z(tz,&ltm);\n        pcVar17 = local_431;\n        tVar12 = tVar8;\n        do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar11 = (tp->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar11 = tp->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar4 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar4 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = format;\nLAB_00136bae:\n        format = pcVar17;\n        if (tp->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)tp->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }\n        uVar11 = iVar22 / 0xe10;\n        iVar6 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        format = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar9 = (ulong)iVar14;\n      uVar10 = uVar9;\n      if (uVar9 <= uVar15) {\n        uVar10 = uVar15;\n      }\n      if (maxsize - sVar24 <= uVar10) {\nLAB_00136dd9:\n        sVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (s != (char *)0x0) {\n        if (uVar15 < uVar9) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }\n        if (upcase_00 == '\0') {\n          memcpy(s,local_4b8,uVar15);\n        }\n        else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }\n        s = s + uVar15;\n      }\n      sVar24 = sVar24 + uVar10;\nLAB_001359f4:\n      cVar4 = format[1];\n      format = format + 1;\n    } while (cVar4 != '\0');" do (compound_statement "{\n      if (cVar4 != '%') {\n        if (maxsize - sVar24 < 2) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          *s = cVar4;\n          s = s + 1;\n        }\n        sVar24 = sVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      upcase_00 = upcase;\n      cVar4 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }\n      } while (cVar4 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar4 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        } while ((int)*format - 0x30U < 10);\n      }\n      cVar4 = *format;\n      if ((cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O')) {\n        format = format + 1;\n        cVar16 = cVar4;\n      }\n      cVar4 = *format;\n      iVar14 = (int)local_431;\n      local_4b8 = format;\n      uVar11 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar4) {\n      case '\0':\n        local_4b8 = format + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = format;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = format + 1;\n        cVar5 = format[1];\n        if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar5 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        cVar4 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = ufmt + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar4 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = uVar10;\n        if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }\n        if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = tp->tm_year < -0x76c;\n        uVar11 = tp->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          upcase_00 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar9 = (ulong)iVar14;\n        uVar10 = uVar9;\n        if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }\n        if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        format = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar4 = 'p';\n        if (bVar28 != false) {\n          upcase_00 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = ufmt + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar4 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        ltm.tm_sec = tp->tm_sec;\n        ltm.tm_min = tp->tm_min;\n        ltm.tm_hour = tp->tm_hour;\n        ltm.tm_mday = tp->tm_mday;\n        ltm.tm_mon = tp->tm_mon;\n        ltm.tm_year = tp->tm_year;\n        ltm.tm_wday = tp->tm_wday;\n        ltm.tm_yday = tp->tm_yday;\n        ltm.tm_isdst = tp->tm_isdst;\n        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;\n        ltm.tm_gmtoff = tp->tm_gmtoff;\n        ltm.tm_zone = tp->tm_zone;\n        tVar8 = mktime_z(tz,&ltm);\n        pcVar17 = local_431;\n        tVar12 = tVar8;\n        do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar11 = (tp->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar11 = tp->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar4 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar4 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = format;\nLAB_00136bae:\n        format = pcVar17;\n        if (tp->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)tp->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }\n        uVar11 = iVar22 / 0xe10;\n        iVar6 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        format = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar9 = (ulong)iVar14;\n      uVar10 = uVar9;\n      if (uVar9 <= uVar15) {\n        uVar10 = uVar15;\n      }\n      if (maxsize - sVar24 <= uVar10) {\nLAB_00136dd9:\n        sVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (s != (char *)0x0) {\n        if (uVar15 < uVar9) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }\n        if (upcase_00 == '\0') {\n          memcpy(s,local_4b8,uVar15);\n        }\n        else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }\n        s = s + uVar15;\n      }\n      sVar24 = sVar24 + uVar10;\nLAB_001359f4:\n      cVar4 = format[1];\n      format = format + 1;\n    }" { (if_statement "if (cVar4 != '%') {\n        if (maxsize - sVar24 < 2) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          *s = cVar4;\n          s = s + 1;\n        }\n        sVar24 = sVar24 + 1;\n        goto LAB_001359f4;\n      }" if (parenthesized_expression "(cVar4 != '%')" ( (binary_expression "cVar4 != '%'" identifier != (char_literal "'%'" ' character ')) )) (compound_statement "{\n        if (maxsize - sVar24 < 2) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          *s = cVar4;\n          s = s + 1;\n        }\n        sVar24 = sVar24 + 1;\n        goto LAB_001359f4;\n      }" { (if_statement "if (maxsize - sVar24 < 2) goto LAB_00136dd9;" if (parenthesized_expression "(maxsize - sVar24 < 2)" ( (binary_expression "maxsize - sVar24 < 2" (binary_expression "maxsize - sVar24" identifier - identifier) < number_literal) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (s != (char *)0x0) {\n          *s = cVar4;\n          s = s + 1;\n        }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *s = cVar4;\n          s = s + 1;\n        }" { (expression_statement "*s = cVar4;" (assignment_expression "*s = cVar4" (pointer_expression "*s" * identifier) = identifier) ;) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) })) (expression_statement "sVar24 = sVar24 + 1;" (assignment_expression "sVar24 = sVar24 + 1" identifier = (binary_expression "sVar24 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" identifier = false) ;) (expression_statement "upcase_00 = upcase;" (assignment_expression "upcase_00 = upcase" identifier = identifier) ;) (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (do_statement "do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }\n      } while (cVar4 == '_');" do (compound_statement "{\n        while( true ) {\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }\n      }" { (while_statement "while( true ) {\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }\n          if (cVar4 != '^') break;\n          upcase_00 = true;\n          cVar4 = cVar3;\n        }" { (while_statement "while( true ) {\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');\n            if ('0' < cVar4) break;\n            if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;\n          }" { (do_statement "do {\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            } while (cVar4 == '0');" do (compound_statement "{\n              cVar3 = cVar4;\n              format = format + 1;\n              cVar4 = *format;\n            }" { (expression_statement "cVar3 = cVar4;" (assignment_expression "cVar3 = cVar4" identifier = identifier) ;) (expression_statement "format = format + 1;" (assignment_expression "format = format + 1" identifier = (binary_expression "format + 1" identifier + number_literal)) ;) (expression_statement "cVar4 = *format;" (assignment_expression "cVar4 = *format" identifier = (pointer_expression "*format" * identifier)) ;) }) while (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) ;) (if_statement "if ('0' < cVar4) break;" if (parenthesized_expression "('0' < cVar4)" ( (binary_expression "'0' < cVar4" (char_literal "'0'" ' character ') < identifier) )) (break_statement "break;" break ;)) (if_statement "if (cVar4 == '#') {\n              bVar28 = true;\n              cVar4 = cVar3;\n            }\n            else if (cVar4 != '-') goto LAB_00135a68;" if (parenthesized_expression "(cVar4 == '#')" ( (binary_expression "cVar4 == '#'" identifier == (char_literal "'#'" ' character ')) )) (compound_statement "{\n              bVar28 = true;\n              cVar4 = cVar3;\n            }" { (expression_statement "bVar28 = true;" (assignment_expression "bVar28 = true" identifier = true) ;) (expression_statement "cVar4 = cVar3;" (assignment_expression "cVar4 = cVar3" identifier = identifier) ;) }) (else_clause "else if (cVar4 != '-') goto LAB_00135a68;" else (if_statement "if (cVar4 != '-') goto LAB_00135a68;" if (parenthesized_expression "(cVar4 != '-')" ( (binary_expression "cVar4 != '-'" identifier != (char_literal "'-'" ' character ')) )) (goto_statement "goto LAB_00135a68;" goto statement_identifier ;)))) })) (if_statement "if (cVar4 != '^') break;" if (parenthesized_expression "(cVar4 != '^')" ( (binary_expression "cVar4 != '^'" identifier != (char_literal "'^'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "upcase_00 = true;" (assignment_expression "upcase_00 = true" identifier = true) ;) (expression_statement "cVar4 = cVar3;" (assignment_expression "cVar4 = cVar3" identifier = identifier) ;) })) }) while (parenthesized_expression "(cVar4 == '_')" ( (binary_expression "cVar4 == '_'" identifier == (char_literal "'_'" ' character ')) )) ;) (labeled_statement "LAB_00135a68:\n      iVar26 = -1;" statement_identifier : (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" identifier = number_literal) ;)) (if_statement "if ((int)cVar4 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        } while ((int)*format - 0x30U < 10);\n      }" if (parenthesized_expression "((int)cVar4 - 0x30U < 10)" ( (binary_expression "(int)cVar4 - 0x30U < 10" (binary_expression "(int)cVar4 - 0x30U" (cast_expression "(int)cVar4" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) < number_literal) )) (compound_statement "{\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        } while ((int)*format - 0x30U < 10);\n      }" { (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" identifier = number_literal) ;) (do_statement "do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        } while ((int)*format - 0x30U < 10);" do (compound_statement "{\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          format = format + 1;\n        }" { (if_statement "if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }" if (parenthesized_expression "(iVar26 < 0xccccccd)" ( (binary_expression "iVar26 < 0xccccccd" identifier < number_literal) )) (compound_statement "{\n            if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }\n          }" { (if_statement "if ((iVar26 == 0xccccccc) && ('7' < *format)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }" if (parenthesized_expression "((iVar26 == 0xccccccc) && ('7' < *format))" ( (binary_expression "(iVar26 == 0xccccccc) && ('7' < *format)" (parenthesized_expression "(iVar26 == 0xccccccc)" ( (binary_expression "iVar26 == 0xccccccc" identifier == number_literal) )) && (parenthesized_expression "('7' < *format)" ( (binary_expression "'7' < *format" (char_literal "'7'" ' character ') < (pointer_expression "*format" * identifier)) ))) )) (compound_statement "{\n              iVar26 = 0x7fffffff;\n            }" { (expression_statement "iVar26 = 0x7fffffff;" (assignment_expression "iVar26 = 0x7fffffff" identifier = number_literal) ;) }) (else_clause "else {\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }" else (compound_statement "{\n              iVar26 = *format + -0x30 + iVar26 * 10;\n            }" { (expression_statement "iVar26 = *format + -0x30 + iVar26 * 10;" (assignment_expression "iVar26 = *format + -0x30 + iVar26 * 10" identifier = (binary_expression "*format + -0x30 + iVar26 * 10" (binary_expression "*format + -0x30" (pointer_expression "*format" * identifier) + number_literal) + (binary_expression "iVar26 * 10" identifier * number_literal))) ;) }))) }) (else_clause "else {\n            iVar26 = 0x7fffffff;\n          }" else (compound_statement "{\n            iVar26 = 0x7fffffff;\n          }" { (expression_statement "iVar26 = 0x7fffffff;" (assignment_expression "iVar26 = 0x7fffffff" identifier = number_literal) ;) }))) (expression_statement "format = format + 1;" (assignment_expression "format = format + 1" identifier = (binary_expression "format + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)*format - 0x30U < 10)" ( (binary_expression "(int)*format - 0x30U < 10" (binary_expression "(int)*format - 0x30U" (cast_expression "(int)*format" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*format" * identifier)) - number_literal) < number_literal) )) ;) })) (expression_statement "cVar4 = *format;" (assignment_expression "cVar4 = *format" identifier = (pointer_expression "*format" * identifier)) ;) (if_statement "if ((cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O')) {\n        format = format + 1;\n        cVar16 = cVar4;\n      }" if (parenthesized_expression "((cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O'))" ( (binary_expression "(cVar4 == 'E') || (cVar16 = '\0', cVar4 == 'O')" (parenthesized_expression "(cVar4 == 'E')" ( (binary_expression "cVar4 == 'E'" identifier == (char_literal "'E'" ' character ')) )) || (parenthesized_expression "(cVar16 = '\0', cVar4 == 'O')" ( (comma_expression "cVar16 = '\0', cVar4 == 'O'" (assignment_expression "cVar16 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) , (binary_expression "cVar4 == 'O'" identifier == (char_literal "'O'" ' character '))) ))) )) (compound_statement "{\n        format = format + 1;\n        cVar16 = cVar4;\n      }" { (expression_statement "format = format + 1;" (assignment_expression "format = format + 1" identifier = (binary_expression "format + 1" identifier + number_literal)) ;) (expression_statement "cVar16 = cVar4;" (assignment_expression "cVar16 = cVar4" identifier = identifier) ;) })) (expression_statement "cVar4 = *format;" (assignment_expression "cVar4 = *format" identifier = (pointer_expression "*format" * identifier)) ;) (expression_statement "iVar14 = (int)local_431;" (assignment_expression "iVar14 = (int)local_431" identifier = (cast_expression "(int)local_431" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_4b8 = format;" (assignment_expression "local_4b8 = format" identifier = identifier) ;) (expression_statement "uVar11 = uVar25;" (assignment_expression "uVar11 = uVar25" identifier = identifier) ;) (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" identifier = identifier) ;) (switch_statement "switch(cVar4) {\n      case '\0':\n        local_4b8 = format + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = format;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = format + 1;\n        cVar5 = format[1];\n        if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar5 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        cVar4 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = ufmt + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar4 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = uVar10;\n        if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }\n        if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = tp->tm_year < -0x76c;\n        uVar11 = tp->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          upcase_00 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar9 = (ulong)iVar14;\n        uVar10 = uVar9;\n        if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }\n        if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        format = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar4 = 'p';\n        if (bVar28 != false) {\n          upcase_00 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = ufmt + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar4 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        ltm.tm_sec = tp->tm_sec;\n        ltm.tm_min = tp->tm_min;\n        ltm.tm_hour = tp->tm_hour;\n        ltm.tm_mday = tp->tm_mday;\n        ltm.tm_mon = tp->tm_mon;\n        ltm.tm_year = tp->tm_year;\n        ltm.tm_wday = tp->tm_wday;\n        ltm.tm_yday = tp->tm_yday;\n        ltm.tm_isdst = tp->tm_isdst;\n        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;\n        ltm.tm_gmtoff = tp->tm_gmtoff;\n        ltm.tm_zone = tp->tm_zone;\n        tVar8 = mktime_z(tz,&ltm);\n        pcVar17 = local_431;\n        tVar12 = tVar8;\n        do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar11 = (tp->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar11 = tp->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar4 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar4 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = format;\nLAB_00136bae:\n        format = pcVar17;\n        if (tp->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)tp->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }\n        uVar11 = iVar22 / 0xe10;\n        iVar6 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }" switch (parenthesized_expression "(cVar4)" ( identifier )) (compound_statement "{\n      case '\0':\n        local_4b8 = format + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = format;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = format + 1;\n        cVar5 = format[1];\n        if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar5 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        cVar4 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = ufmt + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar4 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = uVar10;\n        if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }\n        if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = tp->tm_year < -0x76c;\n        uVar11 = tp->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          upcase_00 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar9 = (ulong)iVar14;\n        uVar10 = uVar9;\n        if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }\n        if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        format = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar4 = 'p';\n        if (bVar28 != false) {\n          upcase_00 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = ufmt + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar4 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        ltm.tm_sec = tp->tm_sec;\n        ltm.tm_min = tp->tm_min;\n        ltm.tm_hour = tp->tm_hour;\n        ltm.tm_mday = tp->tm_mday;\n        ltm.tm_mon = tp->tm_mon;\n        ltm.tm_year = tp->tm_year;\n        ltm.tm_wday = tp->tm_wday;\n        ltm.tm_yday = tp->tm_yday;\n        ltm.tm_isdst = tp->tm_isdst;\n        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;\n        ltm.tm_gmtoff = tp->tm_gmtoff;\n        ltm.tm_zone = tp->tm_zone;\n        tVar8 = mktime_z(tz,&ltm);\n        pcVar17 = local_431;\n        tVar12 = tVar8;\n        do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar11 = (tp->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar11 = tp->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar4 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar4 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = format;\nLAB_00136bae:\n        format = pcVar17;\n        if (tp->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)tp->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }\n        uVar11 = iVar22 / 0xe10;\n        iVar6 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }" { (case_statement "case '\0':\n        local_4b8 = format + -1;\n        goto LAB_00136cd6;" case (char_literal "'\0'" ' escape_sequence ') : (expression_statement "local_4b8 = format + -1;" (assignment_expression "local_4b8 = format + -1" identifier = (binary_expression "format + -1" identifier + number_literal)) ;) (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (case_statement "default:\n        goto LAB_00136cd6;" default : (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (case_statement "case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = format;\n        goto LAB_00136d21;" case (char_literal "'%'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }\n          if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n          if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n            iVar14 = iVar26;\n          }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar10 != 0) {\n            uVar15 = uVar10;\n          }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n            uVar15 = uVar10;\n          }" { (expression_statement "uVar15 = uVar10;" (assignment_expression "uVar15 = uVar10" identifier = identifier) ;) })) (if_statement "if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "(maxsize - sVar24 <= uVar15)" ( (binary_expression "maxsize - sVar24 <= uVar15" (binary_expression "maxsize - sVar24" identifier - identifier) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (s != (char *)0x0) {\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            *s = *format;\n            s = s + 1;\n          }" { (if_statement "if (1 < uVar10) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }" if (parenthesized_expression "(1 < uVar10)" ( (binary_expression "1 < uVar10" number_literal < identifier) )) (compound_statement "{\n              sVar27 = (long)iVar26 - 1;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }" if (parenthesized_expression "(cVar3 == '0')" ( (binary_expression "cVar3 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }" { (expression_statement "memset(s,0x30,sVar27);" (call_expression "memset(s,0x30,sVar27)" identifier (argument_list "(s,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }" else (compound_statement "{\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }" { (expression_statement "memset(s,0x20,sVar27);" (call_expression "memset(s,0x20,sVar27)" identifier (argument_list "(s,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*s = *format;" (assignment_expression "*s = *format" (pointer_expression "*s" * identifier) = (pointer_expression "*format" * identifier)) ;) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) })) (expression_statement "sVar24 = sVar24 + uVar15;" (assignment_expression "sVar24 = sVar24 + uVar15" identifier = (binary_expression "sVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (expression_statement "iVar14 = 1;" (assignment_expression "iVar14 = 1" identifier = number_literal) ;) (expression_statement "pcVar17 = format;" (assignment_expression "pcVar17 = format" identifier = identifier) ;) (goto_statement "goto LAB_00136d21;" goto statement_identifier ;)) (case_statement "case ':':\n        pcVar17 = format + 1;\n        cVar5 = format[1];\n        if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar5 == 'z') goto LAB_00136bae;\n        break;" case (char_literal "':'" ' character ') : (expression_statement "pcVar17 = format + 1;" (assignment_expression "pcVar17 = format + 1" identifier = (binary_expression "format + 1" identifier + number_literal)) ;) (expression_statement "cVar5 = format[1];" (assignment_expression "cVar5 = format[1]" identifier = (subscript_expression "format[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar5 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }" if (parenthesized_expression "(cVar5 == ':')" ( (binary_expression "cVar5 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');\n        }" { (expression_statement "lVar23 = 1;" (assignment_expression "lVar23 = 1" identifier = number_literal) ;) (do_statement "do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          } while (cVar5 == ':');" do (compound_statement "{\n            lVar23 = lVar23 + 1;\n            pcVar17 = format + lVar23;\n            cVar5 = format[lVar23];\n          }" { (expression_statement "lVar23 = lVar23 + 1;" (assignment_expression "lVar23 = lVar23 + 1" identifier = (binary_expression "lVar23 + 1" identifier + number_literal)) ;) (expression_statement "pcVar17 = format + lVar23;" (assignment_expression "pcVar17 = format + lVar23" identifier = (binary_expression "format + lVar23" identifier + identifier)) ;) (expression_statement "cVar5 = format[lVar23];" (assignment_expression "cVar5 = format[lVar23]" identifier = (subscript_expression "format[lVar23]" identifier [ identifier ])) ;) }) while (parenthesized_expression "(cVar5 == ':')" ( (binary_expression "cVar5 == ':'" identifier == (char_literal "':'" ' character ')) )) ;) }) (else_clause "else {\n          lVar23 = 1;\n        }" else (compound_statement "{\n          lVar23 = 1;\n        }" { (expression_statement "lVar23 = 1;" (assignment_expression "lVar23 = 1" identifier = number_literal) ;) }))) (if_statement "if (cVar5 == 'z') goto LAB_00136bae;" if (parenthesized_expression "(cVar5 == 'z')" ( (binary_expression "cVar5 == 'z'" identifier == (char_literal "'z'" ' character ')) )) (goto_statement "goto LAB_00136bae;" goto statement_identifier ;)) (break_statement "break;" break ;)) (case_statement "case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        cVar4 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = ufmt + 2;\n        goto LAB_00135f1c;" case (char_literal "'A'" ' character ') : (if_statement "if (cVar16 != '\0') break;" if (parenthesized_expression "(cVar16 != '\0')" ( (binary_expression "cVar16 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          upcase_00 = bVar28;\n        }" { (expression_statement "upcase_00 = bVar28;" (assignment_expression "upcase_00 = bVar28" identifier = identifier) ;) })) (expression_statement "cVar4 = 'A';" (assignment_expression "cVar4 = 'A'" identifier = (char_literal "'A'" ' character ')) ;) (labeled_statement "LAB_00135bf1:\n        local_4b8._0_1_ = false;" statement_identifier : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;)) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (expression_statement "pcVar17 = ufmt + 2;" (assignment_expression "pcVar17 = ufmt + 2" identifier = (binary_expression "ufmt + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_00135f1c;" goto statement_identifier ;)) (case_statement "case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'B'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (if_statement "if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n            upcase_00 = bVar28;\n          }" { (expression_statement "upcase_00 = bVar28;" (assignment_expression "upcase_00 = bVar28" identifier = identifier) ;) })) (expression_statement "cVar4 = 'B';" (assignment_expression "cVar4 = 'B'" identifier = (char_literal "'B'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'C':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar4 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;" case (char_literal "'C'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar6 = tp->tm_year;\n          iVar22 = iVar6 / 100 + 0x13;\n          bVar28 = iVar6 < -0x76c;\n          uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" { (expression_statement "iVar6 = tp->tm_year;" (assignment_expression "iVar6 = tp->tm_year" identifier = (field_expression "tp->tm_year" identifier -> field_identifier)) ;) (expression_statement "iVar22 = iVar6 / 100 + 0x13;" (assignment_expression "iVar22 = iVar6 / 100 + 0x13" identifier = (binary_expression "iVar6 / 100 + 0x13" (binary_expression "iVar6 / 100" identifier / number_literal) + number_literal)) ;) (expression_statement "bVar28 = iVar6 < -0x76c;" (assignment_expression "bVar28 = iVar6 < -0x76c" identifier = (binary_expression "iVar6 < -0x76c" identifier < number_literal)) ;) (expression_statement "uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22));" (assignment_expression "uVar11 = iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22))" identifier = (binary_expression "iVar22 - ((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22))" identifier - (parenthesized_expression "((uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22))" ( (binary_expression "(uint)(iVar6 % 100) >> 0x1f & (uint)(0 < iVar22)" (binary_expression "(uint)(iVar6 % 100) >> 0x1f" (call_expression "(uint)(iVar6 % 100)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar6 % 100)" ( (binary_expression "iVar6 % 100" identifier % number_literal) ))) >> number_literal) & (call_expression "(uint)(0 < iVar22)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar22)" ( (binary_expression "0 < iVar22" number_literal < identifier) )))) )))) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (expression_statement "cVar4 = 'C';" (assignment_expression "cVar4 = 'C'" identifier = (char_literal "'C'" ' character ')) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;)) (case_statement "case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;" case (char_literal "'D'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }" { (expression_statement "local_4b8 = "%m/%d/%y";" (assignment_expression "local_4b8 = "%m/%d/%y"" identifier = (string_literal ""%m/%d/%y"" " string_content ")) ;) (goto_statement "goto LAB_00135ca3;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;" case (char_literal "'F'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }" { (expression_statement "local_4b8 = "%Y-%m-%d";" (assignment_expression "local_4b8 = "%Y-%m-%d"" identifier = (string_literal ""%Y-%m-%d"" " string_content ")) ;) (goto_statement "goto LAB_00135ca3;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'G':" case (char_literal "'G'" ' character ') :) (case_statement "case 'V':" case (char_literal "'V'" ' character ') :) (case_statement "case 'g':\n        if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;" case (char_literal "'g'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar6 = tp->tm_year;\n          uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);\n          iVar21 = tp->tm_wday;\n          iVar19 = tp->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" { (expression_statement "iVar6 = tp->tm_year;" (assignment_expression "iVar6 = tp->tm_year" identifier = (field_expression "tp->tm_year" identifier -> field_identifier)) ;) (expression_statement "uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U);" (assignment_expression "uVar11 = iVar6 + -100 + (iVar6 >> 0x1f & 400U)" identifier = (binary_expression "iVar6 + -100 + (iVar6 >> 0x1f & 400U)" (binary_expression "iVar6 + -100" identifier + number_literal) + (parenthesized_expression "(iVar6 >> 0x1f & 400U)" ( (binary_expression "iVar6 >> 0x1f & 400U" (binary_expression "iVar6 >> 0x1f" identifier >> number_literal) & number_literal) )))) ;) (expression_statement "iVar21 = tp->tm_wday;" (assignment_expression "iVar21 = tp->tm_wday" identifier = (field_expression "tp->tm_wday" identifier -> field_identifier)) ;) (expression_statement "iVar19 = tp->tm_yday;" (assignment_expression "iVar19 = tp->tm_yday" identifier = (field_expression "tp->tm_yday" identifier -> field_identifier)) ;) (expression_statement "iVar22 = (iVar19 - iVar21) + 0x17e;" (assignment_expression "iVar22 = (iVar19 - iVar21) + 0x17e" identifier = (binary_expression "(iVar19 - iVar21) + 0x17e" (parenthesized_expression "(iVar19 - iVar21)" ( (binary_expression "iVar19 - iVar21" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;" (assignment_expression "iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7" identifier = (binary_expression "(iVar19 - iVar22) + 3 + (iVar22 / 7) * 7" (binary_expression "(iVar19 - iVar22) + 3" (parenthesized_expression "(iVar19 - iVar22)" ( (binary_expression "iVar19 - iVar22" identifier - identifier) )) + number_literal) + (binary_expression "(iVar22 / 7) * 7" (parenthesized_expression "(iVar22 / 7)" ( (binary_expression "iVar22 / 7" identifier / number_literal) )) * number_literal))) ;) (if_statement "if (iVar22 < 0) {\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" if (parenthesized_expression "(iVar22 < 0)" ( (binary_expression "iVar22 < 0" identifier < number_literal) )) (compound_statement "{\n            uVar11 = uVar11 - 1;\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }" { (expression_statement "uVar11 = uVar11 - 1;" (assignment_expression "uVar11 = uVar11 - 1" identifier = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (if_statement "if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }" if (parenthesized_expression "(((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100))" ( (binary_expression "((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)" (parenthesized_expression "((uVar11 & 3) == 0)" ( (binary_expression "(uVar11 & 3) == 0" (parenthesized_expression "(uVar11 & 3)" ( (binary_expression "uVar11 & 3" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)" ( (comma_expression "uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100" (assignment_expression "uVar18 = 1" identifier = number_literal) , (binary_expression "uVar11 == ((int)uVar11 / 100) * 100" identifier == (binary_expression "((int)uVar11 / 100) * 100" (parenthesized_expression "((int)uVar11 / 100)" ( (binary_expression "(int)uVar11 / 100" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) )) * number_literal))) ))) )) (compound_statement "{\n              uVar18 = (uint)((int)uVar11 % 400 == 0);\n            }" { (expression_statement "uVar18 = (uint)((int)uVar11 % 400 == 0);" (assignment_expression "uVar18 = (uint)((int)uVar11 % 400 == 0)" identifier = (call_expression "(uint)((int)uVar11 % 400 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)uVar11 % 400 == 0)" ( (binary_expression "(int)uVar11 % 400 == 0" (binary_expression "(int)uVar11 % 400" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) % number_literal) == number_literal) )))) ;) })) (expression_statement "iVar22 = iVar19 + 0x16d + uVar18;" (assignment_expression "iVar22 = iVar19 + 0x16d + uVar18" identifier = (binary_expression "iVar19 + 0x16d + uVar18" (binary_expression "iVar19 + 0x16d" identifier + number_literal) + identifier)) ;) (expression_statement "iVar21 = (iVar22 - iVar21) + 0x17e;" (assignment_expression "iVar21 = (iVar22 - iVar21) + 0x17e" identifier = (binary_expression "(iVar22 - iVar21) + 0x17e" (parenthesized_expression "(iVar22 - iVar21)" ( (binary_expression "iVar22 - iVar21" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;" (assignment_expression "iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7" identifier = (binary_expression "(iVar22 - iVar21) + 3 + (iVar21 / 7) * 7" (binary_expression "(iVar22 - iVar21) + 3" (parenthesized_expression "(iVar22 - iVar21)" ( (binary_expression "iVar22 - iVar21" identifier - identifier) )) + number_literal) + (binary_expression "(iVar21 / 7) * 7" (parenthesized_expression "(iVar21 / 7)" ( (binary_expression "iVar21 / 7" identifier / number_literal) )) * number_literal))) ;) (expression_statement "iVar21 = -1;" (assignment_expression "iVar21 = -1" identifier = number_literal) ;) }) (else_clause "else {\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" else (compound_statement "{\n            uVar18 = 0;\n            if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" { (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (if_statement "if (((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)) {\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }" if (parenthesized_expression "(((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100))" ( (binary_expression "((uVar11 & 3) == 0) && (uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)" (parenthesized_expression "((uVar11 & 3) == 0)" ( (binary_expression "(uVar11 & 3) == 0" (parenthesized_expression "(uVar11 & 3)" ( (binary_expression "uVar11 & 3" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100)" ( (comma_expression "uVar18 = 1, uVar11 == ((int)uVar11 / 100) * 100" (assignment_expression "uVar18 = 1" identifier = number_literal) , (binary_expression "uVar11 == ((int)uVar11 / 100) * 100" identifier == (binary_expression "((int)uVar11 / 100) * 100" (parenthesized_expression "((int)uVar11 / 100)" ( (binary_expression "(int)uVar11 / 100" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) )) * number_literal))) ))) )) (compound_statement "{\n              uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);\n            }" { (expression_statement "uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400);" (assignment_expression "uVar18 = (uint)(uVar11 == ((int)uVar11 / 400) * 400)" identifier = (call_expression "(uint)(uVar11 == ((int)uVar11 / 400) * 400)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar11 == ((int)uVar11 / 400) * 400)" ( (binary_expression "uVar11 == ((int)uVar11 / 400) * 400" identifier == (binary_expression "((int)uVar11 / 400) * 400" (parenthesized_expression "((int)uVar11 / 400)" ( (binary_expression "(int)uVar11 / 400" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) )) * number_literal)) )))) ;) })) (expression_statement "iVar19 = iVar19 - (uVar18 + 0x16d);" (assignment_expression "iVar19 = iVar19 - (uVar18 + 0x16d)" identifier = (binary_expression "iVar19 - (uVar18 + 0x16d)" identifier - (parenthesized_expression "(uVar18 + 0x16d)" ( (binary_expression "uVar18 + 0x16d" identifier + number_literal) )))) ;) (expression_statement "iVar21 = (iVar19 - iVar21) + 0x17e;" (assignment_expression "iVar21 = (iVar19 - iVar21) + 0x17e" identifier = (binary_expression "(iVar19 - iVar21) + 0x17e" (parenthesized_expression "(iVar19 - iVar21)" ( (binary_expression "iVar19 - iVar21" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;" (assignment_expression "iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7" identifier = (binary_expression "(iVar19 - iVar21) + 3 + (iVar21 / 7) * 7" (binary_expression "(iVar19 - iVar21) + 3" (parenthesized_expression "(iVar19 - iVar21)" ( (binary_expression "iVar19 - iVar21" identifier - identifier) )) + number_literal) + (binary_expression "(iVar21 / 7) * 7" (parenthesized_expression "(iVar21 / 7)" ( (binary_expression "iVar21 / 7" identifier / number_literal) )) * number_literal))) ;) (if_statement "if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }" if (parenthesized_expression "(-1 < iVar21)" ( (binary_expression "-1 < iVar21" number_literal < identifier) )) (compound_statement "{\n              iVar22 = iVar21;\n            }" { (expression_statement "iVar22 = iVar21;" (assignment_expression "iVar22 = iVar21" identifier = identifier) ;) })) (expression_statement "iVar21 = (iVar21 >> 0x1f) + 1;" (assignment_expression "iVar21 = (iVar21 >> 0x1f) + 1" identifier = (binary_expression "(iVar21 >> 0x1f) + 1" (parenthesized_expression "(iVar21 >> 0x1f)" ( (binary_expression "iVar21 >> 0x1f" identifier >> number_literal) )) + number_literal)) ;) }))) (if_statement "if (cVar4 == 'G') {\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }" if (parenthesized_expression "(cVar4 == 'G')" ( (binary_expression "cVar4 == 'G'" identifier == (char_literal "'G'" ' character ')) )) (compound_statement "{\n            bVar28 = iVar6 < -0x76c - iVar21;\n            uVar11 = iVar6 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }" { (expression_statement "bVar28 = iVar6 < -0x76c - iVar21;" (assignment_expression "bVar28 = iVar6 < -0x76c - iVar21" identifier = (binary_expression "iVar6 < -0x76c - iVar21" identifier < (binary_expression "-0x76c - iVar21" number_literal - identifier))) ;) (expression_statement "uVar11 = iVar6 + 0x76c + iVar21;" (assignment_expression "uVar11 = iVar6 + 0x76c + iVar21" identifier = (binary_expression "iVar6 + 0x76c + iVar21" (binary_expression "iVar6 + 0x76c" identifier + number_literal) + identifier)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 4;" (assignment_expression "iVar22 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (if_statement "if (cVar4 == 'g') {\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" if (parenthesized_expression "(cVar4 == 'g')" ( (binary_expression "cVar4 == 'g'" identifier == (char_literal "'g'" ' character ')) )) (compound_statement "{\n            uVar11 = (iVar6 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }\n          }" { (expression_statement "uVar11 = (iVar6 % 100 + iVar21) % 100;" (assignment_expression "uVar11 = (iVar6 % 100 + iVar21) % 100" identifier = (binary_expression "(iVar6 % 100 + iVar21) % 100" (parenthesized_expression "(iVar6 % 100 + iVar21)" ( (binary_expression "iVar6 % 100 + iVar21" (binary_expression "iVar6 % 100" identifier % number_literal) + identifier) )) % number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (if_statement "if ((int)uVar11 < 0) {\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }" if (parenthesized_expression "((int)uVar11 < 0)" ( (binary_expression "(int)uVar11 < 0" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n              if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }\n            }" { (if_statement "if (iVar6 < -0x76c - iVar21) {\n                uVar11 = -uVar11;\n              }\n              else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }" if (parenthesized_expression "(iVar6 < -0x76c - iVar21)" ( (binary_expression "iVar6 < -0x76c - iVar21" identifier < (binary_expression "-0x76c - iVar21" number_literal - identifier)) )) (compound_statement "{\n                uVar11 = -uVar11;\n              }" { (expression_statement "uVar11 = -uVar11;" (assignment_expression "uVar11 = -uVar11" identifier = (unary_expression "-uVar11" - identifier)) ;) }) (else_clause "else {\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }" else (compound_statement "{\n                uVar11 = uVar11 + 100;\n                iVar22 = 2;\n              }" { (expression_statement "uVar11 = uVar11 + 100;" (assignment_expression "uVar11 = uVar11 + 100" identifier = (binary_expression "uVar11 + 100" identifier + number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }))) })) }) (else_clause "else {\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" else (compound_statement "{\n            uVar11 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" { (expression_statement "uVar11 = iVar22 / 7 + 1;" (assignment_expression "uVar11 = iVar22 / 7 + 1" identifier = (binary_expression "iVar22 / 7 + 1" (binary_expression "iVar22 / 7" identifier / number_literal) + number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }))) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (case_statement "case 'H':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'H'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar11 = tp->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar11 = tp->tm_hour;" (assignment_expression "uVar11 = tp->tm_hour" identifier = (field_expression "tp->tm_hour" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'I'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'M':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'M'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar11 = tp->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar11 = tp->tm_min;" (assignment_expression "uVar11 = tp->tm_min" identifier = (field_expression "tp->tm_min" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'N':\n        if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'N'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar11 = ns;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar11 = ns;" (assignment_expression "uVar11 = ns" identifier = identifier) ;) (if_statement "if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }" if (parenthesized_expression "(iVar26 == -1)" ( (binary_expression "iVar26 == -1" identifier == number_literal) )) (compound_statement "{\n            iVar26 = 9;\n            iVar22 = 9;\n          }" { (expression_statement "iVar26 = 9;" (assignment_expression "iVar26 = 9" identifier = number_literal) ;) (expression_statement "iVar22 = 9;" (assignment_expression "iVar22 = 9" identifier = number_literal) ;) }) (else_clause "else {\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }" else (compound_statement "{\n            iVar6 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }\n          }" { (expression_statement "iVar6 = iVar26;" (assignment_expression "iVar6 = iVar26" identifier = identifier) ;) (if_statement "if (iVar26 < 9) {\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }" if (parenthesized_expression "(iVar26 < 9)" ( (binary_expression "iVar26 < 9" identifier < number_literal) )) (compound_statement "{\n              do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);\n            }" { (do_statement "do {\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              } while (iVar6 != 9);" do (compound_statement "{\n                uVar11 = (int)uVar11 / 10;\n                iVar6 = iVar6 + 1;\n              }" { (expression_statement "uVar11 = (int)uVar11 / 10;" (assignment_expression "uVar11 = (int)uVar11 / 10" identifier = (binary_expression "(int)uVar11 / 10" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal)) ;) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != 9)" ( (binary_expression "iVar6 != 9" identifier != number_literal) )) ;) })) }))) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;" case (char_literal "'P'" ' character ') : (expression_statement "local_4b8._0_1_ = true;" (assignment_expression "local_4b8._0_1_ = true" (field_expression "local_4b8._0_1_" identifier . field_identifier) = true) ;) (goto_statement "goto LAB_00136492;" goto statement_identifier ;)) (case_statement "case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;" case (char_literal "'R'" ' character ') : (expression_statement "local_4b8 = "%H:%M";" (assignment_expression "local_4b8 = "%H:%M"" identifier = (string_literal ""%H:%M"" " string_content ")) ;) (goto_statement "goto LAB_00135ca3;" goto statement_identifier ;)) (case_statement "case 'S':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'S'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar11 = tp->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar11 = tp->tm_sec;" (assignment_expression "uVar11 = tp->tm_sec" identifier = (field_expression "tp->tm_sec" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = uVar10;\n        if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }\n        if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;" case (char_literal "'T'" ' character ') : (expression_statement "local_4b8 = "%H:%M:%S";" (assignment_expression "local_4b8 = "%H:%M:%S"" identifier = (string_literal ""%H:%M:%S"" " string_content ")) ;) (labeled_statement "LAB_00135ca3:\n        sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);" statement_identifier : (expression_statement "sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns);" (assignment_expression "sVar7 = __strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns)" identifier = (call_expression "__strftime_internal((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns)" identifier (argument_list "((char *)0x0,0xffffffffffffffff,local_4b8,tp,(_Bool)upcase_00,\n                                    tzset_called,tz,ns)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal , identifier , identifier , (cast_expression "(_Bool)upcase_00" ( (type_descriptor "_Bool" type_identifier) ) identifier) , identifier , identifier , identifier )))) ;)) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = uVar10;" (assignment_expression "uVar15 = uVar10" identifier = identifier) ;) (if_statement "if (uVar10 <= sVar7) {\n          uVar15 = sVar7;\n        }" if (parenthesized_expression "(uVar10 <= sVar7)" ( (binary_expression "uVar10 <= sVar7" identifier <= identifier) )) (compound_statement "{\n          uVar15 = sVar7;\n        }" { (expression_statement "uVar15 = sVar7;" (assignment_expression "uVar15 = sVar7" identifier = identifier) ;) })) (if_statement "if (uVar15 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "(uVar15 < maxsize - sVar24)" ( (binary_expression "uVar15 < maxsize - sVar24" identifier < (binary_expression "maxsize - sVar24" identifier - identifier)) )) (compound_statement "{\n          if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }\n          sVar24 = sVar24 + uVar15;\n          goto LAB_001359f4;\n        }" { (if_statement "if (s != (char *)0x0) {\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            __strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;\n            s = s + sVar7;\n          }" { (if_statement "if (sVar7 < uVar10) {\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }" if (parenthesized_expression "(sVar7 < uVar10)" ( (binary_expression "sVar7 < uVar10" identifier < identifier) )) (compound_statement "{\n              sVar27 = (long)iVar26 - sVar7;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }" { (expression_statement "sVar27 = (long)iVar26 - sVar7;" (assignment_expression "sVar27 = (long)iVar26 - sVar7" identifier = (binary_expression "(long)iVar26 - sVar7" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }" if (parenthesized_expression "(cVar3 == '0')" ( (binary_expression "cVar3 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }" { (expression_statement "memset(s,0x30,sVar27);" (call_expression "memset(s,0x30,sVar27)" identifier (argument_list "(s,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }" else (compound_statement "{\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }" { (expression_statement "memset(s,0x20,sVar27);" (call_expression "memset(s,0x20,sVar27)" identifier (argument_list "(s,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "__strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)\n            ;" (call_expression "__strftime_internal(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)" identifier (argument_list "(s,maxsize - sVar24,local_4b8,tp,(_Bool)upcase_00,tzset_called,tz,ns)" ( identifier , (binary_expression "maxsize - sVar24" identifier - identifier) , identifier , identifier , (cast_expression "(_Bool)upcase_00" ( (type_descriptor "_Bool" type_identifier) ) identifier) , identifier , identifier , identifier ))) ;) (expression_statement "s = s + sVar7;" (assignment_expression "s = s + sVar7" identifier = (binary_expression "s + sVar7" identifier + identifier)) ;) })) (expression_statement "sVar24 = sVar24 + uVar15;" (assignment_expression "sVar24 = sVar24 + uVar15" identifier = (binary_expression "sVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (case_statement "case 'U':\n        if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'U'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;" (assignment_expression "uVar11 = ((tp->tm_yday - tp->tm_wday) + 7) / 7" identifier = (binary_expression "((tp->tm_yday - tp->tm_wday) + 7) / 7" (parenthesized_expression "((tp->tm_yday - tp->tm_wday) + 7)" ( (binary_expression "(tp->tm_yday - tp->tm_wday) + 7" (parenthesized_expression "(tp->tm_yday - tp->tm_wday)" ( (binary_expression "tp->tm_yday - tp->tm_wday" (field_expression "tp->tm_yday" identifier -> field_identifier) - (field_expression "tp->tm_wday" identifier -> field_identifier)) )) + number_literal) )) / number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'W'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar22 = tp->tm_wday + 6;\n          uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "iVar22 = tp->tm_wday + 6;" (assignment_expression "iVar22 = tp->tm_wday + 6" identifier = (binary_expression "tp->tm_wday + 6" (field_expression "tp->tm_wday" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7;" (assignment_expression "uVar11 = (((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7" identifier = (binary_expression "(((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday) / 7" (parenthesized_expression "(((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday)" ( (binary_expression "((iVar22 / 7) * 7 - iVar22) + 7 + tp->tm_yday" (binary_expression "((iVar22 / 7) * 7 - iVar22) + 7" (parenthesized_expression "((iVar22 / 7) * 7 - iVar22)" ( (binary_expression "(iVar22 / 7) * 7 - iVar22" (binary_expression "(iVar22 / 7) * 7" (parenthesized_expression "(iVar22 / 7)" ( (binary_expression "iVar22 / 7" identifier / number_literal) )) * number_literal) - identifier) )) + number_literal) + (field_expression "tp->tm_yday" identifier -> field_identifier)) )) / number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'X':\n        if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'X'" ' character ') : (if_statement "if (cVar16 != 'O') {\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'O')" ( (binary_expression "cVar16 != 'O'" identifier != (char_literal "'O'" ' character ')) )) (compound_statement "{\n          cVar4 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "cVar4 = 'X';" (assignment_expression "cVar4 = 'X'" identifier = (char_literal "'X'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'Y':\n        if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = tp->tm_year < -0x76c;\n        uVar11 = tp->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;" case (char_literal "'Y'" ' character ') : (if_statement "if (cVar16 == 'E') {\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" if (parenthesized_expression "(cVar16 == 'E')" ( (binary_expression "cVar16 == 'E'" identifier == (char_literal "'E'" ' character ')) )) (compound_statement "{\n          cVar4 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" { (expression_statement "cVar4 = 'Y';" (assignment_expression "cVar4 = 'Y'" identifier = (char_literal "'Y'" ' character ')) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;) })) (if_statement "if (cVar16 == 'O') break;" if (parenthesized_expression "(cVar16 == 'O')" ( (binary_expression "cVar16 == 'O'" identifier == (char_literal "'O'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "bVar28 = tp->tm_year < -0x76c;" (assignment_expression "bVar28 = tp->tm_year < -0x76c" identifier = (binary_expression "tp->tm_year < -0x76c" (field_expression "tp->tm_year" identifier -> field_identifier) < number_literal)) ;) (expression_statement "uVar11 = tp->tm_year + 0x76c;" (assignment_expression "uVar11 = tp->tm_year + 0x76c" identifier = (binary_expression "tp->tm_year + 0x76c" (field_expression "tp->tm_year" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 4;" (assignment_expression "iVar22 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_00136a29;" goto statement_identifier ;)) (case_statement "case 'Z':\n        if (bVar28) {\n          upcase_00 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar9 = (ulong)iVar14;\n        uVar10 = uVar9;\n        if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }\n        if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;" case (char_literal "'Z'" ' character ') : (if_statement "if (bVar28) {\n          upcase_00 = '\0';\n        }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n          upcase_00 = '\0';\n        }" { (expression_statement "upcase_00 = '\0';" (assignment_expression "upcase_00 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "uVar15 = 0xffffffffffffffff;" (assignment_expression "uVar15 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar17 = src;" (assignment_expression "pcVar17 = src" identifier = identifier) ;) (do_statement "do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar4 != '\0');" do (compound_statement "{\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar4 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        }" { (if_statement "if (uVar15 == 0) break;" if (parenthesized_expression "(uVar15 == 0)" ( (binary_expression "uVar15 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar15 = uVar15 - 1;" (assignment_expression "uVar15 = uVar15 - 1" identifier = (binary_expression "uVar15 - 1" identifier - number_literal)) ;) (expression_statement "cVar4 = *pcVar17;" (assignment_expression "cVar4 = *pcVar17" identifier = (pointer_expression "*pcVar17" * identifier)) ;) (expression_statement "pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;" (assignment_expression "pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1" identifier = (binary_expression "pcVar17 + (ulong)bVar29 * -2 + 1" (binary_expression "pcVar17 + (ulong)bVar29 * -2" identifier + (binary_expression "(ulong)bVar29 * -2" (cast_expression "(ulong)bVar29" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar15 = ~uVar15 - 1;" (assignment_expression "uVar15 = ~uVar15 - 1" identifier = (binary_expression "~uVar15 - 1" (unary_expression "~uVar15" ~ identifier) - number_literal)) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar9 = (ulong)iVar14;" (assignment_expression "uVar9 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar10 = uVar9;" (assignment_expression "uVar10 = uVar9" identifier = identifier) ;) (if_statement "if (uVar9 <= uVar15) {\n          uVar10 = uVar15;\n        }" if (parenthesized_expression "(uVar9 <= uVar15)" ( (binary_expression "uVar9 <= uVar15" identifier <= identifier) )) (compound_statement "{\n          uVar10 = uVar15;\n        }" { (expression_statement "uVar10 = uVar15;" (assignment_expression "uVar10 = uVar15" identifier = identifier) ;) })) (if_statement "if (uVar10 < maxsize - sVar24) {\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "(uVar10 < maxsize - sVar24)" ( (binary_expression "uVar10 < maxsize - sVar24" identifier < (binary_expression "maxsize - sVar24" identifier - identifier)) )) (compound_statement "{\n          if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }\n          sVar24 = sVar24 + uVar10;\n          goto LAB_001359f4;\n        }" { (if_statement "if (s != (char *)0x0) {\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }\n            if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }\n            s = s + uVar15;\n          }" { (if_statement "if (uVar15 < uVar9) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }" if (parenthesized_expression "(uVar15 < uVar9)" ( (binary_expression "uVar15 < uVar9" identifier < identifier) )) (compound_statement "{\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }\n            }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar3 == '0') {\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }\n              else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }" if (parenthesized_expression "(cVar3 == '0')" ( (binary_expression "cVar3 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                memset(s,0x30,sVar27);\n                s = s + sVar27;\n              }" { (expression_statement "memset(s,0x30,sVar27);" (call_expression "memset(s,0x30,sVar27)" identifier (argument_list "(s,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }" else (compound_statement "{\n                memset(s,0x20,sVar27);\n                s = s + sVar27;\n              }" { (expression_statement "memset(s,0x20,sVar27);" (call_expression "memset(s,0x20,sVar27)" identifier (argument_list "(s,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if (bVar28) {\n              memcpy_lowcase(s,src,uVar15);\n            }\n            else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n              memcpy_lowcase(s,src,uVar15);\n            }" { (expression_statement "memcpy_lowcase(s,src,uVar15);" (call_expression "memcpy_lowcase(s,src,uVar15)" identifier (argument_list "(s,src,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }" else (if_statement "if (upcase_00 == '\0') {\n              memcpy(s,src,uVar15);\n            }\n            else {\n              memcpy_uppcase(s,src,uVar15);\n            }" if (parenthesized_expression "(upcase_00 == '\0')" ( (binary_expression "upcase_00 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              memcpy(s,src,uVar15);\n            }" { (expression_statement "memcpy(s,src,uVar15);" (call_expression "memcpy(s,src,uVar15)" identifier (argument_list "(s,src,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n              memcpy_uppcase(s,src,uVar15);\n            }" else (compound_statement "{\n              memcpy_uppcase(s,src,uVar15);\n            }" { (expression_statement "memcpy_uppcase(s,src,uVar15);" (call_expression "memcpy_uppcase(s,src,uVar15)" identifier (argument_list "(s,src,uVar15)" ( identifier , identifier , identifier ))) ;) }))))) (expression_statement "s = s + uVar15;" (assignment_expression "s = s + uVar15" identifier = (binary_expression "s + uVar15" identifier + identifier)) ;) })) (expression_statement "sVar24 = sVar24 + uVar10;" (assignment_expression "sVar24 = sVar24 + uVar10" identifier = (binary_expression "sVar24 + uVar10" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (case_statement "case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;" case (char_literal "'a'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }\n          cVar4 = 'a';\n          goto LAB_00135bf1;\n        }" { (if_statement "if (bVar28 != false) {\n            upcase_00 = bVar28;\n          }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n            upcase_00 = bVar28;\n          }" { (expression_statement "upcase_00 = bVar28;" (assignment_expression "upcase_00 = bVar28" identifier = identifier) ;) })) (expression_statement "cVar4 = 'a';" (assignment_expression "cVar4 = 'a'" identifier = (char_literal "'a'" ' character ')) ;) (goto_statement "goto LAB_00135bf1;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'b':" case (char_literal "'b'" ' character ') :) (case_statement "case 'h':\n        if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        format = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;" case (char_literal "'h'" ' character ') : (if_statement "if (bVar28 != false) {\n          upcase_00 = bVar28;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          upcase_00 = bVar28;\n        }" { (expression_statement "upcase_00 = bVar28;" (assignment_expression "upcase_00 = bVar28" identifier = identifier) ;) })) (if_statement "if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (labeled_statement "LAB_00136cd6:\n        if (*local_4b8 != '%') break;" statement_identifier : (if_statement "if (*local_4b8 != '%') break;" if (parenthesized_expression "(*local_4b8 != '%')" ( (binary_expression "*local_4b8 != '%'" (pointer_expression "*local_4b8" * identifier) != (char_literal "'%'" ' character ')) )) (break_statement "break;" break ;))) (expression_statement "iVar14 = 1;" (assignment_expression "iVar14 = 1" identifier = number_literal) ;) (expression_statement "format = local_4b8;" (assignment_expression "format = local_4b8" identifier = identifier) ;) (expression_statement "pcVar17 = local_4b8;" (assignment_expression "pcVar17 = local_4b8" identifier = identifier) ;) (goto_statement "goto LAB_00136d21;" goto statement_identifier ;)) (case_statement "case 'c':\n        if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'c'" ' character ') : (if_statement "if (cVar16 != 'O') {\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'O')" ( (binary_expression "cVar16 != 'O'" identifier != (char_literal "'O'" ' character ')) )) (compound_statement "{\n          cVar4 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "cVar4 = 'c';" (assignment_expression "cVar4 = 'c'" identifier = (char_literal "'c'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'd':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'d'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar11 = tp->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar11 = tp->tm_mday;" (assignment_expression "uVar11 = tp->tm_mday" identifier = (field_expression "tp->tm_mday" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'e':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'e'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar11 = tp->tm_mday;\nLAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar11 = tp->tm_mday;" (assignment_expression "uVar11 = tp->tm_mday" identifier = (field_expression "tp->tm_mday" identifier -> field_identifier)) ;) (labeled_statement "LAB_00135ea8:\n          if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }" statement_identifier : (if_statement "if ((cVar3 == '0') || (cVar3 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }" if (parenthesized_expression "((cVar3 == '0') || (cVar3 == '-'))" ( (binary_expression "(cVar3 == '0') || (cVar3 == '-')" (parenthesized_expression "(cVar3 == '0')" ( (binary_expression "cVar3 == '0'" identifier == (char_literal "'0'" ' character ')) )) || (parenthesized_expression "(cVar3 == '-')" ( (binary_expression "cVar3 == '-'" identifier == (char_literal "'-'" ' character ')) ))) )) (compound_statement "{\n            iVar22 = 2;\n          }" { (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }) (else_clause "else {\n            cVar3 = '_';\n            iVar22 = 2;\n          }" else (compound_statement "{\n            cVar3 = '_';\n            iVar22 = 2;\n          }" { (expression_statement "cVar3 = '_';" (assignment_expression "cVar3 = '_'" identifier = (char_literal "'_'" ' character ')) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) })))) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;" case (char_literal "'j'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          bVar28 = tp->tm_yday < -1;\n          uVar11 = tp->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }" { (expression_statement "bVar28 = tp->tm_yday < -1;" (assignment_expression "bVar28 = tp->tm_yday < -1" identifier = (binary_expression "tp->tm_yday < -1" (field_expression "tp->tm_yday" identifier -> field_identifier) < number_literal)) ;) (expression_statement "uVar11 = tp->tm_yday + 1;" (assignment_expression "uVar11 = tp->tm_yday + 1" identifier = (binary_expression "tp->tm_yday + 1" (field_expression "tp->tm_yday" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 3;" (assignment_expression "iVar22 = 3" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'k':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;" case (char_literal "'k'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar11 = tp->tm_hour;\n          goto LAB_00135ea8;\n        }" { (expression_statement "uVar11 = tp->tm_hour;" (assignment_expression "uVar11 = tp->tm_hour" identifier = (field_expression "tp->tm_hour" identifier -> field_identifier)) ;) (goto_statement "goto LAB_00135ea8;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;" case (char_literal "'l'" ' character ') : (if_statement "if (cVar16 != 'E') goto LAB_00135ea8;" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (goto_statement "goto LAB_00135ea8;" goto statement_identifier ;)) (break_statement "break;" break ;)) (case_statement "case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;" case (char_literal "'m'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          bVar28 = tp->tm_mon < -1;\n          uVar11 = tp->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" { (expression_statement "bVar28 = tp->tm_mon < -1;" (assignment_expression "bVar28 = tp->tm_mon < -1" identifier = (binary_expression "tp->tm_mon < -1" (field_expression "tp->tm_mon" identifier -> field_identifier) < number_literal)) ;) (expression_statement "uVar11 = tp->tm_mon + 1;" (assignment_expression "uVar11 = tp->tm_mon + 1" identifier = (binary_expression "tp->tm_mon + 1" (field_expression "tp->tm_mon" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;" case (char_literal "'n'" ' character ') : (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar15 = uVar10;\n        }" { (expression_statement "uVar15 = uVar10;" (assignment_expression "uVar15 = uVar10" identifier = identifier) ;) })) (if_statement "if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "(maxsize - sVar24 <= uVar15)" ( (binary_expression "maxsize - sVar24 <= uVar15" (binary_expression "maxsize - sVar24" identifier - identifier) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\n';\n          s = s + 1;\n        }" { (if_statement "if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }" if (parenthesized_expression "(1 < uVar10)" ( (binary_expression "1 < uVar10" number_literal < identifier) )) (compound_statement "{\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }" if (parenthesized_expression "(cVar3 == '0')" ( (binary_expression "cVar3 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }" { (expression_statement "memset(s,0x30,sVar27);" (call_expression "memset(s,0x30,sVar27)" identifier (argument_list "(s,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }" else (compound_statement "{\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }" { (expression_statement "memset(s,0x20,sVar27);" (call_expression "memset(s,0x20,sVar27)" identifier (argument_list "(s,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*s = '\n';" (assignment_expression "*s = '\n'" (pointer_expression "*s" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) })) (expression_statement "sVar24 = sVar24 + uVar15;" (assignment_expression "sVar24 = sVar24 + uVar15" identifier = (binary_expression "sVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;)) (case_statement "case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar4 = 'p';\n        if (bVar28 != false) {\n          upcase_00 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = ufmt + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;" case (char_literal "'p'" ' character ') : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (labeled_statement "LAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }" statement_identifier : (if_statement "if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          local_4b8._0_1_ = bVar28;\n        }" { (expression_statement "local_4b8._0_1_ = bVar28;" (assignment_expression "local_4b8._0_1_ = bVar28" (field_expression "local_4b8._0_1_" identifier . field_identifier) = identifier) ;) }))) (expression_statement "cVar4 = 'p';" (assignment_expression "cVar4 = 'p'" identifier = (char_literal "'p'" ' character ')) ;) (if_statement "if (bVar28 != false) {\n          upcase_00 = '\0';\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          upcase_00 = '\0';\n        }" { (expression_statement "upcase_00 = '\0';" (assignment_expression "upcase_00 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) })) (labeled_statement "LAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" statement_identifier : (if_statement "if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" if (parenthesized_expression "(cVar16 != '\0')" ( (binary_expression "cVar16 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" { (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135f06;" goto statement_identifier ;) }))) (expression_statement "pcVar17 = ufmt + 2;" (assignment_expression "pcVar17 = ufmt + 2" identifier = (binary_expression "ufmt + 2" identifier + number_literal)) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135f1c;" goto statement_identifier ;)) (case_statement "case 'q':\n        cVar4 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar11 = (tp->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;" case (char_literal "'q'" ' character ') : (expression_statement "cVar4 = 'q';" (assignment_expression "cVar4 = 'q'" identifier = (char_literal "'q'" ' character ')) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (if_statement "if (cVar16 == 'O') goto LAB_00135ef1;" if (parenthesized_expression "(cVar16 == 'O')" ( (binary_expression "cVar16 == 'O'" identifier == (char_literal "'O'" ' character ')) )) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;)) (expression_statement "uVar11 = (tp->tm_mon * 0xb >> 5) + 1;" (assignment_expression "uVar11 = (tp->tm_mon * 0xb >> 5) + 1" identifier = (binary_expression "(tp->tm_mon * 0xb >> 5) + 1" (parenthesized_expression "(tp->tm_mon * 0xb >> 5)" ( (binary_expression "tp->tm_mon * 0xb >> 5" (binary_expression "tp->tm_mon * 0xb" (field_expression "tp->tm_mon" identifier -> field_identifier) * number_literal) >> number_literal) )) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" identifier = false) ;) (goto_statement "goto LAB_00136a33;" goto statement_identifier ;)) (case_statement "case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;" case (char_literal "'r'" ' character ') : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;)) (case_statement "case 's':\n        ltm.tm_sec = tp->tm_sec;\n        ltm.tm_min = tp->tm_min;\n        ltm.tm_hour = tp->tm_hour;\n        ltm.tm_mday = tp->tm_mday;\n        ltm.tm_mon = tp->tm_mon;\n        ltm.tm_year = tp->tm_year;\n        ltm.tm_wday = tp->tm_wday;\n        ltm.tm_yday = tp->tm_yday;\n        ltm.tm_isdst = tp->tm_isdst;\n        ltm._36_4_ = *(undefined4 *)&tp->field_0x24;\n        ltm.tm_gmtoff = tp->tm_gmtoff;\n        ltm.tm_zone = tp->tm_zone;\n        tVar8 = mktime_z(tz,&ltm);\n        pcVar17 = local_431;\n        tVar12 = tVar8;\n        do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;" case (char_literal "'s'" ' character ') : (expression_statement "ltm.tm_sec = tp->tm_sec;" (assignment_expression "ltm.tm_sec = tp->tm_sec" (field_expression "ltm.tm_sec" identifier . field_identifier) = (field_expression "tp->tm_sec" identifier -> field_identifier)) ;) (expression_statement "ltm.tm_min = tp->tm_min;" (assignment_expression "ltm.tm_min = tp->tm_min" (field_expression "ltm.tm_min" identifier . field_identifier) = (field_expression "tp->tm_min" identifier -> field_identifier)) ;) (expression_statement "ltm.tm_hour = tp->tm_hour;" (assignment_expression "ltm.tm_hour = tp->tm_hour" (field_expression "ltm.tm_hour" identifier . field_identifier) = (field_expression "tp->tm_hour" identifier -> field_identifier)) ;) (expression_statement "ltm.tm_mday = tp->tm_mday;" (assignment_expression "ltm.tm_mday = tp->tm_mday" (field_expression "ltm.tm_mday" identifier . field_identifier) = (field_expression "tp->tm_mday" identifier -> field_identifier)) ;) (expression_statement "ltm.tm_mon = tp->tm_mon;" (assignment_expression "ltm.tm_mon = tp->tm_mon" (field_expression "ltm.tm_mon" identifier . field_identifier) = (field_expression "tp->tm_mon" identifier -> field_identifier)) ;) (expression_statement "ltm.tm_year = tp->tm_year;" (assignment_expression "ltm.tm_year = tp->tm_year" (field_expression "ltm.tm_year" identifier . field_identifier) = (field_expression "tp->tm_year" identifier -> field_identifier)) ;) (expression_statement "ltm.tm_wday = tp->tm_wday;" (assignment_expression "ltm.tm_wday = tp->tm_wday" (field_expression "ltm.tm_wday" identifier . field_identifier) = (field_expression "tp->tm_wday" identifier -> field_identifier)) ;) (expression_statement "ltm.tm_yday = tp->tm_yday;" (assignment_expression "ltm.tm_yday = tp->tm_yday" (field_expression "ltm.tm_yday" identifier . field_identifier) = (field_expression "tp->tm_yday" identifier -> field_identifier)) ;) (expression_statement "ltm.tm_isdst = tp->tm_isdst;" (assignment_expression "ltm.tm_isdst = tp->tm_isdst" (field_expression "ltm.tm_isdst" identifier . field_identifier) = (field_expression "tp->tm_isdst" identifier -> field_identifier)) ;) (expression_statement "ltm._36_4_ = *(undefined4 *)&tp->field_0x24;" (assignment_expression "ltm._36_4_ = *(undefined4 *)&tp->field_0x24" (field_expression "ltm._36_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)&tp->field_0x24" * (cast_expression "(undefined4 *)&tp->field_0x24" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&tp->field_0x24" & (field_expression "tp->field_0x24" identifier -> field_identifier))))) ;) (expression_statement "ltm.tm_gmtoff = tp->tm_gmtoff;" (assignment_expression "ltm.tm_gmtoff = tp->tm_gmtoff" (field_expression "ltm.tm_gmtoff" identifier . field_identifier) = (field_expression "tp->tm_gmtoff" identifier -> field_identifier)) ;) (expression_statement "ltm.tm_zone = tp->tm_zone;" (assignment_expression "ltm.tm_zone = tp->tm_zone" (field_expression "ltm.tm_zone" identifier . field_identifier) = (field_expression "tp->tm_zone" identifier -> field_identifier)) ;) (expression_statement "tVar8 = mktime_z(tz,&ltm);" (assignment_expression "tVar8 = mktime_z(tz,&ltm)" identifier = (call_expression "mktime_z(tz,&ltm)" identifier (argument_list "(tz,&ltm)" ( identifier , (pointer_expression "&ltm" & identifier) )))) ;) (expression_statement "pcVar17 = local_431;" (assignment_expression "pcVar17 = local_431" identifier = identifier) ;) (expression_statement "tVar12 = tVar8;" (assignment_expression "tVar12 = tVar8" identifier = identifier) ;) (do_statement "do {\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        } while (lVar23 != 0);" do (compound_statement "{\n          lVar23 = tVar12 / 10;\n          cVar4 = (char)tVar12 + (char)lVar23 * -10;\n          if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar4 + '0';\n          tVar12 = lVar23;\n        }" { (expression_statement "lVar23 = tVar12 / 10;" (assignment_expression "lVar23 = tVar12 / 10" identifier = (binary_expression "tVar12 / 10" identifier / number_literal)) ;) (expression_statement "cVar4 = (char)tVar12 + (char)lVar23 * -10;" (assignment_expression "cVar4 = (char)tVar12 + (char)lVar23 * -10" identifier = (binary_expression "(char)tVar12 + (char)lVar23 * -10" (cast_expression "(char)tVar12" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)lVar23 * -10" (cast_expression "(char)lVar23" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal))) ;) (if_statement "if (tVar8 < 0) {\n            cVar4 = -cVar4;\n          }" if (parenthesized_expression "(tVar8 < 0)" ( (binary_expression "tVar8 < 0" identifier < number_literal) )) (compound_statement "{\n            cVar4 = -cVar4;\n          }" { (expression_statement "cVar4 = -cVar4;" (assignment_expression "cVar4 = -cVar4" identifier = (unary_expression "-cVar4" - identifier)) ;) })) (expression_statement "pcVar17 = pcVar17 + -1;" (assignment_expression "pcVar17 = pcVar17 + -1" identifier = (binary_expression "pcVar17 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar17 = cVar4 + '0';" (assignment_expression "*pcVar17 = cVar4 + '0'" (pointer_expression "*pcVar17" * identifier) = (binary_expression "cVar4 + '0'" identifier + (char_literal "'0'" ' character '))) ;) (expression_statement "tVar12 = lVar23;" (assignment_expression "tVar12 = lVar23" identifier = identifier) ;) }) while (parenthesized_expression "(lVar23 != 0)" ( (binary_expression "lVar23 != 0" identifier != number_literal) )) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (if_statement "if (0 < iVar26) {\n          iVar22 = iVar26;\n        }" if (parenthesized_expression "(0 < iVar26)" ( (binary_expression "0 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar22 = iVar26;\n        }" { (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" identifier = identifier) ;) })) (if_statement "if (tVar8 < 0) {\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }" if (parenthesized_expression "(tVar8 < 0)" ( (binary_expression "tVar8 < 0" identifier < number_literal) )) (compound_statement "{\n          cVar4 = '-';\n          goto LAB_00136e58;\n        }" { (expression_statement "cVar4 = '-';" (assignment_expression "cVar4 = '-'" identifier = (char_literal "'-'" ' character ')) ;) (goto_statement "goto LAB_00136e58;" goto statement_identifier ;) })) (goto_statement "goto LAB_0013605d;" goto statement_identifier ;)) (case_statement "case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }\n        if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n        if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }\n        sVar24 = sVar24 + uVar15;\n        goto LAB_001359f4;" case (char_literal "'t'" ' character ') : (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar10 != 0) {\n          uVar15 = uVar10;\n        }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar15 = uVar10;\n        }" { (expression_statement "uVar15 = uVar10;" (assignment_expression "uVar15 = uVar10" identifier = identifier) ;) })) (if_statement "if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "(maxsize - sVar24 <= uVar15)" ( (binary_expression "maxsize - sVar24 <= uVar15" (binary_expression "maxsize - sVar24" identifier - identifier) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (s != (char *)0x0) {\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }\n          *s = '\t';\n          s = s + 1;\n        }" { (if_statement "if (1 < uVar10) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }" if (parenthesized_expression "(1 < uVar10)" ( (binary_expression "1 < uVar10" number_literal < identifier) )) (compound_statement "{\n            sVar27 = (long)iVar26 - 1;\n            if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }\n          }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar3 == '0') {\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }\n            else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }" if (parenthesized_expression "(cVar3 == '0')" ( (binary_expression "cVar3 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n              memset(s,0x30,sVar27);\n              s = s + sVar27;\n            }" { (expression_statement "memset(s,0x30,sVar27);" (call_expression "memset(s,0x30,sVar27)" identifier (argument_list "(s,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }" else (compound_statement "{\n              memset(s,0x20,sVar27);\n              s = s + sVar27;\n            }" { (expression_statement "memset(s,0x20,sVar27);" (call_expression "memset(s,0x20,sVar27)" identifier (argument_list "(s,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*s = '\t';" (assignment_expression "*s = '\t'" (pointer_expression "*s" * identifier) = (char_literal "'\t'" ' escape_sequence ')) ;) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) })) (expression_statement "sVar24 = sVar24 + uVar15;" (assignment_expression "sVar24 = sVar24 + uVar15" identifier = (binary_expression "sVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;)) (case_statement "case 'u':\n        uVar11 = (tp->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;" case (char_literal "'u'" ' character ') : (expression_statement "uVar11 = (tp->tm_wday + 6) % 7 + 1;" (assignment_expression "uVar11 = (tp->tm_wday + 6) % 7 + 1" identifier = (binary_expression "(tp->tm_wday + 6) % 7 + 1" (binary_expression "(tp->tm_wday + 6) % 7" (parenthesized_expression "(tp->tm_wday + 6)" ( (binary_expression "tp->tm_wday + 6" (field_expression "tp->tm_wday" identifier -> field_identifier) + number_literal) )) % number_literal) + number_literal)) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;)) (case_statement "case 'w':\n        if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'w'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar11 = tp->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar11 = tp->tm_wday;" (assignment_expression "uVar11 = tp->tm_wday" identifier = (field_expression "tp->tm_wday" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'x':\n        if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'x'" ' character ') : (if_statement "if (cVar16 != 'O') {\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'O')" ( (binary_expression "cVar16 != 'O'" identifier != (char_literal "'O'" ' character ')) )) (compound_statement "{\n          cVar4 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "cVar4 = 'x';" (assignment_expression "cVar4 = 'x'" identifier = (char_literal "'x'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'y':\n        if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar11 = tp->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar4 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar4 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;" case (char_literal "'y'" ' character ') : (if_statement "if (cVar16 == 'E') {\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" if (parenthesized_expression "(cVar16 == 'E')" ( (binary_expression "cVar16 == 'E'" identifier == (char_literal "'E'" ' character ')) )) (compound_statement "{\n          cVar4 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" { (expression_statement "cVar4 = 'y';" (assignment_expression "cVar4 = 'y'" identifier = (char_literal "'y'" ' character ')) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;) })) (expression_statement "uVar11 = tp->tm_year % 100;" (assignment_expression "uVar11 = tp->tm_year % 100" identifier = (binary_expression "tp->tm_year % 100" (field_expression "tp->tm_year" identifier -> field_identifier) % number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (if_statement "if ((int)uVar11 < 0) {\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }" if (parenthesized_expression "((int)uVar11 < 0)" ( (binary_expression "(int)uVar11 < 0" (cast_expression "(int)uVar11" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }\n        }" { (if_statement "if (tp->tm_year < -0x76c) {\n            uVar11 = -uVar11;\n          }\n          else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }" if (parenthesized_expression "(tp->tm_year < -0x76c)" ( (binary_expression "tp->tm_year < -0x76c" (field_expression "tp->tm_year" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n            uVar11 = -uVar11;\n          }" { (expression_statement "uVar11 = -uVar11;" (assignment_expression "uVar11 = -uVar11" identifier = (unary_expression "-uVar11" - identifier)) ;) }) (else_clause "else {\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }" else (compound_statement "{\n            uVar11 = uVar11 + 100;\n            iVar22 = 2;\n          }" { (expression_statement "uVar11 = uVar11 + 100;" (assignment_expression "uVar11 = uVar11 + 100" identifier = (binary_expression "uVar11 + 100" identifier + number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }))) })) (labeled_statement "LAB_00135ecc:\n        bVar28 = SUB41(uVar11 >> 0x1f,0);" statement_identifier : (expression_statement "bVar28 = SUB41(uVar11 >> 0x1f,0);" (assignment_expression "bVar28 = SUB41(uVar11 >> 0x1f,0)" identifier = (call_expression "SUB41(uVar11 >> 0x1f,0)" identifier (argument_list "(uVar11 >> 0x1f,0)" ( (binary_expression "uVar11 >> 0x1f" identifier >> number_literal) , number_literal )))) ;)) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (labeled_statement "LAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }" statement_identifier : (if_statement "if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "((cVar16 == 'O') && (bVar28 == false))" ( (binary_expression "(cVar16 == 'O') && (bVar28 == false)" (parenthesized_expression "(cVar16 == 'O')" ( (binary_expression "cVar16 == 'O'" identifier == (char_literal "'O'" ' character ')) )) && (parenthesized_expression "(bVar28 == false)" ( (binary_expression "bVar28 == false" identifier == false) ))) )) (compound_statement "{\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = ufmt + 3;\n          ufmt[2] = cVar16;\nLAB_00135f1c:\n          ufmt[1] = '%';\n          ufmt[0] = ' ';\n          *pcVar17 = cVar4;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }\n          goto LAB_001359f4;\n        }" { (labeled_statement "LAB_00135ef1:\n          local_4b8._0_1_ = false;" statement_identifier : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;)) (labeled_statement "LAB_00135f06:\n          pcVar17 = ufmt + 3;" statement_identifier : (expression_statement "pcVar17 = ufmt + 3;" (assignment_expression "pcVar17 = ufmt + 3" identifier = (binary_expression "ufmt + 3" identifier + number_literal)) ;)) (expression_statement "ufmt[2] = cVar16;" (assignment_expression "ufmt[2] = cVar16" (subscript_expression "ufmt[2]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_00135f1c:\n          ufmt[1] = '%';" statement_identifier : (expression_statement "ufmt[1] = '%';" (assignment_expression "ufmt[1] = '%'" (subscript_expression "ufmt[1]" identifier [ number_literal ]) = (char_literal "'%'" ' character ')) ;)) (expression_statement "ufmt[0] = ' ';" (assignment_expression "ufmt[0] = ' '" (subscript_expression "ufmt[0]" identifier [ number_literal ]) = (char_literal "' '" ' character ')) ;) (expression_statement "*pcVar17 = cVar4;" (assignment_expression "*pcVar17 = cVar4" (pointer_expression "*pcVar17" * identifier) = identifier) ;) (expression_statement "pcVar17[1] = '\0';" (assignment_expression "pcVar17[1] = '\0'" (subscript_expression "pcVar17[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "sVar27 = strftime(buf,0x400,ufmt,(tm *)tp);" (assignment_expression "sVar27 = strftime(buf,0x400,ufmt,(tm *)tp)" identifier = (call_expression "strftime(buf,0x400,ufmt,(tm *)tp)" identifier (argument_list "(buf,0x400,ufmt,(tm *)tp)" ( identifier , number_literal , identifier , (cast_expression "(tm *)tp" ( (type_descriptor "tm *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }" if (parenthesized_expression "(sVar27 != 0)" ( (binary_expression "sVar27 != 0" identifier != number_literal) )) (compound_statement "{\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar9 = (ulong)iVar14;\n            uVar10 = uVar9;\n            if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }\n            if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n          }" { (expression_statement "uVar15 = sVar27 - 1;" (assignment_expression "uVar15 = sVar27 - 1" identifier = (binary_expression "sVar27 - 1" identifier - number_literal)) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar14 = iVar26;\n            }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar9 = (ulong)iVar14;" (assignment_expression "uVar9 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar10 = uVar9;" (assignment_expression "uVar10 = uVar9" identifier = identifier) ;) (if_statement "if (uVar9 <= uVar15) {\n              uVar10 = uVar15;\n            }" if (parenthesized_expression "(uVar9 <= uVar15)" ( (binary_expression "uVar9 <= uVar15" identifier <= identifier) )) (compound_statement "{\n              uVar10 = uVar15;\n            }" { (expression_statement "uVar10 = uVar15;" (assignment_expression "uVar10 = uVar15" identifier = identifier) ;) })) (if_statement "if (maxsize - sVar24 <= uVar10) goto LAB_00136dd9;" if (parenthesized_expression "(maxsize - sVar24 <= uVar10)" ( (binary_expression "maxsize - sVar24 <= uVar10" (binary_expression "maxsize - sVar24" identifier - identifier) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }\n              s = s + uVar15;\n            }" { (if_statement "if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }" if (parenthesized_expression "((iVar22 == 0) && (uVar15 < uVar9))" ( (binary_expression "(iVar22 == 0) && (uVar15 < uVar9)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar15 < uVar9)" ( (binary_expression "uVar15 < uVar9" identifier < identifier) ))) )) (compound_statement "{\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }" if (parenthesized_expression "(cVar3 == '0')" ( (binary_expression "cVar3 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }" { (expression_statement "memset(s,0x30,sVar27);" (call_expression "memset(s,0x30,sVar27)" identifier (argument_list "(s,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }" else (compound_statement "{\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }" { (expression_statement "memset(s,0x20,sVar27);" (call_expression "memset(s,0x20,sVar27)" identifier (argument_list "(s,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if (local_4b8._0_1_ == false) {\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }\n              else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }" if (parenthesized_expression "(local_4b8._0_1_ == false)" ( (binary_expression "local_4b8._0_1_ == false" (field_expression "local_4b8._0_1_" identifier . field_identifier) == false) )) (compound_statement "{\n                if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }\n              }" { (if_statement "if (upcase_00 == '\0') {\n                  memcpy(s,buf + 1,uVar15);\n                }\n                else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }" if (parenthesized_expression "(upcase_00 == '\0')" ( (binary_expression "upcase_00 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                  memcpy(s,buf + 1,uVar15);\n                }" { (expression_statement "memcpy(s,buf + 1,uVar15);" (call_expression "memcpy(s,buf + 1,uVar15)" identifier (argument_list "(s,buf + 1,uVar15)" ( identifier , (binary_expression "buf + 1" identifier + number_literal) , identifier ))) ;) }) (else_clause "else {\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }" else (compound_statement "{\n                  memcpy_uppcase(s,buf + 1,uVar15);\n                }" { (expression_statement "memcpy_uppcase(s,buf + 1,uVar15);" (call_expression "memcpy_uppcase(s,buf + 1,uVar15)" identifier (argument_list "(s,buf + 1,uVar15)" ( identifier , (binary_expression "buf + 1" identifier + number_literal) , identifier ))) ;) }))) }) (else_clause "else {\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }" else (compound_statement "{\n                memcpy_lowcase(s,buf + 1,uVar15);\n              }" { (expression_statement "memcpy_lowcase(s,buf + 1,uVar15);" (call_expression "memcpy_lowcase(s,buf + 1,uVar15)" identifier (argument_list "(s,buf + 1,uVar15)" ( identifier , (binary_expression "buf + 1" identifier + number_literal) , identifier ))) ;) }))) (expression_statement "s = s + uVar15;" (assignment_expression "s = s + uVar15" identifier = (binary_expression "s + uVar15" identifier + identifier)) ;) })) (expression_statement "sVar24 = sVar24 + uVar10;" (assignment_expression "sVar24 = sVar24 + uVar10" identifier = (binary_expression "sVar24 + uVar10" identifier + identifier)) ;) })) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) }))) (labeled_statement "LAB_00136a29:\n        if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }" statement_identifier : (if_statement "if (bVar28 != false) {\n          uVar11 = -uVar11;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          uVar11 = -uVar11;\n        }" { (expression_statement "uVar11 = -uVar11;" (assignment_expression "uVar11 = -uVar11" identifier = (unary_expression "-uVar11" - identifier)) ;) }))) (labeled_statement "LAB_00136a33:\n        pcVar17 = local_431;" statement_identifier : (expression_statement "pcVar17 = local_431;" (assignment_expression "pcVar17 = local_431" identifier = identifier) ;)) (do_statement "do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));" do (compound_statement "{\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar11 / 10;\n          pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar11;\n          uVar11 = uVar13;\n        }" { (expression_statement "pcVar20 = pcVar17;" (assignment_expression "pcVar20 = pcVar17" identifier = identifier) ;) (if_statement "if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }" if (parenthesized_expression "((uVar18 & 1) != 0)" ( (binary_expression "(uVar18 & 1) != 0" (parenthesized_expression "(uVar18 & 1)" ( (binary_expression "uVar18 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }" { (expression_statement "pcVar20 = pcVar17 + -1;" (assignment_expression "pcVar20 = pcVar17 + -1" identifier = (binary_expression "pcVar17 + -1" identifier + number_literal)) ;) (expression_statement "pcVar17[-1] = ':';" (assignment_expression "pcVar17[-1] = ':'" (subscript_expression "pcVar17[-1]" identifier [ number_literal ]) = (char_literal "':'" ' character ')) ;) })) (expression_statement "uVar18 = (int)uVar18 >> 1;" (assignment_expression "uVar18 = (int)uVar18 >> 1" identifier = (binary_expression "(int)uVar18 >> 1" (cast_expression "(int)uVar18" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "pcVar17 = pcVar20 + -1;" (assignment_expression "pcVar17 = pcVar20 + -1" identifier = (binary_expression "pcVar20 + -1" identifier + number_literal)) ;) (expression_statement "uVar13 = uVar11 / 10;" (assignment_expression "uVar13 = uVar11 / 10" identifier = (binary_expression "uVar11 / 10" identifier / number_literal)) ;) (expression_statement "pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0';" (assignment_expression "pcVar20[-1] = (char)uVar11 + (char)uVar13 * -10 + '0'" (subscript_expression "pcVar20[-1]" identifier [ number_literal ]) = (binary_expression "(char)uVar11 + (char)uVar13 * -10 + '0'" (binary_expression "(char)uVar11 + (char)uVar13 * -10" (cast_expression "(char)uVar11" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)uVar13 * -10" (cast_expression "(char)uVar13" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "bVar1 = 9 < uVar11;" (assignment_expression "bVar1 = 9 < uVar11" identifier = (binary_expression "9 < uVar11" number_literal < identifier)) ;) (expression_statement "uVar11 = uVar13;" (assignment_expression "uVar11 = uVar13" identifier = identifier) ;) }) while (parenthesized_expression "((bVar1) || (uVar18 != 0))" ( (binary_expression "(bVar1) || (uVar18 != 0)" (parenthesized_expression "(bVar1)" ( identifier )) || (parenthesized_expression "(uVar18 != 0)" ( (binary_expression "uVar18 != 0" identifier != number_literal) ))) )) ;) (if_statement "if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }" if (parenthesized_expression "(iVar22 < iVar26)" ( (binary_expression "iVar22 < iVar26" identifier < identifier) )) (compound_statement "{\n          iVar22 = iVar26;\n        }" { (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" identifier = identifier) ;) })) (if_statement "if (bVar28 != false) {\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          cVar4 = '-';\nLAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }" { (expression_statement "cVar4 = '-';" (assignment_expression "cVar4 = '-'" identifier = (char_literal "'-'" ' character ')) ;) (labeled_statement "LAB_00136e58:\n          if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" statement_identifier : (if_statement "if (cVar3 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" if (parenthesized_expression "(cVar3 == '-')" ( (binary_expression "cVar3 == '-'" identifier == (char_literal "'-'" ' character ')) )) (compound_statement "{\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar14 = iVar26;\n            }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar15 = uVar10;\n            }" { (expression_statement "uVar15 = uVar10;" (assignment_expression "uVar15 = uVar10" identifier = identifier) ;) })) (if_statement "if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }" if (parenthesized_expression "(uVar15 < maxsize - sVar24)" ( (binary_expression "uVar15 < maxsize - sVar24" identifier < (binary_expression "maxsize - sVar24" identifier - identifier)) )) (compound_statement "{\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }" { (if_statement "if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }" { (if_statement "if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar10))" ( (binary_expression "(iVar22 == 0) && (1 < uVar10)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar10)" ( (binary_expression "1 < uVar10" number_literal < identifier) ))) )) (compound_statement "{\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }" { (expression_statement "memset(s,0x20,(long)iVar26 - 1U);" (call_expression "memset(s,0x20,(long)iVar26 - 1U)" identifier (argument_list "(s,0x20,(long)iVar26 - 1U)" ( identifier , number_literal , (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) ))) ;) (expression_statement "s = s + ((long)iVar26 - 1U);" (assignment_expression "s = s + ((long)iVar26 - 1U)" identifier = (binary_expression "s + ((long)iVar26 - 1U)" identifier + (parenthesized_expression "((long)iVar26 - 1U)" ( (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) )))) ;) })) (expression_statement "*s = cVar4;" (assignment_expression "*s = cVar4" (pointer_expression "*s" * identifier) = identifier) ;) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) })) (expression_statement "sVar24 = sVar24 + uVar15;" (assignment_expression "sVar24 = sVar24 + uVar15" identifier = (binary_expression "sVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;) })) }) (else_clause "else {\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" else (compound_statement "{\n            bVar28 = cVar4 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" { (expression_statement "bVar28 = cVar4 != '\0';" (assignment_expression "bVar28 = cVar4 != '\0'" identifier = (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ;) (expression_statement "iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;" (assignment_expression "iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28" identifier = (binary_expression "(iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28" (parenthesized_expression "(iVar22 - (iVar14 - (int)pcVar17))" ( (binary_expression "iVar22 - (iVar14 - (int)pcVar17)" identifier - (parenthesized_expression "(iVar14 - (int)pcVar17)" ( (binary_expression "iVar14 - (int)pcVar17" identifier - (cast_expression "(int)pcVar17" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) - (cast_expression "(uint)bVar28" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (if_statement "if (0 < iVar14) goto LAB_00136e8a;" if (parenthesized_expression "(0 < iVar14)" ( (binary_expression "0 < iVar14" number_literal < identifier) )) (goto_statement "goto LAB_00136e8a;" goto statement_identifier ;)) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar14 = iVar26;\n            }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar15 = uVar10;\n            }" { (expression_statement "uVar15 = uVar10;" (assignment_expression "uVar15 = uVar10" identifier = identifier) ;) })) (if_statement "if (uVar15 < maxsize - sVar24) {\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }" if (parenthesized_expression "(uVar15 < maxsize - sVar24)" ( (binary_expression "uVar15 < maxsize - sVar24" identifier < (binary_expression "maxsize - sVar24" identifier - identifier)) )) (compound_statement "{\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n              goto LAB_00136f44;\n            }" { (if_statement "if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }\n                *s = cVar4;\n                s = s + 1;\n              }" { (if_statement "if ((iVar22 == 0) && (1 < uVar10)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar10))" ( (binary_expression "(iVar22 == 0) && (1 < uVar10)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar10)" ( (binary_expression "1 < uVar10" number_literal < identifier) ))) )) (compound_statement "{\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }\n                }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar3 == '0') {\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }\n                  else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }" if (parenthesized_expression "(cVar3 == '0')" ( (binary_expression "cVar3 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                    memset(s,0x30,sVar27);\n                    s = s + sVar27;\n                  }" { (expression_statement "memset(s,0x30,sVar27);" (call_expression "memset(s,0x30,sVar27)" identifier (argument_list "(s,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }" else (compound_statement "{\n                    memset(s,0x20,sVar27);\n                    s = s + sVar27;\n                  }" { (expression_statement "memset(s,0x20,sVar27);" (call_expression "memset(s,0x20,sVar27)" identifier (argument_list "(s,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*s = cVar4;" (assignment_expression "*s = cVar4" (pointer_expression "*s" * identifier) = identifier) ;) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) })) (expression_statement "sVar24 = sVar24 + uVar15;" (assignment_expression "sVar24 = sVar24 + uVar15" identifier = (binary_expression "sVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;) })) })))) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;) })) (expression_statement "cVar4 = '+';" (assignment_expression "cVar4 = '+'" identifier = (char_literal "'+'" ' character ')) ;) (if_statement "if (bVar2) goto LAB_00136e58;" if (parenthesized_expression "(bVar2)" ( identifier )) (goto_statement "goto LAB_00136e58;" goto statement_identifier ;)) (labeled_statement "LAB_0013605d:\n        if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;" statement_identifier : (if_statement "if ((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;" if (parenthesized_expression "((cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))" ( (binary_expression "(cVar3 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1)" (parenthesized_expression "(cVar3 == '-')" ( (binary_expression "cVar3 == '-'" identifier == (char_literal "'-'" ' character ')) )) || (parenthesized_expression "(iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1)" ( (comma_expression "iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1" (assignment_expression "iVar14 = iVar22 - (iVar14 - (int)pcVar17)" identifier = (binary_expression "iVar22 - (iVar14 - (int)pcVar17)" identifier - (parenthesized_expression "(iVar14 - (int)pcVar17)" ( (binary_expression "iVar14 - (int)pcVar17" identifier - (cast_expression "(int)pcVar17" ( (type_descriptor "int" primitive_type) ) identifier)) )))) , (binary_expression "iVar14 < 1" identifier < number_literal)) ))) )) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;))) (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" identifier = false) ;) (labeled_statement "LAB_00136e8a:\n        if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }" statement_identifier : (if_statement "if (cVar3 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }" if (parenthesized_expression "(cVar3 == '_')" ( (binary_expression "cVar3 == '_'" identifier == (char_literal "'_'" ' character ')) )) (compound_statement "{\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }" { (expression_statement "uVar15 = (ulong)iVar14;" (assignment_expression "uVar15 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (uVar15 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }" if (parenthesized_expression "(uVar15 < maxsize - sVar24)" ( (binary_expression "uVar15 < maxsize - sVar24" identifier < (binary_expression "maxsize - sVar24" identifier - identifier)) )) (compound_statement "{\n            if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar15;\n            iVar6 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar6;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }" { (if_statement "if (s != (char *)0x0) {\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              memset(s,0x20,uVar15);\n              s = s + uVar15;\n            }" { (expression_statement "memset(s,0x20,uVar15);" (call_expression "memset(s,0x20,uVar15)" identifier (argument_list "(s,0x20,uVar15)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + uVar15;" (assignment_expression "s = s + uVar15" identifier = (binary_expression "s + uVar15" identifier + identifier)) ;) })) (expression_statement "sVar24 = sVar24 + uVar15;" (assignment_expression "sVar24 = sVar24 + uVar15" identifier = (binary_expression "sVar24 + uVar15" identifier + identifier)) ;) (expression_statement "iVar6 = iVar26 - iVar14;" (assignment_expression "iVar6 = iVar26 - iVar14" identifier = (binary_expression "iVar26 - iVar14" identifier - identifier)) ;) (expression_statement "bVar2 = iVar14 < iVar26;" (assignment_expression "bVar2 = iVar14 < iVar26" identifier = (binary_expression "iVar14 < iVar26" identifier < identifier)) ;) (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" identifier = number_literal) ;) (if_statement "if (bVar2) {\n              iVar26 = iVar6;\n            }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n              iVar26 = iVar6;\n            }" { (expression_statement "iVar26 = iVar6;" (assignment_expression "iVar26 = iVar6" identifier = identifier) ;) })) (if_statement "if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar10 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }\n              if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n              if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }\n              sVar24 = sVar24 + uVar15;\n            }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n                iVar14 = iVar26;\n              }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar10 != 0) {\n                uVar15 = uVar10;\n              }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n                uVar15 = uVar10;\n              }" { (expression_statement "uVar15 = uVar10;" (assignment_expression "uVar15 = uVar10" identifier = identifier) ;) })) (if_statement "if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "(maxsize - sVar24 <= uVar15)" ( (binary_expression "maxsize - sVar24 <= uVar15" (binary_expression "maxsize - sVar24" identifier - identifier) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (s != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }\n                *s = cVar4;\n                s = s + 1;\n              }" { (if_statement "if ((iVar22 == 0) && (1 < uVar10)) {\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar10))" ( (binary_expression "(iVar22 == 0) && (1 < uVar10)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar10)" ( (binary_expression "1 < uVar10" number_literal < identifier) ))) )) (compound_statement "{\n                  memset(s,0x20,(long)iVar26 - 1U);\n                  s = s + ((long)iVar26 - 1U);\n                }" { (expression_statement "memset(s,0x20,(long)iVar26 - 1U);" (call_expression "memset(s,0x20,(long)iVar26 - 1U)" identifier (argument_list "(s,0x20,(long)iVar26 - 1U)" ( identifier , number_literal , (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) ))) ;) (expression_statement "s = s + ((long)iVar26 - 1U);" (assignment_expression "s = s + ((long)iVar26 - 1U)" identifier = (binary_expression "s + ((long)iVar26 - 1U)" identifier + (parenthesized_expression "((long)iVar26 - 1U)" ( (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) )))) ;) })) (expression_statement "*s = cVar4;" (assignment_expression "*s = cVar4" (pointer_expression "*s" * identifier) = identifier) ;) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) })) (expression_statement "sVar24 = sVar24 + uVar15;" (assignment_expression "sVar24 = sVar24 + uVar15" identifier = (binary_expression "sVar24 + uVar15" identifier + identifier)) ;) })) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;) })) }) (else_clause "else if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }" else (if_statement "if ((ulong)(long)iVar22 < maxsize - sVar24) {\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }" if (parenthesized_expression "((ulong)(long)iVar22 < maxsize - sVar24)" ( (binary_expression "(ulong)(long)iVar22 < maxsize - sVar24" (cast_expression "(ulong)(long)iVar22" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(long)iVar22" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) < (binary_expression "maxsize - sVar24" identifier - identifier)) )) (compound_statement "{\n          if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }\n          if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }\n          sVar24 = sVar24 + (long)iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar9 = (ulong)iVar14;\n          uVar10 = uVar9;\n          if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }\n          if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }\n        }" { (if_statement "if (bVar28) {\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n            iVar6 = 0;\n            if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }\n            uVar10 = (ulong)iVar6;\n            uVar15 = 1;\n            if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }\n            if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }\n            sVar24 = sVar24 + uVar15;\n          }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar6 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar6 = iVar26;\n            }" { (expression_statement "iVar6 = iVar26;" (assignment_expression "iVar6 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar6;" (assignment_expression "uVar10 = (ulong)iVar6" identifier = (cast_expression "(ulong)iVar6" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar10 != 0) {\n              uVar15 = uVar10;\n            }" if (parenthesized_expression "(uVar10 != 0)" ( (binary_expression "uVar10 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar15 = uVar10;\n            }" { (expression_statement "uVar15 = uVar10;" (assignment_expression "uVar15 = uVar10" identifier = identifier) ;) })) (if_statement "if (maxsize - sVar24 <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "(maxsize - sVar24 <= uVar15)" ( (binary_expression "maxsize - sVar24 <= uVar15" (binary_expression "maxsize - sVar24" identifier - identifier) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              *s = cVar4;\n              s = s + 1;\n            }" { (if_statement "if ((iVar22 == 0) && (1 < uVar10)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar10))" ( (binary_expression "(iVar22 == 0) && (1 < uVar10)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar10)" ( (binary_expression "1 < uVar10" number_literal < identifier) ))) )) (compound_statement "{\n                sVar27 = (long)iVar26 - 1;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }" if (parenthesized_expression "(cVar3 == '0')" ( (binary_expression "cVar3 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }" { (expression_statement "memset(s,0x30,sVar27);" (call_expression "memset(s,0x30,sVar27)" identifier (argument_list "(s,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }" else (compound_statement "{\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }" { (expression_statement "memset(s,0x20,sVar27);" (call_expression "memset(s,0x20,sVar27)" identifier (argument_list "(s,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*s = cVar4;" (assignment_expression "*s = cVar4" (pointer_expression "*s" * identifier) = identifier) ;) (expression_statement "s = s + 1;" (assignment_expression "s = s + 1" identifier = (binary_expression "s + 1" identifier + number_literal)) ;) })) (expression_statement "sVar24 = sVar24 + uVar15;" (assignment_expression "sVar24 = sVar24 + uVar15" identifier = (binary_expression "sVar24 + uVar15" identifier + identifier)) ;) })) (if_statement "if (s != (char *)0x0) {\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            memset(s,0x30,(long)iVar14);\n            s = s + iVar14;\n          }" { (expression_statement "memset(s,0x30,(long)iVar14);" (call_expression "memset(s,0x30,(long)iVar14)" identifier (argument_list "(s,0x30,(long)iVar14)" ( identifier , number_literal , (cast_expression "(long)iVar14" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "s = s + iVar14;" (assignment_expression "s = s + iVar14" identifier = (binary_expression "s + iVar14" identifier + identifier)) ;) })) (expression_statement "sVar24 = sVar24 + (long)iVar14;" (assignment_expression "sVar24 = sVar24 + (long)iVar14" identifier = (binary_expression "sVar24 + (long)iVar14" identifier + (cast_expression "(long)iVar14" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;" statement_identifier : (expression_statement "uVar15 = (long)local_431 - (long)pcVar17;" (assignment_expression "uVar15 = (long)local_431 - (long)pcVar17" identifier = (binary_expression "(long)local_431 - (long)pcVar17" (cast_expression "(long)local_431" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pcVar17" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;)) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n            iVar14 = iVar26;\n          }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar9 = (ulong)iVar14;" (assignment_expression "uVar9 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar10 = uVar9;" (assignment_expression "uVar10 = uVar9" identifier = identifier) ;) (if_statement "if (uVar9 <= uVar15) {\n            uVar10 = uVar15;\n          }" if (parenthesized_expression "(uVar9 <= uVar15)" ( (binary_expression "uVar9 <= uVar15" identifier <= identifier) )) (compound_statement "{\n            uVar10 = uVar15;\n          }" { (expression_statement "uVar10 = uVar15;" (assignment_expression "uVar10 = uVar15" identifier = identifier) ;) })) (if_statement "if (uVar10 < maxsize - sVar24) {\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }" if (parenthesized_expression "(uVar10 < maxsize - sVar24)" ( (binary_expression "uVar10 < maxsize - sVar24" identifier < (binary_expression "maxsize - sVar24" identifier - identifier)) )) (compound_statement "{\n            if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }\n            sVar24 = sVar24 + uVar10;\n            goto LAB_001359f4;\n          }" { (if_statement "if (s != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }\n              if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }\n              s = s + uVar15;\n            }" { (if_statement "if ((iVar22 == 0) && (uVar15 < uVar9)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }" if (parenthesized_expression "((iVar22 == 0) && (uVar15 < uVar9))" ( (binary_expression "(iVar22 == 0) && (uVar15 < uVar9)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar15 < uVar9)" ( (binary_expression "uVar15 < uVar9" identifier < identifier) ))) )) (compound_statement "{\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }\n              }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar3 == '0') {\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }\n                else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }" if (parenthesized_expression "(cVar3 == '0')" ( (binary_expression "cVar3 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                  memset(s,0x30,sVar27);\n                  s = s + sVar27;\n                }" { (expression_statement "memset(s,0x30,sVar27);" (call_expression "memset(s,0x30,sVar27)" identifier (argument_list "(s,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }" else (compound_statement "{\n                  memset(s,0x20,sVar27);\n                  s = s + sVar27;\n                }" { (expression_statement "memset(s,0x20,sVar27);" (call_expression "memset(s,0x20,sVar27)" identifier (argument_list "(s,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if ((_Bool)upcase_00 == false) {\n                memcpy(s,pcVar17,uVar15);\n              }\n              else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }" if (parenthesized_expression "((_Bool)upcase_00 == false)" ( (binary_expression "(_Bool)upcase_00 == false" (cast_expression "(_Bool)upcase_00" ( (type_descriptor "_Bool" type_identifier) ) identifier) == false) )) (compound_statement "{\n                memcpy(s,pcVar17,uVar15);\n              }" { (expression_statement "memcpy(s,pcVar17,uVar15);" (call_expression "memcpy(s,pcVar17,uVar15)" identifier (argument_list "(s,pcVar17,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }" else (compound_statement "{\n                memcpy_uppcase(s,pcVar17,uVar15);\n              }" { (expression_statement "memcpy_uppcase(s,pcVar17,uVar15);" (call_expression "memcpy_uppcase(s,pcVar17,uVar15)" identifier (argument_list "(s,pcVar17,uVar15)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "s = s + uVar15;" (assignment_expression "s = s + uVar15" identifier = (binary_expression "s + uVar15" identifier + identifier)) ;) })) (expression_statement "sVar24 = sVar24 + uVar10;" (assignment_expression "sVar24 = sVar24 + uVar10" identifier = (binary_expression "sVar24 + uVar10" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) }))))) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (case_statement "case 'z':\n        lVar23 = 0;\n        pcVar17 = format;\nLAB_00136bae:\n        format = pcVar17;\n        if (tp->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)tp->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }\n        uVar11 = iVar22 / 0xe10;\n        iVar6 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;" case (char_literal "'z'" ' character ') : (expression_statement "lVar23 = 0;" (assignment_expression "lVar23 = 0" identifier = number_literal) ;) (expression_statement "pcVar17 = format;" (assignment_expression "pcVar17 = format" identifier = identifier) ;) (labeled_statement "LAB_00136bae:\n        format = pcVar17;" statement_identifier : (expression_statement "format = pcVar17;" (assignment_expression "format = pcVar17" identifier = identifier) ;)) (if_statement "if (tp->tm_isdst < 0) goto LAB_001359f4;" if (parenthesized_expression "(tp->tm_isdst < 0)" ( (binary_expression "tp->tm_isdst < 0" (field_expression "tp->tm_isdst" identifier -> field_identifier) < number_literal) )) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;)) (expression_statement "bVar28 = true;" (assignment_expression "bVar28 = true" identifier = true) ;) (expression_statement "iVar22 = (int)tp->tm_gmtoff;" (assignment_expression "iVar22 = (int)tp->tm_gmtoff" identifier = (cast_expression "(int)tp->tm_gmtoff" ( (type_descriptor "int" primitive_type) ) (field_expression "tp->tm_gmtoff" identifier -> field_identifier))) ;) (if_statement "if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *src == '-';\n        }" if (parenthesized_expression "((-1 < iVar22) && (bVar28 = false, iVar22 == 0))" ( (binary_expression "(-1 < iVar22) && (bVar28 = false, iVar22 == 0)" (parenthesized_expression "(-1 < iVar22)" ( (binary_expression "-1 < iVar22" number_literal < identifier) )) && (parenthesized_expression "(bVar28 = false, iVar22 == 0)" ( (comma_expression "bVar28 = false, iVar22 == 0" (assignment_expression "bVar28 = false" identifier = false) , (binary_expression "iVar22 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          bVar28 = *src == '-';\n        }" { (expression_statement "bVar28 = *src == '-';" (assignment_expression "bVar28 = *src == '-'" identifier = (binary_expression "*src == '-'" (pointer_expression "*src" * identifier) == (char_literal "'-'" ' character '))) ;) })) (expression_statement "uVar11 = iVar22 / 0xe10;" (assignment_expression "uVar11 = iVar22 / 0xe10" identifier = (binary_expression "iVar22 / 0xe10" identifier / number_literal)) ;) (expression_statement "iVar6 = (iVar22 / 0x3c) % 0x3c;" (assignment_expression "iVar6 = (iVar22 / 0x3c) % 0x3c" identifier = (binary_expression "(iVar22 / 0x3c) % 0x3c" (parenthesized_expression "(iVar22 / 0x3c)" ( (binary_expression "iVar22 / 0x3c" identifier / number_literal) )) % number_literal)) ;) (if_statement "if (lVar23 == 1) {\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" if (parenthesized_expression "(lVar23 == 1)" ( (binary_expression "lVar23 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }" { (labeled_statement "LAB_00136c74:\n          uVar11 = uVar11 * 100 + iVar6;" statement_identifier : (expression_statement "uVar11 = uVar11 * 100 + iVar6;" (assignment_expression "uVar11 = uVar11 * 100 + iVar6" identifier = (binary_expression "uVar11 * 100 + iVar6" (binary_expression "uVar11 * 100" identifier * number_literal) + identifier)) ;)) (expression_statement "uVar18 = 4;" (assignment_expression "uVar18 = 4" identifier = number_literal) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 6;" (assignment_expression "iVar22 = 6" identifier = number_literal) ;) }) (else_clause "else if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" else (if_statement "if (lVar23 == 0) {\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" if (parenthesized_expression "(lVar23 == 0)" ( (binary_expression "lVar23 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar11 = uVar11 * 100 + iVar6;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }" { (expression_statement "uVar11 = uVar11 * 100 + iVar6;" (assignment_expression "uVar11 = uVar11 * 100 + iVar6" identifier = (binary_expression "uVar11 * 100 + iVar6" (binary_expression "uVar11 * 100" identifier * number_literal) + identifier)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 5;" (assignment_expression "iVar22 = 5" identifier = number_literal) ;) }) (else_clause "else {\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" else (compound_statement "{\n          if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" { (if_statement "if (lVar23 != 2) {\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }" if (parenthesized_expression "(lVar23 != 2)" ( (binary_expression "lVar23 != 2" identifier != number_literal) )) (compound_statement "{\n            local_4b8 = format;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }" { (expression_statement "local_4b8 = format;" (assignment_expression "local_4b8 = format" identifier = identifier) ;) (if_statement "if (lVar23 != 3) goto LAB_00136cd6;" if (parenthesized_expression "(lVar23 != 3)" ( (binary_expression "lVar23 != 3" identifier != number_literal) )) (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (if_statement "if (iVar22 % 0x3c == 0) {\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }" if (parenthesized_expression "(iVar22 % 0x3c == 0)" ( (binary_expression "iVar22 % 0x3c == 0" (binary_expression "iVar22 % 0x3c" identifier % number_literal) == number_literal) )) (compound_statement "{\n              if (iVar6 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }" { (if_statement "if (iVar6 != 0) goto LAB_00136c74;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00136c74;" goto statement_identifier ;)) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 3;" (assignment_expression "iVar22 = 3" identifier = number_literal) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) })) (expression_statement "uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c;" (assignment_expression "uVar11 = uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c" identifier = (binary_expression "uVar11 * 10000 + iVar6 * 100 + iVar22 % 0x3c" (binary_expression "uVar11 * 10000 + iVar6 * 100" (binary_expression "uVar11 * 10000" identifier * number_literal) + (binary_expression "iVar6 * 100" identifier * number_literal)) + (binary_expression "iVar22 % 0x3c" identifier % number_literal))) ;) (expression_statement "uVar18 = 0x14;" (assignment_expression "uVar18 = 0x14" identifier = number_literal) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 9;" (assignment_expression "iVar22 = 9" identifier = number_literal) ;) }))))) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;)) })) (expression_statement "pcVar20 = local_4b8 + -1;" (assignment_expression "pcVar20 = local_4b8 + -1" identifier = (binary_expression "local_4b8 + -1" identifier + number_literal)) ;) (do_statement "do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        format = local_4b8;\n      } while (*pcVar17 != '%');" do (compound_statement "{\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        format = local_4b8;\n      }" { (expression_statement "pcVar17 = pcVar20;" (assignment_expression "pcVar17 = pcVar20" identifier = identifier) ;) (expression_statement "iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;" (assignment_expression "iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17" identifier = (binary_expression "((int)(local_4b8 + -1) + 2) - (int)pcVar17" (parenthesized_expression "((int)(local_4b8 + -1) + 2)" ( (binary_expression "(int)(local_4b8 + -1) + 2" (cast_expression "(int)(local_4b8 + -1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_4b8 + -1)" ( (binary_expression "local_4b8 + -1" identifier + number_literal) ))) + number_literal) )) - (cast_expression "(int)pcVar17" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pcVar20 = pcVar17 + -1;" (assignment_expression "pcVar20 = pcVar17 + -1" identifier = (binary_expression "pcVar17 + -1" identifier + number_literal)) ;) (expression_statement "format = local_4b8;" (assignment_expression "format = local_4b8" identifier = identifier) ;) }) while (parenthesized_expression "(*pcVar17 != '%')" ( (binary_expression "*pcVar17 != '%'" (pointer_expression "*pcVar17" * identifier) != (char_literal "'%'" ' character ')) )) ;) (labeled_statement "LAB_00136d21:\n      local_4b8 = pcVar17;" statement_identifier : (expression_statement "local_4b8 = pcVar17;" (assignment_expression "local_4b8 = pcVar17" identifier = identifier) ;)) (expression_statement "uVar15 = (ulong)iVar14;" (assignment_expression "uVar15 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n        iVar14 = iVar26;\n      }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar9 = (ulong)iVar14;" (assignment_expression "uVar9 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar10 = uVar9;" (assignment_expression "uVar10 = uVar9" identifier = identifier) ;) (if_statement "if (uVar9 <= uVar15) {\n        uVar10 = uVar15;\n      }" if (parenthesized_expression "(uVar9 <= uVar15)" ( (binary_expression "uVar9 <= uVar15" identifier <= identifier) )) (compound_statement "{\n        uVar10 = uVar15;\n      }" { (expression_statement "uVar10 = uVar15;" (assignment_expression "uVar10 = uVar15" identifier = identifier) ;) })) (if_statement "if (maxsize - sVar24 <= uVar10) {\nLAB_00136dd9:\n        sVar24 = 0;\n        goto LAB_00136ddf;\n      }" if (parenthesized_expression "(maxsize - sVar24 <= uVar10)" ( (binary_expression "maxsize - sVar24 <= uVar10" (binary_expression "maxsize - sVar24" identifier - identifier) <= identifier) )) (compound_statement "{\nLAB_00136dd9:\n        sVar24 = 0;\n        goto LAB_00136ddf;\n      }" { (labeled_statement "LAB_00136dd9:\n        sVar24 = 0;" statement_identifier : (expression_statement "sVar24 = 0;" (assignment_expression "sVar24 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_00136ddf;" goto statement_identifier ;) })) (if_statement "if (s != (char *)0x0) {\n        if (uVar15 < uVar9) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }\n        if (upcase_00 == '\0') {\n          memcpy(s,local_4b8,uVar15);\n        }\n        else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }\n        s = s + uVar15;\n      }" if (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (uVar15 < uVar9) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }\n        if (upcase_00 == '\0') {\n          memcpy(s,local_4b8,uVar15);\n        }\n        else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }\n        s = s + uVar15;\n      }" { (if_statement "if (uVar15 < uVar9) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }" if (parenthesized_expression "(uVar15 < uVar9)" ( (binary_expression "uVar15 < uVar9" identifier < identifier) )) (compound_statement "{\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }\n        }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar3 == '0') {\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }\n          else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }" if (parenthesized_expression "(cVar3 == '0')" ( (binary_expression "cVar3 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n            memset(s,0x30,sVar27);\n            s = s + sVar27;\n          }" { (expression_statement "memset(s,0x30,sVar27);" (call_expression "memset(s,0x30,sVar27)" identifier (argument_list "(s,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }" else (compound_statement "{\n            memset(s,0x20,sVar27);\n            s = s + sVar27;\n          }" { (expression_statement "memset(s,0x20,sVar27);" (call_expression "memset(s,0x20,sVar27)" identifier (argument_list "(s,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "s = s + sVar27;" (assignment_expression "s = s + sVar27" identifier = (binary_expression "s + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if (upcase_00 == '\0') {\n          memcpy(s,local_4b8,uVar15);\n        }\n        else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }" if (parenthesized_expression "(upcase_00 == '\0')" ( (binary_expression "upcase_00 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          memcpy(s,local_4b8,uVar15);\n        }" { (expression_statement "memcpy(s,local_4b8,uVar15);" (call_expression "memcpy(s,local_4b8,uVar15)" identifier (argument_list "(s,local_4b8,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }" else (compound_statement "{\n          memcpy_uppcase(s,local_4b8,uVar15);\n        }" { (expression_statement "memcpy_uppcase(s,local_4b8,uVar15);" (call_expression "memcpy_uppcase(s,local_4b8,uVar15)" identifier (argument_list "(s,local_4b8,uVar15)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "s = s + uVar15;" (assignment_expression "s = s + uVar15" identifier = (binary_expression "s + uVar15" identifier + identifier)) ;) })) (expression_statement "sVar24 = sVar24 + uVar10;" (assignment_expression "sVar24 = sVar24 + uVar10" identifier = (binary_expression "sVar24 + uVar10" identifier + identifier)) ;) (labeled_statement "LAB_001359f4:\n      cVar4 = format[1];" statement_identifier : (expression_statement "cVar4 = format[1];" (assignment_expression "cVar4 = format[1]" identifier = (subscript_expression "format[1]" identifier [ number_literal ])) ;)) (expression_statement "format = format + 1;" (assignment_expression "format = format + 1" identifier = (binary_expression "format + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar4 != '\0')" ( (binary_expression "cVar4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) }))) (if_statement "if ((s != (char *)0x0) && (maxsize != 0)) {\n    *s = '\0';\n  }" if (parenthesized_expression "((s != (char *)0x0) && (maxsize != 0))" ( (binary_expression "(s != (char *)0x0) && (maxsize != 0)" (parenthesized_expression "(s != (char *)0x0)" ( (binary_expression "s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(maxsize != 0)" ( (binary_expression "maxsize != 0" identifier != number_literal) ))) )) (compound_statement "{\n    *s = '\0';\n  }" { (expression_statement "*s = '\0';" (assignment_expression "*s = '\0'" (pointer_expression "*s" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (labeled_statement "LAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return sVar24;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return sVar24;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return sVar24;\n  }" { (return_statement "return sVar24;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "long FUN_00135939(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,\n                 undefined8 param_6,undefined8 param_7,uint param_8)\n\n{\n  bool bVar1;\n  bool bVar2;\n  long lVar3;\n  char cVar4;\n  char cVar5;\n  char cVar6;\n  char cVar7;\n  int iVar8;\n  char *__src;\n  long lVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  ulong uVar15;\n  char cVar16;\n  char *pcVar17;\n  uint uVar18;\n  int iVar19;\n  char *pcVar20;\n  int iVar21;\n  int iVar22;\n  long lVar23;\n  long lVar24;\n  uint uVar25;\n  int iVar26;\n  size_t sVar27;\n  long in_FS_OFFSET;\n  bool bVar28;\n  byte bVar29;\n  char *local_4b8;\n  undefined8 local_488;\n  undefined8 uStack_480;\n  undefined8 local_478;\n  undefined8 uStack_470;\n  undefined8 local_468;\n  long lStack_460;\n  char *local_458;\n  char local_44d [3];\n  char local_44a [2];\n  char local_448;\n  undefined1 local_447 [22];\n  char local_431 [1009];\n  long local_40;\n  \n  bVar29 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar25 = param_4->tm_hour;\n  __src = "";\n  if (param_4->tm_zone != (char *)0x0) {\n    __src = param_4->tm_zone;\n  }\n  if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }\n  cVar5 = *param_3;\n  if (cVar5 == '\0') {\n    lVar24 = 0;\n  }\n  else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }\n  if ((param_1 != (char *)0x0) && (param_2 != 0)) {\n    *param_1 = '\0';\n  }\nLAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "long FUN_00135939(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,\n                 undefined8 param_6,undefined8 param_7,uint param_8)\n\n{\n  bool bVar1;\n  bool bVar2;\n  long lVar3;\n  char cVar4;\n  char cVar5;\n  char cVar6;\n  char cVar7;\n  int iVar8;\n  char *__src;\n  long lVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  ulong uVar15;\n  char cVar16;\n  char *pcVar17;\n  uint uVar18;\n  int iVar19;\n  char *pcVar20;\n  int iVar21;\n  int iVar22;\n  long lVar23;\n  long lVar24;\n  uint uVar25;\n  int iVar26;\n  size_t sVar27;\n  long in_FS_OFFSET;\n  bool bVar28;\n  byte bVar29;\n  char *local_4b8;\n  undefined8 local_488;\n  undefined8 uStack_480;\n  undefined8 local_478;\n  undefined8 uStack_470;\n  undefined8 local_468;\n  long lStack_460;\n  char *local_458;\n  char local_44d [3];\n  char local_44a [2];\n  char local_448;\n  undefined1 local_447 [22];\n  char local_431 [1009];\n  long local_40;\n  \n  bVar29 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar25 = param_4->tm_hour;\n  __src = "";\n  if (param_4->tm_zone != (char *)0x0) {\n    __src = param_4->tm_zone;\n  }\n  if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }\n  cVar5 = *param_3;\n  if (cVar5 == '\0') {\n    lVar24 = 0;\n  }\n  else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }\n  if ((param_1 != (char *)0x0) && (param_2 != 0)) {\n    *param_1 = '\0';\n  }\nLAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }\n                    \n  __stack_chk_fail();\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00135939(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,\n                 undefined8 param_6,undefined8 param_7,uint param_8)" identifier (parameter_list "(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,\n                 undefined8 param_6,undefined8 param_7,uint param_8)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "tm *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "char param_5" primitive_type identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "undefined8 param_7" type_identifier identifier) , (parameter_declaration "uint param_8" type_identifier identifier) ))) (compound_statement "{\n  bool bVar1;\n  bool bVar2;\n  long lVar3;\n  char cVar4;\n  char cVar5;\n  char cVar6;\n  char cVar7;\n  int iVar8;\n  char *__src;\n  long lVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  ulong uVar15;\n  char cVar16;\n  char *pcVar17;\n  uint uVar18;\n  int iVar19;\n  char *pcVar20;\n  int iVar21;\n  int iVar22;\n  long lVar23;\n  long lVar24;\n  uint uVar25;\n  int iVar26;\n  size_t sVar27;\n  long in_FS_OFFSET;\n  bool bVar28;\n  byte bVar29;\n  char *local_4b8;\n  undefined8 local_488;\n  undefined8 uStack_480;\n  undefined8 local_478;\n  undefined8 uStack_470;\n  undefined8 local_468;\n  long lStack_460;\n  char *local_458;\n  char local_44d [3];\n  char local_44a [2];\n  char local_448;\n  undefined1 local_447 [22];\n  char local_431 [1009];\n  long local_40;\n  \n  bVar29 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar25 = param_4->tm_hour;\n  __src = "";\n  if (param_4->tm_zone != (char *)0x0) {\n    __src = param_4->tm_zone;\n  }\n  if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }\n  cVar5 = *param_3;\n  if (cVar5 == '\0') {\n    lVar24 = 0;\n  }\n  else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }\n  if ((param_1 != (char *)0x0) && (param_2 != 0)) {\n    *param_1 = '\0';\n  }\nLAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "char cVar5;" primitive_type identifier ;) (declaration "char cVar6;" primitive_type identifier ;) (declaration "char cVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar10;" type_identifier identifier ;) (declaration "ulong uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "ulong uVar15;" type_identifier identifier ;) (declaration "char cVar16;" primitive_type identifier ;) (declaration "char *pcVar17;" primitive_type (pointer_declarator "*pcVar17" * identifier) ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "int iVar19;" primitive_type identifier ;) (declaration "char *pcVar20;" primitive_type (pointer_declarator "*pcVar20" * identifier) ;) (declaration "int iVar21;" primitive_type identifier ;) (declaration "int iVar22;" primitive_type identifier ;) (declaration "long lVar23;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar24;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar25;" type_identifier identifier ;) (declaration "int iVar26;" primitive_type identifier ;) (declaration "size_t sVar27;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar28;" primitive_type identifier ;) (declaration "byte bVar29;" type_identifier identifier ;) (declaration "char *local_4b8;" primitive_type (pointer_declarator "*local_4b8" * identifier) ;) (declaration "undefined8 local_488;" type_identifier identifier ;) (declaration "undefined8 uStack_480;" type_identifier identifier ;) (declaration "undefined8 local_478;" type_identifier identifier ;) (declaration "undefined8 uStack_470;" type_identifier identifier ;) (declaration "undefined8 local_468;" type_identifier identifier ;) (declaration "long lStack_460;" (sized_type_specifier "long" long) identifier ;) (declaration "char *local_458;" primitive_type (pointer_declarator "*local_458" * identifier) ;) (declaration "char local_44d [3];" primitive_type (array_declarator "local_44d [3]" identifier [ number_literal ]) ;) (declaration "char local_44a [2];" primitive_type (array_declarator "local_44a [2]" identifier [ number_literal ]) ;) (declaration "char local_448;" primitive_type identifier ;) (declaration "undefined1 local_447 [22];" type_identifier (array_declarator "local_447 [22]" identifier [ number_literal ]) ;) (declaration "char local_431 [1009];" primitive_type (array_declarator "local_431 [1009]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar29 = 0;" (assignment_expression "bVar29 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar25 = param_4->tm_hour;" (assignment_expression "uVar25 = param_4->tm_hour" identifier = (field_expression "param_4->tm_hour" identifier -> field_identifier)) ;) (expression_statement "__src = "";" (assignment_expression "__src = """ identifier = (string_literal """" " ")) ;) (if_statement "if (param_4->tm_zone != (char *)0x0) {\n    __src = param_4->tm_zone;\n  }" if (parenthesized_expression "(param_4->tm_zone != (char *)0x0)" ( (binary_expression "param_4->tm_zone != (char *)0x0" (field_expression "param_4->tm_zone" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    __src = param_4->tm_zone;\n  }" { (expression_statement "__src = param_4->tm_zone;" (assignment_expression "__src = param_4->tm_zone" identifier = (field_expression "param_4->tm_zone" identifier -> field_identifier)) ;) })) (if_statement "if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }" if (parenthesized_expression "((int)uVar25 < 0xd)" ( (binary_expression "(int)uVar25 < 0xd" (cast_expression "(int)uVar25" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }" { (if_statement "if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }" if (parenthesized_expression "(uVar25 == 0)" ( (binary_expression "uVar25 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar25 = 0xc;\n    }" { (expression_statement "uVar25 = 0xc;" (assignment_expression "uVar25 = 0xc" identifier = number_literal) ;) })) }) (else_clause "else {\n    uVar25 = uVar25 - 0xc;\n  }" else (compound_statement "{\n    uVar25 = uVar25 - 0xc;\n  }" { (expression_statement "uVar25 = uVar25 - 0xc;" (assignment_expression "uVar25 = uVar25 - 0xc" identifier = (binary_expression "uVar25 - 0xc" identifier - number_literal)) ;) }))) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if (cVar5 == '\0') {\n    lVar24 = 0;\n  }\n  else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }" if (parenthesized_expression "(cVar5 == '\0')" ( (binary_expression "cVar5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    lVar24 = 0;\n  }" { (expression_statement "lVar24 = 0;" (assignment_expression "lVar24 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }" else (compound_statement "{\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }" { (expression_statement "lVar24 = 0;" (assignment_expression "lVar24 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');" do (compound_statement "{\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    }" { (if_statement "if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }" if (parenthesized_expression "(cVar5 != '%')" ( (binary_expression "cVar5 != '%'" identifier != (char_literal "'%'" ' character ')) )) (compound_statement "{\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }" { (if_statement "if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) < 2)" ( (binary_expression "(ulong)(param_2 - lVar24) < 2" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) < number_literal) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }" { (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + 1;" (assignment_expression "lVar24 = lVar24 + 1" identifier = (binary_expression "lVar24 + 1" identifier + number_literal)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" identifier = false) ;) (expression_statement "cVar7 = param_5;" (assignment_expression "cVar7 = param_5" identifier = identifier) ;) (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (do_statement "do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');" do (compound_statement "{\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      }" { (while_statement "while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }" { (while_statement "while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }" { (do_statement "do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');" do (compound_statement "{\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            }" { (expression_statement "cVar4 = cVar5;" (assignment_expression "cVar4 = cVar5" identifier = identifier) ;) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) }) while (parenthesized_expression "(cVar5 == '0')" ( (binary_expression "cVar5 == '0'" identifier == (char_literal "'0'" ' character ')) )) ;) (if_statement "if ('0' < cVar5) break;" if (parenthesized_expression "('0' < cVar5)" ( (binary_expression "'0' < cVar5" (char_literal "'0'" ' character ') < identifier) )) (break_statement "break;" break ;)) (if_statement "if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;" if (parenthesized_expression "(cVar5 == '#')" ( (binary_expression "cVar5 == '#'" identifier == (char_literal "'#'" ' character ')) )) (compound_statement "{\n              bVar28 = true;\n              cVar5 = cVar4;\n            }" { (expression_statement "bVar28 = true;" (assignment_expression "bVar28 = true" identifier = true) ;) (expression_statement "cVar5 = cVar4;" (assignment_expression "cVar5 = cVar4" identifier = identifier) ;) }) (else_clause "else if (cVar5 != '-') goto LAB_00135a68;" else (if_statement "if (cVar5 != '-') goto LAB_00135a68;" if (parenthesized_expression "(cVar5 != '-')" ( (binary_expression "cVar5 != '-'" identifier != (char_literal "'-'" ' character ')) )) (goto_statement "goto LAB_00135a68;" goto statement_identifier ;)))) })) (if_statement "if (cVar5 != '^') break;" if (parenthesized_expression "(cVar5 != '^')" ( (binary_expression "cVar5 != '^'" identifier != (char_literal "'^'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "cVar7 = '\x01';" (assignment_expression "cVar7 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "cVar5 = cVar4;" (assignment_expression "cVar5 = cVar4" identifier = identifier) ;) })) }) while (parenthesized_expression "(cVar5 == '_')" ( (binary_expression "cVar5 == '_'" identifier == (char_literal "'_'" ' character ')) )) ;) (labeled_statement "LAB_00135a68:\n      iVar26 = -1;" statement_identifier : (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" identifier = number_literal) ;)) (if_statement "if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }" if (parenthesized_expression "((int)cVar5 - 0x30U < 10)" ( (binary_expression "(int)cVar5 - 0x30U < 10" (binary_expression "(int)cVar5 - 0x30U" (cast_expression "(int)cVar5" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) < number_literal) )) (compound_statement "{\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }" { (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" identifier = number_literal) ;) (do_statement "do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);" do (compound_statement "{\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        }" { (if_statement "if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }" if (parenthesized_expression "(iVar26 < 0xccccccd)" ( (binary_expression "iVar26 < 0xccccccd" identifier < number_literal) )) (compound_statement "{\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }" { (if_statement "if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }" if (parenthesized_expression "((iVar26 == 0xccccccc) && ('7' < *param_3))" ( (binary_expression "(iVar26 == 0xccccccc) && ('7' < *param_3)" (parenthesized_expression "(iVar26 == 0xccccccc)" ( (binary_expression "iVar26 == 0xccccccc" identifier == number_literal) )) && (parenthesized_expression "('7' < *param_3)" ( (binary_expression "'7' < *param_3" (char_literal "'7'" ' character ') < (pointer_expression "*param_3" * identifier)) ))) )) (compound_statement "{\n              iVar26 = 0x7fffffff;\n            }" { (expression_statement "iVar26 = 0x7fffffff;" (assignment_expression "iVar26 = 0x7fffffff" identifier = number_literal) ;) }) (else_clause "else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }" else (compound_statement "{\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }" { (expression_statement "iVar26 = *param_3 + -0x30 + iVar26 * 10;" (assignment_expression "iVar26 = *param_3 + -0x30 + iVar26 * 10" identifier = (binary_expression "*param_3 + -0x30 + iVar26 * 10" (binary_expression "*param_3 + -0x30" (pointer_expression "*param_3" * identifier) + number_literal) + (binary_expression "iVar26 * 10" identifier * number_literal))) ;) }))) }) (else_clause "else {\n            iVar26 = 0x7fffffff;\n          }" else (compound_statement "{\n            iVar26 = 0x7fffffff;\n          }" { (expression_statement "iVar26 = 0x7fffffff;" (assignment_expression "iVar26 = 0x7fffffff" identifier = number_literal) ;) }))) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)*param_3 - 0x30U < 10)" ( (binary_expression "(int)*param_3 - 0x30U < 10" (binary_expression "(int)*param_3 - 0x30U" (cast_expression "(int)*param_3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_3" * identifier)) - number_literal) < number_literal) )) ;) })) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (if_statement "if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }" if (parenthesized_expression "((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O'))" ( (binary_expression "(cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')" (parenthesized_expression "(cVar5 == 'E')" ( (binary_expression "cVar5 == 'E'" identifier == (char_literal "'E'" ' character ')) )) || (parenthesized_expression "(cVar16 = '\0', cVar5 == 'O')" ( (comma_expression "cVar16 = '\0', cVar5 == 'O'" (assignment_expression "cVar16 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) , (binary_expression "cVar5 == 'O'" identifier == (char_literal "'O'" ' character '))) ))) )) (compound_statement "{\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }" { (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "cVar16 = cVar5;" (assignment_expression "cVar16 = cVar5" identifier = identifier) ;) })) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" identifier = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "iVar14 = (int)local_431;" (assignment_expression "iVar14 = (int)local_431" identifier = (cast_expression "(int)local_431" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "local_4b8 = param_3;" (assignment_expression "local_4b8 = param_3" identifier = identifier) ;) (expression_statement "uVar12 = uVar25;" (assignment_expression "uVar12 = uVar25" identifier = identifier) ;) (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" identifier = identifier) ;) (switch_statement "switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }" switch (parenthesized_expression "(cVar5)" ( identifier )) (compound_statement "{\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }" { (case_statement "case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;" case (char_literal "'\0'" ' escape_sequence ') : (expression_statement "local_4b8 = param_3 + -1;" (assignment_expression "local_4b8 = param_3 + -1" identifier = (binary_expression "param_3 + -1" identifier + number_literal)) ;) (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (case_statement "default:\n        goto LAB_00136cd6;" default : (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (case_statement "case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;" case (char_literal "'%'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n            iVar14 = iVar26;\n          }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n            uVar15 = uVar11;\n          }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }" { (if_statement "if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" if (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) )) (compound_statement "{\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" else (compound_statement "{\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*param_1 = *param_3;" (assignment_expression "*param_1 = *param_3" (pointer_expression "*param_1" * identifier) = (pointer_expression "*param_3" * identifier)) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (expression_statement "iVar14 = 1;" (assignment_expression "iVar14 = 1" identifier = number_literal) ;) (expression_statement "pcVar17 = param_3;" (assignment_expression "pcVar17 = param_3" identifier = identifier) ;) (goto_statement "goto LAB_00136d21;" goto statement_identifier ;)) (case_statement "case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;" case (char_literal "':'" ' character ') : (expression_statement "pcVar17 = param_3 + 1;" (assignment_expression "pcVar17 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) (expression_statement "cVar6 = param_3[1];" (assignment_expression "cVar6 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (if_statement "if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }" if (parenthesized_expression "(cVar6 == ':')" ( (binary_expression "cVar6 == ':'" identifier == (char_literal "':'" ' character ')) )) (compound_statement "{\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }" { (expression_statement "lVar23 = 1;" (assignment_expression "lVar23 = 1" identifier = number_literal) ;) (do_statement "do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');" do (compound_statement "{\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          }" { (expression_statement "lVar23 = lVar23 + 1;" (assignment_expression "lVar23 = lVar23 + 1" identifier = (binary_expression "lVar23 + 1" identifier + number_literal)) ;) (expression_statement "pcVar17 = param_3 + lVar23;" (assignment_expression "pcVar17 = param_3 + lVar23" identifier = (binary_expression "param_3 + lVar23" identifier + identifier)) ;) (expression_statement "cVar6 = param_3[lVar23];" (assignment_expression "cVar6 = param_3[lVar23]" identifier = (subscript_expression "param_3[lVar23]" identifier [ identifier ])) ;) }) while (parenthesized_expression "(cVar6 == ':')" ( (binary_expression "cVar6 == ':'" identifier == (char_literal "':'" ' character ')) )) ;) }) (else_clause "else {\n          lVar23 = 1;\n        }" else (compound_statement "{\n          lVar23 = 1;\n        }" { (expression_statement "lVar23 = 1;" (assignment_expression "lVar23 = 1" identifier = number_literal) ;) }))) (if_statement "if (cVar6 == 'z') goto LAB_00136bae;" if (parenthesized_expression "(cVar6 == 'z')" ( (binary_expression "cVar6 == 'z'" identifier == (char_literal "'z'" ' character ')) )) (goto_statement "goto LAB_00136bae;" goto statement_identifier ;)) (break_statement "break;" break ;)) (case_statement "case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;" case (char_literal "'A'" ' character ') : (if_statement "if (cVar16 != '\0') break;" if (parenthesized_expression "(cVar16 != '\0')" ( (binary_expression "cVar16 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (break_statement "break;" break ;)) (if_statement "if (bVar28 != false) {\n          cVar7 = bVar28;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          cVar7 = bVar28;\n        }" { (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" identifier = identifier) ;) })) (expression_statement "cVar5 = 'A';" (assignment_expression "cVar5 = 'A'" identifier = (char_literal "'A'" ' character ')) ;) (labeled_statement "LAB_00135bf1:\n        local_4b8._0_1_ = false;" statement_identifier : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;)) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (expression_statement "pcVar17 = local_44d + 2;" (assignment_expression "pcVar17 = local_44d + 2" identifier = (binary_expression "local_44d + 2" identifier + number_literal)) ;) (goto_statement "goto LAB_00135f1c;" goto statement_identifier ;)) (case_statement "case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'B'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (if_statement "if (bVar28 != false) {\n            cVar7 = bVar28;\n          }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n            cVar7 = bVar28;\n          }" { (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" identifier = identifier) ;) })) (expression_statement "cVar5 = 'B';" (assignment_expression "cVar5 = 'B'" identifier = (char_literal "'B'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;" case (char_literal "'C'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" { (expression_statement "iVar8 = param_4->tm_year;" (assignment_expression "iVar8 = param_4->tm_year" identifier = (field_expression "param_4->tm_year" identifier -> field_identifier)) ;) (expression_statement "iVar22 = iVar8 / 100 + 0x13;" (assignment_expression "iVar22 = iVar8 / 100 + 0x13" identifier = (binary_expression "iVar8 / 100 + 0x13" (binary_expression "iVar8 / 100" identifier / number_literal) + number_literal)) ;) (expression_statement "bVar28 = iVar8 < -0x76c;" (assignment_expression "bVar28 = iVar8 < -0x76c" identifier = (binary_expression "iVar8 < -0x76c" identifier < number_literal)) ;) (expression_statement "uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));" (assignment_expression "uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22))" identifier = (binary_expression "iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22))" identifier - (parenthesized_expression "((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22))" ( (binary_expression "(uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22)" (binary_expression "(uint)(iVar8 % 100) >> 0x1f" (call_expression "(uint)(iVar8 % 100)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar8 % 100)" ( (binary_expression "iVar8 % 100" identifier % number_literal) ))) >> number_literal) & (call_expression "(uint)(0 < iVar22)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0 < iVar22)" ( (binary_expression "0 < iVar22" number_literal < identifier) )))) )))) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (expression_statement "cVar5 = 'C';" (assignment_expression "cVar5 = 'C'" identifier = (char_literal "'C'" ' character ')) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;)) (case_statement "case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;" case (char_literal "'D'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }" { (expression_statement "local_4b8 = "%m/%d/%y";" (assignment_expression "local_4b8 = "%m/%d/%y"" identifier = (string_literal ""%m/%d/%y"" " string_content ")) ;) (goto_statement "goto LAB_00135ca3;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;" case (char_literal "'F'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }" { (expression_statement "local_4b8 = "%Y-%m-%d";" (assignment_expression "local_4b8 = "%Y-%m-%d"" identifier = (string_literal ""%Y-%m-%d"" " string_content ")) ;) (goto_statement "goto LAB_00135ca3;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'G':" case (char_literal "'G'" ' character ') :) (case_statement "case 'V':" case (char_literal "'V'" ' character ') :) (case_statement "case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;" case (char_literal "'g'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" { (expression_statement "iVar8 = param_4->tm_year;" (assignment_expression "iVar8 = param_4->tm_year" identifier = (field_expression "param_4->tm_year" identifier -> field_identifier)) ;) (expression_statement "uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);" (assignment_expression "uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U)" identifier = (binary_expression "iVar8 + -100 + (iVar8 >> 0x1f & 400U)" (binary_expression "iVar8 + -100" identifier + number_literal) + (parenthesized_expression "(iVar8 >> 0x1f & 400U)" ( (binary_expression "iVar8 >> 0x1f & 400U" (binary_expression "iVar8 >> 0x1f" identifier >> number_literal) & number_literal) )))) ;) (expression_statement "iVar21 = param_4->tm_wday;" (assignment_expression "iVar21 = param_4->tm_wday" identifier = (field_expression "param_4->tm_wday" identifier -> field_identifier)) ;) (expression_statement "iVar19 = param_4->tm_yday;" (assignment_expression "iVar19 = param_4->tm_yday" identifier = (field_expression "param_4->tm_yday" identifier -> field_identifier)) ;) (expression_statement "iVar22 = (iVar19 - iVar21) + 0x17e;" (assignment_expression "iVar22 = (iVar19 - iVar21) + 0x17e" identifier = (binary_expression "(iVar19 - iVar21) + 0x17e" (parenthesized_expression "(iVar19 - iVar21)" ( (binary_expression "iVar19 - iVar21" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;" (assignment_expression "iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7" identifier = (binary_expression "(iVar19 - iVar22) + 3 + (iVar22 / 7) * 7" (binary_expression "(iVar19 - iVar22) + 3" (parenthesized_expression "(iVar19 - iVar22)" ( (binary_expression "iVar19 - iVar22" identifier - identifier) )) + number_literal) + (binary_expression "(iVar22 / 7) * 7" (parenthesized_expression "(iVar22 / 7)" ( (binary_expression "iVar22 / 7" identifier / number_literal) )) * number_literal))) ;) (if_statement "if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" if (parenthesized_expression "(iVar22 < 0)" ( (binary_expression "iVar22 < 0" identifier < number_literal) )) (compound_statement "{\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }" { (expression_statement "uVar12 = uVar12 - 1;" (assignment_expression "uVar12 = uVar12 - 1" identifier = (binary_expression "uVar12 - 1" identifier - number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (if_statement "if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }" if (parenthesized_expression "(((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100))" ( (binary_expression "((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" (parenthesized_expression "((uVar12 & 3) == 0)" ( (binary_expression "(uVar12 & 3) == 0" (parenthesized_expression "(uVar12 & 3)" ( (binary_expression "uVar12 & 3" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" ( (comma_expression "uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100" (assignment_expression "uVar18 = 1" identifier = number_literal) , (binary_expression "uVar12 == ((int)uVar12 / 100) * 100" identifier == (binary_expression "((int)uVar12 / 100) * 100" (parenthesized_expression "((int)uVar12 / 100)" ( (binary_expression "(int)uVar12 / 100" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) )) * number_literal))) ))) )) (compound_statement "{\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }" { (expression_statement "uVar18 = (uint)((int)uVar12 % 400 == 0);" (assignment_expression "uVar18 = (uint)((int)uVar12 % 400 == 0)" identifier = (call_expression "(uint)((int)uVar12 % 400 == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)uVar12 % 400 == 0)" ( (binary_expression "(int)uVar12 % 400 == 0" (binary_expression "(int)uVar12 % 400" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) % number_literal) == number_literal) )))) ;) })) (expression_statement "iVar22 = iVar19 + 0x16d + uVar18;" (assignment_expression "iVar22 = iVar19 + 0x16d + uVar18" identifier = (binary_expression "iVar19 + 0x16d + uVar18" (binary_expression "iVar19 + 0x16d" identifier + number_literal) + identifier)) ;) (expression_statement "iVar21 = (iVar22 - iVar21) + 0x17e;" (assignment_expression "iVar21 = (iVar22 - iVar21) + 0x17e" identifier = (binary_expression "(iVar22 - iVar21) + 0x17e" (parenthesized_expression "(iVar22 - iVar21)" ( (binary_expression "iVar22 - iVar21" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;" (assignment_expression "iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7" identifier = (binary_expression "(iVar22 - iVar21) + 3 + (iVar21 / 7) * 7" (binary_expression "(iVar22 - iVar21) + 3" (parenthesized_expression "(iVar22 - iVar21)" ( (binary_expression "iVar22 - iVar21" identifier - identifier) )) + number_literal) + (binary_expression "(iVar21 / 7) * 7" (parenthesized_expression "(iVar21 / 7)" ( (binary_expression "iVar21 / 7" identifier / number_literal) )) * number_literal))) ;) (expression_statement "iVar21 = -1;" (assignment_expression "iVar21 = -1" identifier = number_literal) ;) }) (else_clause "else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" else (compound_statement "{\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" { (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (if_statement "if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }" if (parenthesized_expression "(((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100))" ( (binary_expression "((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" (parenthesized_expression "((uVar12 & 3) == 0)" ( (binary_expression "(uVar12 & 3) == 0" (parenthesized_expression "(uVar12 & 3)" ( (binary_expression "uVar12 & 3" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "(uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" ( (comma_expression "uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100" (assignment_expression "uVar18 = 1" identifier = number_literal) , (binary_expression "uVar12 == ((int)uVar12 / 100) * 100" identifier == (binary_expression "((int)uVar12 / 100) * 100" (parenthesized_expression "((int)uVar12 / 100)" ( (binary_expression "(int)uVar12 / 100" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) )) * number_literal))) ))) )) (compound_statement "{\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }" { (expression_statement "uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);" (assignment_expression "uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400)" identifier = (call_expression "(uint)(uVar12 == ((int)uVar12 / 400) * 400)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar12 == ((int)uVar12 / 400) * 400)" ( (binary_expression "uVar12 == ((int)uVar12 / 400) * 400" identifier == (binary_expression "((int)uVar12 / 400) * 400" (parenthesized_expression "((int)uVar12 / 400)" ( (binary_expression "(int)uVar12 / 400" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal) )) * number_literal)) )))) ;) })) (expression_statement "iVar19 = iVar19 - (uVar18 + 0x16d);" (assignment_expression "iVar19 = iVar19 - (uVar18 + 0x16d)" identifier = (binary_expression "iVar19 - (uVar18 + 0x16d)" identifier - (parenthesized_expression "(uVar18 + 0x16d)" ( (binary_expression "uVar18 + 0x16d" identifier + number_literal) )))) ;) (expression_statement "iVar21 = (iVar19 - iVar21) + 0x17e;" (assignment_expression "iVar21 = (iVar19 - iVar21) + 0x17e" identifier = (binary_expression "(iVar19 - iVar21) + 0x17e" (parenthesized_expression "(iVar19 - iVar21)" ( (binary_expression "iVar19 - iVar21" identifier - identifier) )) + number_literal)) ;) (expression_statement "iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;" (assignment_expression "iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7" identifier = (binary_expression "(iVar19 - iVar21) + 3 + (iVar21 / 7) * 7" (binary_expression "(iVar19 - iVar21) + 3" (parenthesized_expression "(iVar19 - iVar21)" ( (binary_expression "iVar19 - iVar21" identifier - identifier) )) + number_literal) + (binary_expression "(iVar21 / 7) * 7" (parenthesized_expression "(iVar21 / 7)" ( (binary_expression "iVar21 / 7" identifier / number_literal) )) * number_literal))) ;) (if_statement "if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }" if (parenthesized_expression "(-1 < iVar21)" ( (binary_expression "-1 < iVar21" number_literal < identifier) )) (compound_statement "{\n              iVar22 = iVar21;\n            }" { (expression_statement "iVar22 = iVar21;" (assignment_expression "iVar22 = iVar21" identifier = identifier) ;) })) (expression_statement "iVar21 = (iVar21 >> 0x1f) + 1;" (assignment_expression "iVar21 = (iVar21 >> 0x1f) + 1" identifier = (binary_expression "(iVar21 >> 0x1f) + 1" (parenthesized_expression "(iVar21 >> 0x1f)" ( (binary_expression "iVar21 >> 0x1f" identifier >> number_literal) )) + number_literal)) ;) }))) (if_statement "if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }" if (parenthesized_expression "(cVar5 == 'G')" ( (binary_expression "cVar5 == 'G'" identifier == (char_literal "'G'" ' character ')) )) (compound_statement "{\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }" { (expression_statement "bVar28 = iVar8 < -0x76c - iVar21;" (assignment_expression "bVar28 = iVar8 < -0x76c - iVar21" identifier = (binary_expression "iVar8 < -0x76c - iVar21" identifier < (binary_expression "-0x76c - iVar21" number_literal - identifier))) ;) (expression_statement "uVar12 = iVar8 + 0x76c + iVar21;" (assignment_expression "uVar12 = iVar8 + 0x76c + iVar21" identifier = (binary_expression "iVar8 + 0x76c + iVar21" (binary_expression "iVar8 + 0x76c" identifier + number_literal) + identifier)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 4;" (assignment_expression "iVar22 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (if_statement "if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" if (parenthesized_expression "(cVar5 == 'g')" ( (binary_expression "cVar5 == 'g'" identifier == (char_literal "'g'" ' character ')) )) (compound_statement "{\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }" { (expression_statement "uVar12 = (iVar8 % 100 + iVar21) % 100;" (assignment_expression "uVar12 = (iVar8 % 100 + iVar21) % 100" identifier = (binary_expression "(iVar8 % 100 + iVar21) % 100" (parenthesized_expression "(iVar8 % 100 + iVar21)" ( (binary_expression "iVar8 % 100 + iVar21" (binary_expression "iVar8 % 100" identifier % number_literal) + identifier) )) % number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (if_statement "if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }" if (parenthesized_expression "((int)uVar12 < 0)" ( (binary_expression "(int)uVar12 < 0" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }" { (if_statement "if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }" if (parenthesized_expression "(iVar8 < -0x76c - iVar21)" ( (binary_expression "iVar8 < -0x76c - iVar21" identifier < (binary_expression "-0x76c - iVar21" number_literal - identifier)) )) (compound_statement "{\n                uVar12 = -uVar12;\n              }" { (expression_statement "uVar12 = -uVar12;" (assignment_expression "uVar12 = -uVar12" identifier = (unary_expression "-uVar12" - identifier)) ;) }) (else_clause "else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }" else (compound_statement "{\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }" { (expression_statement "uVar12 = uVar12 + 100;" (assignment_expression "uVar12 = uVar12 + 100" identifier = (binary_expression "uVar12 + 100" identifier + number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }))) })) }) (else_clause "else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" else (compound_statement "{\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" { (expression_statement "uVar12 = iVar22 / 7 + 1;" (assignment_expression "uVar12 = iVar22 / 7 + 1" identifier = (binary_expression "iVar22 / 7 + 1" (binary_expression "iVar22 / 7" identifier / number_literal) + number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }))) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (case_statement "case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'H'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_hour;" (assignment_expression "uVar12 = param_4->tm_hour" identifier = (field_expression "param_4->tm_hour" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'I'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'M'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_min;" (assignment_expression "uVar12 = param_4->tm_min" identifier = (field_expression "param_4->tm_min" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'N'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_8;" (assignment_expression "uVar12 = param_8" identifier = identifier) ;) (if_statement "if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }" if (parenthesized_expression "(iVar26 == -1)" ( (binary_expression "iVar26 == -1" identifier == number_literal) )) (compound_statement "{\n            iVar26 = 9;\n            iVar22 = 9;\n          }" { (expression_statement "iVar26 = 9;" (assignment_expression "iVar26 = 9" identifier = number_literal) ;) (expression_statement "iVar22 = 9;" (assignment_expression "iVar22 = 9" identifier = number_literal) ;) }) (else_clause "else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }" else (compound_statement "{\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }" { (expression_statement "iVar8 = iVar26;" (assignment_expression "iVar8 = iVar26" identifier = identifier) ;) (if_statement "if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }" if (parenthesized_expression "(iVar26 < 9)" ( (binary_expression "iVar26 < 9" identifier < number_literal) )) (compound_statement "{\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }" { (do_statement "do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);" do (compound_statement "{\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              }" { (expression_statement "uVar12 = (int)uVar12 / 10;" (assignment_expression "uVar12 = (int)uVar12 / 10" identifier = (binary_expression "(int)uVar12 / 10" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal)) ;) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 != 9)" ( (binary_expression "iVar8 != 9" identifier != number_literal) )) ;) })) }))) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;" case (char_literal "'P'" ' character ') : (expression_statement "local_4b8._0_1_ = true;" (assignment_expression "local_4b8._0_1_ = true" (field_expression "local_4b8._0_1_" identifier . field_identifier) = true) ;) (goto_statement "goto LAB_00136492;" goto statement_identifier ;)) (case_statement "case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;" case (char_literal "'R'" ' character ') : (expression_statement "local_4b8 = "%H:%M";" (assignment_expression "local_4b8 = "%H:%M"" identifier = (string_literal ""%H:%M"" " string_content ")) ;) (goto_statement "goto LAB_00135ca3;" goto statement_identifier ;)) (case_statement "case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'S'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_sec;" (assignment_expression "uVar12 = param_4->tm_sec" identifier = (field_expression "param_4->tm_sec" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;" case (char_literal "'T'" ' character ') : (expression_statement "local_4b8 = "%H:%M:%S";" (assignment_expression "local_4b8 = "%H:%M:%S"" identifier = (string_literal ""%H:%M:%S"" " string_content ")) ;) (labeled_statement "LAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);" statement_identifier : (expression_statement "uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);" (assignment_expression "uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8)" identifier = (call_expression "FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8)" identifier (argument_list "(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8)" ( number_literal , number_literal , identifier , identifier , identifier , identifier , identifier , identifier )))) ;)) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" identifier = identifier) ;) (if_statement "if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }" if (parenthesized_expression "(uVar10 <= uVar15)" ( (binary_expression "uVar10 <= uVar15" identifier <= identifier) )) (compound_statement "{\n          uVar11 = uVar15;\n        }" { (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" identifier = identifier) ;) })) (if_statement "if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "(uVar11 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar11 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" { (if_statement "if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }" { (if_statement "if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" if (parenthesized_expression "(uVar15 < uVar10)" ( (binary_expression "uVar15 < uVar10" identifier < identifier) )) (compound_statement "{\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" else (compound_statement "{\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);" (call_expression "FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8)" identifier (argument_list "(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8)" ( identifier , (binary_expression "param_2 - lVar24" identifier - identifier) , identifier , identifier , identifier , identifier , identifier , identifier ))) ;) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" identifier = (binary_expression "lVar24 + uVar11" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (case_statement "case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'U'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;" (assignment_expression "uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7" identifier = (binary_expression "((param_4->tm_yday - param_4->tm_wday) + 7) / 7" (parenthesized_expression "((param_4->tm_yday - param_4->tm_wday) + 7)" ( (binary_expression "(param_4->tm_yday - param_4->tm_wday) + 7" (parenthesized_expression "(param_4->tm_yday - param_4->tm_wday)" ( (binary_expression "param_4->tm_yday - param_4->tm_wday" (field_expression "param_4->tm_yday" identifier -> field_identifier) - (field_expression "param_4->tm_wday" identifier -> field_identifier)) )) + number_literal) )) / number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'W'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "iVar22 = param_4->tm_wday + 6;" (assignment_expression "iVar22 = param_4->tm_wday + 6" identifier = (binary_expression "param_4->tm_wday + 6" (field_expression "param_4->tm_wday" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;" (assignment_expression "uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7" identifier = (binary_expression "(((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7" (parenthesized_expression "(((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday)" ( (binary_expression "((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday" (binary_expression "((iVar22 / 7) * 7 - iVar22) + 7" (parenthesized_expression "((iVar22 / 7) * 7 - iVar22)" ( (binary_expression "(iVar22 / 7) * 7 - iVar22" (binary_expression "(iVar22 / 7) * 7" (parenthesized_expression "(iVar22 / 7)" ( (binary_expression "iVar22 / 7" identifier / number_literal) )) * number_literal) - identifier) )) + number_literal) + (field_expression "param_4->tm_yday" identifier -> field_identifier)) )) / number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'X'" ' character ') : (if_statement "if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'O')" ( (binary_expression "cVar16 != 'O'" identifier != (char_literal "'O'" ' character ')) )) (compound_statement "{\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "cVar5 = 'X';" (assignment_expression "cVar5 = 'X'" identifier = (char_literal "'X'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;" case (char_literal "'Y'" ' character ') : (if_statement "if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" if (parenthesized_expression "(cVar16 == 'E')" ( (binary_expression "cVar16 == 'E'" identifier == (char_literal "'E'" ' character ')) )) (compound_statement "{\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" { (expression_statement "cVar5 = 'Y';" (assignment_expression "cVar5 = 'Y'" identifier = (char_literal "'Y'" ' character ')) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;) })) (if_statement "if (cVar16 == 'O') break;" if (parenthesized_expression "(cVar16 == 'O')" ( (binary_expression "cVar16 == 'O'" identifier == (char_literal "'O'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "bVar28 = param_4->tm_year < -0x76c;" (assignment_expression "bVar28 = param_4->tm_year < -0x76c" identifier = (binary_expression "param_4->tm_year < -0x76c" (field_expression "param_4->tm_year" identifier -> field_identifier) < number_literal)) ;) (expression_statement "uVar12 = param_4->tm_year + 0x76c;" (assignment_expression "uVar12 = param_4->tm_year + 0x76c" identifier = (binary_expression "param_4->tm_year + 0x76c" (field_expression "param_4->tm_year" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 4;" (assignment_expression "iVar22 = 4" identifier = number_literal) ;) (goto_statement "goto LAB_00136a29;" goto statement_identifier ;)) (case_statement "case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;" case (char_literal "'Z'" ' character ') : (if_statement "if (bVar28) {\n          cVar7 = '\0';\n        }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n          cVar7 = '\0';\n        }" { (expression_statement "cVar7 = '\0';" (assignment_expression "cVar7 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "uVar15 = 0xffffffffffffffff;" (assignment_expression "uVar15 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar17 = __src;" (assignment_expression "pcVar17 = __src" identifier = identifier) ;) (do_statement "do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');" do (compound_statement "{\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        }" { (if_statement "if (uVar15 == 0) break;" if (parenthesized_expression "(uVar15 == 0)" ( (binary_expression "uVar15 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar15 = uVar15 - 1;" (assignment_expression "uVar15 = uVar15 - 1" identifier = (binary_expression "uVar15 - 1" identifier - number_literal)) ;) (expression_statement "cVar5 = *pcVar17;" (assignment_expression "cVar5 = *pcVar17" identifier = (pointer_expression "*pcVar17" * identifier)) ;) (expression_statement "pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;" (assignment_expression "pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1" identifier = (binary_expression "pcVar17 + (ulong)bVar29 * -2 + 1" (binary_expression "pcVar17 + (ulong)bVar29 * -2" identifier + (binary_expression "(ulong)bVar29 * -2" (cast_expression "(ulong)bVar29" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar15 = ~uVar15 - 1;" (assignment_expression "uVar15 = ~uVar15 - 1" identifier = (binary_expression "~uVar15 - 1" (unary_expression "~uVar15" ~ identifier) - number_literal)) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" identifier = identifier) ;) (if_statement "if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }" if (parenthesized_expression "(uVar10 <= uVar15)" ( (binary_expression "uVar10 <= uVar15" identifier <= identifier) )) (compound_statement "{\n          uVar11 = uVar15;\n        }" { (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" identifier = identifier) ;) })) (if_statement "if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "(uVar11 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar11 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" { (if_statement "if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }" { (if_statement "if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" if (parenthesized_expression "(uVar15 < uVar10)" ( (binary_expression "uVar15 < uVar10" identifier < identifier) )) (compound_statement "{\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" else (compound_statement "{\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n              FUN_001358c7(param_1,__src,uVar15);\n            }" { (expression_statement "FUN_001358c7(param_1,__src,uVar15);" (call_expression "FUN_001358c7(param_1,__src,uVar15)" identifier (argument_list "(param_1,__src,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" else (if_statement "if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" if (parenthesized_expression "(cVar7 == '\0')" ( (binary_expression "cVar7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              memcpy(param_1,__src,uVar15);\n            }" { (expression_statement "memcpy(param_1,__src,uVar15);" (call_expression "memcpy(param_1,__src,uVar15)" identifier (argument_list "(param_1,__src,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" else (compound_statement "{\n              FUN_00135900(param_1,__src,uVar15);\n            }" { (expression_statement "FUN_00135900(param_1,__src,uVar15);" (call_expression "FUN_00135900(param_1,__src,uVar15)" identifier (argument_list "(param_1,__src,uVar15)" ( identifier , identifier , identifier ))) ;) }))))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" identifier = (binary_expression "lVar24 + uVar11" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (case_statement "case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;" case (char_literal "'a'" ' character ') : (if_statement "if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }" if (parenthesized_expression "(cVar16 == '\0')" ( (binary_expression "cVar16 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }" { (if_statement "if (bVar28 != false) {\n            cVar7 = bVar28;\n          }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n            cVar7 = bVar28;\n          }" { (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" identifier = identifier) ;) })) (expression_statement "cVar5 = 'a';" (assignment_expression "cVar5 = 'a'" identifier = (char_literal "'a'" ' character ')) ;) (goto_statement "goto LAB_00135bf1;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'b':" case (char_literal "'b'" ' character ') :) (case_statement "case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;" case (char_literal "'h'" ' character ') : (if_statement "if (bVar28 != false) {\n          cVar7 = bVar28;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          cVar7 = bVar28;\n        }" { (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" identifier = identifier) ;) })) (if_statement "if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (labeled_statement "LAB_00136cd6:\n        if (*local_4b8 != '%') break;" statement_identifier : (if_statement "if (*local_4b8 != '%') break;" if (parenthesized_expression "(*local_4b8 != '%')" ( (binary_expression "*local_4b8 != '%'" (pointer_expression "*local_4b8" * identifier) != (char_literal "'%'" ' character ')) )) (break_statement "break;" break ;))) (expression_statement "iVar14 = 1;" (assignment_expression "iVar14 = 1" identifier = number_literal) ;) (expression_statement "param_3 = local_4b8;" (assignment_expression "param_3 = local_4b8" identifier = identifier) ;) (expression_statement "pcVar17 = local_4b8;" (assignment_expression "pcVar17 = local_4b8" identifier = identifier) ;) (goto_statement "goto LAB_00136d21;" goto statement_identifier ;)) (case_statement "case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'c'" ' character ') : (if_statement "if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'O')" ( (binary_expression "cVar16 != 'O'" identifier != (char_literal "'O'" ' character ')) )) (compound_statement "{\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "cVar5 = 'c';" (assignment_expression "cVar5 = 'c'" identifier = (char_literal "'c'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'d'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_mday;" (assignment_expression "uVar12 = param_4->tm_mday" identifier = (field_expression "param_4->tm_mday" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'e'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_mday;" (assignment_expression "uVar12 = param_4->tm_mday" identifier = (field_expression "param_4->tm_mday" identifier -> field_identifier)) ;) (labeled_statement "LAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }" statement_identifier : (if_statement "if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }" if (parenthesized_expression "((cVar4 == '0') || (cVar4 == '-'))" ( (binary_expression "(cVar4 == '0') || (cVar4 == '-')" (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) || (parenthesized_expression "(cVar4 == '-')" ( (binary_expression "cVar4 == '-'" identifier == (char_literal "'-'" ' character ')) ))) )) (compound_statement "{\n            iVar22 = 2;\n          }" { (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }) (else_clause "else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }" else (compound_statement "{\n            cVar4 = '_';\n            iVar22 = 2;\n          }" { (expression_statement "cVar4 = '_';" (assignment_expression "cVar4 = '_'" identifier = (char_literal "'_'" ' character ')) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) })))) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;" case (char_literal "'j'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }" { (expression_statement "bVar28 = param_4->tm_yday < -1;" (assignment_expression "bVar28 = param_4->tm_yday < -1" identifier = (binary_expression "param_4->tm_yday < -1" (field_expression "param_4->tm_yday" identifier -> field_identifier) < number_literal)) ;) (expression_statement "uVar12 = param_4->tm_yday + 1;" (assignment_expression "uVar12 = param_4->tm_yday + 1" identifier = (binary_expression "param_4->tm_yday + 1" (field_expression "param_4->tm_yday" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 3;" (assignment_expression "iVar22 = 3" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;" case (char_literal "'k'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }" { (expression_statement "uVar12 = param_4->tm_hour;" (assignment_expression "uVar12 = param_4->tm_hour" identifier = (field_expression "param_4->tm_hour" identifier -> field_identifier)) ;) (goto_statement "goto LAB_00135ea8;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;" case (char_literal "'l'" ' character ') : (if_statement "if (cVar16 != 'E') goto LAB_00135ea8;" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (goto_statement "goto LAB_00135ea8;" goto statement_identifier ;)) (break_statement "break;" break ;)) (case_statement "case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;" case (char_literal "'m'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" { (expression_statement "bVar28 = param_4->tm_mon < -1;" (assignment_expression "bVar28 = param_4->tm_mon < -1" identifier = (binary_expression "param_4->tm_mon < -1" (field_expression "param_4->tm_mon" identifier -> field_identifier) < number_literal)) ;) (expression_statement "uVar12 = param_4->tm_mon + 1;" (assignment_expression "uVar12 = param_4->tm_mon + 1" identifier = (binary_expression "param_4->tm_mon + 1" (field_expression "param_4->tm_mon" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;" case (char_literal "'n'" ' character ') : (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar15 = uVar11;\n        }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }" { (if_statement "if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" if (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) )) (compound_statement "{\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" else (compound_statement "{\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*param_1 = '\n';" (assignment_expression "*param_1 = '\n'" (pointer_expression "*param_1" * identifier) = (char_literal "'\n'" ' escape_sequence ')) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;)) (case_statement "case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;" case (char_literal "'p'" ' character ') : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (labeled_statement "LAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }" statement_identifier : (if_statement "if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          local_4b8._0_1_ = bVar28;\n        }" { (expression_statement "local_4b8._0_1_ = bVar28;" (assignment_expression "local_4b8._0_1_ = bVar28" (field_expression "local_4b8._0_1_" identifier . field_identifier) = identifier) ;) }))) (expression_statement "cVar5 = 'p';" (assignment_expression "cVar5 = 'p'" identifier = (char_literal "'p'" ' character ')) ;) (if_statement "if (bVar28 != false) {\n          cVar7 = '\0';\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          cVar7 = '\0';\n        }" { (expression_statement "cVar7 = '\0';" (assignment_expression "cVar7 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) })) (labeled_statement "LAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" statement_identifier : (if_statement "if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" if (parenthesized_expression "(cVar16 != '\0')" ( (binary_expression "cVar16 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" { (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135f06;" goto statement_identifier ;) }))) (expression_statement "pcVar17 = local_44d + 2;" (assignment_expression "pcVar17 = local_44d + 2" identifier = (binary_expression "local_44d + 2" identifier + number_literal)) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135f1c;" goto statement_identifier ;)) (case_statement "case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;" case (char_literal "'q'" ' character ') : (expression_statement "cVar5 = 'q';" (assignment_expression "cVar5 = 'q'" identifier = (char_literal "'q'" ' character ')) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (if_statement "if (cVar16 == 'O') goto LAB_00135ef1;" if (parenthesized_expression "(cVar16 == 'O')" ( (binary_expression "cVar16 == 'O'" identifier == (char_literal "'O'" ' character ')) )) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;)) (expression_statement "uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;" (assignment_expression "uVar12 = (param_4->tm_mon * 0xb >> 5) + 1" identifier = (binary_expression "(param_4->tm_mon * 0xb >> 5) + 1" (parenthesized_expression "(param_4->tm_mon * 0xb >> 5)" ( (binary_expression "param_4->tm_mon * 0xb >> 5" (binary_expression "param_4->tm_mon * 0xb" (field_expression "param_4->tm_mon" identifier -> field_identifier) * number_literal) >> number_literal) )) + number_literal)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" identifier = false) ;) (goto_statement "goto LAB_00136a33;" goto statement_identifier ;)) (case_statement "case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;" case (char_literal "'r'" ' character ') : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;)) (case_statement "case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;" case (char_literal "'s'" ' character ') : (expression_statement "local_488._0_4_ = param_4->tm_sec;" (assignment_expression "local_488._0_4_ = param_4->tm_sec" (field_expression "local_488._0_4_" identifier . field_identifier) = (field_expression "param_4->tm_sec" identifier -> field_identifier)) ;) (expression_statement "local_488._4_4_ = param_4->tm_min;" (assignment_expression "local_488._4_4_ = param_4->tm_min" (field_expression "local_488._4_4_" identifier . field_identifier) = (field_expression "param_4->tm_min" identifier -> field_identifier)) ;) (expression_statement "uStack_480._0_4_ = param_4->tm_hour;" (assignment_expression "uStack_480._0_4_ = param_4->tm_hour" (field_expression "uStack_480._0_4_" identifier . field_identifier) = (field_expression "param_4->tm_hour" identifier -> field_identifier)) ;) (expression_statement "uStack_480._4_4_ = param_4->tm_mday;" (assignment_expression "uStack_480._4_4_ = param_4->tm_mday" (field_expression "uStack_480._4_4_" identifier . field_identifier) = (field_expression "param_4->tm_mday" identifier -> field_identifier)) ;) (expression_statement "local_478._0_4_ = param_4->tm_mon;" (assignment_expression "local_478._0_4_ = param_4->tm_mon" (field_expression "local_478._0_4_" identifier . field_identifier) = (field_expression "param_4->tm_mon" identifier -> field_identifier)) ;) (expression_statement "local_478._4_4_ = param_4->tm_year;" (assignment_expression "local_478._4_4_ = param_4->tm_year" (field_expression "local_478._4_4_" identifier . field_identifier) = (field_expression "param_4->tm_year" identifier -> field_identifier)) ;) (expression_statement "uStack_470._0_4_ = param_4->tm_wday;" (assignment_expression "uStack_470._0_4_ = param_4->tm_wday" (field_expression "uStack_470._0_4_" identifier . field_identifier) = (field_expression "param_4->tm_wday" identifier -> field_identifier)) ;) (expression_statement "uStack_470._4_4_ = param_4->tm_yday;" (assignment_expression "uStack_470._4_4_ = param_4->tm_yday" (field_expression "uStack_470._4_4_" identifier . field_identifier) = (field_expression "param_4->tm_yday" identifier -> field_identifier)) ;) (expression_statement "local_468 = *(undefined8 *)&param_4->tm_isdst;" (assignment_expression "local_468 = *(undefined8 *)&param_4->tm_isdst" identifier = (pointer_expression "*(undefined8 *)&param_4->tm_isdst" * (cast_expression "(undefined8 *)&param_4->tm_isdst" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&param_4->tm_isdst" & (field_expression "param_4->tm_isdst" identifier -> field_identifier))))) ;) (expression_statement "lStack_460 = param_4->tm_gmtoff;" (assignment_expression "lStack_460 = param_4->tm_gmtoff" identifier = (field_expression "param_4->tm_gmtoff" identifier -> field_identifier)) ;) (expression_statement "local_458 = param_4->tm_zone;" (assignment_expression "local_458 = param_4->tm_zone" identifier = (field_expression "param_4->tm_zone" identifier -> field_identifier)) ;) (expression_statement "lVar9 = FUN_00134eb1(param_7,&local_488);" (assignment_expression "lVar9 = FUN_00134eb1(param_7,&local_488)" identifier = (call_expression "FUN_00134eb1(param_7,&local_488)" identifier (argument_list "(param_7,&local_488)" ( identifier , (pointer_expression "&local_488" & identifier) )))) ;) (expression_statement "pcVar17 = local_431;" (assignment_expression "pcVar17 = local_431" identifier = identifier) ;) (expression_statement "lVar23 = lVar9;" (assignment_expression "lVar23 = lVar9" identifier = identifier) ;) (do_statement "do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);" do (compound_statement "{\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        }" { (expression_statement "lVar3 = lVar23 / 10;" (assignment_expression "lVar3 = lVar23 / 10" identifier = (binary_expression "lVar23 / 10" identifier / number_literal)) ;) (expression_statement "cVar5 = (char)lVar23 + (char)lVar3 * -10;" (assignment_expression "cVar5 = (char)lVar23 + (char)lVar3 * -10" identifier = (binary_expression "(char)lVar23 + (char)lVar3 * -10" (cast_expression "(char)lVar23" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)lVar3 * -10" (cast_expression "(char)lVar3" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal))) ;) (if_statement "if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }" if (parenthesized_expression "(lVar9 < 0)" ( (binary_expression "lVar9 < 0" identifier < number_literal) )) (compound_statement "{\n            cVar5 = -cVar5;\n          }" { (expression_statement "cVar5 = -cVar5;" (assignment_expression "cVar5 = -cVar5" identifier = (unary_expression "-cVar5" - identifier)) ;) })) (expression_statement "pcVar17 = pcVar17 + -1;" (assignment_expression "pcVar17 = pcVar17 + -1" identifier = (binary_expression "pcVar17 + -1" identifier + number_literal)) ;) (expression_statement "*pcVar17 = cVar5 + '0';" (assignment_expression "*pcVar17 = cVar5 + '0'" (pointer_expression "*pcVar17" * identifier) = (binary_expression "cVar5 + '0'" identifier + (char_literal "'0'" ' character '))) ;) (expression_statement "lVar23 = lVar3;" (assignment_expression "lVar23 = lVar3" identifier = identifier) ;) }) while (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (if_statement "if (0 < iVar26) {\n          iVar22 = iVar26;\n        }" if (parenthesized_expression "(0 < iVar26)" ( (binary_expression "0 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar22 = iVar26;\n        }" { (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" identifier = identifier) ;) })) (if_statement "if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }" if (parenthesized_expression "(lVar9 < 0)" ( (binary_expression "lVar9 < 0" identifier < number_literal) )) (compound_statement "{\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }" { (expression_statement "cVar5 = '-';" (assignment_expression "cVar5 = '-'" identifier = (char_literal "'-'" ' character ')) ;) (goto_statement "goto LAB_00136e58;" goto statement_identifier ;) })) (goto_statement "goto LAB_0013605d;" goto statement_identifier ;)) (case_statement "case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;" case (char_literal "'t'" ' character ') : (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n          iVar14 = iVar26;\n        }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar15 = uVar11;\n        }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }" { (if_statement "if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" if (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) )) (compound_statement "{\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" else (compound_statement "{\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*param_1 = '\t';" (assignment_expression "*param_1 = '\t'" (pointer_expression "*param_1" * identifier) = (char_literal "'\t'" ' escape_sequence ')) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;)) (case_statement "case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;" case (char_literal "'u'" ' character ') : (expression_statement "uVar12 = (param_4->tm_wday + 6) % 7 + 1;" (assignment_expression "uVar12 = (param_4->tm_wday + 6) % 7 + 1" identifier = (binary_expression "(param_4->tm_wday + 6) % 7 + 1" (binary_expression "(param_4->tm_wday + 6) % 7" (parenthesized_expression "(param_4->tm_wday + 6)" ( (binary_expression "param_4->tm_wday + 6" (field_expression "param_4->tm_wday" identifier -> field_identifier) + number_literal) )) % number_literal) + number_literal)) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;)) (case_statement "case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;" case (char_literal "'w'" ' character ') : (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }" if (parenthesized_expression "(cVar16 != 'E')" ( (binary_expression "cVar16 != 'E'" identifier != (char_literal "'E'" ' character ')) )) (compound_statement "{\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }" { (expression_statement "uVar12 = param_4->tm_wday;" (assignment_expression "uVar12 = param_4->tm_wday" identifier = (field_expression "param_4->tm_wday" identifier -> field_identifier)) ;) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00135ecc;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" case (char_literal "'x'" ' character ') : (if_statement "if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" if (parenthesized_expression "(cVar16 != 'O')" ( (binary_expression "cVar16 != 'O'" identifier != (char_literal "'O'" ' character ')) )) (compound_statement "{\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" { (expression_statement "cVar5 = 'x';" (assignment_expression "cVar5 = 'x'" identifier = (char_literal "'x'" ' character ')) ;) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;) (goto_statement "goto LAB_001364b6;" goto statement_identifier ;) })) (break_statement "break;" break ;)) (case_statement "case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;" case (char_literal "'y'" ' character ') : (if_statement "if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" if (parenthesized_expression "(cVar16 == 'E')" ( (binary_expression "cVar16 == 'E'" identifier == (char_literal "'E'" ' character ')) )) (compound_statement "{\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" { (expression_statement "cVar5 = 'y';" (assignment_expression "cVar5 = 'y'" identifier = (char_literal "'y'" ' character ')) ;) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135ef1;" goto statement_identifier ;) })) (expression_statement "uVar12 = param_4->tm_year % 100;" (assignment_expression "uVar12 = param_4->tm_year % 100" identifier = (binary_expression "param_4->tm_year % 100" (field_expression "param_4->tm_year" identifier -> field_identifier) % number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) (if_statement "if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }" if (parenthesized_expression "((int)uVar12 < 0)" ( (binary_expression "(int)uVar12 < 0" (cast_expression "(int)uVar12" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }" { (if_statement "if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }" if (parenthesized_expression "(param_4->tm_year < -0x76c)" ( (binary_expression "param_4->tm_year < -0x76c" (field_expression "param_4->tm_year" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n            uVar12 = -uVar12;\n          }" { (expression_statement "uVar12 = -uVar12;" (assignment_expression "uVar12 = -uVar12" identifier = (unary_expression "-uVar12" - identifier)) ;) }) (else_clause "else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }" else (compound_statement "{\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }" { (expression_statement "uVar12 = uVar12 + 100;" (assignment_expression "uVar12 = uVar12 + 100" identifier = (binary_expression "uVar12 + 100" identifier + number_literal)) ;) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" identifier = number_literal) ;) }))) })) (labeled_statement "LAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);" statement_identifier : (expression_statement "bVar28 = SUB41(uVar12 >> 0x1f,0);" (assignment_expression "bVar28 = SUB41(uVar12 >> 0x1f,0)" identifier = (call_expression "SUB41(uVar12 >> 0x1f,0)" identifier (argument_list "(uVar12 >> 0x1f,0)" ( (binary_expression "uVar12 >> 0x1f" identifier >> number_literal) , number_literal )))) ;)) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" identifier = false) ;) (labeled_statement "LAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }" statement_identifier : (if_statement "if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }" if (parenthesized_expression "((cVar16 == 'O') && (bVar28 == false))" ( (binary_expression "(cVar16 == 'O') && (bVar28 == false)" (parenthesized_expression "(cVar16 == 'O')" ( (binary_expression "cVar16 == 'O'" identifier == (char_literal "'O'" ' character ')) )) && (parenthesized_expression "(bVar28 == false)" ( (binary_expression "bVar28 == false" identifier == false) ))) )) (compound_statement "{\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }" { (labeled_statement "LAB_00135ef1:\n          local_4b8._0_1_ = false;" statement_identifier : (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" identifier . field_identifier) = false) ;)) (labeled_statement "LAB_00135f06:\n          pcVar17 = local_44a;" statement_identifier : (expression_statement "pcVar17 = local_44a;" (assignment_expression "pcVar17 = local_44a" identifier = identifier) ;)) (expression_statement "local_44d[2] = cVar16;" (assignment_expression "local_44d[2] = cVar16" (subscript_expression "local_44d[2]" identifier [ number_literal ]) = identifier) ;) (labeled_statement "LAB_00135f1c:\n          local_44d[1] = 0x25;" statement_identifier : (expression_statement "local_44d[1] = 0x25;" (assignment_expression "local_44d[1] = 0x25" (subscript_expression "local_44d[1]" identifier [ number_literal ]) = number_literal) ;)) (expression_statement "local_44d[0] = ' ';" (assignment_expression "local_44d[0] = ' '" (subscript_expression "local_44d[0]" identifier [ number_literal ]) = (char_literal "' '" ' character ')) ;) (expression_statement "*pcVar17 = cVar5;" (assignment_expression "*pcVar17 = cVar5" (pointer_expression "*pcVar17" * identifier) = identifier) ;) (expression_statement "pcVar17[1] = '\0';" (assignment_expression "pcVar17[1] = '\0'" (subscript_expression "pcVar17[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "sVar27 = strftime(&local_448,0x400,local_44d,param_4);" (assignment_expression "sVar27 = strftime(&local_448,0x400,local_44d,param_4)" identifier = (call_expression "strftime(&local_448,0x400,local_44d,param_4)" identifier (argument_list "(&local_448,0x400,local_44d,param_4)" ( (pointer_expression "&local_448" & identifier) , number_literal , identifier , identifier )))) ;) (if_statement "if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }" if (parenthesized_expression "(sVar27 != 0)" ( (binary_expression "sVar27 != 0" identifier != number_literal) )) (compound_statement "{\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }" { (expression_statement "uVar15 = sVar27 - 1;" (assignment_expression "uVar15 = sVar27 - 1" identifier = (binary_expression "sVar27 - 1" identifier - number_literal)) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar14 = iVar26;\n            }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" identifier = identifier) ;) (if_statement "if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }" if (parenthesized_expression "(uVar10 <= uVar15)" ( (binary_expression "uVar10 <= uVar15" identifier <= identifier) )) (compound_statement "{\n              uVar11 = uVar15;\n            }" { (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar11)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar11" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" { (if_statement "if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" if (parenthesized_expression "((iVar22 == 0) && (uVar15 < uVar10))" ( (binary_expression "(iVar22 == 0) && (uVar15 < uVar10)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar15 < uVar10)" ( (binary_expression "uVar15 < uVar10" identifier < identifier) ))) )) (compound_statement "{\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" else (compound_statement "{\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }" if (parenthesized_expression "(local_4b8._0_1_ == false)" ( (binary_expression "local_4b8._0_1_ == false" (field_expression "local_4b8._0_1_" identifier . field_identifier) == false) )) (compound_statement "{\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }" { (if_statement "if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }" if (parenthesized_expression "(cVar7 == '\0')" ( (binary_expression "cVar7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                  memcpy(param_1,local_447,uVar15);\n                }" { (expression_statement "memcpy(param_1,local_447,uVar15);" (call_expression "memcpy(param_1,local_447,uVar15)" identifier (argument_list "(param_1,local_447,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }" else (compound_statement "{\n                  FUN_00135900(param_1,local_447,uVar15);\n                }" { (expression_statement "FUN_00135900(param_1,local_447,uVar15);" (call_expression "FUN_00135900(param_1,local_447,uVar15)" identifier (argument_list "(param_1,local_447,uVar15)" ( identifier , identifier , identifier ))) ;) }))) }) (else_clause "else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }" else (compound_statement "{\n                FUN_001358c7(param_1,local_447,uVar15);\n              }" { (expression_statement "FUN_001358c7(param_1,local_447,uVar15);" (call_expression "FUN_001358c7(param_1,local_447,uVar15)" identifier (argument_list "(param_1,local_447,uVar15)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" identifier = (binary_expression "lVar24 + uVar11" identifier + identifier)) ;) })) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) }))) (labeled_statement "LAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }" statement_identifier : (if_statement "if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          uVar12 = -uVar12;\n        }" { (expression_statement "uVar12 = -uVar12;" (assignment_expression "uVar12 = -uVar12" identifier = (unary_expression "-uVar12" - identifier)) ;) }))) (labeled_statement "LAB_00136a33:\n        pcVar17 = local_431;" statement_identifier : (expression_statement "pcVar17 = local_431;" (assignment_expression "pcVar17 = local_431" identifier = identifier) ;)) (do_statement "do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));" do (compound_statement "{\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        }" { (expression_statement "pcVar20 = pcVar17;" (assignment_expression "pcVar20 = pcVar17" identifier = identifier) ;) (if_statement "if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }" if (parenthesized_expression "((uVar18 & 1) != 0)" ( (binary_expression "(uVar18 & 1) != 0" (parenthesized_expression "(uVar18 & 1)" ( (binary_expression "uVar18 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }" { (expression_statement "pcVar20 = pcVar17 + -1;" (assignment_expression "pcVar20 = pcVar17 + -1" identifier = (binary_expression "pcVar17 + -1" identifier + number_literal)) ;) (expression_statement "pcVar17[-1] = ':';" (assignment_expression "pcVar17[-1] = ':'" (subscript_expression "pcVar17[-1]" identifier [ number_literal ]) = (char_literal "':'" ' character ')) ;) })) (expression_statement "uVar18 = (int)uVar18 >> 1;" (assignment_expression "uVar18 = (int)uVar18 >> 1" identifier = (binary_expression "(int)uVar18 >> 1" (cast_expression "(int)uVar18" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "pcVar17 = pcVar20 + -1;" (assignment_expression "pcVar17 = pcVar20 + -1" identifier = (binary_expression "pcVar20 + -1" identifier + number_literal)) ;) (expression_statement "uVar13 = uVar12 / 10;" (assignment_expression "uVar13 = uVar12 / 10" identifier = (binary_expression "uVar12 / 10" identifier / number_literal)) ;) (expression_statement "pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';" (assignment_expression "pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0'" (subscript_expression "pcVar20[-1]" identifier [ number_literal ]) = (binary_expression "(char)uVar12 + (char)uVar13 * -10 + '0'" (binary_expression "(char)uVar12 + (char)uVar13 * -10" (cast_expression "(char)uVar12" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)uVar13 * -10" (cast_expression "(char)uVar13" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "bVar1 = 9 < uVar12;" (assignment_expression "bVar1 = 9 < uVar12" identifier = (binary_expression "9 < uVar12" number_literal < identifier)) ;) (expression_statement "uVar12 = uVar13;" (assignment_expression "uVar12 = uVar13" identifier = identifier) ;) }) while (parenthesized_expression "((bVar1) || (uVar18 != 0))" ( (binary_expression "(bVar1) || (uVar18 != 0)" (parenthesized_expression "(bVar1)" ( identifier )) || (parenthesized_expression "(uVar18 != 0)" ( (binary_expression "uVar18 != 0" identifier != number_literal) ))) )) ;) (if_statement "if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }" if (parenthesized_expression "(iVar22 < iVar26)" ( (binary_expression "iVar22 < iVar26" identifier < identifier) )) (compound_statement "{\n          iVar22 = iVar26;\n        }" { (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" identifier = identifier) ;) })) (if_statement "if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }" if (parenthesized_expression "(bVar28 != false)" ( (binary_expression "bVar28 != false" identifier != false) )) (compound_statement "{\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }" { (expression_statement "cVar5 = '-';" (assignment_expression "cVar5 = '-'" identifier = (char_literal "'-'" ' character ')) ;) (labeled_statement "LAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" statement_identifier : (if_statement "if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" if (parenthesized_expression "(cVar4 == '-')" ( (binary_expression "cVar4 == '-'" identifier == (char_literal "'-'" ' character ')) )) (compound_statement "{\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar14 = iVar26;\n            }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar15 = uVar11;\n            }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" if (parenthesized_expression "(uVar15 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar15 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" { (if_statement "if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" { (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" ( (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) ))) )) (compound_statement "{\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" { (expression_statement "memset(param_1,0x20,(long)iVar26 - 1U);" (call_expression "memset(param_1,0x20,(long)iVar26 - 1U)" identifier (argument_list "(param_1,0x20,(long)iVar26 - 1U)" ( identifier , number_literal , (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) ))) ;) (expression_statement "param_1 = param_1 + ((long)iVar26 - 1U);" (assignment_expression "param_1 = param_1 + ((long)iVar26 - 1U)" identifier = (binary_expression "param_1 + ((long)iVar26 - 1U)" identifier + (parenthesized_expression "((long)iVar26 - 1U)" ( (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) )))) ;) })) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;) })) }) (else_clause "else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" else (compound_statement "{\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" { (expression_statement "bVar28 = cVar5 != '\0';" (assignment_expression "bVar28 = cVar5 != '\0'" identifier = (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ;) (expression_statement "iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;" (assignment_expression "iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28" identifier = (binary_expression "(iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28" (parenthesized_expression "(iVar22 - (iVar14 - (int)pcVar17))" ( (binary_expression "iVar22 - (iVar14 - (int)pcVar17)" identifier - (parenthesized_expression "(iVar14 - (int)pcVar17)" ( (binary_expression "iVar14 - (int)pcVar17" identifier - (cast_expression "(int)pcVar17" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) - (cast_expression "(uint)bVar28" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) (if_statement "if (0 < iVar14) goto LAB_00136e8a;" if (parenthesized_expression "(0 < iVar14)" ( (binary_expression "0 < iVar14" number_literal < identifier) )) (goto_statement "goto LAB_00136e8a;" goto statement_identifier ;)) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar14 = iVar26;\n            }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar15 = uVar11;\n            }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" if (parenthesized_expression "(uVar15 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar15 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" { (if_statement "if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" { (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" ( (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) ))) )) (compound_statement "{\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" else (compound_statement "{\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;) })) })))) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;) })) (expression_statement "cVar5 = '+';" (assignment_expression "cVar5 = '+'" identifier = (char_literal "'+'" ' character ')) ;) (if_statement "if (bVar2) goto LAB_00136e58;" if (parenthesized_expression "(bVar2)" ( identifier )) (goto_statement "goto LAB_00136e58;" goto statement_identifier ;)) (labeled_statement "LAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;" statement_identifier : (if_statement "if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;" if (parenthesized_expression "((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))" ( (binary_expression "(cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1)" (parenthesized_expression "(cVar4 == '-')" ( (binary_expression "cVar4 == '-'" identifier == (char_literal "'-'" ' character ')) )) || (parenthesized_expression "(iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1)" ( (comma_expression "iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1" (assignment_expression "iVar14 = iVar22 - (iVar14 - (int)pcVar17)" identifier = (binary_expression "iVar22 - (iVar14 - (int)pcVar17)" identifier - (parenthesized_expression "(iVar14 - (int)pcVar17)" ( (binary_expression "iVar14 - (int)pcVar17" identifier - (cast_expression "(int)pcVar17" ( (type_descriptor "int" primitive_type) ) identifier)) )))) , (binary_expression "iVar14 < 1" identifier < number_literal)) ))) )) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;))) (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" identifier = false) ;) (labeled_statement "LAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" statement_identifier : (if_statement "if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" if (parenthesized_expression "(cVar4 == '_')" ( (binary_expression "cVar4 == '_'" identifier == (char_literal "'_'" ' character ')) )) (compound_statement "{\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }" { (expression_statement "uVar15 = (ulong)iVar14;" (assignment_expression "uVar15 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (if_statement "if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }" if (parenthesized_expression "(uVar15 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar15 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }" { (if_statement "if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }" { (expression_statement "memset(param_1,0x20,uVar15);" (call_expression "memset(param_1,0x20,uVar15)" identifier (argument_list "(param_1,0x20,uVar15)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) (expression_statement "iVar8 = iVar26 - iVar14;" (assignment_expression "iVar8 = iVar26 - iVar14" identifier = (binary_expression "iVar26 - iVar14" identifier - identifier)) ;) (expression_statement "bVar2 = iVar14 < iVar26;" (assignment_expression "bVar2 = iVar14 < iVar26" identifier = (binary_expression "iVar14 < iVar26" identifier < identifier)) ;) (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" identifier = number_literal) ;) (if_statement "if (bVar2) {\n              iVar26 = iVar8;\n            }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n              iVar26 = iVar8;\n            }" { (expression_statement "iVar26 = iVar8;" (assignment_expression "iVar26 = iVar8" identifier = identifier) ;) })) (if_statement "if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }" { (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n                iVar14 = iVar26;\n              }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n                uVar15 = uVar11;\n              }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" { (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" ( (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) ))) )) (compound_statement "{\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" { (expression_statement "memset(param_1,0x20,(long)iVar26 - 1U);" (call_expression "memset(param_1,0x20,(long)iVar26 - 1U)" identifier (argument_list "(param_1,0x20,(long)iVar26 - 1U)" ( identifier , number_literal , (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) ))) ;) (expression_statement "param_1 = param_1 + ((long)iVar26 - 1U);" (assignment_expression "param_1 = param_1 + ((long)iVar26 - 1U)" identifier = (binary_expression "param_1 + ((long)iVar26 - 1U)" identifier + (parenthesized_expression "((long)iVar26 - 1U)" ( (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal) )))) ;) })) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) })) (goto_statement "goto LAB_00136f44;" goto statement_identifier ;) })) }) (else_clause "else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" else (if_statement "if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" if (parenthesized_expression "((ulong)(long)iVar22 < (ulong)(param_2 - lVar24))" ( (binary_expression "(ulong)(long)iVar22 < (ulong)(param_2 - lVar24)" (cast_expression "(ulong)(long)iVar22" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(long)iVar22" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" { (if_statement "if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }" if (parenthesized_expression "(bVar28)" ( identifier )) (compound_statement "{\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n              iVar8 = iVar26;\n            }" { (expression_statement "iVar8 = iVar26;" (assignment_expression "iVar8 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar11 = (ulong)iVar8;" (assignment_expression "uVar11 = (ulong)iVar8" identifier = (cast_expression "(ulong)iVar8" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" identifier = number_literal) ;) (if_statement "if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }" if (parenthesized_expression "(uVar11 != 0)" ( (binary_expression "uVar11 != 0" identifier != number_literal) )) (compound_statement "{\n              uVar15 = uVar11;\n            }" { (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (if_statement "if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }" { (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" if (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" ( (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(1 < uVar11)" ( (binary_expression "1 < uVar11" number_literal < identifier) ))) )) (compound_statement "{\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" { (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" identifier = (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - number_literal)) ;) (if_statement "if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" else (compound_statement "{\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) })) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" identifier = (binary_expression "lVar24 + uVar15" identifier + identifier)) ;) })) (if_statement "if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }" { (expression_statement "memset(param_1,0x30,(long)iVar14);" (call_expression "memset(param_1,0x30,(long)iVar14)" identifier (argument_list "(param_1,0x30,(long)iVar14)" ( identifier , number_literal , (cast_expression "(long)iVar14" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) ))) ;) (expression_statement "param_1 = param_1 + iVar14;" (assignment_expression "param_1 = param_1 + iVar14" identifier = (binary_expression "param_1 + iVar14" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + iVar14;" (assignment_expression "lVar24 = lVar24 + iVar14" identifier = (binary_expression "lVar24 + iVar14" identifier + identifier)) ;) (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;" statement_identifier : (expression_statement "uVar15 = (long)local_431 - (long)pcVar17;" (assignment_expression "uVar15 = (long)local_431 - (long)pcVar17" identifier = (binary_expression "(long)local_431 - (long)pcVar17" (cast_expression "(long)local_431" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)pcVar17" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;)) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n            iVar14 = iVar26;\n          }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" identifier = identifier) ;) (if_statement "if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }" if (parenthesized_expression "(uVar10 <= uVar15)" ( (binary_expression "uVar10 <= uVar15" identifier <= identifier) )) (compound_statement "{\n            uVar11 = uVar15;\n          }" { (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" identifier = identifier) ;) })) (if_statement "if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }" if (parenthesized_expression "(uVar11 < (ulong)(param_2 - lVar24))" ( (binary_expression "uVar11 < (ulong)(param_2 - lVar24)" identifier < (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) )))) )) (compound_statement "{\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }" { (if_statement "if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" { (if_statement "if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" if (parenthesized_expression "((iVar22 == 0) && (uVar15 < uVar10))" ( (binary_expression "(iVar22 == 0) && (uVar15 < uVar10)" (parenthesized_expression "(iVar22 == 0)" ( (binary_expression "iVar22 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar15 < uVar10)" ( (binary_expression "uVar15 < uVar10" identifier < identifier) ))) )) (compound_statement "{\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" else (compound_statement "{\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }" if (parenthesized_expression "(cVar7 == '\0')" ( (binary_expression "cVar7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n                memcpy(param_1,pcVar17,uVar15);\n              }" { (expression_statement "memcpy(param_1,pcVar17,uVar15);" (call_expression "memcpy(param_1,pcVar17,uVar15)" identifier (argument_list "(param_1,pcVar17,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }" else (compound_statement "{\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }" { (expression_statement "FUN_00135900(param_1,pcVar17,uVar15);" (call_expression "FUN_00135900(param_1,pcVar17,uVar15)" identifier (argument_list "(param_1,pcVar17,uVar15)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" identifier = (binary_expression "lVar24 + uVar11" identifier + identifier)) ;) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;) })) }))))) (goto_statement "goto LAB_00136dd9;" goto statement_identifier ;)) (case_statement "case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;" case (char_literal "'z'" ' character ') : (expression_statement "lVar23 = 0;" (assignment_expression "lVar23 = 0" identifier = number_literal) ;) (expression_statement "pcVar17 = param_3;" (assignment_expression "pcVar17 = param_3" identifier = identifier) ;) (labeled_statement "LAB_00136bae:\n        param_3 = pcVar17;" statement_identifier : (expression_statement "param_3 = pcVar17;" (assignment_expression "param_3 = pcVar17" identifier = identifier) ;)) (if_statement "if (param_4->tm_isdst < 0) goto LAB_001359f4;" if (parenthesized_expression "(param_4->tm_isdst < 0)" ( (binary_expression "param_4->tm_isdst < 0" (field_expression "param_4->tm_isdst" identifier -> field_identifier) < number_literal) )) (goto_statement "goto LAB_001359f4;" goto statement_identifier ;)) (expression_statement "bVar28 = true;" (assignment_expression "bVar28 = true" identifier = true) ;) (expression_statement "iVar22 = (int)param_4->tm_gmtoff;" (assignment_expression "iVar22 = (int)param_4->tm_gmtoff" identifier = (cast_expression "(int)param_4->tm_gmtoff" ( (type_descriptor "int" primitive_type) ) (field_expression "param_4->tm_gmtoff" identifier -> field_identifier))) ;) (if_statement "if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }" if (parenthesized_expression "((-1 < iVar22) && (bVar28 = false, iVar22 == 0))" ( (binary_expression "(-1 < iVar22) && (bVar28 = false, iVar22 == 0)" (parenthesized_expression "(-1 < iVar22)" ( (binary_expression "-1 < iVar22" number_literal < identifier) )) && (parenthesized_expression "(bVar28 = false, iVar22 == 0)" ( (comma_expression "bVar28 = false, iVar22 == 0" (assignment_expression "bVar28 = false" identifier = false) , (binary_expression "iVar22 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n          bVar28 = *__src == '-';\n        }" { (expression_statement "bVar28 = *__src == '-';" (assignment_expression "bVar28 = *__src == '-'" identifier = (binary_expression "*__src == '-'" (pointer_expression "*__src" * identifier) == (char_literal "'-'" ' character '))) ;) })) (expression_statement "uVar12 = iVar22 / 0xe10;" (assignment_expression "uVar12 = iVar22 / 0xe10" identifier = (binary_expression "iVar22 / 0xe10" identifier / number_literal)) ;) (expression_statement "iVar8 = (iVar22 / 0x3c) % 0x3c;" (assignment_expression "iVar8 = (iVar22 / 0x3c) % 0x3c" identifier = (binary_expression "(iVar22 / 0x3c) % 0x3c" (parenthesized_expression "(iVar22 / 0x3c)" ( (binary_expression "iVar22 / 0x3c" identifier / number_literal) )) % number_literal)) ;) (if_statement "if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" if (parenthesized_expression "(lVar23 == 1)" ( (binary_expression "lVar23 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }" { (labeled_statement "LAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;" statement_identifier : (expression_statement "uVar12 = uVar12 * 100 + iVar8;" (assignment_expression "uVar12 = uVar12 * 100 + iVar8" identifier = (binary_expression "uVar12 * 100 + iVar8" (binary_expression "uVar12 * 100" identifier * number_literal) + identifier)) ;)) (expression_statement "uVar18 = 4;" (assignment_expression "uVar18 = 4" identifier = number_literal) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 6;" (assignment_expression "iVar22 = 6" identifier = number_literal) ;) }) (else_clause "else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" else (if_statement "if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" if (parenthesized_expression "(lVar23 == 0)" ( (binary_expression "lVar23 == 0" identifier == number_literal) )) (compound_statement "{\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }" { (expression_statement "uVar12 = uVar12 * 100 + iVar8;" (assignment_expression "uVar12 = uVar12 * 100 + iVar8" identifier = (binary_expression "uVar12 * 100 + iVar8" (binary_expression "uVar12 * 100" identifier * number_literal) + identifier)) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 5;" (assignment_expression "iVar22 = 5" identifier = number_literal) ;) }) (else_clause "else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" else (compound_statement "{\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" { (if_statement "if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }" if (parenthesized_expression "(lVar23 != 2)" ( (binary_expression "lVar23 != 2" identifier != number_literal) )) (compound_statement "{\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }" { (expression_statement "local_4b8 = param_3;" (assignment_expression "local_4b8 = param_3" identifier = identifier) ;) (if_statement "if (lVar23 != 3) goto LAB_00136cd6;" if (parenthesized_expression "(lVar23 != 3)" ( (binary_expression "lVar23 != 3" identifier != number_literal) )) (goto_statement "goto LAB_00136cd6;" goto statement_identifier ;)) (if_statement "if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }" if (parenthesized_expression "(iVar22 % 0x3c == 0)" ( (binary_expression "iVar22 % 0x3c == 0" (binary_expression "iVar22 % 0x3c" identifier % number_literal) == number_literal) )) (compound_statement "{\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }" { (if_statement "if (iVar8 != 0) goto LAB_00136c74;" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00136c74;" goto statement_identifier ;)) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 3;" (assignment_expression "iVar22 = 3" identifier = number_literal) ;) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;) })) })) (expression_statement "uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;" (assignment_expression "uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c" identifier = (binary_expression "uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c" (binary_expression "uVar12 * 10000 + iVar8 * 100" (binary_expression "uVar12 * 10000" identifier * number_literal) + (binary_expression "iVar8 * 100" identifier * number_literal)) + (binary_expression "iVar22 % 0x3c" identifier % number_literal))) ;) (expression_statement "uVar18 = 0x14;" (assignment_expression "uVar18 = 0x14" identifier = number_literal) ;) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (expression_statement "iVar22 = 9;" (assignment_expression "iVar22 = 9" identifier = number_literal) ;) }))))) (goto_statement "goto LAB_00135edf;" goto statement_identifier ;)) })) (expression_statement "pcVar20 = local_4b8 + -1;" (assignment_expression "pcVar20 = local_4b8 + -1" identifier = (binary_expression "local_4b8 + -1" identifier + number_literal)) ;) (do_statement "do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');" do (compound_statement "{\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      }" { (expression_statement "pcVar17 = pcVar20;" (assignment_expression "pcVar17 = pcVar20" identifier = identifier) ;) (expression_statement "iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;" (assignment_expression "iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17" identifier = (binary_expression "((int)(local_4b8 + -1) + 2) - (int)pcVar17" (parenthesized_expression "((int)(local_4b8 + -1) + 2)" ( (binary_expression "(int)(local_4b8 + -1) + 2" (cast_expression "(int)(local_4b8 + -1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_4b8 + -1)" ( (binary_expression "local_4b8 + -1" identifier + number_literal) ))) + number_literal) )) - (cast_expression "(int)pcVar17" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "pcVar20 = pcVar17 + -1;" (assignment_expression "pcVar20 = pcVar17 + -1" identifier = (binary_expression "pcVar17 + -1" identifier + number_literal)) ;) (expression_statement "param_3 = local_4b8;" (assignment_expression "param_3 = local_4b8" identifier = identifier) ;) }) while (parenthesized_expression "(*pcVar17 != '%')" ( (binary_expression "*pcVar17 != '%'" (pointer_expression "*pcVar17" * identifier) != (char_literal "'%'" ' character ')) )) ;) (labeled_statement "LAB_00136d21:\n      local_4b8 = pcVar17;" statement_identifier : (expression_statement "local_4b8 = pcVar17;" (assignment_expression "local_4b8 = pcVar17" identifier = identifier) ;)) (expression_statement "uVar15 = (ulong)iVar14;" (assignment_expression "uVar15 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }" if (parenthesized_expression "(-1 < iVar26)" ( (binary_expression "-1 < iVar26" number_literal < identifier) )) (compound_statement "{\n        iVar14 = iVar26;\n      }" { (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" identifier = identifier) ;) })) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" identifier = (cast_expression "(ulong)iVar14" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" identifier = identifier) ;) (if_statement "if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }" if (parenthesized_expression "(uVar10 <= uVar15)" ( (binary_expression "uVar10 <= uVar15" identifier <= identifier) )) (compound_statement "{\n        uVar11 = uVar15;\n      }" { (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" identifier = identifier) ;) })) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }" if (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar11)" ( (binary_expression "(ulong)(param_2 - lVar24) <= uVar11" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_2 - lVar24)" ( (binary_expression "param_2 - lVar24" identifier - identifier) ))) <= identifier) )) (compound_statement "{\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }" { (labeled_statement "LAB_00136dd9:\n        lVar24 = 0;" statement_identifier : (expression_statement "lVar24 = 0;" (assignment_expression "lVar24 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_00136ddf;" goto statement_identifier ;) })) (if_statement "if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }" { (if_statement "if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }" if (parenthesized_expression "(uVar15 < uVar10)" ( (binary_expression "uVar15 < uVar10" identifier < identifier) )) (compound_statement "{\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }" { (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" identifier = (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - identifier)) ;) (if_statement "if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }" if (parenthesized_expression "(cVar4 == '0')" ( (binary_expression "cVar4 == '0'" identifier == (char_literal "'0'" ' character ')) )) (compound_statement "{\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }" { (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" identifier (argument_list "(param_1,0x30,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }) (else_clause "else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }" else (compound_statement "{\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }" { (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" identifier (argument_list "(param_1,0x20,sVar27)" ( identifier , number_literal , identifier ))) ;) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" identifier = (binary_expression "param_1 + sVar27" identifier + identifier)) ;) }))) })) (if_statement "if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }" if (parenthesized_expression "(cVar7 == '\0')" ( (binary_expression "cVar7 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          memcpy(param_1,local_4b8,uVar15);\n        }" { (expression_statement "memcpy(param_1,local_4b8,uVar15);" (call_expression "memcpy(param_1,local_4b8,uVar15)" identifier (argument_list "(param_1,local_4b8,uVar15)" ( identifier , identifier , identifier ))) ;) }) (else_clause "else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }" else (compound_statement "{\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }" { (expression_statement "FUN_00135900(param_1,local_4b8,uVar15);" (call_expression "FUN_00135900(param_1,local_4b8,uVar15)" identifier (argument_list "(param_1,local_4b8,uVar15)" ( identifier , identifier , identifier ))) ;) }))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" identifier = (binary_expression "param_1 + uVar15" identifier + identifier)) ;) })) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" identifier = (binary_expression "lVar24 + uVar11" identifier + identifier)) ;) (labeled_statement "LAB_001359f4:\n      cVar5 = param_3[1];" statement_identifier : (expression_statement "cVar5 = param_3[1];" (assignment_expression "cVar5 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;)) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" identifier = (binary_expression "param_3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(cVar5 != '\0')" ( (binary_expression "cVar5 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) }))) (if_statement "if ((param_1 != (char *)0x0) && (param_2 != 0)) {\n    *param_1 = '\0';\n  }" if (parenthesized_expression "((param_1 != (char *)0x0) && (param_2 != 0))" ( (binary_expression "(param_1 != (char *)0x0) && (param_2 != 0)" (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    *param_1 = '\0';\n  }" { (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (labeled_statement "LAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return lVar24;\n  }" { (return_statement "return lVar24;" return identifier ;) }))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) ))) < LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (char_literal ' character ') < IDENT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (char_literal ' character ') < (pointer_expression * IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + (binary_expression IDENT * LIT))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) - LIT) < LIT) )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (char_literal ' escape_sequence ')) , (binary_expression IDENT == (char_literal ' character '))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case (char_literal ' escape_sequence ') : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;)) (case_statement default : (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) ))) <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) }) while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != BOOL) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = BOOL) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != BOOL) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = BOOL) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT / LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT < LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT % LIT) ))) >> LIT) & (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) )))) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') :) (case_statement case (char_literal ' character ') :) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT / LIT) )) * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression IDENT == (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / LIT) )) * LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) % LIT) == LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT / LIT) )) * LIT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression IDENT == (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / LIT) )) * LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / LIT) )) * LIT)) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT / LIT) )) * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT < (binary_expression LIT - IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT % LIT) + IDENT) )) % LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression LIT - IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT / LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) }))) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = BOOL) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) )))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) - (field_expression IDENT -> field_identifier)) )) + LIT) )) / LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (field_expression IDENT -> field_identifier) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT / LIT) )) * LIT) - IDENT) )) + LIT) + (field_expression IDENT -> field_identifier)) )) / LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = BOOL) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression (field_expression IDENT -> field_identifier) < LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (field_expression IDENT -> field_identifier) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ IDENT) - LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) )))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }))))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != BOOL) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') :) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != BOOL) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = BOOL) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (break_statement break ;))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = BOOL) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })))) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (field_expression IDENT -> field_identifier) < LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (field_expression IDENT -> field_identifier) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (field_expression IDENT -> field_identifier) < LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (field_expression IDENT -> field_identifier) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) ))) <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = BOOL) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != BOOL) )) (compound_statement { (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != BOOL) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (field_expression IDENT -> field_identifier) * LIT) >> LIT) )) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = BOOL) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & (field_expression IDENT -> field_identifier))))) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + (char_literal ' character '))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) ))) <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) + LIT) )) % LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (field_expression IDENT -> field_identifier)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = BOOL) ;) (goto_statement goto statement_identifier ;) })) (break_statement break ;)) (case_statement case (char_literal ' character ') : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (field_expression IDENT -> field_identifier) % LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT >> LIT) , LIT )))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) && (parenthesized_expression ( (binary_expression IDENT == BOOL) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = BOOL) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) ))) <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT . field_identifier) == BOOL) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (goto_statement goto statement_identifier ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != BOOL) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + (char_literal ' character '))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( IDENT )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != BOOL) )) (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) )))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - LIT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - LIT) )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT != (char_literal ' escape_sequence '))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - (parenthesized_expression ( (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) )) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) )))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (goto_statement goto statement_identifier ;) })) })))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (char_literal ' character ')) ;) (if_statement if (parenthesized_expression ( IDENT )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) , (binary_expression IDENT < LIT)) ))) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) )))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT < IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) ))) <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - LIT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - LIT) )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) )))) )) (compound_statement { (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) ))) <= IDENT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) )))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (goto_statement goto statement_identifier ;) })) }))))) (goto_statement goto statement_identifier ;)) (case_statement case (char_literal ' character ') : (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (field_expression IDENT -> field_identifier) < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT -> field_identifier))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = BOOL) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (char_literal ' character '))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT / LIT) )) % LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + IDENT)) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT % LIT) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression IDENT * LIT) + (binary_expression IDENT * LIT)) + (binary_expression IDENT % LIT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))))) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) + LIT) )) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - IDENT) ))) <= IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "long FUN_00135939(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,\n                 undefined8 param_6,undefined8 param_7,uint param_8)\n\n{\n  bool bVar1;\n  bool bVar2;\n  long lVar3;\n  char cVar4;\n  char cVar5;\n  char cVar6;\n  char cVar7;\n  int iVar8;\n  char *__src;\n  long lVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  ulong uVar15;\n  char cVar16;\n  char *pcVar17;\n  uint uVar18;\n  int iVar19;\n  char *pcVar20;\n  int iVar21;\n  int iVar22;\n  long lVar23;\n  long lVar24;\n  uint uVar25;\n  int iVar26;\n  size_t sVar27;\n  long in_FS_OFFSET;\n  bool bVar28;\n  byte bVar29;\n  char *local_4b8;\n  undefined8 local_488;\n  undefined8 uStack_480;\n  undefined8 local_478;\n  undefined8 uStack_470;\n  undefined8 local_468;\n  long lStack_460;\n  char *local_458;\n  char local_44d [3];\n  char local_44a [2];\n  char local_448;\n  undefined1 local_447 [22];\n  char local_431 [1009];\n  long local_40;\n  \n  bVar29 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar25 = param_4->tm_hour;\n  __src = "";\n  if (param_4->tm_zone != (char *)0x0) {\n    __src = param_4->tm_zone;\n  }\n  if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }\n  cVar5 = *param_3;\n  if (cVar5 == '\0') {\n    lVar24 = 0;\n  }\n  else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }\n  if ((param_1 != (char *)0x0) && (param_2 != 0)) {\n    *param_1 = '\0';\n  }\nLAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }\n                    \n  __stack_chk_fail();\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00135939(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,\n                 undefined8 param_6,undefined8 param_7,uint param_8)" (identifier "FUN_00135939") (parameter_list "(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,\n                 undefined8 param_6,undefined8 param_7,uint param_8)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "tm *param_4" (type_identifier "tm") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "char param_5" (primitive_type "char") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) (, ",") (parameter_declaration "undefined8 param_7" (type_identifier "undefined8") (identifier "param_7")) (, ",") (parameter_declaration "uint param_8" (type_identifier "uint") (identifier "param_8")) () ")"))) (compound_statement "{\n  bool bVar1;\n  bool bVar2;\n  long lVar3;\n  char cVar4;\n  char cVar5;\n  char cVar6;\n  char cVar7;\n  int iVar8;\n  char *__src;\n  long lVar9;\n  ulong uVar10;\n  ulong uVar11;\n  uint uVar12;\n  uint uVar13;\n  int iVar14;\n  ulong uVar15;\n  char cVar16;\n  char *pcVar17;\n  uint uVar18;\n  int iVar19;\n  char *pcVar20;\n  int iVar21;\n  int iVar22;\n  long lVar23;\n  long lVar24;\n  uint uVar25;\n  int iVar26;\n  size_t sVar27;\n  long in_FS_OFFSET;\n  bool bVar28;\n  byte bVar29;\n  char *local_4b8;\n  undefined8 local_488;\n  undefined8 uStack_480;\n  undefined8 local_478;\n  undefined8 uStack_470;\n  undefined8 local_468;\n  long lStack_460;\n  char *local_458;\n  char local_44d [3];\n  char local_44a [2];\n  char local_448;\n  undefined1 local_447 [22];\n  char local_431 [1009];\n  long local_40;\n  \n  bVar29 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  uVar25 = param_4->tm_hour;\n  __src = "";\n  if (param_4->tm_zone != (char *)0x0) {\n    __src = param_4->tm_zone;\n  }\n  if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }\n  cVar5 = *param_3;\n  if (cVar5 == '\0') {\n    lVar24 = 0;\n  }\n  else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }\n  if ((param_1 != (char *)0x0) && (param_2 != 0)) {\n    *param_1 = '\0';\n  }\nLAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "char cVar5;" (primitive_type "char") (identifier "cVar5") (; ";")) (declaration "char cVar6;" (primitive_type "char") (identifier "cVar6") (; ";")) (declaration "char cVar7;" (primitive_type "char") (identifier "cVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "char *__src;" (primitive_type "char") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "long lVar9;" (sized_type_specifier "long" (long "long")) (identifier "lVar9") (; ";")) (declaration "ulong uVar10;" (type_identifier "ulong") (identifier "uVar10") (; ";")) (declaration "ulong uVar11;" (type_identifier "ulong") (identifier "uVar11") (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (declaration "uint uVar13;" (type_identifier "uint") (identifier "uVar13") (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "ulong uVar15;" (type_identifier "ulong") (identifier "uVar15") (; ";")) (declaration "char cVar16;" (primitive_type "char") (identifier "cVar16") (; ";")) (declaration "char *pcVar17;" (primitive_type "char") (pointer_declarator "*pcVar17" (* "*") (identifier "pcVar17")) (; ";")) (declaration "uint uVar18;" (type_identifier "uint") (identifier "uVar18") (; ";")) (declaration "int iVar19;" (primitive_type "int") (identifier "iVar19") (; ";")) (declaration "char *pcVar20;" (primitive_type "char") (pointer_declarator "*pcVar20" (* "*") (identifier "pcVar20")) (; ";")) (declaration "int iVar21;" (primitive_type "int") (identifier "iVar21") (; ";")) (declaration "int iVar22;" (primitive_type "int") (identifier "iVar22") (; ";")) (declaration "long lVar23;" (sized_type_specifier "long" (long "long")) (identifier "lVar23") (; ";")) (declaration "long lVar24;" (sized_type_specifier "long" (long "long")) (identifier "lVar24") (; ";")) (declaration "uint uVar25;" (type_identifier "uint") (identifier "uVar25") (; ";")) (declaration "int iVar26;" (primitive_type "int") (identifier "iVar26") (; ";")) (declaration "size_t sVar27;" (primitive_type "size_t") (identifier "sVar27") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "bool bVar28;" (primitive_type "bool") (identifier "bVar28") (; ";")) (declaration "byte bVar29;" (type_identifier "byte") (identifier "bVar29") (; ";")) (declaration "char *local_4b8;" (primitive_type "char") (pointer_declarator "*local_4b8" (* "*") (identifier "local_4b8")) (; ";")) (declaration "undefined8 local_488;" (type_identifier "undefined8") (identifier "local_488") (; ";")) (declaration "undefined8 uStack_480;" (type_identifier "undefined8") (identifier "uStack_480") (; ";")) (declaration "undefined8 local_478;" (type_identifier "undefined8") (identifier "local_478") (; ";")) (declaration "undefined8 uStack_470;" (type_identifier "undefined8") (identifier "uStack_470") (; ";")) (declaration "undefined8 local_468;" (type_identifier "undefined8") (identifier "local_468") (; ";")) (declaration "long lStack_460;" (sized_type_specifier "long" (long "long")) (identifier "lStack_460") (; ";")) (declaration "char *local_458;" (primitive_type "char") (pointer_declarator "*local_458" (* "*") (identifier "local_458")) (; ";")) (declaration "char local_44d [3];" (primitive_type "char") (array_declarator "local_44d [3]" (identifier "local_44d") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "char local_44a [2];" (primitive_type "char") (array_declarator "local_44a [2]" (identifier "local_44a") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "char local_448;" (primitive_type "char") (identifier "local_448") (; ";")) (declaration "undefined1 local_447 [22];" (type_identifier "undefined1") (array_declarator "local_447 [22]" (identifier "local_447") ([ "[") (number_literal "22") (] "]")) (; ";")) (declaration "char local_431 [1009];" (primitive_type "char") (array_declarator "local_431 [1009]" (identifier "local_431") ([ "[") (number_literal "1009") (] "]")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "bVar29 = 0;" (assignment_expression "bVar29 = 0" (identifier "bVar29") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar25 = param_4->tm_hour;" (assignment_expression "uVar25 = param_4->tm_hour" (identifier "uVar25") (= "=") (field_expression "param_4->tm_hour" (identifier "param_4") (-> "->") (field_identifier "tm_hour"))) (; ";")) (expression_statement "__src = "";" (assignment_expression "__src = """ (identifier "__src") (= "=") (string_literal """" (" """) (" """))) (; ";")) (if_statement "if (param_4->tm_zone != (char *)0x0) {\n    __src = param_4->tm_zone;\n  }" (if "if") (parenthesized_expression "(param_4->tm_zone != (char *)0x0)" (( "(") (binary_expression "param_4->tm_zone != (char *)0x0" (field_expression "param_4->tm_zone" (identifier "param_4") (-> "->") (field_identifier "tm_zone")) (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    __src = param_4->tm_zone;\n  }" ({ "{") (expression_statement "__src = param_4->tm_zone;" (assignment_expression "__src = param_4->tm_zone" (identifier "__src") (= "=") (field_expression "param_4->tm_zone" (identifier "param_4") (-> "->") (field_identifier "tm_zone"))) (; ";")) (} "}"))) (if_statement "if ((int)uVar25 < 0xd) {\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }\n  else {\n    uVar25 = uVar25 - 0xc;\n  }" (if "if") (parenthesized_expression "((int)uVar25 < 0xd)" (( "(") (binary_expression "(int)uVar25 < 0xd" (cast_expression "(int)uVar25" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar25")) (< "<") (number_literal "0xd")) () ")")) (compound_statement "{\n    if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }\n  }" ({ "{") (if_statement "if (uVar25 == 0) {\n      uVar25 = 0xc;\n    }" (if "if") (parenthesized_expression "(uVar25 == 0)" (( "(") (binary_expression "uVar25 == 0" (identifier "uVar25") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar25 = 0xc;\n    }" ({ "{") (expression_statement "uVar25 = 0xc;" (assignment_expression "uVar25 = 0xc" (identifier "uVar25") (= "=") (number_literal "0xc")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar25 = uVar25 - 0xc;\n  }" (else "else") (compound_statement "{\n    uVar25 = uVar25 - 0xc;\n  }" ({ "{") (expression_statement "uVar25 = uVar25 - 0xc;" (assignment_expression "uVar25 = uVar25 - 0xc" (identifier "uVar25") (= "=") (binary_expression "uVar25 - 0xc" (identifier "uVar25") (- "-") (number_literal "0xc"))) (; ";")) (} "}")))) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" (identifier "cVar5") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (if_statement "if (cVar5 == '\0') {\n    lVar24 = 0;\n  }\n  else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }" (if "if") (parenthesized_expression "(cVar5 == '\0')" (( "(") (binary_expression "cVar5 == '\0'" (identifier "cVar5") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    lVar24 = 0;\n  }" ({ "{") (expression_statement "lVar24 = 0;" (assignment_expression "lVar24 = 0" (identifier "lVar24") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }" (else "else") (compound_statement "{\n    lVar24 = 0;\n    do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');\n  }" ({ "{") (expression_statement "lVar24 = 0;" (assignment_expression "lVar24 = 0" (identifier "lVar24") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    } while (cVar5 != '\0');" (do "do") (compound_statement "{\n      if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }\n      bVar28 = false;\n      cVar7 = param_5;\n      cVar5 = '\0';\n      do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');\nLAB_00135a68:\n      iVar26 = -1;\n      if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }\n      cVar5 = *param_3;\n      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }\n      cVar5 = *param_3;\n      iVar14 = (int)local_431;\n      local_4b8 = param_3;\n      uVar12 = uVar25;\n      iVar22 = iVar26;\n      switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }\n      pcVar20 = local_4b8 + -1;\n      do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');\nLAB_00136d21:\n      local_4b8 = pcVar17;\n      uVar15 = (ulong)iVar14;\n      iVar14 = 0;\n      if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }\n      uVar10 = (ulong)iVar14;\n      uVar11 = uVar10;\n      if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }\n      if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }\n      if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }\n      lVar24 = lVar24 + uVar11;\nLAB_001359f4:\n      cVar5 = param_3[1];\n      param_3 = param_3 + 1;\n    }" ({ "{") (if_statement "if (cVar5 != '%') {\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }" (if "if") (parenthesized_expression "(cVar5 != '%')" (( "(") (binary_expression "cVar5 != '%'" (identifier "cVar5") (!= "!=") (char_literal "'%'" (' "'") (character "%") (' "'"))) () ")")) (compound_statement "{\n        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + 1;\n        goto LAB_001359f4;\n      }" ({ "{") (if_statement "if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;" (if "if") (parenthesized_expression "((ulong)(param_2 - lVar24) < 2)" (( "(") (binary_expression "(ulong)(param_2 - lVar24) < 2" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")"))) (< "<") (number_literal "2")) () ")")) (goto_statement "goto LAB_00136dd9;" (goto "goto") (statement_identifier "LAB_00136dd9") (; ";"))) (if_statement "if (param_1 != (char *)0x0) {\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          *param_1 = cVar5;\n          param_1 = param_1 + 1;\n        }" ({ "{") (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "cVar5")) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + 1;" (assignment_expression "lVar24 = lVar24 + 1" (identifier "lVar24") (= "=") (binary_expression "lVar24 + 1" (identifier "lVar24") (+ "+") (number_literal "1"))) (; ";")) (goto_statement "goto LAB_001359f4;" (goto "goto") (statement_identifier "LAB_001359f4") (; ";")) (} "}"))) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" (identifier "bVar28") (= "=") (false "false")) (; ";")) (expression_statement "cVar7 = param_5;" (assignment_expression "cVar7 = param_5" (identifier "cVar7") (= "=") (identifier "param_5")) (; ";")) (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" (identifier "cVar5") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (do_statement "do {\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      } while (cVar5 == '_');" (do "do") (compound_statement "{\n        while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }\n      }" ({ "{") (while_statement "while( true ) {\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }\n          if (cVar5 != '^') break;\n          cVar7 = '\x01';\n          cVar5 = cVar4;\n        }" ({ "{") (while_statement "while( true ) {\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n            do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');\n            if ('0' < cVar5) break;\n            if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;\n          }" ({ "{") (do_statement "do {\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            } while (cVar5 == '0');" (do "do") (compound_statement "{\n              cVar4 = cVar5;\n              param_3 = param_3 + 1;\n              cVar5 = *param_3;\n            }" ({ "{") (expression_statement "cVar4 = cVar5;" (assignment_expression "cVar4 = cVar5" (identifier "cVar4") (= "=") (identifier "cVar5")) (; ";")) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" (identifier "cVar5") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar5 == '0')" (( "(") (binary_expression "cVar5 == '0'" (identifier "cVar5") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (; ";")) (if_statement "if ('0' < cVar5) break;" (if "if") (parenthesized_expression "('0' < cVar5)" (( "(") (binary_expression "'0' < cVar5" (char_literal "'0'" (' "'") (character "0") (' "'")) (< "<") (identifier "cVar5")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (cVar5 == '#') {\n              bVar28 = true;\n              cVar5 = cVar4;\n            }\n            else if (cVar5 != '-') goto LAB_00135a68;" (if "if") (parenthesized_expression "(cVar5 == '#')" (( "(") (binary_expression "cVar5 == '#'" (identifier "cVar5") (== "==") (char_literal "'#'" (' "'") (character "#") (' "'"))) () ")")) (compound_statement "{\n              bVar28 = true;\n              cVar5 = cVar4;\n            }" ({ "{") (expression_statement "bVar28 = true;" (assignment_expression "bVar28 = true" (identifier "bVar28") (= "=") (true "true")) (; ";")) (expression_statement "cVar5 = cVar4;" (assignment_expression "cVar5 = cVar4" (identifier "cVar5") (= "=") (identifier "cVar4")) (; ";")) (} "}")) (else_clause "else if (cVar5 != '-') goto LAB_00135a68;" (else "else") (if_statement "if (cVar5 != '-') goto LAB_00135a68;" (if "if") (parenthesized_expression "(cVar5 != '-')" (( "(") (binary_expression "cVar5 != '-'" (identifier "cVar5") (!= "!=") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (goto_statement "goto LAB_00135a68;" (goto "goto") (statement_identifier "LAB_00135a68") (; ";"))))) (} "}"))) (if_statement "if (cVar5 != '^') break;" (if "if") (parenthesized_expression "(cVar5 != '^')" (( "(") (binary_expression "cVar5 != '^'" (identifier "cVar5") (!= "!=") (char_literal "'^'" (' "'") (character "^") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "cVar7 = '\x01';" (assignment_expression "cVar7 = '\x01'" (identifier "cVar7") (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (expression_statement "cVar5 = cVar4;" (assignment_expression "cVar5 = cVar4" (identifier "cVar5") (= "=") (identifier "cVar4")) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(cVar5 == '_')" (( "(") (binary_expression "cVar5 == '_'" (identifier "cVar5") (== "==") (char_literal "'_'" (' "'") (character "_") (' "'"))) () ")")) (; ";")) (labeled_statement "LAB_00135a68:\n      iVar26 = -1;" (statement_identifier "LAB_00135a68") (: ":") (expression_statement "iVar26 = -1;" (assignment_expression "iVar26 = -1" (identifier "iVar26") (= "=") (number_literal "-1")) (; ";"))) (if_statement "if ((int)cVar5 - 0x30U < 10) {\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }" (if "if") (parenthesized_expression "((int)cVar5 - 0x30U < 10)" (( "(") (binary_expression "(int)cVar5 - 0x30U < 10" (binary_expression "(int)cVar5 - 0x30U" (cast_expression "(int)cVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "cVar5")) (- "-") (number_literal "0x30U")) (< "<") (number_literal "10")) () ")")) (compound_statement "{\n        iVar26 = 0;\n        do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);\n      }" ({ "{") (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" (identifier "iVar26") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        } while ((int)*param_3 - 0x30U < 10);" (do "do") (compound_statement "{\n          if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }\n          param_3 = param_3 + 1;\n        }" ({ "{") (if_statement "if (iVar26 < 0xccccccd) {\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }\n          else {\n            iVar26 = 0x7fffffff;\n          }" (if "if") (parenthesized_expression "(iVar26 < 0xccccccd)" (( "(") (binary_expression "iVar26 < 0xccccccd" (identifier "iVar26") (< "<") (number_literal "0xccccccd")) () ")")) (compound_statement "{\n            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }\n          }" ({ "{") (if_statement "if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {\n              iVar26 = 0x7fffffff;\n            }\n            else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }" (if "if") (parenthesized_expression "((iVar26 == 0xccccccc) && ('7' < *param_3))" (( "(") (binary_expression "(iVar26 == 0xccccccc) && ('7' < *param_3)" (parenthesized_expression "(iVar26 == 0xccccccc)" (( "(") (binary_expression "iVar26 == 0xccccccc" (identifier "iVar26") (== "==") (number_literal "0xccccccc")) () ")")) (&& "&&") (parenthesized_expression "('7' < *param_3)" (( "(") (binary_expression "'7' < *param_3" (char_literal "'7'" (' "'") (character "7") (' "'")) (< "<") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) () ")"))) () ")")) (compound_statement "{\n              iVar26 = 0x7fffffff;\n            }" ({ "{") (expression_statement "iVar26 = 0x7fffffff;" (assignment_expression "iVar26 = 0x7fffffff" (identifier "iVar26") (= "=") (number_literal "0x7fffffff")) (; ";")) (} "}")) (else_clause "else {\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }" (else "else") (compound_statement "{\n              iVar26 = *param_3 + -0x30 + iVar26 * 10;\n            }" ({ "{") (expression_statement "iVar26 = *param_3 + -0x30 + iVar26 * 10;" (assignment_expression "iVar26 = *param_3 + -0x30 + iVar26 * 10" (identifier "iVar26") (= "=") (binary_expression "*param_3 + -0x30 + iVar26 * 10" (binary_expression "*param_3 + -0x30" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "-0x30")) (+ "+") (binary_expression "iVar26 * 10" (identifier "iVar26") (* "*") (number_literal "10")))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n            iVar26 = 0x7fffffff;\n          }" (else "else") (compound_statement "{\n            iVar26 = 0x7fffffff;\n          }" ({ "{") (expression_statement "iVar26 = 0x7fffffff;" (assignment_expression "iVar26 = 0x7fffffff" (identifier "iVar26") (= "=") (number_literal "0x7fffffff")) (; ";")) (} "}")))) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)*param_3 - 0x30U < 10)" (( "(") (binary_expression "(int)*param_3 - 0x30U < 10" (binary_expression "(int)*param_3 - 0x30U" (cast_expression "(int)*param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (- "-") (number_literal "0x30U")) (< "<") (number_literal "10")) () ")")) (; ";")) (} "}"))) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" (identifier "cVar5") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (if_statement "if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }" (if "if") (parenthesized_expression "((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O'))" (( "(") (binary_expression "(cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')" (parenthesized_expression "(cVar5 == 'E')" (( "(") (binary_expression "cVar5 == 'E'" (identifier "cVar5") (== "==") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar16 = '\0', cVar5 == 'O')" (( "(") (comma_expression "cVar16 = '\0', cVar5 == 'O'" (assignment_expression "cVar16 = '\0'" (identifier "cVar16") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (, ",") (binary_expression "cVar5 == 'O'" (identifier "cVar5") (== "==") (char_literal "'O'" (' "'") (character "O") (' "'")))) () ")"))) () ")")) (compound_statement "{\n        param_3 = param_3 + 1;\n        cVar16 = cVar5;\n      }" ({ "{") (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar16 = cVar5;" (assignment_expression "cVar16 = cVar5" (identifier "cVar16") (= "=") (identifier "cVar5")) (; ";")) (} "}"))) (expression_statement "cVar5 = *param_3;" (assignment_expression "cVar5 = *param_3" (identifier "cVar5") (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "iVar14 = (int)local_431;" (assignment_expression "iVar14 = (int)local_431" (identifier "iVar14") (= "=") (cast_expression "(int)local_431" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_431"))) (; ";")) (expression_statement "local_4b8 = param_3;" (assignment_expression "local_4b8 = param_3" (identifier "local_4b8") (= "=") (identifier "param_3")) (; ";")) (expression_statement "uVar12 = uVar25;" (assignment_expression "uVar12 = uVar25" (identifier "uVar12") (= "=") (identifier "uVar25")) (; ";")) (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" (identifier "iVar22") (= "=") (identifier "iVar26")) (; ";")) (switch_statement "switch(cVar5) {\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }" (switch "switch") (parenthesized_expression "(cVar5)" (( "(") (identifier "cVar5") () ")")) (compound_statement "{\n      case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;\n      default:\n        goto LAB_00136cd6;\n      case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;\n      case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;\n      case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;\n      case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;\n      case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;\n      case 'G':\n      case 'V':\n      case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;\n      case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;\n      case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;\n      case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;\n      case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;\n      case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;\n      case 'b':\n      case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;\n      case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;\n      case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;\n      case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;\n      case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;\n      case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;\n      case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;\n      case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;\n      case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;\n      case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;\n      case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;\n      case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;\n      case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;\n      case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;\n      }" ({ "{") (case_statement "case '\0':\n        local_4b8 = param_3 + -1;\n        goto LAB_00136cd6;" (case "case") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")) (: ":") (expression_statement "local_4b8 = param_3 + -1;" (assignment_expression "local_4b8 = param_3 + -1" (identifier "local_4b8") (= "=") (binary_expression "param_3 + -1" (identifier "param_3") (+ "+") (number_literal "-1"))) (; ";")) (goto_statement "goto LAB_00136cd6;" (goto "goto") (statement_identifier "LAB_00136cd6") (; ";"))) (case_statement "default:\n        goto LAB_00136cd6;" (default "default") (: ":") (goto_statement "goto LAB_00136cd6;" (goto "goto") (statement_identifier "LAB_00136cd6") (; ";"))) (case_statement "case '%':\n        if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }\n        iVar14 = 1;\n        pcVar17 = param_3;\n        goto LAB_00136d21;" (case "case") (char_literal "'%'" (' "'") (character "%") (' "'")) (: ":") (if_statement "if (cVar16 == '\0') {\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }" (if "if") (parenthesized_expression "(cVar16 == '\0')" (( "(") (binary_expression "cVar16 == '\0'" (identifier "cVar16") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar11 = (ulong)iVar14;\n          uVar15 = 1;\n          if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }\n          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n          if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }\n          lVar24 = lVar24 + uVar15;\n          goto LAB_001359f4;\n        }" ({ "{") (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n            iVar14 = iVar26;\n          }" ({ "{") (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" (identifier "iVar14") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" (identifier "uVar11") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" (identifier "uVar15") (= "=") (number_literal "1")) (; ";")) (if_statement "if (uVar11 != 0) {\n            uVar15 = uVar11;\n          }" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            uVar15 = uVar11;\n          }" ({ "{") (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" (identifier "uVar15") (= "=") (identifier "uVar11")) (; ";")) (} "}"))) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" (if "if") (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" (( "(") (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")"))) (<= "<=") (identifier "uVar15")) () ")")) (goto_statement "goto LAB_00136dd9;" (goto "goto") (statement_identifier "LAB_00136dd9") (; ";"))) (if_statement "if (param_1 != (char *)0x0) {\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            *param_1 = *param_3;\n            param_1 = param_1 + 1;\n          }" ({ "{") (if_statement "if (1 < uVar11) {\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" (if "if") (parenthesized_expression "(1 < uVar11)" (( "(") (binary_expression "1 < uVar11" (number_literal "1") (< "<") (identifier "uVar11")) () ")")) (compound_statement "{\n              sVar27 = (long)iVar26 - 1;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" ({ "{") (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" (identifier "sVar27") (= "=") (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (number_literal "1"))) (; ";")) (if_statement "if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" (if "if") (parenthesized_expression "(cVar4 == '0')" (( "(") (binary_expression "cVar4 == '0'" (identifier "cVar4") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }" ({ "{") (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" (identifier "memset") (argument_list "(param_1,0x30,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")) (else_clause "else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" (else "else") (compound_statement "{\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" ({ "{") (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" (identifier "memset") (argument_list "(param_1,0x20,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "*param_1 = *param_3;" (assignment_expression "*param_1 = *param_3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*param_3" (* "*") (identifier "param_3"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar15" (identifier "lVar24") (+ "+") (identifier "uVar15"))) (; ";")) (goto_statement "goto LAB_001359f4;" (goto "goto") (statement_identifier "LAB_001359f4") (; ";")) (} "}"))) (expression_statement "iVar14 = 1;" (assignment_expression "iVar14 = 1" (identifier "iVar14") (= "=") (number_literal "1")) (; ";")) (expression_statement "pcVar17 = param_3;" (assignment_expression "pcVar17 = param_3" (identifier "pcVar17") (= "=") (identifier "param_3")) (; ";")) (goto_statement "goto LAB_00136d21;" (goto "goto") (statement_identifier "LAB_00136d21") (; ";"))) (case_statement "case ':':\n        pcVar17 = param_3 + 1;\n        cVar6 = param_3[1];\n        if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }\n        if (cVar6 == 'z') goto LAB_00136bae;\n        break;" (case "case") (char_literal "':'" (' "'") (character ":") (' "'")) (: ":") (expression_statement "pcVar17 = param_3 + 1;" (assignment_expression "pcVar17 = param_3 + 1" (identifier "pcVar17") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar6 = param_3[1];" (assignment_expression "cVar6 = param_3[1]" (identifier "cVar6") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (cVar6 == ':') {\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }\n        else {\n          lVar23 = 1;\n        }" (if "if") (parenthesized_expression "(cVar6 == ':')" (( "(") (binary_expression "cVar6 == ':'" (identifier "cVar6") (== "==") (char_literal "':'" (' "'") (character ":") (' "'"))) () ")")) (compound_statement "{\n          lVar23 = 1;\n          do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');\n        }" ({ "{") (expression_statement "lVar23 = 1;" (assignment_expression "lVar23 = 1" (identifier "lVar23") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          } while (cVar6 == ':');" (do "do") (compound_statement "{\n            lVar23 = lVar23 + 1;\n            pcVar17 = param_3 + lVar23;\n            cVar6 = param_3[lVar23];\n          }" ({ "{") (expression_statement "lVar23 = lVar23 + 1;" (assignment_expression "lVar23 = lVar23 + 1" (identifier "lVar23") (= "=") (binary_expression "lVar23 + 1" (identifier "lVar23") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar17 = param_3 + lVar23;" (assignment_expression "pcVar17 = param_3 + lVar23" (identifier "pcVar17") (= "=") (binary_expression "param_3 + lVar23" (identifier "param_3") (+ "+") (identifier "lVar23"))) (; ";")) (expression_statement "cVar6 = param_3[lVar23];" (assignment_expression "cVar6 = param_3[lVar23]" (identifier "cVar6") (= "=") (subscript_expression "param_3[lVar23]" (identifier "param_3") ([ "[") (identifier "lVar23") (] "]"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar6 == ':')" (( "(") (binary_expression "cVar6 == ':'" (identifier "cVar6") (== "==") (char_literal "':'" (' "'") (character ":") (' "'"))) () ")")) (; ";")) (} "}")) (else_clause "else {\n          lVar23 = 1;\n        }" (else "else") (compound_statement "{\n          lVar23 = 1;\n        }" ({ "{") (expression_statement "lVar23 = 1;" (assignment_expression "lVar23 = 1" (identifier "lVar23") (= "=") (number_literal "1")) (; ";")) (} "}")))) (if_statement "if (cVar6 == 'z') goto LAB_00136bae;" (if "if") (parenthesized_expression "(cVar6 == 'z')" (( "(") (binary_expression "cVar6 == 'z'" (identifier "cVar6") (== "==") (char_literal "'z'" (' "'") (character "z") (' "'"))) () ")")) (goto_statement "goto LAB_00136bae;" (goto "goto") (statement_identifier "LAB_00136bae") (; ";"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'A':\n        if (cVar16 != '\0') break;\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        cVar5 = 'A';\nLAB_00135bf1:\n        local_4b8._0_1_ = false;\n        iVar22 = 0;\n        pcVar17 = local_44d + 2;\n        goto LAB_00135f1c;" (case "case") (char_literal "'A'" (' "'") (character "A") (' "'")) (: ":") (if_statement "if (cVar16 != '\0') break;" (if "if") (parenthesized_expression "(cVar16 != '\0')" (( "(") (binary_expression "cVar16 != '\0'" (identifier "cVar16") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (bVar28 != false) {\n          cVar7 = bVar28;\n        }" (if "if") (parenthesized_expression "(bVar28 != false)" (( "(") (binary_expression "bVar28 != false" (identifier "bVar28") (!= "!=") (false "false")) () ")")) (compound_statement "{\n          cVar7 = bVar28;\n        }" ({ "{") (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" (identifier "cVar7") (= "=") (identifier "bVar28")) (; ";")) (} "}"))) (expression_statement "cVar5 = 'A';" (assignment_expression "cVar5 = 'A'" (identifier "cVar5") (= "=") (char_literal "'A'" (' "'") (character "A") (' "'"))) (; ";")) (labeled_statement "LAB_00135bf1:\n        local_4b8._0_1_ = false;" (statement_identifier "LAB_00135bf1") (: ":") (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (= "=") (false "false")) (; ";"))) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" (identifier "iVar22") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar17 = local_44d + 2;" (assignment_expression "pcVar17 = local_44d + 2" (identifier "pcVar17") (= "=") (binary_expression "local_44d + 2" (identifier "local_44d") (+ "+") (number_literal "2"))) (; ";")) (goto_statement "goto LAB_00135f1c;" (goto "goto") (statement_identifier "LAB_00135f1c") (; ";"))) (case_statement "case 'B':\n        if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" (case "case") (char_literal "'B'" (' "'") (character "B") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'B';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" ({ "{") (if_statement "if (bVar28 != false) {\n            cVar7 = bVar28;\n          }" (if "if") (parenthesized_expression "(bVar28 != false)" (( "(") (binary_expression "bVar28 != false" (identifier "bVar28") (!= "!=") (false "false")) () ")")) (compound_statement "{\n            cVar7 = bVar28;\n          }" ({ "{") (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" (identifier "cVar7") (= "=") (identifier "bVar28")) (; ";")) (} "}"))) (expression_statement "cVar5 = 'B';" (assignment_expression "cVar5 = 'B'" (identifier "cVar5") (= "=") (char_literal "'B'" (' "'") (character "B") (' "'"))) (; ";")) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (= "=") (false "false")) (; ";")) (goto_statement "goto LAB_001364b6;" (goto "goto") (statement_identifier "LAB_001364b6") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'C':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        cVar5 = 'C';\n        iVar22 = 0;\n        goto LAB_00135ef1;" (case "case") (char_literal "'C'" (' "'") (character "C") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          iVar8 = param_4->tm_year;\n          iVar22 = iVar8 / 100 + 0x13;\n          bVar28 = iVar8 < -0x76c;\n          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" ({ "{") (expression_statement "iVar8 = param_4->tm_year;" (assignment_expression "iVar8 = param_4->tm_year" (identifier "iVar8") (= "=") (field_expression "param_4->tm_year" (identifier "param_4") (-> "->") (field_identifier "tm_year"))) (; ";")) (expression_statement "iVar22 = iVar8 / 100 + 0x13;" (assignment_expression "iVar22 = iVar8 / 100 + 0x13" (identifier "iVar22") (= "=") (binary_expression "iVar8 / 100 + 0x13" (binary_expression "iVar8 / 100" (identifier "iVar8") (/ "/") (number_literal "100")) (+ "+") (number_literal "0x13"))) (; ";")) (expression_statement "bVar28 = iVar8 < -0x76c;" (assignment_expression "bVar28 = iVar8 < -0x76c" (identifier "bVar28") (= "=") (binary_expression "iVar8 < -0x76c" (identifier "iVar8") (< "<") (number_literal "-0x76c"))) (; ";")) (expression_statement "uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));" (assignment_expression "uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22))" (identifier "uVar12") (= "=") (binary_expression "iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22))" (identifier "iVar22") (- "-") (parenthesized_expression "((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22))" (( "(") (binary_expression "(uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22)" (binary_expression "(uint)(iVar8 % 100) >> 0x1f" (call_expression "(uint)(iVar8 % 100)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar8 % 100)" (( "(") (binary_expression "iVar8 % 100" (identifier "iVar8") (% "%") (number_literal "100")) () ")"))) (>> ">>") (number_literal "0x1f")) (& "&") (call_expression "(uint)(0 < iVar22)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0 < iVar22)" (( "(") (binary_expression "0 < iVar22" (number_literal "0") (< "<") (identifier "iVar22")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00135edf;" (goto "goto") (statement_identifier "LAB_00135edf") (; ";")) (} "}"))) (expression_statement "cVar5 = 'C';" (assignment_expression "cVar5 = 'C'" (identifier "cVar5") (= "=") (char_literal "'C'" (' "'") (character "C") (' "'"))) (; ";")) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" (identifier "iVar22") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00135ef1;" (goto "goto") (statement_identifier "LAB_00135ef1") (; ";"))) (case_statement "case 'D':\n        if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }\n        break;" (case "case") (char_literal "'D'" (' "'") (character "D") (' "'")) (: ":") (if_statement "if (cVar16 == '\0') {\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }" (if "if") (parenthesized_expression "(cVar16 == '\0')" (( "(") (binary_expression "cVar16 == '\0'" (identifier "cVar16") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          local_4b8 = "%m/%d/%y";\n          goto LAB_00135ca3;\n        }" ({ "{") (expression_statement "local_4b8 = "%m/%d/%y";" (assignment_expression "local_4b8 = "%m/%d/%y"" (identifier "local_4b8") (= "=") (string_literal ""%m/%d/%y"" (" """) (string_content "%m/%d/%y") (" """))) (; ";")) (goto_statement "goto LAB_00135ca3;" (goto "goto") (statement_identifier "LAB_00135ca3") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'F':\n        if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }\n        break;" (case "case") (char_literal "'F'" (' "'") (character "F") (' "'")) (: ":") (if_statement "if (cVar16 == '\0') {\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }" (if "if") (parenthesized_expression "(cVar16 == '\0')" (( "(") (binary_expression "cVar16 == '\0'" (identifier "cVar16") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          local_4b8 = "%Y-%m-%d";\n          goto LAB_00135ca3;\n        }" ({ "{") (expression_statement "local_4b8 = "%Y-%m-%d";" (assignment_expression "local_4b8 = "%Y-%m-%d"" (identifier "local_4b8") (= "=") (string_literal ""%Y-%m-%d"" (" """) (string_content "%Y-%m-%d") (" """))) (; ";")) (goto_statement "goto LAB_00135ca3;" (goto "goto") (statement_identifier "LAB_00135ca3") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'G':" (case "case") (char_literal "'G'" (' "'") (character "G") (' "'")) (: ":")) (case_statement "case 'V':" (case "case") (char_literal "'V'" (' "'") (character "V") (' "'")) (: ":")) (case_statement "case 'g':\n        if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        goto LAB_00136cd6;" (case "case") (char_literal "'g'" (' "'") (character "g") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          iVar8 = param_4->tm_year;\n          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);\n          iVar21 = param_4->tm_wday;\n          iVar19 = param_4->tm_yday;\n          iVar22 = (iVar19 - iVar21) + 0x17e;\n          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;\n          if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }\n          if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }\n          if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" ({ "{") (expression_statement "iVar8 = param_4->tm_year;" (assignment_expression "iVar8 = param_4->tm_year" (identifier "iVar8") (= "=") (field_expression "param_4->tm_year" (identifier "param_4") (-> "->") (field_identifier "tm_year"))) (; ";")) (expression_statement "uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);" (assignment_expression "uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U)" (identifier "uVar12") (= "=") (binary_expression "iVar8 + -100 + (iVar8 >> 0x1f & 400U)" (binary_expression "iVar8 + -100" (identifier "iVar8") (+ "+") (number_literal "-100")) (+ "+") (parenthesized_expression "(iVar8 >> 0x1f & 400U)" (( "(") (binary_expression "iVar8 >> 0x1f & 400U" (binary_expression "iVar8 >> 0x1f" (identifier "iVar8") (>> ">>") (number_literal "0x1f")) (& "&") (number_literal "400U")) () ")")))) (; ";")) (expression_statement "iVar21 = param_4->tm_wday;" (assignment_expression "iVar21 = param_4->tm_wday" (identifier "iVar21") (= "=") (field_expression "param_4->tm_wday" (identifier "param_4") (-> "->") (field_identifier "tm_wday"))) (; ";")) (expression_statement "iVar19 = param_4->tm_yday;" (assignment_expression "iVar19 = param_4->tm_yday" (identifier "iVar19") (= "=") (field_expression "param_4->tm_yday" (identifier "param_4") (-> "->") (field_identifier "tm_yday"))) (; ";")) (expression_statement "iVar22 = (iVar19 - iVar21) + 0x17e;" (assignment_expression "iVar22 = (iVar19 - iVar21) + 0x17e" (identifier "iVar22") (= "=") (binary_expression "(iVar19 - iVar21) + 0x17e" (parenthesized_expression "(iVar19 - iVar21)" (( "(") (binary_expression "iVar19 - iVar21" (identifier "iVar19") (- "-") (identifier "iVar21")) () ")")) (+ "+") (number_literal "0x17e"))) (; ";")) (expression_statement "iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;" (assignment_expression "iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7" (identifier "iVar22") (= "=") (binary_expression "(iVar19 - iVar22) + 3 + (iVar22 / 7) * 7" (binary_expression "(iVar19 - iVar22) + 3" (parenthesized_expression "(iVar19 - iVar22)" (( "(") (binary_expression "iVar19 - iVar22" (identifier "iVar19") (- "-") (identifier "iVar22")) () ")")) (+ "+") (number_literal "3")) (+ "+") (binary_expression "(iVar22 / 7) * 7" (parenthesized_expression "(iVar22 / 7)" (( "(") (binary_expression "iVar22 / 7" (identifier "iVar22") (/ "/") (number_literal "7")) () ")")) (* "*") (number_literal "7")))) (; ";")) (if_statement "if (iVar22 < 0) {\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }\n          else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" (if "if") (parenthesized_expression "(iVar22 < 0)" (( "(") (binary_expression "iVar22 < 0" (identifier "iVar22") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n            uVar12 = uVar12 - 1;\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }\n            iVar22 = iVar19 + 0x16d + uVar18;\n            iVar21 = (iVar22 - iVar21) + 0x17e;\n            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;\n            iVar21 = -1;\n          }" ({ "{") (expression_statement "uVar12 = uVar12 - 1;" (assignment_expression "uVar12 = uVar12 - 1" (identifier "uVar12") (= "=") (binary_expression "uVar12 - 1" (identifier "uVar12") (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (if_statement "if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }" (if "if") (parenthesized_expression "(((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100))" (( "(") (binary_expression "((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" (parenthesized_expression "((uVar12 & 3) == 0)" (( "(") (binary_expression "(uVar12 & 3) == 0" (parenthesized_expression "(uVar12 & 3)" (( "(") (binary_expression "uVar12 & 3" (identifier "uVar12") (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" (( "(") (comma_expression "uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100" (assignment_expression "uVar18 = 1" (identifier "uVar18") (= "=") (number_literal "1")) (, ",") (binary_expression "uVar12 == ((int)uVar12 / 100) * 100" (identifier "uVar12") (== "==") (binary_expression "((int)uVar12 / 100) * 100" (parenthesized_expression "((int)uVar12 / 100)" (( "(") (binary_expression "(int)uVar12 / 100" (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")) (/ "/") (number_literal "100")) () ")")) (* "*") (number_literal "100")))) () ")"))) () ")")) (compound_statement "{\n              uVar18 = (uint)((int)uVar12 % 400 == 0);\n            }" ({ "{") (expression_statement "uVar18 = (uint)((int)uVar12 % 400 == 0);" (assignment_expression "uVar18 = (uint)((int)uVar12 % 400 == 0)" (identifier "uVar18") (= "=") (call_expression "(uint)((int)uVar12 % 400 == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)uVar12 % 400 == 0)" (( "(") (binary_expression "(int)uVar12 % 400 == 0" (binary_expression "(int)uVar12 % 400" (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")) (% "%") (number_literal "400")) (== "==") (number_literal "0")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar22 = iVar19 + 0x16d + uVar18;" (assignment_expression "iVar22 = iVar19 + 0x16d + uVar18" (identifier "iVar22") (= "=") (binary_expression "iVar19 + 0x16d + uVar18" (binary_expression "iVar19 + 0x16d" (identifier "iVar19") (+ "+") (number_literal "0x16d")) (+ "+") (identifier "uVar18"))) (; ";")) (expression_statement "iVar21 = (iVar22 - iVar21) + 0x17e;" (assignment_expression "iVar21 = (iVar22 - iVar21) + 0x17e" (identifier "iVar21") (= "=") (binary_expression "(iVar22 - iVar21) + 0x17e" (parenthesized_expression "(iVar22 - iVar21)" (( "(") (binary_expression "iVar22 - iVar21" (identifier "iVar22") (- "-") (identifier "iVar21")) () ")")) (+ "+") (number_literal "0x17e"))) (; ";")) (expression_statement "iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;" (assignment_expression "iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7" (identifier "iVar22") (= "=") (binary_expression "(iVar22 - iVar21) + 3 + (iVar21 / 7) * 7" (binary_expression "(iVar22 - iVar21) + 3" (parenthesized_expression "(iVar22 - iVar21)" (( "(") (binary_expression "iVar22 - iVar21" (identifier "iVar22") (- "-") (identifier "iVar21")) () ")")) (+ "+") (number_literal "3")) (+ "+") (binary_expression "(iVar21 / 7) * 7" (parenthesized_expression "(iVar21 / 7)" (( "(") (binary_expression "iVar21 / 7" (identifier "iVar21") (/ "/") (number_literal "7")) () ")")) (* "*") (number_literal "7")))) (; ";")) (expression_statement "iVar21 = -1;" (assignment_expression "iVar21 = -1" (identifier "iVar21") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" (else "else") (compound_statement "{\n            uVar18 = 0;\n            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }\n            iVar19 = iVar19 - (uVar18 + 0x16d);\n            iVar21 = (iVar19 - iVar21) + 0x17e;\n            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;\n            if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }\n            iVar21 = (iVar21 >> 0x1f) + 1;\n          }" ({ "{") (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (if_statement "if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }" (if "if") (parenthesized_expression "(((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100))" (( "(") (binary_expression "((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" (parenthesized_expression "((uVar12 & 3) == 0)" (( "(") (binary_expression "(uVar12 & 3) == 0" (parenthesized_expression "(uVar12 & 3)" (( "(") (binary_expression "uVar12 & 3" (identifier "uVar12") (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)" (( "(") (comma_expression "uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100" (assignment_expression "uVar18 = 1" (identifier "uVar18") (= "=") (number_literal "1")) (, ",") (binary_expression "uVar12 == ((int)uVar12 / 100) * 100" (identifier "uVar12") (== "==") (binary_expression "((int)uVar12 / 100) * 100" (parenthesized_expression "((int)uVar12 / 100)" (( "(") (binary_expression "(int)uVar12 / 100" (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")) (/ "/") (number_literal "100")) () ")")) (* "*") (number_literal "100")))) () ")"))) () ")")) (compound_statement "{\n              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);\n            }" ({ "{") (expression_statement "uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);" (assignment_expression "uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400)" (identifier "uVar18") (= "=") (call_expression "(uint)(uVar12 == ((int)uVar12 / 400) * 400)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar12 == ((int)uVar12 / 400) * 400)" (( "(") (binary_expression "uVar12 == ((int)uVar12 / 400) * 400" (identifier "uVar12") (== "==") (binary_expression "((int)uVar12 / 400) * 400" (parenthesized_expression "((int)uVar12 / 400)" (( "(") (binary_expression "(int)uVar12 / 400" (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")) (/ "/") (number_literal "400")) () ")")) (* "*") (number_literal "400"))) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar19 = iVar19 - (uVar18 + 0x16d);" (assignment_expression "iVar19 = iVar19 - (uVar18 + 0x16d)" (identifier "iVar19") (= "=") (binary_expression "iVar19 - (uVar18 + 0x16d)" (identifier "iVar19") (- "-") (parenthesized_expression "(uVar18 + 0x16d)" (( "(") (binary_expression "uVar18 + 0x16d" (identifier "uVar18") (+ "+") (number_literal "0x16d")) () ")")))) (; ";")) (expression_statement "iVar21 = (iVar19 - iVar21) + 0x17e;" (assignment_expression "iVar21 = (iVar19 - iVar21) + 0x17e" (identifier "iVar21") (= "=") (binary_expression "(iVar19 - iVar21) + 0x17e" (parenthesized_expression "(iVar19 - iVar21)" (( "(") (binary_expression "iVar19 - iVar21" (identifier "iVar19") (- "-") (identifier "iVar21")) () ")")) (+ "+") (number_literal "0x17e"))) (; ";")) (expression_statement "iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;" (assignment_expression "iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7" (identifier "iVar21") (= "=") (binary_expression "(iVar19 - iVar21) + 3 + (iVar21 / 7) * 7" (binary_expression "(iVar19 - iVar21) + 3" (parenthesized_expression "(iVar19 - iVar21)" (( "(") (binary_expression "iVar19 - iVar21" (identifier "iVar19") (- "-") (identifier "iVar21")) () ")")) (+ "+") (number_literal "3")) (+ "+") (binary_expression "(iVar21 / 7) * 7" (parenthesized_expression "(iVar21 / 7)" (( "(") (binary_expression "iVar21 / 7" (identifier "iVar21") (/ "/") (number_literal "7")) () ")")) (* "*") (number_literal "7")))) (; ";")) (if_statement "if (-1 < iVar21) {\n              iVar22 = iVar21;\n            }" (if "if") (parenthesized_expression "(-1 < iVar21)" (( "(") (binary_expression "-1 < iVar21" (number_literal "-1") (< "<") (identifier "iVar21")) () ")")) (compound_statement "{\n              iVar22 = iVar21;\n            }" ({ "{") (expression_statement "iVar22 = iVar21;" (assignment_expression "iVar22 = iVar21" (identifier "iVar22") (= "=") (identifier "iVar21")) (; ";")) (} "}"))) (expression_statement "iVar21 = (iVar21 >> 0x1f) + 1;" (assignment_expression "iVar21 = (iVar21 >> 0x1f) + 1" (identifier "iVar21") (= "=") (binary_expression "(iVar21 >> 0x1f) + 1" (parenthesized_expression "(iVar21 >> 0x1f)" (( "(") (binary_expression "iVar21 >> 0x1f" (identifier "iVar21") (>> ">>") (number_literal "0x1f")) () ")")) (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (if_statement "if (cVar5 == 'G') {\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }" (if "if") (parenthesized_expression "(cVar5 == 'G')" (( "(") (binary_expression "cVar5 == 'G'" (identifier "cVar5") (== "==") (char_literal "'G'" (' "'") (character "G") (' "'"))) () ")")) (compound_statement "{\n            bVar28 = iVar8 < -0x76c - iVar21;\n            uVar12 = iVar8 + 0x76c + iVar21;\n            uVar18 = 0;\n            bVar2 = false;\n            iVar22 = 4;\n            goto LAB_00135edf;\n          }" ({ "{") (expression_statement "bVar28 = iVar8 < -0x76c - iVar21;" (assignment_expression "bVar28 = iVar8 < -0x76c - iVar21" (identifier "bVar28") (= "=") (binary_expression "iVar8 < -0x76c - iVar21" (identifier "iVar8") (< "<") (binary_expression "-0x76c - iVar21" (number_literal "-0x76c") (- "-") (identifier "iVar21")))) (; ";")) (expression_statement "uVar12 = iVar8 + 0x76c + iVar21;" (assignment_expression "uVar12 = iVar8 + 0x76c + iVar21" (identifier "uVar12") (= "=") (binary_expression "iVar8 + 0x76c + iVar21" (binary_expression "iVar8 + 0x76c" (identifier "iVar8") (+ "+") (number_literal "0x76c")) (+ "+") (identifier "iVar21"))) (; ";")) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "iVar22 = 4;" (assignment_expression "iVar22 = 4" (identifier "iVar22") (= "=") (number_literal "4")) (; ";")) (goto_statement "goto LAB_00135edf;" (goto "goto") (statement_identifier "LAB_00135edf") (; ";")) (} "}"))) (if_statement "if (cVar5 == 'g') {\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }\n          else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" (if "if") (parenthesized_expression "(cVar5 == 'g')" (( "(") (binary_expression "cVar5 == 'g'" (identifier "cVar5") (== "==") (char_literal "'g'" (' "'") (character "g") (' "'"))) () ")")) (compound_statement "{\n            uVar12 = (iVar8 % 100 + iVar21) % 100;\n            iVar22 = 2;\n            if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }\n          }" ({ "{") (expression_statement "uVar12 = (iVar8 % 100 + iVar21) % 100;" (assignment_expression "uVar12 = (iVar8 % 100 + iVar21) % 100" (identifier "uVar12") (= "=") (binary_expression "(iVar8 % 100 + iVar21) % 100" (parenthesized_expression "(iVar8 % 100 + iVar21)" (( "(") (binary_expression "iVar8 % 100 + iVar21" (binary_expression "iVar8 % 100" (identifier "iVar8") (% "%") (number_literal "100")) (+ "+") (identifier "iVar21")) () ")")) (% "%") (number_literal "100"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (if_statement "if ((int)uVar12 < 0) {\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }" (if "if") (parenthesized_expression "((int)uVar12 < 0)" (( "(") (binary_expression "(int)uVar12 < 0" (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n              if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }\n            }" ({ "{") (if_statement "if (iVar8 < -0x76c - iVar21) {\n                uVar12 = -uVar12;\n              }\n              else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }" (if "if") (parenthesized_expression "(iVar8 < -0x76c - iVar21)" (( "(") (binary_expression "iVar8 < -0x76c - iVar21" (identifier "iVar8") (< "<") (binary_expression "-0x76c - iVar21" (number_literal "-0x76c") (- "-") (identifier "iVar21"))) () ")")) (compound_statement "{\n                uVar12 = -uVar12;\n              }" ({ "{") (expression_statement "uVar12 = -uVar12;" (assignment_expression "uVar12 = -uVar12" (identifier "uVar12") (= "=") (unary_expression "-uVar12" (- "-") (identifier "uVar12"))) (; ";")) (} "}")) (else_clause "else {\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }" (else "else") (compound_statement "{\n                uVar12 = uVar12 + 100;\n                iVar22 = 2;\n              }" ({ "{") (expression_statement "uVar12 = uVar12 + 100;" (assignment_expression "uVar12 = uVar12 + 100" (identifier "uVar12") (= "=") (binary_expression "uVar12 + 100" (identifier "uVar12") (+ "+") (number_literal "100"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (} "}")))) (} "}"))) (} "}")) (else_clause "else {\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" (else "else") (compound_statement "{\n            uVar12 = iVar22 / 7 + 1;\n            iVar22 = 2;\n          }" ({ "{") (expression_statement "uVar12 = iVar22 / 7 + 1;" (assignment_expression "uVar12 = iVar22 / 7 + 1" (identifier "uVar12") (= "=") (binary_expression "iVar22 / 7 + 1" (binary_expression "iVar22 / 7" (identifier "iVar22") (/ "/") (number_literal "7")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (} "}")))) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";")) (} "}"))) (goto_statement "goto LAB_00136cd6;" (goto "goto") (statement_identifier "LAB_00136cd6") (; ";"))) (case_statement "case 'H':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" (case "case") (char_literal "'H'" (' "'") (character "H") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          uVar12 = param_4->tm_hour;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" ({ "{") (expression_statement "uVar12 = param_4->tm_hour;" (assignment_expression "uVar12 = param_4->tm_hour" (identifier "uVar12") (= "=") (field_expression "param_4->tm_hour" (identifier "param_4") (-> "->") (field_identifier "tm_hour"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'I':\n        if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" (case "case") (char_literal "'I'" (' "'") (character "I") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" ({ "{") (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'M':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" (case "case") (char_literal "'M'" (' "'") (character "M") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          uVar12 = param_4->tm_min;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" ({ "{") (expression_statement "uVar12 = param_4->tm_min;" (assignment_expression "uVar12 = param_4->tm_min" (identifier "uVar12") (= "=") (field_expression "param_4->tm_min" (identifier "param_4") (-> "->") (field_identifier "tm_min"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'N':\n        if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }\n        break;" (case "case") (char_literal "'N'" (' "'") (character "N") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          uVar12 = param_8;\n          if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }\n          goto LAB_00135ecc;\n        }" ({ "{") (expression_statement "uVar12 = param_8;" (assignment_expression "uVar12 = param_8" (identifier "uVar12") (= "=") (identifier "param_8")) (; ";")) (if_statement "if (iVar26 == -1) {\n            iVar26 = 9;\n            iVar22 = 9;\n          }\n          else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }" (if "if") (parenthesized_expression "(iVar26 == -1)" (( "(") (binary_expression "iVar26 == -1" (identifier "iVar26") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n            iVar26 = 9;\n            iVar22 = 9;\n          }" ({ "{") (expression_statement "iVar26 = 9;" (assignment_expression "iVar26 = 9" (identifier "iVar26") (= "=") (number_literal "9")) (; ";")) (expression_statement "iVar22 = 9;" (assignment_expression "iVar22 = 9" (identifier "iVar22") (= "=") (number_literal "9")) (; ";")) (} "}")) (else_clause "else {\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }" (else "else") (compound_statement "{\n            iVar8 = iVar26;\n            if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }\n          }" ({ "{") (expression_statement "iVar8 = iVar26;" (assignment_expression "iVar8 = iVar26" (identifier "iVar8") (= "=") (identifier "iVar26")) (; ";")) (if_statement "if (iVar26 < 9) {\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }" (if "if") (parenthesized_expression "(iVar26 < 9)" (( "(") (binary_expression "iVar26 < 9" (identifier "iVar26") (< "<") (number_literal "9")) () ")")) (compound_statement "{\n              do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);\n            }" ({ "{") (do_statement "do {\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              } while (iVar8 != 9);" (do "do") (compound_statement "{\n                uVar12 = (int)uVar12 / 10;\n                iVar8 = iVar8 + 1;\n              }" ({ "{") (expression_statement "uVar12 = (int)uVar12 / 10;" (assignment_expression "uVar12 = (int)uVar12 / 10" (identifier "uVar12") (= "=") (binary_expression "(int)uVar12 / 10" (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")) (/ "/") (number_literal "10"))) (; ";")) (expression_statement "iVar8 = iVar8 + 1;" (assignment_expression "iVar8 = iVar8 + 1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 != 9)" (( "(") (binary_expression "iVar8 != 9" (identifier "iVar8") (!= "!=") (number_literal "9")) () ")")) (; ";")) (} "}"))) (} "}")))) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'P':\n        local_4b8._0_1_ = true;\n        goto LAB_00136492;" (case "case") (char_literal "'P'" (' "'") (character "P") (' "'")) (: ":") (expression_statement "local_4b8._0_1_ = true;" (assignment_expression "local_4b8._0_1_ = true" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (= "=") (true "true")) (; ";")) (goto_statement "goto LAB_00136492;" (goto "goto") (statement_identifier "LAB_00136492") (; ";"))) (case_statement "case 'R':\n        local_4b8 = "%H:%M";\n        goto LAB_00135ca3;" (case "case") (char_literal "'R'" (' "'") (character "R") (' "'")) (: ":") (expression_statement "local_4b8 = "%H:%M";" (assignment_expression "local_4b8 = "%H:%M"" (identifier "local_4b8") (= "=") (string_literal ""%H:%M"" (" """) (string_content "%H:%M") (" """))) (; ";")) (goto_statement "goto LAB_00135ca3;" (goto "goto") (statement_identifier "LAB_00135ca3") (; ";"))) (case_statement "case 'S':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" (case "case") (char_literal "'S'" (' "'") (character "S") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          uVar12 = param_4->tm_sec;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" ({ "{") (expression_statement "uVar12 = param_4->tm_sec;" (assignment_expression "uVar12 = param_4->tm_sec" (identifier "uVar12") (= "=") (field_expression "param_4->tm_sec" (identifier "param_4") (-> "->") (field_identifier "tm_sec"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'T':\n        local_4b8 = "%H:%M:%S";\nLAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;" (case "case") (char_literal "'T'" (' "'") (character "T") (' "'")) (: ":") (expression_statement "local_4b8 = "%H:%M:%S";" (assignment_expression "local_4b8 = "%H:%M:%S"" (identifier "local_4b8") (= "=") (string_literal ""%H:%M:%S"" (" """) (string_content "%H:%M:%S") (" """))) (; ";")) (labeled_statement "LAB_00135ca3:\n        uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);" (statement_identifier "LAB_00135ca3") (: ":") (expression_statement "uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);" (assignment_expression "uVar15 = FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8)" (identifier "uVar15") (= "=") (call_expression "FUN_00135939(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8)" (identifier "FUN_00135939") (argument_list "(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8)" (( "(") (number_literal "0") (, ",") (number_literal "0xffffffffffffffff") (, ",") (identifier "local_4b8") (, ",") (identifier "param_4") (, ",") (identifier "cVar7") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") () ")")))) (; ";"))) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n          iVar14 = iVar26;\n        }" ({ "{") (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" (identifier "iVar14") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" (identifier "uVar10") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" (identifier "uVar11") (= "=") (identifier "uVar10")) (; ";")) (if_statement "if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }" (if "if") (parenthesized_expression "(uVar10 <= uVar15)" (( "(") (binary_expression "uVar10 <= uVar15" (identifier "uVar10") (<= "<=") (identifier "uVar15")) () ")")) (compound_statement "{\n          uVar11 = uVar15;\n        }" ({ "{") (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" (identifier "uVar11") (= "=") (identifier "uVar15")) (; ";")) (} "}"))) (if_statement "if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" (if "if") (parenthesized_expression "(uVar11 < (ulong)(param_2 - lVar24))" (( "(") (binary_expression "uVar11 < (ulong)(param_2 - lVar24)" (identifier "uVar11") (< "<") (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")")))) () ")")) (compound_statement "{\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" ({ "{") (if_statement "if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);\n            param_1 = param_1 + uVar15;\n          }" ({ "{") (if_statement "if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" (if "if") (parenthesized_expression "(uVar15 < uVar10)" (( "(") (binary_expression "uVar15 < uVar10" (identifier "uVar15") (< "<") (identifier "uVar10")) () ")")) (compound_statement "{\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" ({ "{") (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" (identifier "sVar27") (= "=") (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (identifier "uVar15"))) (; ";")) (if_statement "if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" (if "if") (parenthesized_expression "(cVar4 == '0')" (( "(") (binary_expression "cVar4 == '0'" (identifier "cVar4") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }" ({ "{") (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" (identifier "memset") (argument_list "(param_1,0x30,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")) (else_clause "else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" (else "else") (compound_statement "{\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" ({ "{") (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" (identifier "memset") (argument_list "(param_1,0x20,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);" (call_expression "FUN_00135939(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8)" (identifier "FUN_00135939") (argument_list "(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) (, ",") (identifier "local_4b8") (, ",") (identifier "param_4") (, ",") (identifier "cVar7") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" (identifier "param_1") (= "=") (binary_expression "param_1 + uVar15" (identifier "param_1") (+ "+") (identifier "uVar15"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar11" (identifier "lVar24") (+ "+") (identifier "uVar11"))) (; ";")) (goto_statement "goto LAB_001359f4;" (goto "goto") (statement_identifier "LAB_001359f4") (; ";")) (} "}"))) (goto_statement "goto LAB_00136dd9;" (goto "goto") (statement_identifier "LAB_00136dd9") (; ";"))) (case_statement "case 'U':\n        if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" (case "case") (char_literal "'U'" (' "'") (character "U") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" ({ "{") (expression_statement "uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;" (assignment_expression "uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7" (identifier "uVar12") (= "=") (binary_expression "((param_4->tm_yday - param_4->tm_wday) + 7) / 7" (parenthesized_expression "((param_4->tm_yday - param_4->tm_wday) + 7)" (( "(") (binary_expression "(param_4->tm_yday - param_4->tm_wday) + 7" (parenthesized_expression "(param_4->tm_yday - param_4->tm_wday)" (( "(") (binary_expression "param_4->tm_yday - param_4->tm_wday" (field_expression "param_4->tm_yday" (identifier "param_4") (-> "->") (field_identifier "tm_yday")) (- "-") (field_expression "param_4->tm_wday" (identifier "param_4") (-> "->") (field_identifier "tm_wday"))) () ")")) (+ "+") (number_literal "7")) () ")")) (/ "/") (number_literal "7"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'W':\n        if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" (case "case") (char_literal "'W'" (' "'") (character "W") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          iVar22 = param_4->tm_wday + 6;\n          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" ({ "{") (expression_statement "iVar22 = param_4->tm_wday + 6;" (assignment_expression "iVar22 = param_4->tm_wday + 6" (identifier "iVar22") (= "=") (binary_expression "param_4->tm_wday + 6" (field_expression "param_4->tm_wday" (identifier "param_4") (-> "->") (field_identifier "tm_wday")) (+ "+") (number_literal "6"))) (; ";")) (expression_statement "uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;" (assignment_expression "uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7" (identifier "uVar12") (= "=") (binary_expression "(((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7" (parenthesized_expression "(((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday)" (( "(") (binary_expression "((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday" (binary_expression "((iVar22 / 7) * 7 - iVar22) + 7" (parenthesized_expression "((iVar22 / 7) * 7 - iVar22)" (( "(") (binary_expression "(iVar22 / 7) * 7 - iVar22" (binary_expression "(iVar22 / 7) * 7" (parenthesized_expression "(iVar22 / 7)" (( "(") (binary_expression "iVar22 / 7" (identifier "iVar22") (/ "/") (number_literal "7")) () ")")) (* "*") (number_literal "7")) (- "-") (identifier "iVar22")) () ")")) (+ "+") (number_literal "7")) (+ "+") (field_expression "param_4->tm_yday" (identifier "param_4") (-> "->") (field_identifier "tm_yday"))) () ")")) (/ "/") (number_literal "7"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'X':\n        if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" (case "case") (char_literal "'X'" (' "'") (character "X") (' "'")) (: ":") (if_statement "if (cVar16 != 'O') {\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'O')" (( "(") (binary_expression "cVar16 != 'O'" (identifier "cVar16") (!= "!=") (char_literal "'O'" (' "'") (character "O") (' "'"))) () ")")) (compound_statement "{\n          cVar5 = 'X';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" ({ "{") (expression_statement "cVar5 = 'X';" (assignment_expression "cVar5 = 'X'" (identifier "cVar5") (= "=") (char_literal "'X'" (' "'") (character "X") (' "'"))) (; ";")) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (= "=") (false "false")) (; ";")) (goto_statement "goto LAB_001364b6;" (goto "goto") (statement_identifier "LAB_001364b6") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'Y':\n        if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        if (cVar16 == 'O') break;\n        bVar28 = param_4->tm_year < -0x76c;\n        uVar12 = param_4->tm_year + 0x76c;\n        uVar18 = 0;\n        bVar2 = false;\n        iVar22 = 4;\n        goto LAB_00136a29;" (case "case") (char_literal "'Y'" (' "'") (character "Y") (' "'")) (: ":") (if_statement "if (cVar16 == 'E') {\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" (if "if") (parenthesized_expression "(cVar16 == 'E')" (( "(") (binary_expression "cVar16 == 'E'" (identifier "cVar16") (== "==") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          cVar5 = 'Y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" ({ "{") (expression_statement "cVar5 = 'Y';" (assignment_expression "cVar5 = 'Y'" (identifier "cVar5") (= "=") (char_literal "'Y'" (' "'") (character "Y") (' "'"))) (; ";")) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" (identifier "iVar22") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00135ef1;" (goto "goto") (statement_identifier "LAB_00135ef1") (; ";")) (} "}"))) (if_statement "if (cVar16 == 'O') break;" (if "if") (parenthesized_expression "(cVar16 == 'O')" (( "(") (binary_expression "cVar16 == 'O'" (identifier "cVar16") (== "==") (char_literal "'O'" (' "'") (character "O") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "bVar28 = param_4->tm_year < -0x76c;" (assignment_expression "bVar28 = param_4->tm_year < -0x76c" (identifier "bVar28") (= "=") (binary_expression "param_4->tm_year < -0x76c" (field_expression "param_4->tm_year" (identifier "param_4") (-> "->") (field_identifier "tm_year")) (< "<") (number_literal "-0x76c"))) (; ";")) (expression_statement "uVar12 = param_4->tm_year + 0x76c;" (assignment_expression "uVar12 = param_4->tm_year + 0x76c" (identifier "uVar12") (= "=") (binary_expression "param_4->tm_year + 0x76c" (field_expression "param_4->tm_year" (identifier "param_4") (-> "->") (field_identifier "tm_year")) (+ "+") (number_literal "0x76c"))) (; ";")) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "iVar22 = 4;" (assignment_expression "iVar22 = 4" (identifier "iVar22") (= "=") (number_literal "4")) (; ";")) (goto_statement "goto LAB_00136a29;" (goto "goto") (statement_identifier "LAB_00136a29") (; ";"))) (case_statement "case 'Z':\n        if (bVar28) {\n          cVar7 = '\0';\n        }\n        uVar15 = 0xffffffffffffffff;\n        pcVar17 = __src;\n        do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');\n        uVar15 = ~uVar15 - 1;\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar10 = (ulong)iVar14;\n        uVar11 = uVar10;\n        if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }\n        if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }\n        goto LAB_00136dd9;" (case "case") (char_literal "'Z'" (' "'") (character "Z") (' "'")) (: ":") (if_statement "if (bVar28) {\n          cVar7 = '\0';\n        }" (if "if") (parenthesized_expression "(bVar28)" (( "(") (identifier "bVar28") () ")")) (compound_statement "{\n          cVar7 = '\0';\n        }" ({ "{") (expression_statement "cVar7 = '\0';" (assignment_expression "cVar7 = '\0'" (identifier "cVar7") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (expression_statement "uVar15 = 0xffffffffffffffff;" (assignment_expression "uVar15 = 0xffffffffffffffff" (identifier "uVar15") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar17 = __src;" (assignment_expression "pcVar17 = __src" (identifier "pcVar17") (= "=") (identifier "__src")) (; ";")) (do_statement "do {\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        } while (cVar5 != '\0');" (do "do") (compound_statement "{\n          if (uVar15 == 0) break;\n          uVar15 = uVar15 - 1;\n          cVar5 = *pcVar17;\n          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;\n        }" ({ "{") (if_statement "if (uVar15 == 0) break;" (if "if") (parenthesized_expression "(uVar15 == 0)" (( "(") (binary_expression "uVar15 == 0" (identifier "uVar15") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar15 = uVar15 - 1;" (assignment_expression "uVar15 = uVar15 - 1" (identifier "uVar15") (= "=") (binary_expression "uVar15 - 1" (identifier "uVar15") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar5 = *pcVar17;" (assignment_expression "cVar5 = *pcVar17" (identifier "cVar5") (= "=") (pointer_expression "*pcVar17" (* "*") (identifier "pcVar17"))) (; ";")) (expression_statement "pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;" (assignment_expression "pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1" (identifier "pcVar17") (= "=") (binary_expression "pcVar17 + (ulong)bVar29 * -2 + 1" (binary_expression "pcVar17 + (ulong)bVar29 * -2" (identifier "pcVar17") (+ "+") (binary_expression "(ulong)bVar29 * -2" (cast_expression "(ulong)bVar29" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar29")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar5 != '\0')" (( "(") (binary_expression "cVar5 != '\0'" (identifier "cVar5") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "uVar15 = ~uVar15 - 1;" (assignment_expression "uVar15 = ~uVar15 - 1" (identifier "uVar15") (= "=") (binary_expression "~uVar15 - 1" (unary_expression "~uVar15" (~ "~") (identifier "uVar15")) (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n          iVar14 = iVar26;\n        }" ({ "{") (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" (identifier "iVar14") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" (identifier "uVar10") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" (identifier "uVar11") (= "=") (identifier "uVar10")) (; ";")) (if_statement "if (uVar10 <= uVar15) {\n          uVar11 = uVar15;\n        }" (if "if") (parenthesized_expression "(uVar10 <= uVar15)" (( "(") (binary_expression "uVar10 <= uVar15" (identifier "uVar10") (<= "<=") (identifier "uVar15")) () ")")) (compound_statement "{\n          uVar11 = uVar15;\n        }" ({ "{") (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" (identifier "uVar11") (= "=") (identifier "uVar15")) (; ";")) (} "}"))) (if_statement "if (uVar11 < (ulong)(param_2 - lVar24)) {\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" (if "if") (parenthesized_expression "(uVar11 < (ulong)(param_2 - lVar24))" (( "(") (binary_expression "uVar11 < (ulong)(param_2 - lVar24)" (identifier "uVar11") (< "<") (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")")))) () ")")) (compound_statement "{\n          if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }\n          lVar24 = lVar24 + uVar11;\n          goto LAB_001359f4;\n        }" ({ "{") (if_statement "if (param_1 != (char *)0x0) {\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }\n            if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }\n            param_1 = param_1 + uVar15;\n          }" ({ "{") (if_statement "if (uVar15 < uVar10) {\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" (if "if") (parenthesized_expression "(uVar15 < uVar10)" (( "(") (binary_expression "uVar15 < uVar10" (identifier "uVar15") (< "<") (identifier "uVar10")) () ")")) (compound_statement "{\n              sVar27 = (long)iVar26 - uVar15;\n              if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n            }" ({ "{") (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" (identifier "sVar27") (= "=") (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (identifier "uVar15"))) (; ";")) (if_statement "if (cVar4 == '0') {\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }\n              else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" (if "if") (parenthesized_expression "(cVar4 == '0')" (( "(") (binary_expression "cVar4 == '0'" (identifier "cVar4") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n                memset(param_1,0x30,sVar27);\n                param_1 = param_1 + sVar27;\n              }" ({ "{") (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" (identifier "memset") (argument_list "(param_1,0x30,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")) (else_clause "else {\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" (else "else") (compound_statement "{\n                memset(param_1,0x20,sVar27);\n                param_1 = param_1 + sVar27;\n              }" ({ "{") (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" (identifier "memset") (argument_list "(param_1,0x20,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (bVar28) {\n              FUN_001358c7(param_1,__src,uVar15);\n            }\n            else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" (if "if") (parenthesized_expression "(bVar28)" (( "(") (identifier "bVar28") () ")")) (compound_statement "{\n              FUN_001358c7(param_1,__src,uVar15);\n            }" ({ "{") (expression_statement "FUN_001358c7(param_1,__src,uVar15);" (call_expression "FUN_001358c7(param_1,__src,uVar15)" (identifier "FUN_001358c7") (argument_list "(param_1,__src,uVar15)" (( "(") (identifier "param_1") (, ",") (identifier "__src") (, ",") (identifier "uVar15") () ")"))) (; ";")) (} "}")) (else_clause "else if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" (else "else") (if_statement "if (cVar7 == '\0') {\n              memcpy(param_1,__src,uVar15);\n            }\n            else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" (if "if") (parenthesized_expression "(cVar7 == '\0')" (( "(") (binary_expression "cVar7 == '\0'" (identifier "cVar7") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n              memcpy(param_1,__src,uVar15);\n            }" ({ "{") (expression_statement "memcpy(param_1,__src,uVar15);" (call_expression "memcpy(param_1,__src,uVar15)" (identifier "memcpy") (argument_list "(param_1,__src,uVar15)" (( "(") (identifier "param_1") (, ",") (identifier "__src") (, ",") (identifier "uVar15") () ")"))) (; ";")) (} "}")) (else_clause "else {\n              FUN_00135900(param_1,__src,uVar15);\n            }" (else "else") (compound_statement "{\n              FUN_00135900(param_1,__src,uVar15);\n            }" ({ "{") (expression_statement "FUN_00135900(param_1,__src,uVar15);" (call_expression "FUN_00135900(param_1,__src,uVar15)" (identifier "FUN_00135900") (argument_list "(param_1,__src,uVar15)" (( "(") (identifier "param_1") (, ",") (identifier "__src") (, ",") (identifier "uVar15") () ")"))) (; ";")) (} "}")))))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" (identifier "param_1") (= "=") (binary_expression "param_1 + uVar15" (identifier "param_1") (+ "+") (identifier "uVar15"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar11" (identifier "lVar24") (+ "+") (identifier "uVar11"))) (; ";")) (goto_statement "goto LAB_001359f4;" (goto "goto") (statement_identifier "LAB_001359f4") (; ";")) (} "}"))) (goto_statement "goto LAB_00136dd9;" (goto "goto") (statement_identifier "LAB_00136dd9") (; ";"))) (case_statement "case 'a':\n        if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }\n        break;" (case "case") (char_literal "'a'" (' "'") (character "a") (' "'")) (: ":") (if_statement "if (cVar16 == '\0') {\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }" (if "if") (parenthesized_expression "(cVar16 == '\0')" (( "(") (binary_expression "cVar16 == '\0'" (identifier "cVar16") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          if (bVar28 != false) {\n            cVar7 = bVar28;\n          }\n          cVar5 = 'a';\n          goto LAB_00135bf1;\n        }" ({ "{") (if_statement "if (bVar28 != false) {\n            cVar7 = bVar28;\n          }" (if "if") (parenthesized_expression "(bVar28 != false)" (( "(") (binary_expression "bVar28 != false" (identifier "bVar28") (!= "!=") (false "false")) () ")")) (compound_statement "{\n            cVar7 = bVar28;\n          }" ({ "{") (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" (identifier "cVar7") (= "=") (identifier "bVar28")) (; ";")) (} "}"))) (expression_statement "cVar5 = 'a';" (assignment_expression "cVar5 = 'a'" (identifier "cVar5") (= "=") (char_literal "'a'" (' "'") (character "a") (' "'"))) (; ";")) (goto_statement "goto LAB_00135bf1;" (goto "goto") (statement_identifier "LAB_00135bf1") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'b':" (case "case") (char_literal "'b'" (' "'") (character "b") (' "'")) (: ":")) (case_statement "case 'h':\n        if (bVar28 != false) {\n          cVar7 = bVar28;\n        }\n        if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\nLAB_00136cd6:\n        if (*local_4b8 != '%') break;\n        iVar14 = 1;\n        param_3 = local_4b8;\n        pcVar17 = local_4b8;\n        goto LAB_00136d21;" (case "case") (char_literal "'h'" (' "'") (character "h") (' "'")) (: ":") (if_statement "if (bVar28 != false) {\n          cVar7 = bVar28;\n        }" (if "if") (parenthesized_expression "(bVar28 != false)" (( "(") (binary_expression "bVar28 != false" (identifier "bVar28") (!= "!=") (false "false")) () ")")) (compound_statement "{\n          cVar7 = bVar28;\n        }" ({ "{") (expression_statement "cVar7 = bVar28;" (assignment_expression "cVar7 = bVar28" (identifier "cVar7") (= "=") (identifier "bVar28")) (; ";")) (} "}"))) (if_statement "if (cVar16 != 'E') {\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" ({ "{") (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (= "=") (false "false")) (; ";")) (goto_statement "goto LAB_001364b6;" (goto "goto") (statement_identifier "LAB_001364b6") (; ";")) (} "}"))) (labeled_statement "LAB_00136cd6:\n        if (*local_4b8 != '%') break;" (statement_identifier "LAB_00136cd6") (: ":") (if_statement "if (*local_4b8 != '%') break;" (if "if") (parenthesized_expression "(*local_4b8 != '%')" (( "(") (binary_expression "*local_4b8 != '%'" (pointer_expression "*local_4b8" (* "*") (identifier "local_4b8")) (!= "!=") (char_literal "'%'" (' "'") (character "%") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";")))) (expression_statement "iVar14 = 1;" (assignment_expression "iVar14 = 1" (identifier "iVar14") (= "=") (number_literal "1")) (; ";")) (expression_statement "param_3 = local_4b8;" (assignment_expression "param_3 = local_4b8" (identifier "param_3") (= "=") (identifier "local_4b8")) (; ";")) (expression_statement "pcVar17 = local_4b8;" (assignment_expression "pcVar17 = local_4b8" (identifier "pcVar17") (= "=") (identifier "local_4b8")) (; ";")) (goto_statement "goto LAB_00136d21;" (goto "goto") (statement_identifier "LAB_00136d21") (; ";"))) (case_statement "case 'c':\n        if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" (case "case") (char_literal "'c'" (' "'") (character "c") (' "'")) (: ":") (if_statement "if (cVar16 != 'O') {\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'O')" (( "(") (binary_expression "cVar16 != 'O'" (identifier "cVar16") (!= "!=") (char_literal "'O'" (' "'") (character "O") (' "'"))) () ")")) (compound_statement "{\n          cVar5 = 'c';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" ({ "{") (expression_statement "cVar5 = 'c';" (assignment_expression "cVar5 = 'c'" (identifier "cVar5") (= "=") (char_literal "'c'" (' "'") (character "c") (' "'"))) (; ";")) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (= "=") (false "false")) (; ";")) (goto_statement "goto LAB_001364b6;" (goto "goto") (statement_identifier "LAB_001364b6") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'd':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }\n        break;" (case "case") (char_literal "'d'" (' "'") (character "d") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          uVar12 = param_4->tm_mday;\n          iVar22 = 2;\n          goto LAB_00135ecc;\n        }" ({ "{") (expression_statement "uVar12 = param_4->tm_mday;" (assignment_expression "uVar12 = param_4->tm_mday" (identifier "uVar12") (= "=") (field_expression "param_4->tm_mday" (identifier "param_4") (-> "->") (field_identifier "tm_mday"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'e':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }\n        break;" (case "case") (char_literal "'e'" (' "'") (character "e") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          uVar12 = param_4->tm_mday;\nLAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }\n          goto LAB_00135ecc;\n        }" ({ "{") (expression_statement "uVar12 = param_4->tm_mday;" (assignment_expression "uVar12 = param_4->tm_mday" (identifier "uVar12") (= "=") (field_expression "param_4->tm_mday" (identifier "param_4") (-> "->") (field_identifier "tm_mday"))) (; ";")) (labeled_statement "LAB_00135ea8:\n          if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }" (statement_identifier "LAB_00135ea8") (: ":") (if_statement "if ((cVar4 == '0') || (cVar4 == '-')) {\n            iVar22 = 2;\n          }\n          else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }" (if "if") (parenthesized_expression "((cVar4 == '0') || (cVar4 == '-'))" (( "(") (binary_expression "(cVar4 == '0') || (cVar4 == '-')" (parenthesized_expression "(cVar4 == '0')" (( "(") (binary_expression "cVar4 == '0'" (identifier "cVar4") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar4 == '-')" (( "(") (binary_expression "cVar4 == '-'" (identifier "cVar4") (== "==") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")"))) () ")")) (compound_statement "{\n            iVar22 = 2;\n          }" ({ "{") (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n            cVar4 = '_';\n            iVar22 = 2;\n          }" (else "else") (compound_statement "{\n            cVar4 = '_';\n            iVar22 = 2;\n          }" ({ "{") (expression_statement "cVar4 = '_';" (assignment_expression "cVar4 = '_'" (identifier "cVar4") (= "=") (char_literal "'_'" (' "'") (character "_") (' "'"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (} "}"))))) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'j':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }\n        break;" (case "case") (char_literal "'j'" (' "'") (character "j") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          bVar28 = param_4->tm_yday < -1;\n          uVar12 = param_4->tm_yday + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 3;\n          goto LAB_00135edf;\n        }" ({ "{") (expression_statement "bVar28 = param_4->tm_yday < -1;" (assignment_expression "bVar28 = param_4->tm_yday < -1" (identifier "bVar28") (= "=") (binary_expression "param_4->tm_yday < -1" (field_expression "param_4->tm_yday" (identifier "param_4") (-> "->") (field_identifier "tm_yday")) (< "<") (number_literal "-1"))) (; ";")) (expression_statement "uVar12 = param_4->tm_yday + 1;" (assignment_expression "uVar12 = param_4->tm_yday + 1" (identifier "uVar12") (= "=") (binary_expression "param_4->tm_yday + 1" (field_expression "param_4->tm_yday" (identifier "param_4") (-> "->") (field_identifier "tm_yday")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "iVar22 = 3;" (assignment_expression "iVar22 = 3" (identifier "iVar22") (= "=") (number_literal "3")) (; ";")) (goto_statement "goto LAB_00135edf;" (goto "goto") (statement_identifier "LAB_00135edf") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'k':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }\n        break;" (case "case") (char_literal "'k'" (' "'") (character "k") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          uVar12 = param_4->tm_hour;\n          goto LAB_00135ea8;\n        }" ({ "{") (expression_statement "uVar12 = param_4->tm_hour;" (assignment_expression "uVar12 = param_4->tm_hour" (identifier "uVar12") (= "=") (field_expression "param_4->tm_hour" (identifier "param_4") (-> "->") (field_identifier "tm_hour"))) (; ";")) (goto_statement "goto LAB_00135ea8;" (goto "goto") (statement_identifier "LAB_00135ea8") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'l':\n        if (cVar16 != 'E') goto LAB_00135ea8;\n        break;" (case "case") (char_literal "'l'" (' "'") (character "l") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') goto LAB_00135ea8;" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (goto_statement "goto LAB_00135ea8;" (goto "goto") (statement_identifier "LAB_00135ea8") (; ";"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'm':\n        if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }\n        break;" (case "case") (char_literal "'m'" (' "'") (character "m") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          bVar28 = param_4->tm_mon < -1;\n          uVar12 = param_4->tm_mon + 1;\n          uVar18 = 0;\n          bVar2 = false;\n          iVar22 = 2;\n          goto LAB_00135edf;\n        }" ({ "{") (expression_statement "bVar28 = param_4->tm_mon < -1;" (assignment_expression "bVar28 = param_4->tm_mon < -1" (identifier "bVar28") (= "=") (binary_expression "param_4->tm_mon < -1" (field_expression "param_4->tm_mon" (identifier "param_4") (-> "->") (field_identifier "tm_mon")) (< "<") (number_literal "-1"))) (; ";")) (expression_statement "uVar12 = param_4->tm_mon + 1;" (assignment_expression "uVar12 = param_4->tm_mon + 1" (identifier "uVar12") (= "=") (binary_expression "param_4->tm_mon + 1" (field_expression "param_4->tm_mon" (identifier "param_4") (-> "->") (field_identifier "tm_mon")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_00135edf;" (goto "goto") (statement_identifier "LAB_00135edf") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'n':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;" (case "case") (char_literal "'n'" (' "'") (character "n") (' "'")) (: ":") (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n          iVar14 = iVar26;\n        }" ({ "{") (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" (identifier "iVar14") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" (identifier "uVar11") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" (identifier "uVar15") (= "=") (number_literal "1")) (; ";")) (if_statement "if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar15 = uVar11;\n        }" ({ "{") (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" (identifier "uVar15") (= "=") (identifier "uVar11")) (; ";")) (} "}"))) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" (if "if") (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" (( "(") (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")"))) (<= "<=") (identifier "uVar15")) () ")")) (goto_statement "goto LAB_00136dd9;" (goto "goto") (statement_identifier "LAB_00136dd9") (; ";"))) (if_statement "if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\n';\n          param_1 = param_1 + 1;\n        }" ({ "{") (if_statement "if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" (if "if") (parenthesized_expression "(1 < uVar11)" (( "(") (binary_expression "1 < uVar11" (number_literal "1") (< "<") (identifier "uVar11")) () ")")) (compound_statement "{\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" ({ "{") (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" (identifier "sVar27") (= "=") (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (number_literal "1"))) (; ";")) (if_statement "if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" (if "if") (parenthesized_expression "(cVar4 == '0')" (( "(") (binary_expression "cVar4 == '0'" (identifier "cVar4") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }" ({ "{") (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" (identifier "memset") (argument_list "(param_1,0x30,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")) (else_clause "else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" (else "else") (compound_statement "{\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" ({ "{") (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" (identifier "memset") (argument_list "(param_1,0x20,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "*param_1 = '\n';" (assignment_expression "*param_1 = '\n'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar15" (identifier "lVar24") (+ "+") (identifier "uVar15"))) (; ";")) (goto_statement "goto LAB_001359f4;" (goto "goto") (statement_identifier "LAB_001359f4") (; ";"))) (case_statement "case 'p':\n        local_4b8._0_1_ = false;\nLAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }\n        cVar5 = 'p';\n        if (bVar28 != false) {\n          cVar7 = '\0';\n        }\nLAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }\n        pcVar17 = local_44d + 2;\n        iVar22 = 0;\n        goto LAB_00135f1c;" (case "case") (char_literal "'p'" (' "'") (character "p") (' "'")) (: ":") (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (= "=") (false "false")) (; ";")) (labeled_statement "LAB_00136492:\n        if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }" (statement_identifier "LAB_00136492") (: ":") (if_statement "if (bVar28 != false) {\n          local_4b8._0_1_ = bVar28;\n        }" (if "if") (parenthesized_expression "(bVar28 != false)" (( "(") (binary_expression "bVar28 != false" (identifier "bVar28") (!= "!=") (false "false")) () ")")) (compound_statement "{\n          local_4b8._0_1_ = bVar28;\n        }" ({ "{") (expression_statement "local_4b8._0_1_ = bVar28;" (assignment_expression "local_4b8._0_1_ = bVar28" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (= "=") (identifier "bVar28")) (; ";")) (} "}")))) (expression_statement "cVar5 = 'p';" (assignment_expression "cVar5 = 'p'" (identifier "cVar5") (= "=") (char_literal "'p'" (' "'") (character "p") (' "'"))) (; ";")) (if_statement "if (bVar28 != false) {\n          cVar7 = '\0';\n        }" (if "if") (parenthesized_expression "(bVar28 != false)" (( "(") (binary_expression "bVar28 != false" (identifier "bVar28") (!= "!=") (false "false")) () ")")) (compound_statement "{\n          cVar7 = '\0';\n        }" ({ "{") (expression_statement "cVar7 = '\0';" (assignment_expression "cVar7 = '\0'" (identifier "cVar7") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (labeled_statement "LAB_001364b6:\n        if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" (statement_identifier "LAB_001364b6") (: ":") (if_statement "if (cVar16 != '\0') {\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" (if "if") (parenthesized_expression "(cVar16 != '\0')" (( "(") (binary_expression "cVar16 != '\0'" (identifier "cVar16") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          iVar22 = 0;\n          goto LAB_00135f06;\n        }" ({ "{") (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" (identifier "iVar22") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00135f06;" (goto "goto") (statement_identifier "LAB_00135f06") (; ";")) (} "}")))) (expression_statement "pcVar17 = local_44d + 2;" (assignment_expression "pcVar17 = local_44d + 2" (identifier "pcVar17") (= "=") (binary_expression "local_44d + 2" (identifier "local_44d") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" (identifier "iVar22") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00135f1c;" (goto "goto") (statement_identifier "LAB_00135f1c") (; ";"))) (case_statement "case 'q':\n        cVar5 = 'q';\n        iVar22 = 1;\n        if (cVar16 == 'O') goto LAB_00135ef1;\n        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;\n        uVar18 = 0;\n        bVar2 = false;\n        bVar28 = false;\n        goto LAB_00136a33;" (case "case") (char_literal "'q'" (' "'") (character "q") (' "'")) (: ":") (expression_statement "cVar5 = 'q';" (assignment_expression "cVar5 = 'q'" (identifier "cVar5") (= "=") (char_literal "'q'" (' "'") (character "q") (' "'"))) (; ";")) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" (identifier "iVar22") (= "=") (number_literal "1")) (; ";")) (if_statement "if (cVar16 == 'O') goto LAB_00135ef1;" (if "if") (parenthesized_expression "(cVar16 == 'O')" (( "(") (binary_expression "cVar16 == 'O'" (identifier "cVar16") (== "==") (char_literal "'O'" (' "'") (character "O") (' "'"))) () ")")) (goto_statement "goto LAB_00135ef1;" (goto "goto") (statement_identifier "LAB_00135ef1") (; ";"))) (expression_statement "uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;" (assignment_expression "uVar12 = (param_4->tm_mon * 0xb >> 5) + 1" (identifier "uVar12") (= "=") (binary_expression "(param_4->tm_mon * 0xb >> 5) + 1" (parenthesized_expression "(param_4->tm_mon * 0xb >> 5)" (( "(") (binary_expression "param_4->tm_mon * 0xb >> 5" (binary_expression "param_4->tm_mon * 0xb" (field_expression "param_4->tm_mon" (identifier "param_4") (-> "->") (field_identifier "tm_mon")) (* "*") (number_literal "0xb")) (>> ">>") (number_literal "5")) () ")")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" (identifier "bVar28") (= "=") (false "false")) (; ";")) (goto_statement "goto LAB_00136a33;" (goto "goto") (statement_identifier "LAB_00136a33") (; ";"))) (case_statement "case 'r':\n        local_4b8._0_1_ = false;\n        goto LAB_001364b6;" (case "case") (char_literal "'r'" (' "'") (character "r") (' "'")) (: ":") (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (= "=") (false "false")) (; ";")) (goto_statement "goto LAB_001364b6;" (goto "goto") (statement_identifier "LAB_001364b6") (; ";"))) (case_statement "case 's':\n        local_488._0_4_ = param_4->tm_sec;\n        local_488._4_4_ = param_4->tm_min;\n        uStack_480._0_4_ = param_4->tm_hour;\n        uStack_480._4_4_ = param_4->tm_mday;\n        local_478._0_4_ = param_4->tm_mon;\n        local_478._4_4_ = param_4->tm_year;\n        uStack_470._0_4_ = param_4->tm_wday;\n        uStack_470._4_4_ = param_4->tm_yday;\n        local_468 = *(undefined8 *)&param_4->tm_isdst;\n        lStack_460 = param_4->tm_gmtoff;\n        local_458 = param_4->tm_zone;\n        lVar9 = FUN_00134eb1(param_7,&local_488);\n        pcVar17 = local_431;\n        lVar23 = lVar9;\n        do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);\n        iVar22 = 1;\n        if (0 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }\n        goto LAB_0013605d;" (case "case") (char_literal "'s'" (' "'") (character "s") (' "'")) (: ":") (expression_statement "local_488._0_4_ = param_4->tm_sec;" (assignment_expression "local_488._0_4_ = param_4->tm_sec" (field_expression "local_488._0_4_" (identifier "local_488") (. ".") (field_identifier "_0_4_")) (= "=") (field_expression "param_4->tm_sec" (identifier "param_4") (-> "->") (field_identifier "tm_sec"))) (; ";")) (expression_statement "local_488._4_4_ = param_4->tm_min;" (assignment_expression "local_488._4_4_ = param_4->tm_min" (field_expression "local_488._4_4_" (identifier "local_488") (. ".") (field_identifier "_4_4_")) (= "=") (field_expression "param_4->tm_min" (identifier "param_4") (-> "->") (field_identifier "tm_min"))) (; ";")) (expression_statement "uStack_480._0_4_ = param_4->tm_hour;" (assignment_expression "uStack_480._0_4_ = param_4->tm_hour" (field_expression "uStack_480._0_4_" (identifier "uStack_480") (. ".") (field_identifier "_0_4_")) (= "=") (field_expression "param_4->tm_hour" (identifier "param_4") (-> "->") (field_identifier "tm_hour"))) (; ";")) (expression_statement "uStack_480._4_4_ = param_4->tm_mday;" (assignment_expression "uStack_480._4_4_ = param_4->tm_mday" (field_expression "uStack_480._4_4_" (identifier "uStack_480") (. ".") (field_identifier "_4_4_")) (= "=") (field_expression "param_4->tm_mday" (identifier "param_4") (-> "->") (field_identifier "tm_mday"))) (; ";")) (expression_statement "local_478._0_4_ = param_4->tm_mon;" (assignment_expression "local_478._0_4_ = param_4->tm_mon" (field_expression "local_478._0_4_" (identifier "local_478") (. ".") (field_identifier "_0_4_")) (= "=") (field_expression "param_4->tm_mon" (identifier "param_4") (-> "->") (field_identifier "tm_mon"))) (; ";")) (expression_statement "local_478._4_4_ = param_4->tm_year;" (assignment_expression "local_478._4_4_ = param_4->tm_year" (field_expression "local_478._4_4_" (identifier "local_478") (. ".") (field_identifier "_4_4_")) (= "=") (field_expression "param_4->tm_year" (identifier "param_4") (-> "->") (field_identifier "tm_year"))) (; ";")) (expression_statement "uStack_470._0_4_ = param_4->tm_wday;" (assignment_expression "uStack_470._0_4_ = param_4->tm_wday" (field_expression "uStack_470._0_4_" (identifier "uStack_470") (. ".") (field_identifier "_0_4_")) (= "=") (field_expression "param_4->tm_wday" (identifier "param_4") (-> "->") (field_identifier "tm_wday"))) (; ";")) (expression_statement "uStack_470._4_4_ = param_4->tm_yday;" (assignment_expression "uStack_470._4_4_ = param_4->tm_yday" (field_expression "uStack_470._4_4_" (identifier "uStack_470") (. ".") (field_identifier "_4_4_")) (= "=") (field_expression "param_4->tm_yday" (identifier "param_4") (-> "->") (field_identifier "tm_yday"))) (; ";")) (expression_statement "local_468 = *(undefined8 *)&param_4->tm_isdst;" (assignment_expression "local_468 = *(undefined8 *)&param_4->tm_isdst" (identifier "local_468") (= "=") (pointer_expression "*(undefined8 *)&param_4->tm_isdst" (* "*") (cast_expression "(undefined8 *)&param_4->tm_isdst" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&param_4->tm_isdst" (& "&") (field_expression "param_4->tm_isdst" (identifier "param_4") (-> "->") (field_identifier "tm_isdst")))))) (; ";")) (expression_statement "lStack_460 = param_4->tm_gmtoff;" (assignment_expression "lStack_460 = param_4->tm_gmtoff" (identifier "lStack_460") (= "=") (field_expression "param_4->tm_gmtoff" (identifier "param_4") (-> "->") (field_identifier "tm_gmtoff"))) (; ";")) (expression_statement "local_458 = param_4->tm_zone;" (assignment_expression "local_458 = param_4->tm_zone" (identifier "local_458") (= "=") (field_expression "param_4->tm_zone" (identifier "param_4") (-> "->") (field_identifier "tm_zone"))) (; ";")) (expression_statement "lVar9 = FUN_00134eb1(param_7,&local_488);" (assignment_expression "lVar9 = FUN_00134eb1(param_7,&local_488)" (identifier "lVar9") (= "=") (call_expression "FUN_00134eb1(param_7,&local_488)" (identifier "FUN_00134eb1") (argument_list "(param_7,&local_488)" (( "(") (identifier "param_7") (, ",") (pointer_expression "&local_488" (& "&") (identifier "local_488")) () ")")))) (; ";")) (expression_statement "pcVar17 = local_431;" (assignment_expression "pcVar17 = local_431" (identifier "pcVar17") (= "=") (identifier "local_431")) (; ";")) (expression_statement "lVar23 = lVar9;" (assignment_expression "lVar23 = lVar9" (identifier "lVar23") (= "=") (identifier "lVar9")) (; ";")) (do_statement "do {\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        } while (lVar3 != 0);" (do "do") (compound_statement "{\n          lVar3 = lVar23 / 10;\n          cVar5 = (char)lVar23 + (char)lVar3 * -10;\n          if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }\n          pcVar17 = pcVar17 + -1;\n          *pcVar17 = cVar5 + '0';\n          lVar23 = lVar3;\n        }" ({ "{") (expression_statement "lVar3 = lVar23 / 10;" (assignment_expression "lVar3 = lVar23 / 10" (identifier "lVar3") (= "=") (binary_expression "lVar23 / 10" (identifier "lVar23") (/ "/") (number_literal "10"))) (; ";")) (expression_statement "cVar5 = (char)lVar23 + (char)lVar3 * -10;" (assignment_expression "cVar5 = (char)lVar23 + (char)lVar3 * -10" (identifier "cVar5") (= "=") (binary_expression "(char)lVar23 + (char)lVar3 * -10" (cast_expression "(char)lVar23" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "lVar23")) (+ "+") (binary_expression "(char)lVar3 * -10" (cast_expression "(char)lVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "lVar3")) (* "*") (number_literal "-10")))) (; ";")) (if_statement "if (lVar9 < 0) {\n            cVar5 = -cVar5;\n          }" (if "if") (parenthesized_expression "(lVar9 < 0)" (( "(") (binary_expression "lVar9 < 0" (identifier "lVar9") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n            cVar5 = -cVar5;\n          }" ({ "{") (expression_statement "cVar5 = -cVar5;" (assignment_expression "cVar5 = -cVar5" (identifier "cVar5") (= "=") (unary_expression "-cVar5" (- "-") (identifier "cVar5"))) (; ";")) (} "}"))) (expression_statement "pcVar17 = pcVar17 + -1;" (assignment_expression "pcVar17 = pcVar17 + -1" (identifier "pcVar17") (= "=") (binary_expression "pcVar17 + -1" (identifier "pcVar17") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*pcVar17 = cVar5 + '0';" (assignment_expression "*pcVar17 = cVar5 + '0'" (pointer_expression "*pcVar17" (* "*") (identifier "pcVar17")) (= "=") (binary_expression "cVar5 + '0'" (identifier "cVar5") (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "lVar23 = lVar3;" (assignment_expression "lVar23 = lVar3" (identifier "lVar23") (= "=") (identifier "lVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar3 != 0)" (( "(") (binary_expression "lVar3 != 0" (identifier "lVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" (identifier "iVar22") (= "=") (number_literal "1")) (; ";")) (if_statement "if (0 < iVar26) {\n          iVar22 = iVar26;\n        }" (if "if") (parenthesized_expression "(0 < iVar26)" (( "(") (binary_expression "0 < iVar26" (number_literal "0") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n          iVar22 = iVar26;\n        }" ({ "{") (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" (identifier "iVar22") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (if_statement "if (lVar9 < 0) {\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }" (if "if") (parenthesized_expression "(lVar9 < 0)" (( "(") (binary_expression "lVar9 < 0" (identifier "lVar9") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          cVar5 = '-';\n          goto LAB_00136e58;\n        }" ({ "{") (expression_statement "cVar5 = '-';" (assignment_expression "cVar5 = '-'" (identifier "cVar5") (= "=") (char_literal "'-'" (' "'") (character "-") (' "'"))) (; ";")) (goto_statement "goto LAB_00136e58;" (goto "goto") (statement_identifier "LAB_00136e58") (; ";")) (} "}"))) (goto_statement "goto LAB_0013605d;" (goto "goto") (statement_identifier "LAB_0013605d") (; ";"))) (case_statement "case 't':\n        iVar14 = 0;\n        if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }\n        uVar11 = (ulong)iVar14;\n        uVar15 = 1;\n        if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }\n        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n        if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }\n        lVar24 = lVar24 + uVar15;\n        goto LAB_001359f4;" (case "case") (char_literal "'t'" (' "'") (character "t") (' "'")) (: ":") (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n          iVar14 = iVar26;\n        }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n          iVar14 = iVar26;\n        }" ({ "{") (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" (identifier "iVar14") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" (identifier "uVar11") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" (identifier "uVar15") (= "=") (number_literal "1")) (; ";")) (if_statement "if (uVar11 != 0) {\n          uVar15 = uVar11;\n        }" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar15 = uVar11;\n        }" ({ "{") (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" (identifier "uVar15") (= "=") (identifier "uVar11")) (; ";")) (} "}"))) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" (if "if") (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" (( "(") (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")"))) (<= "<=") (identifier "uVar15")) () ")")) (goto_statement "goto LAB_00136dd9;" (goto "goto") (statement_identifier "LAB_00136dd9") (; ";"))) (if_statement "if (param_1 != (char *)0x0) {\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }\n          *param_1 = '\t';\n          param_1 = param_1 + 1;\n        }" ({ "{") (if_statement "if (1 < uVar11) {\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" (if "if") (parenthesized_expression "(1 < uVar11)" (( "(") (binary_expression "1 < uVar11" (number_literal "1") (< "<") (identifier "uVar11")) () ")")) (compound_statement "{\n            sVar27 = (long)iVar26 - 1;\n            if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n          }" ({ "{") (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" (identifier "sVar27") (= "=") (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (number_literal "1"))) (; ";")) (if_statement "if (cVar4 == '0') {\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }\n            else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" (if "if") (parenthesized_expression "(cVar4 == '0')" (( "(") (binary_expression "cVar4 == '0'" (identifier "cVar4") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n              memset(param_1,0x30,sVar27);\n              param_1 = param_1 + sVar27;\n            }" ({ "{") (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" (identifier "memset") (argument_list "(param_1,0x30,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")) (else_clause "else {\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" (else "else") (compound_statement "{\n              memset(param_1,0x20,sVar27);\n              param_1 = param_1 + sVar27;\n            }" ({ "{") (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" (identifier "memset") (argument_list "(param_1,0x20,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "*param_1 = '\t';" (assignment_expression "*param_1 = '\t'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar15" (identifier "lVar24") (+ "+") (identifier "uVar15"))) (; ";")) (goto_statement "goto LAB_001359f4;" (goto "goto") (statement_identifier "LAB_001359f4") (; ";"))) (case_statement "case 'u':\n        uVar12 = (param_4->tm_wday + 6) % 7 + 1;\n        iVar22 = 1;\n        goto LAB_00135ecc;" (case "case") (char_literal "'u'" (' "'") (character "u") (' "'")) (: ":") (expression_statement "uVar12 = (param_4->tm_wday + 6) % 7 + 1;" (assignment_expression "uVar12 = (param_4->tm_wday + 6) % 7 + 1" (identifier "uVar12") (= "=") (binary_expression "(param_4->tm_wday + 6) % 7 + 1" (binary_expression "(param_4->tm_wday + 6) % 7" (parenthesized_expression "(param_4->tm_wday + 6)" (( "(") (binary_expression "param_4->tm_wday + 6" (field_expression "param_4->tm_wday" (identifier "param_4") (-> "->") (field_identifier "tm_wday")) (+ "+") (number_literal "6")) () ")")) (% "%") (number_literal "7")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" (identifier "iVar22") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";"))) (case_statement "case 'w':\n        if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }\n        break;" (case "case") (char_literal "'w'" (' "'") (character "w") (' "'")) (: ":") (if_statement "if (cVar16 != 'E') {\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'E')" (( "(") (binary_expression "cVar16 != 'E'" (identifier "cVar16") (!= "!=") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          uVar12 = param_4->tm_wday;\n          iVar22 = 1;\n          goto LAB_00135ecc;\n        }" ({ "{") (expression_statement "uVar12 = param_4->tm_wday;" (assignment_expression "uVar12 = param_4->tm_wday" (identifier "uVar12") (= "=") (field_expression "param_4->tm_wday" (identifier "param_4") (-> "->") (field_identifier "tm_wday"))) (; ";")) (expression_statement "iVar22 = 1;" (assignment_expression "iVar22 = 1" (identifier "iVar22") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_00135ecc;" (goto "goto") (statement_identifier "LAB_00135ecc") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'x':\n        if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }\n        break;" (case "case") (char_literal "'x'" (' "'") (character "x") (' "'")) (: ":") (if_statement "if (cVar16 != 'O') {\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" (if "if") (parenthesized_expression "(cVar16 != 'O')" (( "(") (binary_expression "cVar16 != 'O'" (identifier "cVar16") (!= "!=") (char_literal "'O'" (' "'") (character "O") (' "'"))) () ")")) (compound_statement "{\n          cVar5 = 'x';\n          local_4b8._0_1_ = false;\n          goto LAB_001364b6;\n        }" ({ "{") (expression_statement "cVar5 = 'x';" (assignment_expression "cVar5 = 'x'" (identifier "cVar5") (= "=") (char_literal "'x'" (' "'") (character "x") (' "'"))) (; ";")) (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (= "=") (false "false")) (; ";")) (goto_statement "goto LAB_001364b6;" (goto "goto") (statement_identifier "LAB_001364b6") (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 'y':\n        if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }\n        uVar12 = param_4->tm_year % 100;\n        iVar22 = 2;\n        if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }\nLAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);\n        uVar18 = 0;\n        bVar2 = false;\nLAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }\nLAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }\nLAB_00136a33:\n        pcVar17 = local_431;\n        do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));\n        if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }\n        if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }\n        cVar5 = '+';\n        if (bVar2) goto LAB_00136e58;\nLAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;\n        cVar5 = '\0';\n        bVar28 = false;\nLAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }\n        goto LAB_00136dd9;" (case "case") (char_literal "'y'" (' "'") (character "y") (' "'")) (: ":") (if_statement "if (cVar16 == 'E') {\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" (if "if") (parenthesized_expression "(cVar16 == 'E')" (( "(") (binary_expression "cVar16 == 'E'" (identifier "cVar16") (== "==") (char_literal "'E'" (' "'") (character "E") (' "'"))) () ")")) (compound_statement "{\n          cVar5 = 'y';\n          iVar22 = 0;\n          goto LAB_00135ef1;\n        }" ({ "{") (expression_statement "cVar5 = 'y';" (assignment_expression "cVar5 = 'y'" (identifier "cVar5") (= "=") (char_literal "'y'" (' "'") (character "y") (' "'"))) (; ";")) (expression_statement "iVar22 = 0;" (assignment_expression "iVar22 = 0" (identifier "iVar22") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00135ef1;" (goto "goto") (statement_identifier "LAB_00135ef1") (; ";")) (} "}"))) (expression_statement "uVar12 = param_4->tm_year % 100;" (assignment_expression "uVar12 = param_4->tm_year % 100" (identifier "uVar12") (= "=") (binary_expression "param_4->tm_year % 100" (field_expression "param_4->tm_year" (identifier "param_4") (-> "->") (field_identifier "tm_year")) (% "%") (number_literal "100"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (if_statement "if ((int)uVar12 < 0) {\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }" (if "if") (parenthesized_expression "((int)uVar12 < 0)" (( "(") (binary_expression "(int)uVar12 < 0" (cast_expression "(int)uVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar12")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }\n        }" ({ "{") (if_statement "if (param_4->tm_year < -0x76c) {\n            uVar12 = -uVar12;\n          }\n          else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }" (if "if") (parenthesized_expression "(param_4->tm_year < -0x76c)" (( "(") (binary_expression "param_4->tm_year < -0x76c" (field_expression "param_4->tm_year" (identifier "param_4") (-> "->") (field_identifier "tm_year")) (< "<") (number_literal "-0x76c")) () ")")) (compound_statement "{\n            uVar12 = -uVar12;\n          }" ({ "{") (expression_statement "uVar12 = -uVar12;" (assignment_expression "uVar12 = -uVar12" (identifier "uVar12") (= "=") (unary_expression "-uVar12" (- "-") (identifier "uVar12"))) (; ";")) (} "}")) (else_clause "else {\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }" (else "else") (compound_statement "{\n            uVar12 = uVar12 + 100;\n            iVar22 = 2;\n          }" ({ "{") (expression_statement "uVar12 = uVar12 + 100;" (assignment_expression "uVar12 = uVar12 + 100" (identifier "uVar12") (= "=") (binary_expression "uVar12 + 100" (identifier "uVar12") (+ "+") (number_literal "100"))) (; ";")) (expression_statement "iVar22 = 2;" (assignment_expression "iVar22 = 2" (identifier "iVar22") (= "=") (number_literal "2")) (; ";")) (} "}")))) (} "}"))) (labeled_statement "LAB_00135ecc:\n        bVar28 = SUB41(uVar12 >> 0x1f,0);" (statement_identifier "LAB_00135ecc") (: ":") (expression_statement "bVar28 = SUB41(uVar12 >> 0x1f,0);" (assignment_expression "bVar28 = SUB41(uVar12 >> 0x1f,0)" (identifier "bVar28") (= "=") (call_expression "SUB41(uVar12 >> 0x1f,0)" (identifier "SUB41") (argument_list "(uVar12 >> 0x1f,0)" (( "(") (binary_expression "uVar12 >> 0x1f" (identifier "uVar12") (>> ">>") (number_literal "0x1f")) (, ",") (number_literal "0") () ")")))) (; ";"))) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = false;" (assignment_expression "bVar2 = false" (identifier "bVar2") (= "=") (false "false")) (; ";")) (labeled_statement "LAB_00135edf:\n        if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }" (statement_identifier "LAB_00135edf") (: ":") (if_statement "if ((cVar16 == 'O') && (bVar28 == false)) {\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }" (if "if") (parenthesized_expression "((cVar16 == 'O') && (bVar28 == false))" (( "(") (binary_expression "(cVar16 == 'O') && (bVar28 == false)" (parenthesized_expression "(cVar16 == 'O')" (( "(") (binary_expression "cVar16 == 'O'" (identifier "cVar16") (== "==") (char_literal "'O'" (' "'") (character "O") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(bVar28 == false)" (( "(") (binary_expression "bVar28 == false" (identifier "bVar28") (== "==") (false "false")) () ")"))) () ")")) (compound_statement "{\nLAB_00135ef1:\n          local_4b8._0_1_ = false;\nLAB_00135f06:\n          pcVar17 = local_44a;\n          local_44d[2] = cVar16;\nLAB_00135f1c:\n          local_44d[1] = 0x25;\n          local_44d[0] = ' ';\n          *pcVar17 = cVar5;\n          pcVar17[1] = '\0';\n          sVar27 = strftime(&local_448,0x400,local_44d,param_4);\n          if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }\n          goto LAB_001359f4;\n        }" ({ "{") (labeled_statement "LAB_00135ef1:\n          local_4b8._0_1_ = false;" (statement_identifier "LAB_00135ef1") (: ":") (expression_statement "local_4b8._0_1_ = false;" (assignment_expression "local_4b8._0_1_ = false" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (= "=") (false "false")) (; ";"))) (labeled_statement "LAB_00135f06:\n          pcVar17 = local_44a;" (statement_identifier "LAB_00135f06") (: ":") (expression_statement "pcVar17 = local_44a;" (assignment_expression "pcVar17 = local_44a" (identifier "pcVar17") (= "=") (identifier "local_44a")) (; ";"))) (expression_statement "local_44d[2] = cVar16;" (assignment_expression "local_44d[2] = cVar16" (subscript_expression "local_44d[2]" (identifier "local_44d") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "cVar16")) (; ";")) (labeled_statement "LAB_00135f1c:\n          local_44d[1] = 0x25;" (statement_identifier "LAB_00135f1c") (: ":") (expression_statement "local_44d[1] = 0x25;" (assignment_expression "local_44d[1] = 0x25" (subscript_expression "local_44d[1]" (identifier "local_44d") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x25")) (; ";"))) (expression_statement "local_44d[0] = ' ';" (assignment_expression "local_44d[0] = ' '" (subscript_expression "local_44d[0]" (identifier "local_44d") ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "' '" (' "'") (character " ") (' "'"))) (; ";")) (expression_statement "*pcVar17 = cVar5;" (assignment_expression "*pcVar17 = cVar5" (pointer_expression "*pcVar17" (* "*") (identifier "pcVar17")) (= "=") (identifier "cVar5")) (; ";")) (expression_statement "pcVar17[1] = '\0';" (assignment_expression "pcVar17[1] = '\0'" (subscript_expression "pcVar17[1]" (identifier "pcVar17") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "sVar27 = strftime(&local_448,0x400,local_44d,param_4);" (assignment_expression "sVar27 = strftime(&local_448,0x400,local_44d,param_4)" (identifier "sVar27") (= "=") (call_expression "strftime(&local_448,0x400,local_44d,param_4)" (identifier "strftime") (argument_list "(&local_448,0x400,local_44d,param_4)" (( "(") (pointer_expression "&local_448" (& "&") (identifier "local_448")) (, ",") (number_literal "0x400") (, ",") (identifier "local_44d") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (sVar27 != 0) {\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }" (if "if") (parenthesized_expression "(sVar27 != 0)" (( "(") (binary_expression "sVar27 != 0" (identifier "sVar27") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            uVar15 = sVar27 - 1;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar10 = (ulong)iVar14;\n            uVar11 = uVar10;\n            if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n          }" ({ "{") (expression_statement "uVar15 = sVar27 - 1;" (assignment_expression "uVar15 = sVar27 - 1" (identifier "uVar15") (= "=") (binary_expression "sVar27 - 1" (identifier "sVar27") (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n              iVar14 = iVar26;\n            }" ({ "{") (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" (identifier "iVar14") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" (identifier "uVar10") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" (identifier "uVar11") (= "=") (identifier "uVar10")) (; ";")) (if_statement "if (uVar10 <= uVar15) {\n              uVar11 = uVar15;\n            }" (if "if") (parenthesized_expression "(uVar10 <= uVar15)" (( "(") (binary_expression "uVar10 <= uVar15" (identifier "uVar10") (<= "<=") (identifier "uVar15")) () ")")) (compound_statement "{\n              uVar11 = uVar15;\n            }" ({ "{") (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" (identifier "uVar11") (= "=") (identifier "uVar15")) (; ";")) (} "}"))) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;" (if "if") (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar11)" (( "(") (binary_expression "(ulong)(param_2 - lVar24) <= uVar11" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")"))) (<= "<=") (identifier "uVar11")) () ")")) (goto_statement "goto LAB_00136dd9;" (goto "goto") (statement_identifier "LAB_00136dd9") (; ";"))) (if_statement "if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" ({ "{") (if_statement "if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" (if "if") (parenthesized_expression "((iVar22 == 0) && (uVar15 < uVar10))" (( "(") (binary_expression "(iVar22 == 0) && (uVar15 < uVar10)" (parenthesized_expression "(iVar22 == 0)" (( "(") (binary_expression "iVar22 == 0" (identifier "iVar22") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar15 < uVar10)" (( "(") (binary_expression "uVar15 < uVar10" (identifier "uVar15") (< "<") (identifier "uVar10")) () ")"))) () ")")) (compound_statement "{\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" ({ "{") (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" (identifier "sVar27") (= "=") (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (identifier "uVar15"))) (; ";")) (if_statement "if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" (if "if") (parenthesized_expression "(cVar4 == '0')" (( "(") (binary_expression "cVar4 == '0'" (identifier "cVar4") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" ({ "{") (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" (identifier "memset") (argument_list "(param_1,0x30,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")) (else_clause "else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" (else "else") (compound_statement "{\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" ({ "{") (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" (identifier "memset") (argument_list "(param_1,0x20,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (local_4b8._0_1_ == false) {\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }\n              else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }" (if "if") (parenthesized_expression "(local_4b8._0_1_ == false)" (( "(") (binary_expression "local_4b8._0_1_ == false" (field_expression "local_4b8._0_1_" (identifier "local_4b8") (. ".") (field_identifier "_0_1_")) (== "==") (false "false")) () ")")) (compound_statement "{\n                if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }\n              }" ({ "{") (if_statement "if (cVar7 == '\0') {\n                  memcpy(param_1,local_447,uVar15);\n                }\n                else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }" (if "if") (parenthesized_expression "(cVar7 == '\0')" (( "(") (binary_expression "cVar7 == '\0'" (identifier "cVar7") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                  memcpy(param_1,local_447,uVar15);\n                }" ({ "{") (expression_statement "memcpy(param_1,local_447,uVar15);" (call_expression "memcpy(param_1,local_447,uVar15)" (identifier "memcpy") (argument_list "(param_1,local_447,uVar15)" (( "(") (identifier "param_1") (, ",") (identifier "local_447") (, ",") (identifier "uVar15") () ")"))) (; ";")) (} "}")) (else_clause "else {\n                  FUN_00135900(param_1,local_447,uVar15);\n                }" (else "else") (compound_statement "{\n                  FUN_00135900(param_1,local_447,uVar15);\n                }" ({ "{") (expression_statement "FUN_00135900(param_1,local_447,uVar15);" (call_expression "FUN_00135900(param_1,local_447,uVar15)" (identifier "FUN_00135900") (argument_list "(param_1,local_447,uVar15)" (( "(") (identifier "param_1") (, ",") (identifier "local_447") (, ",") (identifier "uVar15") () ")"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n                FUN_001358c7(param_1,local_447,uVar15);\n              }" (else "else") (compound_statement "{\n                FUN_001358c7(param_1,local_447,uVar15);\n              }" ({ "{") (expression_statement "FUN_001358c7(param_1,local_447,uVar15);" (call_expression "FUN_001358c7(param_1,local_447,uVar15)" (identifier "FUN_001358c7") (argument_list "(param_1,local_447,uVar15)" (( "(") (identifier "param_1") (, ",") (identifier "local_447") (, ",") (identifier "uVar15") () ")"))) (; ";")) (} "}")))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" (identifier "param_1") (= "=") (binary_expression "param_1 + uVar15" (identifier "param_1") (+ "+") (identifier "uVar15"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar11" (identifier "lVar24") (+ "+") (identifier "uVar11"))) (; ";")) (} "}"))) (goto_statement "goto LAB_001359f4;" (goto "goto") (statement_identifier "LAB_001359f4") (; ";")) (} "}")))) (labeled_statement "LAB_00136a29:\n        if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }" (statement_identifier "LAB_00136a29") (: ":") (if_statement "if (bVar28 != false) {\n          uVar12 = -uVar12;\n        }" (if "if") (parenthesized_expression "(bVar28 != false)" (( "(") (binary_expression "bVar28 != false" (identifier "bVar28") (!= "!=") (false "false")) () ")")) (compound_statement "{\n          uVar12 = -uVar12;\n        }" ({ "{") (expression_statement "uVar12 = -uVar12;" (assignment_expression "uVar12 = -uVar12" (identifier "uVar12") (= "=") (unary_expression "-uVar12" (- "-") (identifier "uVar12"))) (; ";")) (} "}")))) (labeled_statement "LAB_00136a33:\n        pcVar17 = local_431;" (statement_identifier "LAB_00136a33") (: ":") (expression_statement "pcVar17 = local_431;" (assignment_expression "pcVar17 = local_431" (identifier "pcVar17") (= "=") (identifier "local_431")) (; ";"))) (do_statement "do {\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        } while ((bVar1) || (uVar18 != 0));" (do "do") (compound_statement "{\n          pcVar20 = pcVar17;\n          if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }\n          uVar18 = (int)uVar18 >> 1;\n          pcVar17 = pcVar20 + -1;\n          uVar13 = uVar12 / 10;\n          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';\n          bVar1 = 9 < uVar12;\n          uVar12 = uVar13;\n        }" ({ "{") (expression_statement "pcVar20 = pcVar17;" (assignment_expression "pcVar20 = pcVar17" (identifier "pcVar20") (= "=") (identifier "pcVar17")) (; ";")) (if_statement "if ((uVar18 & 1) != 0) {\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }" (if "if") (parenthesized_expression "((uVar18 & 1) != 0)" (( "(") (binary_expression "(uVar18 & 1) != 0" (parenthesized_expression "(uVar18 & 1)" (( "(") (binary_expression "uVar18 & 1" (identifier "uVar18") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            pcVar20 = pcVar17 + -1;\n            pcVar17[-1] = ':';\n          }" ({ "{") (expression_statement "pcVar20 = pcVar17 + -1;" (assignment_expression "pcVar20 = pcVar17 + -1" (identifier "pcVar20") (= "=") (binary_expression "pcVar17 + -1" (identifier "pcVar17") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "pcVar17[-1] = ':';" (assignment_expression "pcVar17[-1] = ':'" (subscript_expression "pcVar17[-1]" (identifier "pcVar17") ([ "[") (number_literal "-1") (] "]")) (= "=") (char_literal "':'" (' "'") (character ":") (' "'"))) (; ";")) (} "}"))) (expression_statement "uVar18 = (int)uVar18 >> 1;" (assignment_expression "uVar18 = (int)uVar18 >> 1" (identifier "uVar18") (= "=") (binary_expression "(int)uVar18 >> 1" (cast_expression "(int)uVar18" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar18")) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "pcVar17 = pcVar20 + -1;" (assignment_expression "pcVar17 = pcVar20 + -1" (identifier "pcVar17") (= "=") (binary_expression "pcVar20 + -1" (identifier "pcVar20") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar13 = uVar12 / 10;" (assignment_expression "uVar13 = uVar12 / 10" (identifier "uVar13") (= "=") (binary_expression "uVar12 / 10" (identifier "uVar12") (/ "/") (number_literal "10"))) (; ";")) (expression_statement "pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';" (assignment_expression "pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0'" (subscript_expression "pcVar20[-1]" (identifier "pcVar20") ([ "[") (number_literal "-1") (] "]")) (= "=") (binary_expression "(char)uVar12 + (char)uVar13 * -10 + '0'" (binary_expression "(char)uVar12 + (char)uVar13 * -10" (cast_expression "(char)uVar12" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar12")) (+ "+") (binary_expression "(char)uVar13 * -10" (cast_expression "(char)uVar13" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar13")) (* "*") (number_literal "-10"))) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "bVar1 = 9 < uVar12;" (assignment_expression "bVar1 = 9 < uVar12" (identifier "bVar1") (= "=") (binary_expression "9 < uVar12" (number_literal "9") (< "<") (identifier "uVar12"))) (; ";")) (expression_statement "uVar12 = uVar13;" (assignment_expression "uVar12 = uVar13" (identifier "uVar12") (= "=") (identifier "uVar13")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((bVar1) || (uVar18 != 0))" (( "(") (binary_expression "(bVar1) || (uVar18 != 0)" (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (|| "||") (parenthesized_expression "(uVar18 != 0)" (( "(") (binary_expression "uVar18 != 0" (identifier "uVar18") (!= "!=") (number_literal "0")) () ")"))) () ")")) (; ";")) (if_statement "if (iVar22 < iVar26) {\n          iVar22 = iVar26;\n        }" (if "if") (parenthesized_expression "(iVar22 < iVar26)" (( "(") (binary_expression "iVar22 < iVar26" (identifier "iVar22") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n          iVar22 = iVar26;\n        }" ({ "{") (expression_statement "iVar22 = iVar26;" (assignment_expression "iVar22 = iVar26" (identifier "iVar22") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (if_statement "if (bVar28 != false) {\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }" (if "if") (parenthesized_expression "(bVar28 != false)" (( "(") (binary_expression "bVar28 != false" (identifier "bVar28") (!= "!=") (false "false")) () ")")) (compound_statement "{\n          cVar5 = '-';\nLAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          goto LAB_00136dd9;\n        }" ({ "{") (expression_statement "cVar5 = '-';" (assignment_expression "cVar5 = '-'" (identifier "cVar5") (= "=") (char_literal "'-'" (' "'") (character "-") (' "'"))) (; ";")) (labeled_statement "LAB_00136e58:\n          if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" (statement_identifier "LAB_00136e58") (: ":") (if_statement "if (cVar4 == '-') {\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }\n          else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" (if "if") (parenthesized_expression "(cVar4 == '-')" (( "(") (binary_expression "cVar4 == '-'" (identifier "cVar4") (== "==") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (compound_statement "{\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" ({ "{") (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n              iVar14 = iVar26;\n            }" ({ "{") (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" (identifier "iVar14") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" (identifier "uVar11") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" (identifier "uVar15") (= "=") (number_literal "1")) (; ";")) (if_statement "if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              uVar15 = uVar11;\n            }" ({ "{") (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" (identifier "uVar15") (= "=") (identifier "uVar11")) (; ";")) (} "}"))) (if_statement "if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" (if "if") (parenthesized_expression "(uVar15 < (ulong)(param_2 - lVar24))" (( "(") (binary_expression "uVar15 < (ulong)(param_2 - lVar24)" (identifier "uVar15") (< "<") (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")")))) () ")")) (compound_statement "{\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" ({ "{") (if_statement "if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" ({ "{") (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" (if "if") (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" (( "(") (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" (( "(") (binary_expression "iVar22 == 0" (identifier "iVar22") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(1 < uVar11)" (( "(") (binary_expression "1 < uVar11" (number_literal "1") (< "<") (identifier "uVar11")) () ")"))) () ")")) (compound_statement "{\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" ({ "{") (expression_statement "memset(param_1,0x20,(long)iVar26 - 1U);" (call_expression "memset(param_1,0x20,(long)iVar26 - 1U)" (identifier "memset") (argument_list "(param_1,0x20,(long)iVar26 - 1U)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (number_literal "1U")) () ")"))) (; ";")) (expression_statement "param_1 = param_1 + ((long)iVar26 - 1U);" (assignment_expression "param_1 = param_1 + ((long)iVar26 - 1U)" (identifier "param_1") (= "=") (binary_expression "param_1 + ((long)iVar26 - 1U)" (identifier "param_1") (+ "+") (parenthesized_expression "((long)iVar26 - 1U)" (( "(") (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (number_literal "1U")) () ")")))) (; ";")) (} "}"))) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "cVar5")) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar15" (identifier "lVar24") (+ "+") (identifier "uVar15"))) (; ";")) (goto_statement "goto LAB_00136f44;" (goto "goto") (statement_identifier "LAB_00136f44") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" (else "else") (compound_statement "{\n            bVar28 = cVar5 != '\0';\n            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;\n            if (0 < iVar14) goto LAB_00136e8a;\n            iVar14 = 0;\n            if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }\n            uVar11 = (ulong)iVar14;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }\n          }" ({ "{") (expression_statement "bVar28 = cVar5 != '\0';" (assignment_expression "bVar28 = cVar5 != '\0'" (identifier "bVar28") (= "=") (binary_expression "cVar5 != '\0'" (identifier "cVar5") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) (; ";")) (expression_statement "iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;" (assignment_expression "iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28" (identifier "iVar14") (= "=") (binary_expression "(iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28" (parenthesized_expression "(iVar22 - (iVar14 - (int)pcVar17))" (( "(") (binary_expression "iVar22 - (iVar14 - (int)pcVar17)" (identifier "iVar22") (- "-") (parenthesized_expression "(iVar14 - (int)pcVar17)" (( "(") (binary_expression "iVar14 - (int)pcVar17" (identifier "iVar14") (- "-") (cast_expression "(int)pcVar17" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar17"))) () ")"))) () ")")) (- "-") (cast_expression "(uint)bVar28" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar28")))) (; ";")) (if_statement "if (0 < iVar14) goto LAB_00136e8a;" (if "if") (parenthesized_expression "(0 < iVar14)" (( "(") (binary_expression "0 < iVar14" (number_literal "0") (< "<") (identifier "iVar14")) () ")")) (goto_statement "goto LAB_00136e8a;" (goto "goto") (statement_identifier "LAB_00136e8a") (; ";"))) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n              iVar14 = iVar26;\n            }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n              iVar14 = iVar26;\n            }" ({ "{") (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" (identifier "iVar14") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" (identifier "uVar11") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" (identifier "uVar15") (= "=") (number_literal "1")) (; ";")) (if_statement "if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              uVar15 = uVar11;\n            }" ({ "{") (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" (identifier "uVar15") (= "=") (identifier "uVar11")) (; ";")) (} "}"))) (if_statement "if (uVar15 < (ulong)(param_2 - lVar24)) {\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" (if "if") (parenthesized_expression "(uVar15 < (ulong)(param_2 - lVar24))" (( "(") (binary_expression "uVar15 < (ulong)(param_2 - lVar24)" (identifier "uVar15") (< "<") (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")")))) () ")")) (compound_statement "{\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n              goto LAB_00136f44;\n            }" ({ "{") (if_statement "if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" ({ "{") (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }" (if "if") (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" (( "(") (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" (( "(") (binary_expression "iVar22 == 0" (identifier "iVar22") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(1 < uVar11)" (( "(") (binary_expression "1 < uVar11" (number_literal "1") (< "<") (identifier "uVar11")) () ")"))) () ")")) (compound_statement "{\n                  sVar27 = (long)iVar26 - 1;\n                  if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                }" ({ "{") (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" (identifier "sVar27") (= "=") (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (number_literal "1"))) (; ";")) (if_statement "if (cVar4 == '0') {\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }\n                  else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" (if "if") (parenthesized_expression "(cVar4 == '0')" (( "(") (binary_expression "cVar4 == '0'" (identifier "cVar4") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n                    memset(param_1,0x30,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" ({ "{") (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" (identifier "memset") (argument_list "(param_1,0x30,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")) (else_clause "else {\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" (else "else") (compound_statement "{\n                    memset(param_1,0x20,sVar27);\n                    param_1 = param_1 + sVar27;\n                  }" ({ "{") (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" (identifier "memset") (argument_list "(param_1,0x20,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "cVar5")) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar15" (identifier "lVar24") (+ "+") (identifier "uVar15"))) (; ";")) (goto_statement "goto LAB_00136f44;" (goto "goto") (statement_identifier "LAB_00136f44") (; ";")) (} "}"))) (} "}"))))) (goto_statement "goto LAB_00136dd9;" (goto "goto") (statement_identifier "LAB_00136dd9") (; ";")) (} "}"))) (expression_statement "cVar5 = '+';" (assignment_expression "cVar5 = '+'" (identifier "cVar5") (= "=") (char_literal "'+'" (' "'") (character "+") (' "'"))) (; ";")) (if_statement "if (bVar2) goto LAB_00136e58;" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (goto_statement "goto LAB_00136e58;" (goto "goto") (statement_identifier "LAB_00136e58") (; ";"))) (labeled_statement "LAB_0013605d:\n        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;" (statement_identifier "LAB_0013605d") (: ":") (if_statement "if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))\n        goto LAB_00136f44;" (if "if") (parenthesized_expression "((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))" (( "(") (binary_expression "(cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1)" (parenthesized_expression "(cVar4 == '-')" (( "(") (binary_expression "cVar4 == '-'" (identifier "cVar4") (== "==") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1)" (( "(") (comma_expression "iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1" (assignment_expression "iVar14 = iVar22 - (iVar14 - (int)pcVar17)" (identifier "iVar14") (= "=") (binary_expression "iVar22 - (iVar14 - (int)pcVar17)" (identifier "iVar22") (- "-") (parenthesized_expression "(iVar14 - (int)pcVar17)" (( "(") (binary_expression "iVar14 - (int)pcVar17" (identifier "iVar14") (- "-") (cast_expression "(int)pcVar17" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar17"))) () ")")))) (, ",") (binary_expression "iVar14 < 1" (identifier "iVar14") (< "<") (number_literal "1"))) () ")"))) () ")")) (goto_statement "goto LAB_00136f44;" (goto "goto") (statement_identifier "LAB_00136f44") (; ";")))) (expression_statement "cVar5 = '\0';" (assignment_expression "cVar5 = '\0'" (identifier "cVar5") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "bVar28 = false;" (assignment_expression "bVar28 = false" (identifier "bVar28") (= "=") (false "false")) (; ";")) (labeled_statement "LAB_00136e8a:\n        if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" (statement_identifier "LAB_00136e8a") (: ":") (if_statement "if (cVar4 == '_') {\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }\n        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" (if "if") (parenthesized_expression "(cVar4 == '_')" (( "(") (binary_expression "cVar4 == '_'" (identifier "cVar4") (== "==") (char_literal "'_'" (' "'") (character "_") (' "'"))) () ")")) (compound_statement "{\n          uVar15 = (ulong)iVar14;\n          if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }\n        }" ({ "{") (expression_statement "uVar15 = (ulong)iVar14;" (assignment_expression "uVar15 = (ulong)iVar14" (identifier "uVar15") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (if_statement "if (uVar15 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }" (if "if") (parenthesized_expression "(uVar15 < (ulong)(param_2 - lVar24))" (( "(") (binary_expression "uVar15 < (ulong)(param_2 - lVar24)" (identifier "uVar15") (< "<") (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")")))) () ")")) (compound_statement "{\n            if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar15;\n            iVar8 = iVar26 - iVar14;\n            bVar2 = iVar14 < iVar26;\n            iVar26 = 0;\n            if (bVar2) {\n              iVar26 = iVar8;\n            }\n            if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }\n            goto LAB_00136f44;\n          }" ({ "{") (if_statement "if (param_1 != (char *)0x0) {\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              memset(param_1,0x20,uVar15);\n              param_1 = param_1 + uVar15;\n            }" ({ "{") (expression_statement "memset(param_1,0x20,uVar15);" (call_expression "memset(param_1,0x20,uVar15)" (identifier "memset") (argument_list "(param_1,0x20,uVar15)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "uVar15") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" (identifier "param_1") (= "=") (binary_expression "param_1 + uVar15" (identifier "param_1") (+ "+") (identifier "uVar15"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar15" (identifier "lVar24") (+ "+") (identifier "uVar15"))) (; ";")) (expression_statement "iVar8 = iVar26 - iVar14;" (assignment_expression "iVar8 = iVar26 - iVar14" (identifier "iVar8") (= "=") (binary_expression "iVar26 - iVar14" (identifier "iVar26") (- "-") (identifier "iVar14"))) (; ";")) (expression_statement "bVar2 = iVar14 < iVar26;" (assignment_expression "bVar2 = iVar14 < iVar26" (identifier "bVar2") (= "=") (binary_expression "iVar14 < iVar26" (identifier "iVar14") (< "<") (identifier "iVar26"))) (; ";")) (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" (identifier "iVar26") (= "=") (number_literal "0")) (; ";")) (if_statement "if (bVar2) {\n              iVar26 = iVar8;\n            }" (if "if") (parenthesized_expression "(bVar2)" (( "(") (identifier "bVar2") () ")")) (compound_statement "{\n              iVar26 = iVar8;\n            }" ({ "{") (expression_statement "iVar26 = iVar8;" (assignment_expression "iVar26 = iVar8" (identifier "iVar26") (= "=") (identifier "iVar8")) (; ";")) (} "}"))) (if_statement "if (bVar28) {\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }" (if "if") (parenthesized_expression "(bVar28)" (( "(") (identifier "bVar28") () ")")) (compound_statement "{\n              iVar14 = 0;\n              if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }\n              uVar11 = (ulong)iVar14;\n              uVar15 = 1;\n              if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }\n              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n              if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }\n              lVar24 = lVar24 + uVar15;\n            }" ({ "{") (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n                iVar14 = iVar26;\n              }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n                iVar14 = iVar26;\n              }" ({ "{") (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" (identifier "iVar14") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar11 = (ulong)iVar14;" (assignment_expression "uVar11 = (ulong)iVar14" (identifier "uVar11") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" (identifier "uVar15") (= "=") (number_literal "1")) (; ";")) (if_statement "if (uVar11 != 0) {\n                uVar15 = uVar11;\n              }" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                uVar15 = uVar11;\n              }" ({ "{") (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" (identifier "uVar15") (= "=") (identifier "uVar11")) (; ";")) (} "}"))) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" (if "if") (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" (( "(") (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")"))) (<= "<=") (identifier "uVar15")) () ")")) (goto_statement "goto LAB_00136dd9;" (goto "goto") (statement_identifier "LAB_00136dd9") (; ";"))) (if_statement "if (param_1 != (char *)0x0) {\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }\n                *param_1 = cVar5;\n                param_1 = param_1 + 1;\n              }" ({ "{") (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" (if "if") (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" (( "(") (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" (( "(") (binary_expression "iVar22 == 0" (identifier "iVar22") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(1 < uVar11)" (( "(") (binary_expression "1 < uVar11" (number_literal "1") (< "<") (identifier "uVar11")) () ")"))) () ")")) (compound_statement "{\n                  memset(param_1,0x20,(long)iVar26 - 1U);\n                  param_1 = param_1 + ((long)iVar26 - 1U);\n                }" ({ "{") (expression_statement "memset(param_1,0x20,(long)iVar26 - 1U);" (call_expression "memset(param_1,0x20,(long)iVar26 - 1U)" (identifier "memset") (argument_list "(param_1,0x20,(long)iVar26 - 1U)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (number_literal "1U")) () ")"))) (; ";")) (expression_statement "param_1 = param_1 + ((long)iVar26 - 1U);" (assignment_expression "param_1 = param_1 + ((long)iVar26 - 1U)" (identifier "param_1") (= "=") (binary_expression "param_1 + ((long)iVar26 - 1U)" (identifier "param_1") (+ "+") (parenthesized_expression "((long)iVar26 - 1U)" (( "(") (binary_expression "(long)iVar26 - 1U" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (number_literal "1U")) () ")")))) (; ";")) (} "}"))) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "cVar5")) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar15" (identifier "lVar24") (+ "+") (identifier "uVar15"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00136f44;" (goto "goto") (statement_identifier "LAB_00136f44") (; ";")) (} "}"))) (} "}")) (else_clause "else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" (else "else") (if_statement "if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" (if "if") (parenthesized_expression "((ulong)(long)iVar22 < (ulong)(param_2 - lVar24))" (( "(") (binary_expression "(ulong)(long)iVar22 < (ulong)(param_2 - lVar24)" (cast_expression "(ulong)(long)iVar22" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (cast_expression "(long)iVar22" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar22"))) (< "<") (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")")))) () ")")) (compound_statement "{\n          if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }\n          if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }\n          lVar24 = lVar24 + iVar14;\n          iVar26 = 0;\nLAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;\n          iVar14 = 0;\n          if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }\n          uVar10 = (ulong)iVar14;\n          uVar11 = uVar10;\n          if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }\n          if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }\n        }" ({ "{") (if_statement "if (bVar28) {\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }" (if "if") (parenthesized_expression "(bVar28)" (( "(") (identifier "bVar28") () ")")) (compound_statement "{\n            iVar8 = 0;\n            if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }\n            uVar11 = (ulong)iVar8;\n            uVar15 = 1;\n            if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }\n            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }\n            lVar24 = lVar24 + uVar15;\n          }" ({ "{") (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n              iVar8 = iVar26;\n            }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n              iVar8 = iVar26;\n            }" ({ "{") (expression_statement "iVar8 = iVar26;" (assignment_expression "iVar8 = iVar26" (identifier "iVar8") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar11 = (ulong)iVar8;" (assignment_expression "uVar11 = (ulong)iVar8" (identifier "uVar11") (= "=") (cast_expression "(ulong)iVar8" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar8"))) (; ";")) (expression_statement "uVar15 = 1;" (assignment_expression "uVar15 = 1" (identifier "uVar15") (= "=") (number_literal "1")) (; ";")) (if_statement "if (uVar11 != 0) {\n              uVar15 = uVar11;\n            }" (if "if") (parenthesized_expression "(uVar11 != 0)" (( "(") (binary_expression "uVar11 != 0" (identifier "uVar11") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              uVar15 = uVar11;\n            }" ({ "{") (expression_statement "uVar15 = uVar11;" (assignment_expression "uVar15 = uVar11" (identifier "uVar15") (= "=") (identifier "uVar11")) (; ";")) (} "}"))) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;" (if "if") (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar15)" (( "(") (binary_expression "(ulong)(param_2 - lVar24) <= uVar15" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")"))) (<= "<=") (identifier "uVar15")) () ")")) (goto_statement "goto LAB_00136dd9;" (goto "goto") (statement_identifier "LAB_00136dd9") (; ";"))) (if_statement "if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              *param_1 = cVar5;\n              param_1 = param_1 + 1;\n            }" ({ "{") (if_statement "if ((iVar22 == 0) && (1 < uVar11)) {\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" (if "if") (parenthesized_expression "((iVar22 == 0) && (1 < uVar11))" (( "(") (binary_expression "(iVar22 == 0) && (1 < uVar11)" (parenthesized_expression "(iVar22 == 0)" (( "(") (binary_expression "iVar22 == 0" (identifier "iVar22") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(1 < uVar11)" (( "(") (binary_expression "1 < uVar11" (number_literal "1") (< "<") (identifier "uVar11")) () ")"))) () ")")) (compound_statement "{\n                sVar27 = (long)iVar26 - 1;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" ({ "{") (expression_statement "sVar27 = (long)iVar26 - 1;" (assignment_expression "sVar27 = (long)iVar26 - 1" (identifier "sVar27") (= "=") (binary_expression "(long)iVar26 - 1" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (number_literal "1"))) (; ";")) (if_statement "if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" (if "if") (parenthesized_expression "(cVar4 == '0')" (( "(") (binary_expression "cVar4 == '0'" (identifier "cVar4") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" ({ "{") (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" (identifier "memset") (argument_list "(param_1,0x30,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")) (else_clause "else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" (else "else") (compound_statement "{\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" ({ "{") (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" (identifier "memset") (argument_list "(param_1,0x20,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "*param_1 = cVar5;" (assignment_expression "*param_1 = cVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "cVar5")) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar15;" (assignment_expression "lVar24 = lVar24 + uVar15" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar15" (identifier "lVar24") (+ "+") (identifier "uVar15"))) (; ";")) (} "}"))) (if_statement "if (param_1 != (char *)0x0) {\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            memset(param_1,0x30,(long)iVar14);\n            param_1 = param_1 + iVar14;\n          }" ({ "{") (expression_statement "memset(param_1,0x30,(long)iVar14);" (call_expression "memset(param_1,0x30,(long)iVar14)" (identifier "memset") (argument_list "(param_1,0x30,(long)iVar14)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") (, ",") (cast_expression "(long)iVar14" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar14")) () ")"))) (; ";")) (expression_statement "param_1 = param_1 + iVar14;" (assignment_expression "param_1 = param_1 + iVar14" (identifier "param_1") (= "=") (binary_expression "param_1 + iVar14" (identifier "param_1") (+ "+") (identifier "iVar14"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + iVar14;" (assignment_expression "lVar24 = lVar24 + iVar14" (identifier "lVar24") (= "=") (binary_expression "lVar24 + iVar14" (identifier "lVar24") (+ "+") (identifier "iVar14"))) (; ";")) (expression_statement "iVar26 = 0;" (assignment_expression "iVar26 = 0" (identifier "iVar26") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00136f44:\n          uVar15 = (long)local_431 - (long)pcVar17;" (statement_identifier "LAB_00136f44") (: ":") (expression_statement "uVar15 = (long)local_431 - (long)pcVar17;" (assignment_expression "uVar15 = (long)local_431 - (long)pcVar17" (identifier "uVar15") (= "=") (binary_expression "(long)local_431 - (long)pcVar17" (cast_expression "(long)local_431" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "local_431")) (- "-") (cast_expression "(long)pcVar17" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "pcVar17")))) (; ";"))) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n            iVar14 = iVar26;\n          }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n            iVar14 = iVar26;\n          }" ({ "{") (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" (identifier "iVar14") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" (identifier "uVar10") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" (identifier "uVar11") (= "=") (identifier "uVar10")) (; ";")) (if_statement "if (uVar10 <= uVar15) {\n            uVar11 = uVar15;\n          }" (if "if") (parenthesized_expression "(uVar10 <= uVar15)" (( "(") (binary_expression "uVar10 <= uVar15" (identifier "uVar10") (<= "<=") (identifier "uVar15")) () ")")) (compound_statement "{\n            uVar11 = uVar15;\n          }" ({ "{") (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" (identifier "uVar11") (= "=") (identifier "uVar15")) (; ";")) (} "}"))) (if_statement "if (uVar11 < (ulong)(param_2 - lVar24)) {\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }" (if "if") (parenthesized_expression "(uVar11 < (ulong)(param_2 - lVar24))" (( "(") (binary_expression "uVar11 < (ulong)(param_2 - lVar24)" (identifier "uVar11") (< "<") (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")")))) () ")")) (compound_statement "{\n            if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }\n            lVar24 = lVar24 + uVar11;\n            goto LAB_001359f4;\n          }" ({ "{") (if_statement "if (param_1 != (char *)0x0) {\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }\n              if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }\n              param_1 = param_1 + uVar15;\n            }" ({ "{") (if_statement "if ((iVar22 == 0) && (uVar15 < uVar10)) {\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" (if "if") (parenthesized_expression "((iVar22 == 0) && (uVar15 < uVar10))" (( "(") (binary_expression "(iVar22 == 0) && (uVar15 < uVar10)" (parenthesized_expression "(iVar22 == 0)" (( "(") (binary_expression "iVar22 == 0" (identifier "iVar22") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar15 < uVar10)" (( "(") (binary_expression "uVar15 < uVar10" (identifier "uVar15") (< "<") (identifier "uVar10")) () ")"))) () ")")) (compound_statement "{\n                sVar27 = (long)iVar26 - uVar15;\n                if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n              }" ({ "{") (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" (identifier "sVar27") (= "=") (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (identifier "uVar15"))) (; ";")) (if_statement "if (cVar4 == '0') {\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }\n                else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" (if "if") (parenthesized_expression "(cVar4 == '0')" (( "(") (binary_expression "cVar4 == '0'" (identifier "cVar4") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n                  memset(param_1,0x30,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" ({ "{") (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" (identifier "memset") (argument_list "(param_1,0x30,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")) (else_clause "else {\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" (else "else") (compound_statement "{\n                  memset(param_1,0x20,sVar27);\n                  param_1 = param_1 + sVar27;\n                }" ({ "{") (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" (identifier "memset") (argument_list "(param_1,0x20,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (cVar7 == '\0') {\n                memcpy(param_1,pcVar17,uVar15);\n              }\n              else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }" (if "if") (parenthesized_expression "(cVar7 == '\0')" (( "(") (binary_expression "cVar7 == '\0'" (identifier "cVar7") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n                memcpy(param_1,pcVar17,uVar15);\n              }" ({ "{") (expression_statement "memcpy(param_1,pcVar17,uVar15);" (call_expression "memcpy(param_1,pcVar17,uVar15)" (identifier "memcpy") (argument_list "(param_1,pcVar17,uVar15)" (( "(") (identifier "param_1") (, ",") (identifier "pcVar17") (, ",") (identifier "uVar15") () ")"))) (; ";")) (} "}")) (else_clause "else {\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }" (else "else") (compound_statement "{\n                FUN_00135900(param_1,pcVar17,uVar15);\n              }" ({ "{") (expression_statement "FUN_00135900(param_1,pcVar17,uVar15);" (call_expression "FUN_00135900(param_1,pcVar17,uVar15)" (identifier "FUN_00135900") (argument_list "(param_1,pcVar17,uVar15)" (( "(") (identifier "param_1") (, ",") (identifier "pcVar17") (, ",") (identifier "uVar15") () ")"))) (; ";")) (} "}")))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" (identifier "param_1") (= "=") (binary_expression "param_1 + uVar15" (identifier "param_1") (+ "+") (identifier "uVar15"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar11" (identifier "lVar24") (+ "+") (identifier "uVar11"))) (; ";")) (goto_statement "goto LAB_001359f4;" (goto "goto") (statement_identifier "LAB_001359f4") (; ";")) (} "}"))) (} "}")))))) (goto_statement "goto LAB_00136dd9;" (goto "goto") (statement_identifier "LAB_00136dd9") (; ";"))) (case_statement "case 'z':\n        lVar23 = 0;\n        pcVar17 = param_3;\nLAB_00136bae:\n        param_3 = pcVar17;\n        if (param_4->tm_isdst < 0) goto LAB_001359f4;\n        bVar28 = true;\n        iVar22 = (int)param_4->tm_gmtoff;\n        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }\n        uVar12 = iVar22 / 0xe10;\n        iVar8 = (iVar22 / 0x3c) % 0x3c;\n        if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }\n        goto LAB_00135edf;" (case "case") (char_literal "'z'" (' "'") (character "z") (' "'")) (: ":") (expression_statement "lVar23 = 0;" (assignment_expression "lVar23 = 0" (identifier "lVar23") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar17 = param_3;" (assignment_expression "pcVar17 = param_3" (identifier "pcVar17") (= "=") (identifier "param_3")) (; ";")) (labeled_statement "LAB_00136bae:\n        param_3 = pcVar17;" (statement_identifier "LAB_00136bae") (: ":") (expression_statement "param_3 = pcVar17;" (assignment_expression "param_3 = pcVar17" (identifier "param_3") (= "=") (identifier "pcVar17")) (; ";"))) (if_statement "if (param_4->tm_isdst < 0) goto LAB_001359f4;" (if "if") (parenthesized_expression "(param_4->tm_isdst < 0)" (( "(") (binary_expression "param_4->tm_isdst < 0" (field_expression "param_4->tm_isdst" (identifier "param_4") (-> "->") (field_identifier "tm_isdst")) (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_001359f4;" (goto "goto") (statement_identifier "LAB_001359f4") (; ";"))) (expression_statement "bVar28 = true;" (assignment_expression "bVar28 = true" (identifier "bVar28") (= "=") (true "true")) (; ";")) (expression_statement "iVar22 = (int)param_4->tm_gmtoff;" (assignment_expression "iVar22 = (int)param_4->tm_gmtoff" (identifier "iVar22") (= "=") (cast_expression "(int)param_4->tm_gmtoff" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (field_expression "param_4->tm_gmtoff" (identifier "param_4") (-> "->") (field_identifier "tm_gmtoff")))) (; ";")) (if_statement "if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {\n          bVar28 = *__src == '-';\n        }" (if "if") (parenthesized_expression "((-1 < iVar22) && (bVar28 = false, iVar22 == 0))" (( "(") (binary_expression "(-1 < iVar22) && (bVar28 = false, iVar22 == 0)" (parenthesized_expression "(-1 < iVar22)" (( "(") (binary_expression "-1 < iVar22" (number_literal "-1") (< "<") (identifier "iVar22")) () ")")) (&& "&&") (parenthesized_expression "(bVar28 = false, iVar22 == 0)" (( "(") (comma_expression "bVar28 = false, iVar22 == 0" (assignment_expression "bVar28 = false" (identifier "bVar28") (= "=") (false "false")) (, ",") (binary_expression "iVar22 == 0" (identifier "iVar22") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n          bVar28 = *__src == '-';\n        }" ({ "{") (expression_statement "bVar28 = *__src == '-';" (assignment_expression "bVar28 = *__src == '-'" (identifier "bVar28") (= "=") (binary_expression "*__src == '-'" (pointer_expression "*__src" (* "*") (identifier "__src")) (== "==") (char_literal "'-'" (' "'") (character "-") (' "'")))) (; ";")) (} "}"))) (expression_statement "uVar12 = iVar22 / 0xe10;" (assignment_expression "uVar12 = iVar22 / 0xe10" (identifier "uVar12") (= "=") (binary_expression "iVar22 / 0xe10" (identifier "iVar22") (/ "/") (number_literal "0xe10"))) (; ";")) (expression_statement "iVar8 = (iVar22 / 0x3c) % 0x3c;" (assignment_expression "iVar8 = (iVar22 / 0x3c) % 0x3c" (identifier "iVar8") (= "=") (binary_expression "(iVar22 / 0x3c) % 0x3c" (parenthesized_expression "(iVar22 / 0x3c)" (( "(") (binary_expression "iVar22 / 0x3c" (identifier "iVar22") (/ "/") (number_literal "0x3c")) () ")")) (% "%") (number_literal "0x3c"))) (; ";")) (if_statement "if (lVar23 == 1) {\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }\n        else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" (if "if") (parenthesized_expression "(lVar23 == 1)" (( "(") (binary_expression "lVar23 == 1" (identifier "lVar23") (== "==") (number_literal "1")) () ")")) (compound_statement "{\nLAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 4;\n          bVar2 = true;\n          iVar22 = 6;\n        }" ({ "{") (labeled_statement "LAB_00136c74:\n          uVar12 = uVar12 * 100 + iVar8;" (statement_identifier "LAB_00136c74") (: ":") (expression_statement "uVar12 = uVar12 * 100 + iVar8;" (assignment_expression "uVar12 = uVar12 * 100 + iVar8" (identifier "uVar12") (= "=") (binary_expression "uVar12 * 100 + iVar8" (binary_expression "uVar12 * 100" (identifier "uVar12") (* "*") (number_literal "100")) (+ "+") (identifier "iVar8"))) (; ";"))) (expression_statement "uVar18 = 4;" (assignment_expression "uVar18 = 4" (identifier "uVar18") (= "=") (number_literal "4")) (; ";")) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (expression_statement "iVar22 = 6;" (assignment_expression "iVar22 = 6" (identifier "iVar22") (= "=") (number_literal "6")) (; ";")) (} "}")) (else_clause "else if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" (else "else") (if_statement "if (lVar23 == 0) {\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }\n        else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" (if "if") (parenthesized_expression "(lVar23 == 0)" (( "(") (binary_expression "lVar23 == 0" (identifier "lVar23") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar12 = uVar12 * 100 + iVar8;\n          uVar18 = 0;\n          bVar2 = true;\n          iVar22 = 5;\n        }" ({ "{") (expression_statement "uVar12 = uVar12 * 100 + iVar8;" (assignment_expression "uVar12 = uVar12 * 100 + iVar8" (identifier "uVar12") (= "=") (binary_expression "uVar12 * 100 + iVar8" (binary_expression "uVar12 * 100" (identifier "uVar12") (* "*") (number_literal "100")) (+ "+") (identifier "iVar8"))) (; ";")) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (expression_statement "iVar22 = 5;" (assignment_expression "iVar22 = 5" (identifier "iVar22") (= "=") (number_literal "5")) (; ";")) (} "}")) (else_clause "else {\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" (else "else") (compound_statement "{\n          if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }\n          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;\n          uVar18 = 0x14;\n          bVar2 = true;\n          iVar22 = 9;\n        }" ({ "{") (if_statement "if (lVar23 != 2) {\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }" (if "if") (parenthesized_expression "(lVar23 != 2)" (( "(") (binary_expression "lVar23 != 2" (identifier "lVar23") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n            local_4b8 = param_3;\n            if (lVar23 != 3) goto LAB_00136cd6;\n            if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }\n          }" ({ "{") (expression_statement "local_4b8 = param_3;" (assignment_expression "local_4b8 = param_3" (identifier "local_4b8") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (lVar23 != 3) goto LAB_00136cd6;" (if "if") (parenthesized_expression "(lVar23 != 3)" (( "(") (binary_expression "lVar23 != 3" (identifier "lVar23") (!= "!=") (number_literal "3")) () ")")) (goto_statement "goto LAB_00136cd6;" (goto "goto") (statement_identifier "LAB_00136cd6") (; ";"))) (if_statement "if (iVar22 % 0x3c == 0) {\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }" (if "if") (parenthesized_expression "(iVar22 % 0x3c == 0)" (( "(") (binary_expression "iVar22 % 0x3c == 0" (binary_expression "iVar22 % 0x3c" (identifier "iVar22") (% "%") (number_literal "0x3c")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              if (iVar8 != 0) goto LAB_00136c74;\n              bVar2 = true;\n              iVar22 = 3;\n              uVar18 = 0;\n              goto LAB_00135edf;\n            }" ({ "{") (if_statement "if (iVar8 != 0) goto LAB_00136c74;" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00136c74;" (goto "goto") (statement_identifier "LAB_00136c74") (; ";"))) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (expression_statement "iVar22 = 3;" (assignment_expression "iVar22 = 3" (identifier "iVar22") (= "=") (number_literal "3")) (; ";")) (expression_statement "uVar18 = 0;" (assignment_expression "uVar18 = 0" (identifier "uVar18") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00135edf;" (goto "goto") (statement_identifier "LAB_00135edf") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;" (assignment_expression "uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c" (identifier "uVar12") (= "=") (binary_expression "uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c" (binary_expression "uVar12 * 10000 + iVar8 * 100" (binary_expression "uVar12 * 10000" (identifier "uVar12") (* "*") (number_literal "10000")) (+ "+") (binary_expression "iVar8 * 100" (identifier "iVar8") (* "*") (number_literal "100"))) (+ "+") (binary_expression "iVar22 % 0x3c" (identifier "iVar22") (% "%") (number_literal "0x3c")))) (; ";")) (expression_statement "uVar18 = 0x14;" (assignment_expression "uVar18 = 0x14" (identifier "uVar18") (= "=") (number_literal "0x14")) (; ";")) (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (expression_statement "iVar22 = 9;" (assignment_expression "iVar22 = 9" (identifier "iVar22") (= "=") (number_literal "9")) (; ";")) (} "}")))))) (goto_statement "goto LAB_00135edf;" (goto "goto") (statement_identifier "LAB_00135edf") (; ";"))) (} "}"))) (expression_statement "pcVar20 = local_4b8 + -1;" (assignment_expression "pcVar20 = local_4b8 + -1" (identifier "pcVar20") (= "=") (binary_expression "local_4b8 + -1" (identifier "local_4b8") (+ "+") (number_literal "-1"))) (; ";")) (do_statement "do {\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      } while (*pcVar17 != '%');" (do "do") (compound_statement "{\n        pcVar17 = pcVar20;\n        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;\n        pcVar20 = pcVar17 + -1;\n        param_3 = local_4b8;\n      }" ({ "{") (expression_statement "pcVar17 = pcVar20;" (assignment_expression "pcVar17 = pcVar20" (identifier "pcVar17") (= "=") (identifier "pcVar20")) (; ";")) (expression_statement "iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;" (assignment_expression "iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17" (identifier "iVar14") (= "=") (binary_expression "((int)(local_4b8 + -1) + 2) - (int)pcVar17" (parenthesized_expression "((int)(local_4b8 + -1) + 2)" (( "(") (binary_expression "(int)(local_4b8 + -1) + 2" (cast_expression "(int)(local_4b8 + -1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(local_4b8 + -1)" (( "(") (binary_expression "local_4b8 + -1" (identifier "local_4b8") (+ "+") (number_literal "-1")) () ")"))) (+ "+") (number_literal "2")) () ")")) (- "-") (cast_expression "(int)pcVar17" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar17")))) (; ";")) (expression_statement "pcVar20 = pcVar17 + -1;" (assignment_expression "pcVar20 = pcVar17 + -1" (identifier "pcVar20") (= "=") (binary_expression "pcVar17 + -1" (identifier "pcVar17") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "param_3 = local_4b8;" (assignment_expression "param_3 = local_4b8" (identifier "param_3") (= "=") (identifier "local_4b8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*pcVar17 != '%')" (( "(") (binary_expression "*pcVar17 != '%'" (pointer_expression "*pcVar17" (* "*") (identifier "pcVar17")) (!= "!=") (char_literal "'%'" (' "'") (character "%") (' "'"))) () ")")) (; ";")) (labeled_statement "LAB_00136d21:\n      local_4b8 = pcVar17;" (statement_identifier "LAB_00136d21") (: ":") (expression_statement "local_4b8 = pcVar17;" (assignment_expression "local_4b8 = pcVar17" (identifier "local_4b8") (= "=") (identifier "pcVar17")) (; ";"))) (expression_statement "uVar15 = (ulong)iVar14;" (assignment_expression "uVar15 = (ulong)iVar14" (identifier "uVar15") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "iVar14 = 0;" (assignment_expression "iVar14 = 0" (identifier "iVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar26) {\n        iVar14 = iVar26;\n      }" (if "if") (parenthesized_expression "(-1 < iVar26)" (( "(") (binary_expression "-1 < iVar26" (number_literal "-1") (< "<") (identifier "iVar26")) () ")")) (compound_statement "{\n        iVar14 = iVar26;\n      }" ({ "{") (expression_statement "iVar14 = iVar26;" (assignment_expression "iVar14 = iVar26" (identifier "iVar14") (= "=") (identifier "iVar26")) (; ";")) (} "}"))) (expression_statement "uVar10 = (ulong)iVar14;" (assignment_expression "uVar10 = (ulong)iVar14" (identifier "uVar10") (= "=") (cast_expression "(ulong)iVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "iVar14"))) (; ";")) (expression_statement "uVar11 = uVar10;" (assignment_expression "uVar11 = uVar10" (identifier "uVar11") (= "=") (identifier "uVar10")) (; ";")) (if_statement "if (uVar10 <= uVar15) {\n        uVar11 = uVar15;\n      }" (if "if") (parenthesized_expression "(uVar10 <= uVar15)" (( "(") (binary_expression "uVar10 <= uVar15" (identifier "uVar10") (<= "<=") (identifier "uVar15")) () ")")) (compound_statement "{\n        uVar11 = uVar15;\n      }" ({ "{") (expression_statement "uVar11 = uVar15;" (assignment_expression "uVar11 = uVar15" (identifier "uVar11") (= "=") (identifier "uVar15")) (; ";")) (} "}"))) (if_statement "if ((ulong)(param_2 - lVar24) <= uVar11) {\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }" (if "if") (parenthesized_expression "((ulong)(param_2 - lVar24) <= uVar11)" (( "(") (binary_expression "(ulong)(param_2 - lVar24) <= uVar11" (call_expression "(ulong)(param_2 - lVar24)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_2 - lVar24)" (( "(") (binary_expression "param_2 - lVar24" (identifier "param_2") (- "-") (identifier "lVar24")) () ")"))) (<= "<=") (identifier "uVar11")) () ")")) (compound_statement "{\nLAB_00136dd9:\n        lVar24 = 0;\n        goto LAB_00136ddf;\n      }" ({ "{") (labeled_statement "LAB_00136dd9:\n        lVar24 = 0;" (statement_identifier "LAB_00136dd9") (: ":") (expression_statement "lVar24 = 0;" (assignment_expression "lVar24 = 0" (identifier "lVar24") (= "=") (number_literal "0")) (; ";"))) (goto_statement "goto LAB_00136ddf;" (goto "goto") (statement_identifier "LAB_00136ddf") (; ";")) (} "}"))) (if_statement "if (param_1 != (char *)0x0) {\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }\n        if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }\n        param_1 = param_1 + uVar15;\n      }" ({ "{") (if_statement "if (uVar15 < uVar10) {\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }" (if "if") (parenthesized_expression "(uVar15 < uVar10)" (( "(") (binary_expression "uVar15 < uVar10" (identifier "uVar15") (< "<") (identifier "uVar10")) () ")")) (compound_statement "{\n          sVar27 = (long)iVar26 - uVar15;\n          if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n        }" ({ "{") (expression_statement "sVar27 = (long)iVar26 - uVar15;" (assignment_expression "sVar27 = (long)iVar26 - uVar15" (identifier "sVar27") (= "=") (binary_expression "(long)iVar26 - uVar15" (cast_expression "(long)iVar26" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar26")) (- "-") (identifier "uVar15"))) (; ";")) (if_statement "if (cVar4 == '0') {\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }\n          else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }" (if "if") (parenthesized_expression "(cVar4 == '0')" (( "(") (binary_expression "cVar4 == '0'" (identifier "cVar4") (== "==") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (compound_statement "{\n            memset(param_1,0x30,sVar27);\n            param_1 = param_1 + sVar27;\n          }" ({ "{") (expression_statement "memset(param_1,0x30,sVar27);" (call_expression "memset(param_1,0x30,sVar27)" (identifier "memset") (argument_list "(param_1,0x30,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x30") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")) (else_clause "else {\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }" (else "else") (compound_statement "{\n            memset(param_1,0x20,sVar27);\n            param_1 = param_1 + sVar27;\n          }" ({ "{") (expression_statement "memset(param_1,0x20,sVar27);" (call_expression "memset(param_1,0x20,sVar27)" (identifier "memset") (argument_list "(param_1,0x20,sVar27)" (( "(") (identifier "param_1") (, ",") (number_literal "0x20") (, ",") (identifier "sVar27") () ")"))) (; ";")) (expression_statement "param_1 = param_1 + sVar27;" (assignment_expression "param_1 = param_1 + sVar27" (identifier "param_1") (= "=") (binary_expression "param_1 + sVar27" (identifier "param_1") (+ "+") (identifier "sVar27"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (cVar7 == '\0') {\n          memcpy(param_1,local_4b8,uVar15);\n        }\n        else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }" (if "if") (parenthesized_expression "(cVar7 == '\0')" (( "(") (binary_expression "cVar7 == '\0'" (identifier "cVar7") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          memcpy(param_1,local_4b8,uVar15);\n        }" ({ "{") (expression_statement "memcpy(param_1,local_4b8,uVar15);" (call_expression "memcpy(param_1,local_4b8,uVar15)" (identifier "memcpy") (argument_list "(param_1,local_4b8,uVar15)" (( "(") (identifier "param_1") (, ",") (identifier "local_4b8") (, ",") (identifier "uVar15") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }" (else "else") (compound_statement "{\n          FUN_00135900(param_1,local_4b8,uVar15);\n        }" ({ "{") (expression_statement "FUN_00135900(param_1,local_4b8,uVar15);" (call_expression "FUN_00135900(param_1,local_4b8,uVar15)" (identifier "FUN_00135900") (argument_list "(param_1,local_4b8,uVar15)" (( "(") (identifier "param_1") (, ",") (identifier "local_4b8") (, ",") (identifier "uVar15") () ")"))) (; ";")) (} "}")))) (expression_statement "param_1 = param_1 + uVar15;" (assignment_expression "param_1 = param_1 + uVar15" (identifier "param_1") (= "=") (binary_expression "param_1 + uVar15" (identifier "param_1") (+ "+") (identifier "uVar15"))) (; ";")) (} "}"))) (expression_statement "lVar24 = lVar24 + uVar11;" (assignment_expression "lVar24 = lVar24 + uVar11" (identifier "lVar24") (= "=") (binary_expression "lVar24 + uVar11" (identifier "lVar24") (+ "+") (identifier "uVar11"))) (; ";")) (labeled_statement "LAB_001359f4:\n      cVar5 = param_3[1];" (statement_identifier "LAB_001359f4") (: ":") (expression_statement "cVar5 = param_3[1];" (assignment_expression "cVar5 = param_3[1]" (identifier "cVar5") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";"))) (expression_statement "param_3 = param_3 + 1;" (assignment_expression "param_3 = param_3 + 1" (identifier "param_3") (= "=") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar5 != '\0')" (( "(") (binary_expression "cVar5 != '\0'" (identifier "cVar5") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (} "}")))) (if_statement "if ((param_1 != (char *)0x0) && (param_2 != 0)) {\n    *param_1 = '\0';\n  }" (if "if") (parenthesized_expression "((param_1 != (char *)0x0) && (param_2 != 0))" (( "(") (binary_expression "(param_1 != (char *)0x0) && (param_2 != 0)" (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    *param_1 = '\0';\n  }" ({ "{") (expression_statement "*param_1 = '\0';" (assignment_expression "*param_1 = '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}"))) (labeled_statement "LAB_00136ddf:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }" (statement_identifier "LAB_00136ddf") (: ":") (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return lVar24;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return lVar24;\n  }" ({ "{") (return_statement "return lVar24;" (return "return") (identifier "lVar24") (; ";")) (} "}")))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

size_t function_1(char *var_6,size_t var_4,char *var_7,type_1 *tp,type_2 upcase,
                          type_2 *tzset_called,type_3 tz,int ns)

{
  bool bVar1;
  bool bVar2;
  char var_12;
  char var_3;
  char var_15;
  char var_29;
  int var_19;
  char *src;
  size_t var_25;
  type_4 var_34;
  type_5 var_27;
  type_5 var_10;
  type_6 var_23;
  type_4 var_33;
  type_6 uVar13;
  int var_39;
  type_5 var_11;
  char var_9;
  char *var_26;
  type_6 var_24;
  int var_21;
  char *var_38;
  int var_22;
  int var_20;
  long var_16;
  size_t var_5;
  type_6 var_2;
  int var_8;
  size_t var_14;
  long var_1;
  bool var_17;
  type_7 bVar29;
  char *var_40;
  type_1 ltm;
  char var_18 [5];
  char var_37 [23];
  char local_431 [1009];
  long var_41;
  
  bVar29 = 0;
  var_41 = *(long *)(var_1 + 0x28);
  var_2 = tp->tm_hour;
  src = "";
  if (tp->tm_zone != (char *)0x0) {
    src = tp->tm_zone;
  }
  if ((int)var_2 < 0xd) {
    if (var_2 == 0) {
      var_2 = 0xc;
    }
  }
  else {
    var_2 = var_2 - 0xc;
  }
  var_3 = *var_7;
  if (var_3 == '\0') {
    var_5 = 0;
  }
  else {
    var_5 = 0;
    do {
      if (var_3 != '%') {
        if (var_4 - var_5 < 2) goto LAB_00136dd9;
        if (var_6 != (char *)0x0) {
          *var_6 = var_3;
          var_6 = var_6 + 1;
        }
        var_5 = var_5 + 1;
        goto LAB_001359f4;
      }
      var_17 = false;
      var_29 = upcase;
      var_3 = '\0';
      do {
        while( true ) {
          while( true ) {
            do {
              var_12 = var_3;
              var_7 = var_7 + 1;
              var_3 = *var_7;
            } while (var_3 == '0');
            if ('0' < var_3) break;
            if (var_3 == '#') {
              var_17 = true;
              var_3 = var_12;
            }
            else if (var_3 != '-') goto LAB_00135a68;
          }
          if (var_3 != '^') break;
          var_29 = true;
          var_3 = var_12;
        }
      } while (var_3 == '_');
LAB_00135a68:
      var_8 = -1;
      if ((int)var_3 - 0x30U < 10) {
        var_8 = 0;
        do {
          if (var_8 < 0xccccccd) {
            if ((var_8 == 0xccccccc) && ('7' < *var_7)) {
              var_8 = 0x7fffffff;
            }
            else {
              var_8 = *var_7 + -0x30 + var_8 * 10;
            }
          }
          else {
            var_8 = 0x7fffffff;
          }
          var_7 = var_7 + 1;
        } while ((int)*var_7 - 0x30U < 10);
      }
      var_3 = *var_7;
      if ((var_3 == 'E') || (var_9 = '\0', var_3 == 'O')) {
        var_7 = var_7 + 1;
        var_9 = var_3;
      }
      var_3 = *var_7;
      var_39 = (int)local_431;
      var_40 = var_7;
      var_23 = var_2;
      var_20 = var_8;
      switch(var_3) {
      case '\0':
        var_40 = var_7 + -1;
        goto LAB_00136cd6;
      default:
        goto LAB_00136cd6;
      case '%':
        if (var_9 == '\0') {
          var_39 = 0;
          if (-1 < var_8) {
            var_39 = var_8;
          }
          var_10 = (type_5)var_39;
          var_11 = 1;
          if (var_10 != 0) {
            var_11 = var_10;
          }
          if (var_4 - var_5 <= var_11) goto LAB_00136dd9;
          if (var_6 != (char *)0x0) {
            if (1 < var_10) {
              var_14 = (long)var_8 - 1;
              if (var_12 == '0') {
                var_13(var_6,0x30,var_14);
                var_6 = var_6 + var_14;
              }
              else {
                var_13(var_6,0x20,var_14);
                var_6 = var_6 + var_14;
              }
            }
            *var_6 = *var_7;
            var_6 = var_6 + 1;
          }
          var_5 = var_5 + var_11;
          goto LAB_001359f4;
        }
        var_39 = 1;
        var_26 = var_7;
        goto LAB_00136d21;
      case ':':
        var_26 = var_7 + 1;
        var_15 = var_7[1];
        if (var_15 == ':') {
          var_16 = 1;
          do {
            var_16 = var_16 + 1;
            var_26 = var_7 + var_16;
            var_15 = var_7[var_16];
          } while (var_15 == ':');
        }
        else {
          var_16 = 1;
        }
        if (var_15 == 'z') goto LAB_00136bae;
        break;
      case 'A':
        if (var_9 != '\0') break;
        if (var_17 != false) {
          var_29 = var_17;
        }
        var_3 = 'A';
LAB_00135bf1:
        var_40._0_1_ = false;
        var_20 = 0;
        var_26 = var_18 + 2;
        goto LAB_00135f1c;
      case 'B':
        if (var_9 != 'E') {
          if (var_17 != false) {
            var_29 = var_17;
          }
          var_3 = 'B';
          var_40._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'C':
        if (var_9 != 'E') {
          var_19 = tp->tm_year;
          var_20 = var_19 / 100 + 0x13;
          var_17 = var_19 < -0x76c;
          var_23 = var_20 - ((type_6)(var_19 % 100) >> 0x1f & (type_6)(0 < var_20));
          var_24 = 0;
          bVar2 = false;
          var_20 = 2;
          goto LAB_00135edf;
        }
        var_3 = 'C';
        var_20 = 0;
        goto LAB_00135ef1;
      case 'D':
        if (var_9 == '\0') {
          var_40 = "%m/%d/%y";
          goto LAB_00135ca3;
        }
        break;
      case 'F':
        if (var_9 == '\0') {
          var_40 = "%Y-%m-%d";
          goto LAB_00135ca3;
        }
        break;
      case 'G':
      case 'V':
      case 'g':
        if (var_9 != 'E') {
          var_19 = tp->tm_year;
          var_23 = var_19 + -100 + (var_19 >> 0x1f & 400U);
          var_22 = tp->tm_wday;
          var_21 = tp->tm_yday;
          var_20 = (var_21 - var_22) + 0x17e;
          var_20 = (var_21 - var_20) + 3 + (var_20 / 7) * 7;
          if (var_20 < 0) {
            var_23 = var_23 - 1;
            var_24 = 0;
            if (((var_23 & 3) == 0) && (var_24 = 1, var_23 == ((int)var_23 / 100) * 100)) {
              var_24 = (type_6)((int)var_23 % 400 == 0);
            }
            var_20 = var_21 + 0x16d + var_24;
            var_22 = (var_20 - var_22) + 0x17e;
            var_20 = (var_20 - var_22) + 3 + (var_22 / 7) * 7;
            var_22 = -1;
          }
          else {
            var_24 = 0;
            if (((var_23 & 3) == 0) && (var_24 = 1, var_23 == ((int)var_23 / 100) * 100)) {
              var_24 = (type_6)(var_23 == ((int)var_23 / 400) * 400);
            }
            var_21 = var_21 - (var_24 + 0x16d);
            var_22 = (var_21 - var_22) + 0x17e;
            var_22 = (var_21 - var_22) + 3 + (var_22 / 7) * 7;
            if (-1 < var_22) {
              var_20 = var_22;
            }
            var_22 = (var_22 >> 0x1f) + 1;
          }
          if (var_3 == 'G') {
            var_17 = var_19 < -0x76c - var_22;
            var_23 = var_19 + 0x76c + var_22;
            var_24 = 0;
            bVar2 = false;
            var_20 = 4;
            goto LAB_00135edf;
          }
          if (var_3 == 'g') {
            var_23 = (var_19 % 100 + var_22) % 100;
            var_20 = 2;
            if ((int)var_23 < 0) {
              if (var_19 < -0x76c - var_22) {
                var_23 = -var_23;
              }
              else {
                var_23 = var_23 + 100;
                var_20 = 2;
              }
            }
          }
          else {
            var_23 = var_20 / 7 + 1;
            var_20 = 2;
          }
          goto LAB_00135ecc;
        }
        goto LAB_00136cd6;
      case 'H':
        if (var_9 != 'E') {
          var_23 = tp->tm_hour;
          var_20 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'I':
        if (var_9 != 'E') {
          var_20 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'M':
        if (var_9 != 'E') {
          var_23 = tp->tm_min;
          var_20 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'N':
        if (var_9 != 'E') {
          var_23 = ns;
          if (var_8 == -1) {
            var_8 = 9;
            var_20 = 9;
          }
          else {
            var_19 = var_8;
            if (var_8 < 9) {
              do {
                var_23 = (int)var_23 / 10;
                var_19 = var_19 + 1;
              } while (var_19 != 9);
            }
          }
          goto LAB_00135ecc;
        }
        break;
      case 'P':
        var_40._0_1_ = true;
        goto LAB_00136492;
      case 'R':
        var_40 = "%H:%M";
        goto LAB_00135ca3;
      case 'S':
        if (var_9 != 'E') {
          var_23 = tp->tm_sec;
          var_20 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'T':
        var_40 = "%H:%M:%S";
LAB_00135ca3:
        var_25 = function_1((char *)0x0,0xffffffffffffffff,var_40,tp,(type_2)var_29,
                                    tzset_called,tz,ns);
        var_39 = 0;
        if (-1 < var_8) {
          var_39 = var_8;
        }
        var_10 = (type_5)var_39;
        var_11 = var_10;
        if (var_10 <= var_25) {
          var_11 = var_25;
        }
        if (var_11 < var_4 - var_5) {
          if (var_6 != (char *)0x0) {
            if (var_25 < var_10) {
              var_14 = (long)var_8 - var_25;
              if (var_12 == '0') {
                var_13(var_6,0x30,var_14);
                var_6 = var_6 + var_14;
              }
              else {
                var_13(var_6,0x20,var_14);
                var_6 = var_6 + var_14;
              }
            }
            function_1(var_6,var_4 - var_5,var_40,tp,(type_2)var_29,tzset_called,tz,ns)
            ;
            var_6 = var_6 + var_25;
          }
          var_5 = var_5 + var_11;
          goto LAB_001359f4;
        }
        goto LAB_00136dd9;
      case 'U':
        if (var_9 != 'E') {
          var_23 = ((tp->tm_yday - tp->tm_wday) + 7) / 7;
          var_20 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'W':
        if (var_9 != 'E') {
          var_20 = tp->tm_wday + 6;
          var_23 = (((var_20 / 7) * 7 - var_20) + 7 + tp->tm_yday) / 7;
          var_20 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'X':
        if (var_9 != 'O') {
          var_3 = 'X';
          var_40._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'Y':
        if (var_9 == 'E') {
          var_3 = 'Y';
          var_20 = 0;
          goto LAB_00135ef1;
        }
        if (var_9 == 'O') break;
        var_17 = tp->tm_year < -0x76c;
        var_23 = tp->tm_year + 0x76c;
        var_24 = 0;
        bVar2 = false;
        var_20 = 4;
        goto LAB_00136a29;
      case 'Z':
        if (var_17) {
          var_29 = '\0';
        }
        var_11 = 0xffffffffffffffff;
        var_26 = src;
        do {
          if (var_11 == 0) break;
          var_11 = var_11 - 1;
          var_3 = *var_26;
          var_26 = var_26 + (type_5)bVar29 * -2 + 1;
        } while (var_3 != '\0');
        var_11 = ~var_11 - 1;
        var_39 = 0;
        if (-1 < var_8) {
          var_39 = var_8;
        }
        var_27 = (type_5)var_39;
        var_10 = var_27;
        if (var_27 <= var_11) {
          var_10 = var_11;
        }
        if (var_10 < var_4 - var_5) {
          if (var_6 != (char *)0x0) {
            if (var_11 < var_27) {
              var_14 = (long)var_8 - var_11;
              if (var_12 == '0') {
                var_13(var_6,0x30,var_14);
                var_6 = var_6 + var_14;
              }
              else {
                var_13(var_6,0x20,var_14);
                var_6 = var_6 + var_14;
              }
            }
            if (var_17) {
              var_28(var_6,src,var_11);
            }
            else if (var_29 == '\0') {
              var_30(var_6,src,var_11);
            }
            else {
              var_31(var_6,src,var_11);
            }
            var_6 = var_6 + var_11;
          }
          var_5 = var_5 + var_10;
          goto LAB_001359f4;
        }
        goto LAB_00136dd9;
      case 'a':
        if (var_9 == '\0') {
          if (var_17 != false) {
            var_29 = var_17;
          }
          var_3 = 'a';
          goto LAB_00135bf1;
        }
        break;
      case 'b':
      case 'h':
        if (var_17 != false) {
          var_29 = var_17;
        }
        if (var_9 != 'E') {
          var_40._0_1_ = false;
          goto LAB_001364b6;
        }
LAB_00136cd6:
        if (*var_40 != '%') break;
        var_39 = 1;
        var_7 = var_40;
        var_26 = var_40;
        goto LAB_00136d21;
      case 'c':
        if (var_9 != 'O') {
          var_3 = 'c';
          var_40._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'd':
        if (var_9 != 'E') {
          var_23 = tp->tm_mday;
          var_20 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'e':
        if (var_9 != 'E') {
          var_23 = tp->tm_mday;
LAB_00135ea8:
          if ((var_12 == '0') || (var_12 == '-')) {
            var_20 = 2;
          }
          else {
            var_12 = '_';
            var_20 = 2;
          }
          goto LAB_00135ecc;
        }
        break;
      case 'j':
        if (var_9 != 'E') {
          var_17 = tp->tm_yday < -1;
          var_23 = tp->tm_yday + 1;
          var_24 = 0;
          bVar2 = false;
          var_20 = 3;
          goto LAB_00135edf;
        }
        break;
      case 'k':
        if (var_9 != 'E') {
          var_23 = tp->tm_hour;
          goto LAB_00135ea8;
        }
        break;
      case 'l':
        if (var_9 != 'E') goto LAB_00135ea8;
        break;
      case 'm':
        if (var_9 != 'E') {
          var_17 = tp->tm_mon < -1;
          var_23 = tp->tm_mon + 1;
          var_24 = 0;
          bVar2 = false;
          var_20 = 2;
          goto LAB_00135edf;
        }
        break;
      case 'n':
        var_39 = 0;
        if (-1 < var_8) {
          var_39 = var_8;
        }
        var_10 = (type_5)var_39;
        var_11 = 1;
        if (var_10 != 0) {
          var_11 = var_10;
        }
        if (var_4 - var_5 <= var_11) goto LAB_00136dd9;
        if (var_6 != (char *)0x0) {
          if (1 < var_10) {
            var_14 = (long)var_8 - 1;
            if (var_12 == '0') {
              var_13(var_6,0x30,var_14);
              var_6 = var_6 + var_14;
            }
            else {
              var_13(var_6,0x20,var_14);
              var_6 = var_6 + var_14;
            }
          }
          *var_6 = '\n';
          var_6 = var_6 + 1;
        }
        var_5 = var_5 + var_11;
        goto LAB_001359f4;
      case 'p':
        var_40._0_1_ = false;
LAB_00136492:
        if (var_17 != false) {
          var_40._0_1_ = var_17;
        }
        var_3 = 'p';
        if (var_17 != false) {
          var_29 = '\0';
        }
LAB_001364b6:
        if (var_9 != '\0') {
          var_20 = 0;
          goto LAB_00135f06;
        }
        var_26 = var_18 + 2;
        var_20 = 0;
        goto LAB_00135f1c;
      case 'q':
        var_3 = 'q';
        var_20 = 1;
        if (var_9 == 'O') goto LAB_00135ef1;
        var_23 = (tp->tm_mon * 0xb >> 5) + 1;
        var_24 = 0;
        bVar2 = false;
        var_17 = false;
        goto LAB_00136a33;
      case 'r':
        var_40._0_1_ = false;
        goto LAB_001364b6;
      case 's':
        ltm.tm_sec = tp->tm_sec;
        ltm.tm_min = tp->tm_min;
        ltm.tm_hour = tp->tm_hour;
        ltm.tm_mday = tp->tm_mday;
        ltm.tm_mon = tp->tm_mon;
        ltm.tm_year = tp->tm_year;
        ltm.tm_wday = tp->tm_wday;
        ltm.tm_yday = tp->tm_yday;
        ltm.tm_isdst = tp->tm_isdst;
        ltm._36_4_ = *(type_8 *)&tp->field_0x24;
        ltm.tm_gmtoff = tp->tm_gmtoff;
        ltm.tm_zone = tp->tm_zone;
        var_34 = var_32(tz,&ltm);
        var_26 = local_431;
        var_33 = var_34;
        do {
          var_16 = var_33 / 10;
          var_3 = (char)var_33 + (char)var_16 * -10;
          if (var_34 < 0) {
            var_3 = -var_3;
          }
          var_26 = var_26 + -1;
          *var_26 = var_3 + '0';
          var_33 = var_16;
        } while (var_16 != 0);
        var_20 = 1;
        if (0 < var_8) {
          var_20 = var_8;
        }
        if (var_34 < 0) {
          var_3 = '-';
          goto LAB_00136e58;
        }
        goto LAB_0013605d;
      case 't':
        var_39 = 0;
        if (-1 < var_8) {
          var_39 = var_8;
        }
        var_10 = (type_5)var_39;
        var_11 = 1;
        if (var_10 != 0) {
          var_11 = var_10;
        }
        if (var_4 - var_5 <= var_11) goto LAB_00136dd9;
        if (var_6 != (char *)0x0) {
          if (1 < var_10) {
            var_14 = (long)var_8 - 1;
            if (var_12 == '0') {
              var_13(var_6,0x30,var_14);
              var_6 = var_6 + var_14;
            }
            else {
              var_13(var_6,0x20,var_14);
              var_6 = var_6 + var_14;
            }
          }
          *var_6 = '\t';
          var_6 = var_6 + 1;
        }
        var_5 = var_5 + var_11;
        goto LAB_001359f4;
      case 'u':
        var_23 = (tp->tm_wday + 6) % 7 + 1;
        var_20 = 1;
        goto LAB_00135ecc;
      case 'w':
        if (var_9 != 'E') {
          var_23 = tp->tm_wday;
          var_20 = 1;
          goto LAB_00135ecc;
        }
        break;
      case 'x':
        if (var_9 != 'O') {
          var_3 = 'x';
          var_40._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'y':
        if (var_9 == 'E') {
          var_3 = 'y';
          var_20 = 0;
          goto LAB_00135ef1;
        }
        var_23 = tp->tm_year % 100;
        var_20 = 2;
        if ((int)var_23 < 0) {
          if (tp->tm_year < -0x76c) {
            var_23 = -var_23;
          }
          else {
            var_23 = var_23 + 100;
            var_20 = 2;
          }
        }
LAB_00135ecc:
        var_17 = var_35(var_23 >> 0x1f,0);
        var_24 = 0;
        bVar2 = false;
LAB_00135edf:
        if ((var_9 == 'O') && (var_17 == false)) {
LAB_00135ef1:
          var_40._0_1_ = false;
LAB_00135f06:
          var_26 = var_18 + 3;
          var_18[2] = var_9;
LAB_00135f1c:
          var_18[1] = '%';
          var_18[0] = ' ';
          *var_26 = var_3;
          var_26[1] = '\0';
          var_14 = var_36(var_37,0x400,var_18,(type_1 *)tp);
          if (var_14 != 0) {
            var_11 = var_14 - 1;
            var_39 = 0;
            if (-1 < var_8) {
              var_39 = var_8;
            }
            var_27 = (type_5)var_39;
            var_10 = var_27;
            if (var_27 <= var_11) {
              var_10 = var_11;
            }
            if (var_4 - var_5 <= var_10) goto LAB_00136dd9;
            if (var_6 != (char *)0x0) {
              if ((var_20 == 0) && (var_11 < var_27)) {
                var_14 = (long)var_8 - var_11;
                if (var_12 == '0') {
                  var_13(var_6,0x30,var_14);
                  var_6 = var_6 + var_14;
                }
                else {
                  var_13(var_6,0x20,var_14);
                  var_6 = var_6 + var_14;
                }
              }
              if (var_40._0_1_ == false) {
                if (var_29 == '\0') {
                  var_30(var_6,var_37 + 1,var_11);
                }
                else {
                  var_31(var_6,var_37 + 1,var_11);
                }
              }
              else {
                var_28(var_6,var_37 + 1,var_11);
              }
              var_6 = var_6 + var_11;
            }
            var_5 = var_5 + var_10;
          }
          goto LAB_001359f4;
        }
LAB_00136a29:
        if (var_17 != false) {
          var_23 = -var_23;
        }
LAB_00136a33:
        var_26 = local_431;
        do {
          var_38 = var_26;
          if ((var_24 & 1) != 0) {
            var_38 = var_26 + -1;
            var_26[-1] = ':';
          }
          var_24 = (int)var_24 >> 1;
          var_26 = var_38 + -1;
          uVar13 = var_23 / 10;
          var_38[-1] = (char)var_23 + (char)uVar13 * -10 + '0';
          bVar1 = 9 < var_23;
          var_23 = uVar13;
        } while ((bVar1) || (var_24 != 0));
        if (var_20 < var_8) {
          var_20 = var_8;
        }
        if (var_17 != false) {
          var_3 = '-';
LAB_00136e58:
          if (var_12 == '-') {
            var_39 = 0;
            if (-1 < var_8) {
              var_39 = var_8;
            }
            var_10 = (type_5)var_39;
            var_11 = 1;
            if (var_10 != 0) {
              var_11 = var_10;
            }
            if (var_11 < var_4 - var_5) {
              if (var_6 != (char *)0x0) {
                if ((var_20 == 0) && (1 < var_10)) {
                  var_13(var_6,0x20,(long)var_8 - 1U);
                  var_6 = var_6 + ((long)var_8 - 1U);
                }
                *var_6 = var_3;
                var_6 = var_6 + 1;
              }
              var_5 = var_5 + var_11;
              goto LAB_00136f44;
            }
          }
          else {
            var_17 = var_3 != '\0';
            var_39 = (var_20 - (var_39 - (int)var_26)) - (type_6)var_17;
            if (0 < var_39) goto LAB_00136e8a;
            var_39 = 0;
            if (-1 < var_8) {
              var_39 = var_8;
            }
            var_10 = (type_5)var_39;
            var_11 = 1;
            if (var_10 != 0) {
              var_11 = var_10;
            }
            if (var_11 < var_4 - var_5) {
              if (var_6 != (char *)0x0) {
                if ((var_20 == 0) && (1 < var_10)) {
                  var_14 = (long)var_8 - 1;
                  if (var_12 == '0') {
                    var_13(var_6,0x30,var_14);
                    var_6 = var_6 + var_14;
                  }
                  else {
                    var_13(var_6,0x20,var_14);
                    var_6 = var_6 + var_14;
                  }
                }
                *var_6 = var_3;
                var_6 = var_6 + 1;
              }
              var_5 = var_5 + var_11;
              goto LAB_00136f44;
            }
          }
          goto LAB_00136dd9;
        }
        var_3 = '+';
        if (bVar2) goto LAB_00136e58;
LAB_0013605d:
        if ((var_12 == '-') || (var_39 = var_20 - (var_39 - (int)var_26), var_39 < 1))
        goto LAB_00136f44;
        var_3 = '\0';
        var_17 = false;
LAB_00136e8a:
        if (var_12 == '_') {
          var_11 = (type_5)var_39;
          if (var_11 < var_4 - var_5) {
            if (var_6 != (char *)0x0) {
              var_13(var_6,0x20,var_11);
              var_6 = var_6 + var_11;
            }
            var_5 = var_5 + var_11;
            var_19 = var_8 - var_39;
            bVar2 = var_39 < var_8;
            var_8 = 0;
            if (bVar2) {
              var_8 = var_19;
            }
            if (var_17) {
              var_39 = 0;
              if (-1 < var_8) {
                var_39 = var_8;
              }
              var_10 = (type_5)var_39;
              var_11 = 1;
              if (var_10 != 0) {
                var_11 = var_10;
              }
              if (var_4 - var_5 <= var_11) goto LAB_00136dd9;
              if (var_6 != (char *)0x0) {
                if ((var_20 == 0) && (1 < var_10)) {
                  var_13(var_6,0x20,(long)var_8 - 1U);
                  var_6 = var_6 + ((long)var_8 - 1U);
                }
                *var_6 = var_3;
                var_6 = var_6 + 1;
              }
              var_5 = var_5 + var_11;
            }
            goto LAB_00136f44;
          }
        }
        else if ((type_5)(long)var_20 < var_4 - var_5) {
          if (var_17) {
            var_19 = 0;
            if (-1 < var_8) {
              var_19 = var_8;
            }
            var_10 = (type_5)var_19;
            var_11 = 1;
            if (var_10 != 0) {
              var_11 = var_10;
            }
            if (var_4 - var_5 <= var_11) goto LAB_00136dd9;
            if (var_6 != (char *)0x0) {
              if ((var_20 == 0) && (1 < var_10)) {
                var_14 = (long)var_8 - 1;
                if (var_12 == '0') {
                  var_13(var_6,0x30,var_14);
                  var_6 = var_6 + var_14;
                }
                else {
                  var_13(var_6,0x20,var_14);
                  var_6 = var_6 + var_14;
                }
              }
              *var_6 = var_3;
              var_6 = var_6 + 1;
            }
            var_5 = var_5 + var_11;
          }
          if (var_6 != (char *)0x0) {
            var_13(var_6,0x30,(long)var_39);
            var_6 = var_6 + var_39;
          }
          var_5 = var_5 + (long)var_39;
          var_8 = 0;
LAB_00136f44:
          var_11 = (long)local_431 - (long)var_26;
          var_39 = 0;
          if (-1 < var_8) {
            var_39 = var_8;
          }
          var_27 = (type_5)var_39;
          var_10 = var_27;
          if (var_27 <= var_11) {
            var_10 = var_11;
          }
          if (var_10 < var_4 - var_5) {
            if (var_6 != (char *)0x0) {
              if ((var_20 == 0) && (var_11 < var_27)) {
                var_14 = (long)var_8 - var_11;
                if (var_12 == '0') {
                  var_13(var_6,0x30,var_14);
                  var_6 = var_6 + var_14;
                }
                else {
                  var_13(var_6,0x20,var_14);
                  var_6 = var_6 + var_14;
                }
              }
              if ((type_2)var_29 == false) {
                var_30(var_6,var_26,var_11);
              }
              else {
                var_31(var_6,var_26,var_11);
              }
              var_6 = var_6 + var_11;
            }
            var_5 = var_5 + var_10;
            goto LAB_001359f4;
          }
        }
        goto LAB_00136dd9;
      case 'z':
        var_16 = 0;
        var_26 = var_7;
LAB_00136bae:
        var_7 = var_26;
        if (tp->tm_isdst < 0) goto LAB_001359f4;
        var_17 = true;
        var_20 = (int)tp->tm_gmtoff;
        if ((-1 < var_20) && (var_17 = false, var_20 == 0)) {
          var_17 = *src == '-';
        }
        var_23 = var_20 / 0xe10;
        var_19 = (var_20 / 0x3c) % 0x3c;
        if (var_16 == 1) {
LAB_00136c74:
          var_23 = var_23 * 100 + var_19;
          var_24 = 4;
          bVar2 = true;
          var_20 = 6;
        }
        else if (var_16 == 0) {
          var_23 = var_23 * 100 + var_19;
          var_24 = 0;
          bVar2 = true;
          var_20 = 5;
        }
        else {
          if (var_16 != 2) {
            var_40 = var_7;
            if (var_16 != 3) goto LAB_00136cd6;
            if (var_20 % 0x3c == 0) {
              if (var_19 != 0) goto LAB_00136c74;
              bVar2 = true;
              var_20 = 3;
              var_24 = 0;
              goto LAB_00135edf;
            }
          }
          var_23 = var_23 * 10000 + var_19 * 100 + var_20 % 0x3c;
          var_24 = 0x14;
          bVar2 = true;
          var_20 = 9;
        }
        goto LAB_00135edf;
      }
      var_38 = var_40 + -1;
      do {
        var_26 = var_38;
        var_39 = ((int)(var_40 + -1) + 2) - (int)var_26;
        var_38 = var_26 + -1;
        var_7 = var_40;
      } while (*var_26 != '%');
LAB_00136d21:
      var_40 = var_26;
      var_11 = (type_5)var_39;
      var_39 = 0;
      if (-1 < var_8) {
        var_39 = var_8;
      }
      var_27 = (type_5)var_39;
      var_10 = var_27;
      if (var_27 <= var_11) {
        var_10 = var_11;
      }
      if (var_4 - var_5 <= var_10) {
LAB_00136dd9:
        var_5 = 0;
        goto LAB_00136ddf;
      }
      if (var_6 != (char *)0x0) {
        if (var_11 < var_27) {
          var_14 = (long)var_8 - var_11;
          if (var_12 == '0') {
            var_13(var_6,0x30,var_14);
            var_6 = var_6 + var_14;
          }
          else {
            var_13(var_6,0x20,var_14);
            var_6 = var_6 + var_14;
          }
        }
        if (var_29 == '\0') {
          var_30(var_6,var_40,var_11);
        }
        else {
          var_31(var_6,var_40,var_11);
        }
        var_6 = var_6 + var_11;
      }
      var_5 = var_5 + var_10;
LAB_001359f4:
      var_3 = var_7[1];
      var_7 = var_7 + 1;
    } while (var_3 != '\0');
  }
  if ((var_6 != (char *)0x0) && (var_4 != 0)) {
    *var_6 = '\0';
  }
LAB_00136ddf:
  if (var_41 == *(long *)(var_1 + 0x28)) {
    return var_5;
  }
                    /* WARNING: Subroutine does not return */
  var_42();
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (string_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence)))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character))))) (if_statement condition: (parenthesized_expression (binary_expression left: (char_literal (character)) right: (identifier))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (goto_statement label: (statement_identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (char_literal (character)) right: (pointer_expression argument: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (char_literal (escape_sequence))) right: (binary_expression left: (identifier) right: (char_literal (character))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (switch_statement condition: (parenthesized_expression (identifier)) body: (compound_statement (case_statement value: (char_literal (escape_sequence)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier))) (case_statement (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (goto_statement label: (statement_identifier))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (false))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (false)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (false))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (false))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character))) (case_statement value: (char_literal (character))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (true))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (identifier))) right: (number_literal)) right: (field_expression argument: (identifier) field: (field_identifier)))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (false))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (unary_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (false))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (false))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (false))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (break_statement))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (false))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (goto_statement label: (statement_identifier))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (false))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (false))) consequence: (compound_statement (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (false))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (false))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (false))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (field_expression argument: (identifier) field: (field_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (char_literal (character))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) right: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (false))) (goto_statement label: (statement_identifier)))) (break_statement)) (case_statement value: (char_literal (character)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (false))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (false))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (false)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (false))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (goto_statement label: (statement_identifier))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (false))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (unary_expression argument: (identifier))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (char_literal (character))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (false))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (goto_statement label: (statement_identifier)))))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (character)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (false))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (goto_statement label: (statement_identifier))))))))) (goto_statement label: (statement_identifier))) (case_statement value: (char_literal (character)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (field_expression argument: (identifier) field: (field_identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (false)) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

long MASKED(char *param_1,long param_2,char *param_3,tm *param_4,char param_5,
                 undefined8 param_6,undefined8 param_7,uint param_8)

{
  bool bVar1;
  bool bVar2;
  long lVar3;
  char cVar4;
  char cVar5;
  char cVar6;
  char cVar7;
  int iVar8;
  char *__src;
  long lVar9;
  ulong uVar10;
  ulong uVar11;
  uint uVar12;
  uint uVar13;
  int iVar14;
  ulong uVar15;
  char cVar16;
  char *pcVar17;
  uint uVar18;
  int iVar19;
  char *pcVar20;
  int iVar21;
  int iVar22;
  long lVar23;
  long lVar24;
  uint uVar25;
  int iVar26;
  size_t sVar27;
  long in_FS_OFFSET;
  bool bVar28;
  byte bVar29;
  char *local_4b8;
  undefined8 local_488;
  undefined8 uStack_480;
  undefined8 local_478;
  undefined8 uStack_470;
  undefined8 local_468;
  long lStack_460;
  char *local_458;
  char local_44d [3];
  char local_44a [2];
  char local_448;
  undefined1 local_447 [22];
  char local_431 [1009];
  long local_40;
  
  bVar29 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  uVar25 = param_4->tm_hour;
  __src = "";
  if (param_4->tm_zone != (char *)0x0) {
    __src = param_4->tm_zone;
  }
  if ((int)uVar25 < 0xd) {
    if (uVar25 == 0) {
      uVar25 = 0xc;
    }
  }
  else {
    uVar25 = uVar25 - 0xc;
  }
  cVar5 = *param_3;
  if (cVar5 == '\0') {
    lVar24 = 0;
  }
  else {
    lVar24 = 0;
    do {
      if (cVar5 != '%') {
        if ((ulong)(param_2 - lVar24) < 2) goto LAB_00136dd9;
        if (param_1 != (char *)0x0) {
          *param_1 = cVar5;
          param_1 = param_1 + 1;
        }
        lVar24 = lVar24 + 1;
        goto LAB_001359f4;
      }
      bVar28 = false;
      cVar7 = param_5;
      cVar5 = '\0';
      do {
        while( true ) {
          while( true ) {
            do {
              cVar4 = cVar5;
              param_3 = param_3 + 1;
              cVar5 = *param_3;
            } while (cVar5 == '0');
            if ('0' < cVar5) break;
            if (cVar5 == '#') {
              bVar28 = true;
              cVar5 = cVar4;
            }
            else if (cVar5 != '-') goto LAB_00135a68;
          }
          if (cVar5 != '^') break;
          cVar7 = '\x01';
          cVar5 = cVar4;
        }
      } while (cVar5 == '_');
LAB_00135a68:
      iVar26 = -1;
      if ((int)cVar5 - 0x30U < 10) {
        iVar26 = 0;
        do {
          if (iVar26 < 0xccccccd) {
            if ((iVar26 == 0xccccccc) && ('7' < *param_3)) {
              iVar26 = 0x7fffffff;
            }
            else {
              iVar26 = *param_3 + -0x30 + iVar26 * 10;
            }
          }
          else {
            iVar26 = 0x7fffffff;
          }
          param_3 = param_3 + 1;
        } while ((int)*param_3 - 0x30U < 10);
      }
      cVar5 = *param_3;
      if ((cVar5 == 'E') || (cVar16 = '\0', cVar5 == 'O')) {
        param_3 = param_3 + 1;
        cVar16 = cVar5;
      }
      cVar5 = *param_3;
      iVar14 = (int)local_431;
      local_4b8 = param_3;
      uVar12 = uVar25;
      iVar22 = iVar26;
      switch(cVar5) {
      case '\0':
        local_4b8 = param_3 + -1;
        goto LAB_00136cd6;
      default:
        goto LAB_00136cd6;
      case '%':
        if (cVar16 == '\0') {
          iVar14 = 0;
          if (-1 < iVar26) {
            iVar14 = iVar26;
          }
          uVar11 = (ulong)iVar14;
          uVar15 = 1;
          if (uVar11 != 0) {
            uVar15 = uVar11;
          }
          if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;
          if (param_1 != (char *)0x0) {
            if (1 < uVar11) {
              sVar27 = (long)iVar26 - 1;
              if (cVar4 == '0') {
                memset(param_1,0x30,sVar27);
                param_1 = param_1 + sVar27;
              }
              else {
                memset(param_1,0x20,sVar27);
                param_1 = param_1 + sVar27;
              }
            }
            *param_1 = *param_3;
            param_1 = param_1 + 1;
          }
          lVar24 = lVar24 + uVar15;
          goto LAB_001359f4;
        }
        iVar14 = 1;
        pcVar17 = param_3;
        goto LAB_00136d21;
      case ':':
        pcVar17 = param_3 + 1;
        cVar6 = param_3[1];
        if (cVar6 == ':') {
          lVar23 = 1;
          do {
            lVar23 = lVar23 + 1;
            pcVar17 = param_3 + lVar23;
            cVar6 = param_3[lVar23];
          } while (cVar6 == ':');
        }
        else {
          lVar23 = 1;
        }
        if (cVar6 == 'z') goto LAB_00136bae;
        break;
      case 'A':
        if (cVar16 != '\0') break;
        if (bVar28 != false) {
          cVar7 = bVar28;
        }
        cVar5 = 'A';
LAB_00135bf1:
        local_4b8._0_1_ = false;
        iVar22 = 0;
        pcVar17 = local_44d + 2;
        goto LAB_00135f1c;
      case 'B':
        if (cVar16 != 'E') {
          if (bVar28 != false) {
            cVar7 = bVar28;
          }
          cVar5 = 'B';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'C':
        if (cVar16 != 'E') {
          iVar8 = param_4->tm_year;
          iVar22 = iVar8 / 100 + 0x13;
          bVar28 = iVar8 < -0x76c;
          uVar12 = iVar22 - ((uint)(iVar8 % 100) >> 0x1f & (uint)(0 < iVar22));
          uVar18 = 0;
          bVar2 = false;
          iVar22 = 2;
          goto LAB_00135edf;
        }
        cVar5 = 'C';
        iVar22 = 0;
        goto LAB_00135ef1;
      case 'D':
        if (cVar16 == '\0') {
          local_4b8 = "%m/%d/%y";
          goto LAB_00135ca3;
        }
        break;
      case 'F':
        if (cVar16 == '\0') {
          local_4b8 = "%Y-%m-%d";
          goto LAB_00135ca3;
        }
        break;
      case 'G':
      case 'V':
      case 'g':
        if (cVar16 != 'E') {
          iVar8 = param_4->tm_year;
          uVar12 = iVar8 + -100 + (iVar8 >> 0x1f & 400U);
          iVar21 = param_4->tm_wday;
          iVar19 = param_4->tm_yday;
          iVar22 = (iVar19 - iVar21) + 0x17e;
          iVar22 = (iVar19 - iVar22) + 3 + (iVar22 / 7) * 7;
          if (iVar22 < 0) {
            uVar12 = uVar12 - 1;
            uVar18 = 0;
            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {
              uVar18 = (uint)((int)uVar12 % 400 == 0);
            }
            iVar22 = iVar19 + 0x16d + uVar18;
            iVar21 = (iVar22 - iVar21) + 0x17e;
            iVar22 = (iVar22 - iVar21) + 3 + (iVar21 / 7) * 7;
            iVar21 = -1;
          }
          else {
            uVar18 = 0;
            if (((uVar12 & 3) == 0) && (uVar18 = 1, uVar12 == ((int)uVar12 / 100) * 100)) {
              uVar18 = (uint)(uVar12 == ((int)uVar12 / 400) * 400);
            }
            iVar19 = iVar19 - (uVar18 + 0x16d);
            iVar21 = (iVar19 - iVar21) + 0x17e;
            iVar21 = (iVar19 - iVar21) + 3 + (iVar21 / 7) * 7;
            if (-1 < iVar21) {
              iVar22 = iVar21;
            }
            iVar21 = (iVar21 >> 0x1f) + 1;
          }
          if (cVar5 == 'G') {
            bVar28 = iVar8 < -0x76c - iVar21;
            uVar12 = iVar8 + 0x76c + iVar21;
            uVar18 = 0;
            bVar2 = false;
            iVar22 = 4;
            goto LAB_00135edf;
          }
          if (cVar5 == 'g') {
            uVar12 = (iVar8 % 100 + iVar21) % 100;
            iVar22 = 2;
            if ((int)uVar12 < 0) {
              if (iVar8 < -0x76c - iVar21) {
                uVar12 = -uVar12;
              }
              else {
                uVar12 = uVar12 + 100;
                iVar22 = 2;
              }
            }
          }
          else {
            uVar12 = iVar22 / 7 + 1;
            iVar22 = 2;
          }
          goto LAB_00135ecc;
        }
        goto LAB_00136cd6;
      case 'H':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_hour;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'I':
        if (cVar16 != 'E') {
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'M':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_min;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'N':
        if (cVar16 != 'E') {
          uVar12 = param_8;
          if (iVar26 == -1) {
            iVar26 = 9;
            iVar22 = 9;
          }
          else {
            iVar8 = iVar26;
            if (iVar26 < 9) {
              do {
                uVar12 = (int)uVar12 / 10;
                iVar8 = iVar8 + 1;
              } while (iVar8 != 9);
            }
          }
          goto LAB_00135ecc;
        }
        break;
      case 'P':
        local_4b8._0_1_ = true;
        goto LAB_00136492;
      case 'R':
        local_4b8 = "%H:%M";
        goto LAB_00135ca3;
      case 'S':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_sec;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'T':
        local_4b8 = "%H:%M:%S";
LAB_00135ca3:
        uVar15 = MASKED(0,0xffffffffffffffff,local_4b8,param_4,cVar7,param_6,param_7,param_8);
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar10 = (ulong)iVar14;
        uVar11 = uVar10;
        if (uVar10 <= uVar15) {
          uVar11 = uVar15;
        }
        if (uVar11 < (ulong)(param_2 - lVar24)) {
          if (param_1 != (char *)0x0) {
            if (uVar15 < uVar10) {
              sVar27 = (long)iVar26 - uVar15;
              if (cVar4 == '0') {
                memset(param_1,0x30,sVar27);
                param_1 = param_1 + sVar27;
              }
              else {
                memset(param_1,0x20,sVar27);
                param_1 = param_1 + sVar27;
              }
            }
            MASKED(param_1,param_2 - lVar24,local_4b8,param_4,cVar7,param_6,param_7,param_8);
            param_1 = param_1 + uVar15;
          }
          lVar24 = lVar24 + uVar11;
          goto LAB_001359f4;
        }
        goto LAB_00136dd9;
      case 'U':
        if (cVar16 != 'E') {
          uVar12 = ((param_4->tm_yday - param_4->tm_wday) + 7) / 7;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'W':
        if (cVar16 != 'E') {
          iVar22 = param_4->tm_wday + 6;
          uVar12 = (((iVar22 / 7) * 7 - iVar22) + 7 + param_4->tm_yday) / 7;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'X':
        if (cVar16 != 'O') {
          cVar5 = 'X';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'Y':
        if (cVar16 == 'E') {
          cVar5 = 'Y';
          iVar22 = 0;
          goto LAB_00135ef1;
        }
        if (cVar16 == 'O') break;
        bVar28 = param_4->tm_year < -0x76c;
        uVar12 = param_4->tm_year + 0x76c;
        uVar18 = 0;
        bVar2 = false;
        iVar22 = 4;
        goto LAB_00136a29;
      case 'Z':
        if (bVar28) {
          cVar7 = '\0';
        }
        uVar15 = 0xffffffffffffffff;
        pcVar17 = __src;
        do {
          if (uVar15 == 0) break;
          uVar15 = uVar15 - 1;
          cVar5 = *pcVar17;
          pcVar17 = pcVar17 + (ulong)bVar29 * -2 + 1;
        } while (cVar5 != '\0');
        uVar15 = ~uVar15 - 1;
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar10 = (ulong)iVar14;
        uVar11 = uVar10;
        if (uVar10 <= uVar15) {
          uVar11 = uVar15;
        }
        if (uVar11 < (ulong)(param_2 - lVar24)) {
          if (param_1 != (char *)0x0) {
            if (uVar15 < uVar10) {
              sVar27 = (long)iVar26 - uVar15;
              if (cVar4 == '0') {
                memset(param_1,0x30,sVar27);
                param_1 = param_1 + sVar27;
              }
              else {
                memset(param_1,0x20,sVar27);
                param_1 = param_1 + sVar27;
              }
            }
            if (bVar28) {
              FUN_001358c7(param_1,__src,uVar15);
            }
            else if (cVar7 == '\0') {
              memcpy(param_1,__src,uVar15);
            }
            else {
              FUN_00135900(param_1,__src,uVar15);
            }
            param_1 = param_1 + uVar15;
          }
          lVar24 = lVar24 + uVar11;
          goto LAB_001359f4;
        }
        goto LAB_00136dd9;
      case 'a':
        if (cVar16 == '\0') {
          if (bVar28 != false) {
            cVar7 = bVar28;
          }
          cVar5 = 'a';
          goto LAB_00135bf1;
        }
        break;
      case 'b':
      case 'h':
        if (bVar28 != false) {
          cVar7 = bVar28;
        }
        if (cVar16 != 'E') {
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
LAB_00136cd6:
        if (*local_4b8 != '%') break;
        iVar14 = 1;
        param_3 = local_4b8;
        pcVar17 = local_4b8;
        goto LAB_00136d21;
      case 'c':
        if (cVar16 != 'O') {
          cVar5 = 'c';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'd':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_mday;
          iVar22 = 2;
          goto LAB_00135ecc;
        }
        break;
      case 'e':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_mday;
LAB_00135ea8:
          if ((cVar4 == '0') || (cVar4 == '-')) {
            iVar22 = 2;
          }
          else {
            cVar4 = '_';
            iVar22 = 2;
          }
          goto LAB_00135ecc;
        }
        break;
      case 'j':
        if (cVar16 != 'E') {
          bVar28 = param_4->tm_yday < -1;
          uVar12 = param_4->tm_yday + 1;
          uVar18 = 0;
          bVar2 = false;
          iVar22 = 3;
          goto LAB_00135edf;
        }
        break;
      case 'k':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_hour;
          goto LAB_00135ea8;
        }
        break;
      case 'l':
        if (cVar16 != 'E') goto LAB_00135ea8;
        break;
      case 'm':
        if (cVar16 != 'E') {
          bVar28 = param_4->tm_mon < -1;
          uVar12 = param_4->tm_mon + 1;
          uVar18 = 0;
          bVar2 = false;
          iVar22 = 2;
          goto LAB_00135edf;
        }
        break;
      case 'n':
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar11 = (ulong)iVar14;
        uVar15 = 1;
        if (uVar11 != 0) {
          uVar15 = uVar11;
        }
        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;
        if (param_1 != (char *)0x0) {
          if (1 < uVar11) {
            sVar27 = (long)iVar26 - 1;
            if (cVar4 == '0') {
              memset(param_1,0x30,sVar27);
              param_1 = param_1 + sVar27;
            }
            else {
              memset(param_1,0x20,sVar27);
              param_1 = param_1 + sVar27;
            }
          }
          *param_1 = '\n';
          param_1 = param_1 + 1;
        }
        lVar24 = lVar24 + uVar15;
        goto LAB_001359f4;
      case 'p':
        local_4b8._0_1_ = false;
LAB_00136492:
        if (bVar28 != false) {
          local_4b8._0_1_ = bVar28;
        }
        cVar5 = 'p';
        if (bVar28 != false) {
          cVar7 = '\0';
        }
LAB_001364b6:
        if (cVar16 != '\0') {
          iVar22 = 0;
          goto LAB_00135f06;
        }
        pcVar17 = local_44d + 2;
        iVar22 = 0;
        goto LAB_00135f1c;
      case 'q':
        cVar5 = 'q';
        iVar22 = 1;
        if (cVar16 == 'O') goto LAB_00135ef1;
        uVar12 = (param_4->tm_mon * 0xb >> 5) + 1;
        uVar18 = 0;
        bVar2 = false;
        bVar28 = false;
        goto LAB_00136a33;
      case 'r':
        local_4b8._0_1_ = false;
        goto LAB_001364b6;
      case 's':
        local_488._0_4_ = param_4->tm_sec;
        local_488._4_4_ = param_4->tm_min;
        uStack_480._0_4_ = param_4->tm_hour;
        uStack_480._4_4_ = param_4->tm_mday;
        local_478._0_4_ = param_4->tm_mon;
        local_478._4_4_ = param_4->tm_year;
        uStack_470._0_4_ = param_4->tm_wday;
        uStack_470._4_4_ = param_4->tm_yday;
        local_468 = *(undefined8 *)&param_4->tm_isdst;
        lStack_460 = param_4->tm_gmtoff;
        local_458 = param_4->tm_zone;
        lVar9 = FUN_00134eb1(param_7,&local_488);
        pcVar17 = local_431;
        lVar23 = lVar9;
        do {
          lVar3 = lVar23 / 10;
          cVar5 = (char)lVar23 + (char)lVar3 * -10;
          if (lVar9 < 0) {
            cVar5 = -cVar5;
          }
          pcVar17 = pcVar17 + -1;
          *pcVar17 = cVar5 + '0';
          lVar23 = lVar3;
        } while (lVar3 != 0);
        iVar22 = 1;
        if (0 < iVar26) {
          iVar22 = iVar26;
        }
        if (lVar9 < 0) {
          cVar5 = '-';
          goto LAB_00136e58;
        }
        goto LAB_0013605d;
      case 't':
        iVar14 = 0;
        if (-1 < iVar26) {
          iVar14 = iVar26;
        }
        uVar11 = (ulong)iVar14;
        uVar15 = 1;
        if (uVar11 != 0) {
          uVar15 = uVar11;
        }
        if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;
        if (param_1 != (char *)0x0) {
          if (1 < uVar11) {
            sVar27 = (long)iVar26 - 1;
            if (cVar4 == '0') {
              memset(param_1,0x30,sVar27);
              param_1 = param_1 + sVar27;
            }
            else {
              memset(param_1,0x20,sVar27);
              param_1 = param_1 + sVar27;
            }
          }
          *param_1 = '\t';
          param_1 = param_1 + 1;
        }
        lVar24 = lVar24 + uVar15;
        goto LAB_001359f4;
      case 'u':
        uVar12 = (param_4->tm_wday + 6) % 7 + 1;
        iVar22 = 1;
        goto LAB_00135ecc;
      case 'w':
        if (cVar16 != 'E') {
          uVar12 = param_4->tm_wday;
          iVar22 = 1;
          goto LAB_00135ecc;
        }
        break;
      case 'x':
        if (cVar16 != 'O') {
          cVar5 = 'x';
          local_4b8._0_1_ = false;
          goto LAB_001364b6;
        }
        break;
      case 'y':
        if (cVar16 == 'E') {
          cVar5 = 'y';
          iVar22 = 0;
          goto LAB_00135ef1;
        }
        uVar12 = param_4->tm_year % 100;
        iVar22 = 2;
        if ((int)uVar12 < 0) {
          if (param_4->tm_year < -0x76c) {
            uVar12 = -uVar12;
          }
          else {
            uVar12 = uVar12 + 100;
            iVar22 = 2;
          }
        }
LAB_00135ecc:
        bVar28 = SUB41(uVar12 >> 0x1f,0);
        uVar18 = 0;
        bVar2 = false;
LAB_00135edf:
        if ((cVar16 == 'O') && (bVar28 == false)) {
LAB_00135ef1:
          local_4b8._0_1_ = false;
LAB_00135f06:
          pcVar17 = local_44a;
          local_44d[2] = cVar16;
LAB_00135f1c:
          local_44d[1] = 0x25;
          local_44d[0] = ' ';
          *pcVar17 = cVar5;
          pcVar17[1] = '\0';
          sVar27 = strftime(&local_448,0x400,local_44d,param_4);
          if (sVar27 != 0) {
            uVar15 = sVar27 - 1;
            iVar14 = 0;
            if (-1 < iVar26) {
              iVar14 = iVar26;
            }
            uVar10 = (ulong)iVar14;
            uVar11 = uVar10;
            if (uVar10 <= uVar15) {
              uVar11 = uVar15;
            }
            if ((ulong)(param_2 - lVar24) <= uVar11) goto LAB_00136dd9;
            if (param_1 != (char *)0x0) {
              if ((iVar22 == 0) && (uVar15 < uVar10)) {
                sVar27 = (long)iVar26 - uVar15;
                if (cVar4 == '0') {
                  memset(param_1,0x30,sVar27);
                  param_1 = param_1 + sVar27;
                }
                else {
                  memset(param_1,0x20,sVar27);
                  param_1 = param_1 + sVar27;
                }
              }
              if (local_4b8._0_1_ == false) {
                if (cVar7 == '\0') {
                  memcpy(param_1,local_447,uVar15);
                }
                else {
                  FUN_00135900(param_1,local_447,uVar15);
                }
              }
              else {
                FUN_001358c7(param_1,local_447,uVar15);
              }
              param_1 = param_1 + uVar15;
            }
            lVar24 = lVar24 + uVar11;
          }
          goto LAB_001359f4;
        }
LAB_00136a29:
        if (bVar28 != false) {
          uVar12 = -uVar12;
        }
LAB_00136a33:
        pcVar17 = local_431;
        do {
          pcVar20 = pcVar17;
          if ((uVar18 & 1) != 0) {
            pcVar20 = pcVar17 + -1;
            pcVar17[-1] = ':';
          }
          uVar18 = (int)uVar18 >> 1;
          pcVar17 = pcVar20 + -1;
          uVar13 = uVar12 / 10;
          pcVar20[-1] = (char)uVar12 + (char)uVar13 * -10 + '0';
          bVar1 = 9 < uVar12;
          uVar12 = uVar13;
        } while ((bVar1) || (uVar18 != 0));
        if (iVar22 < iVar26) {
          iVar22 = iVar26;
        }
        if (bVar28 != false) {
          cVar5 = '-';
LAB_00136e58:
          if (cVar4 == '-') {
            iVar14 = 0;
            if (-1 < iVar26) {
              iVar14 = iVar26;
            }
            uVar11 = (ulong)iVar14;
            uVar15 = 1;
            if (uVar11 != 0) {
              uVar15 = uVar11;
            }
            if (uVar15 < (ulong)(param_2 - lVar24)) {
              if (param_1 != (char *)0x0) {
                if ((iVar22 == 0) && (1 < uVar11)) {
                  memset(param_1,0x20,(long)iVar26 - 1U);
                  param_1 = param_1 + ((long)iVar26 - 1U);
                }
                *param_1 = cVar5;
                param_1 = param_1 + 1;
              }
              lVar24 = lVar24 + uVar15;
              goto LAB_00136f44;
            }
          }
          else {
            bVar28 = cVar5 != '\0';
            iVar14 = (iVar22 - (iVar14 - (int)pcVar17)) - (uint)bVar28;
            if (0 < iVar14) goto LAB_00136e8a;
            iVar14 = 0;
            if (-1 < iVar26) {
              iVar14 = iVar26;
            }
            uVar11 = (ulong)iVar14;
            uVar15 = 1;
            if (uVar11 != 0) {
              uVar15 = uVar11;
            }
            if (uVar15 < (ulong)(param_2 - lVar24)) {
              if (param_1 != (char *)0x0) {
                if ((iVar22 == 0) && (1 < uVar11)) {
                  sVar27 = (long)iVar26 - 1;
                  if (cVar4 == '0') {
                    memset(param_1,0x30,sVar27);
                    param_1 = param_1 + sVar27;
                  }
                  else {
                    memset(param_1,0x20,sVar27);
                    param_1 = param_1 + sVar27;
                  }
                }
                *param_1 = cVar5;
                param_1 = param_1 + 1;
              }
              lVar24 = lVar24 + uVar15;
              goto LAB_00136f44;
            }
          }
          goto LAB_00136dd9;
        }
        cVar5 = '+';
        if (bVar2) goto LAB_00136e58;
LAB_0013605d:
        if ((cVar4 == '-') || (iVar14 = iVar22 - (iVar14 - (int)pcVar17), iVar14 < 1))
        goto LAB_00136f44;
        cVar5 = '\0';
        bVar28 = false;
LAB_00136e8a:
        if (cVar4 == '_') {
          uVar15 = (ulong)iVar14;
          if (uVar15 < (ulong)(param_2 - lVar24)) {
            if (param_1 != (char *)0x0) {
              memset(param_1,0x20,uVar15);
              param_1 = param_1 + uVar15;
            }
            lVar24 = lVar24 + uVar15;
            iVar8 = iVar26 - iVar14;
            bVar2 = iVar14 < iVar26;
            iVar26 = 0;
            if (bVar2) {
              iVar26 = iVar8;
            }
            if (bVar28) {
              iVar14 = 0;
              if (-1 < iVar26) {
                iVar14 = iVar26;
              }
              uVar11 = (ulong)iVar14;
              uVar15 = 1;
              if (uVar11 != 0) {
                uVar15 = uVar11;
              }
              if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;
              if (param_1 != (char *)0x0) {
                if ((iVar22 == 0) && (1 < uVar11)) {
                  memset(param_1,0x20,(long)iVar26 - 1U);
                  param_1 = param_1 + ((long)iVar26 - 1U);
                }
                *param_1 = cVar5;
                param_1 = param_1 + 1;
              }
              lVar24 = lVar24 + uVar15;
            }
            goto LAB_00136f44;
          }
        }
        else if ((ulong)(long)iVar22 < (ulong)(param_2 - lVar24)) {
          if (bVar28) {
            iVar8 = 0;
            if (-1 < iVar26) {
              iVar8 = iVar26;
            }
            uVar11 = (ulong)iVar8;
            uVar15 = 1;
            if (uVar11 != 0) {
              uVar15 = uVar11;
            }
            if ((ulong)(param_2 - lVar24) <= uVar15) goto LAB_00136dd9;
            if (param_1 != (char *)0x0) {
              if ((iVar22 == 0) && (1 < uVar11)) {
                sVar27 = (long)iVar26 - 1;
                if (cVar4 == '0') {
                  memset(param_1,0x30,sVar27);
                  param_1 = param_1 + sVar27;
                }
                else {
                  memset(param_1,0x20,sVar27);
                  param_1 = param_1 + sVar27;
                }
              }
              *param_1 = cVar5;
              param_1 = param_1 + 1;
            }
            lVar24 = lVar24 + uVar15;
          }
          if (param_1 != (char *)0x0) {
            memset(param_1,0x30,(long)iVar14);
            param_1 = param_1 + iVar14;
          }
          lVar24 = lVar24 + iVar14;
          iVar26 = 0;
LAB_00136f44:
          uVar15 = (long)local_431 - (long)pcVar17;
          iVar14 = 0;
          if (-1 < iVar26) {
            iVar14 = iVar26;
          }
          uVar10 = (ulong)iVar14;
          uVar11 = uVar10;
          if (uVar10 <= uVar15) {
            uVar11 = uVar15;
          }
          if (uVar11 < (ulong)(param_2 - lVar24)) {
            if (param_1 != (char *)0x0) {
              if ((iVar22 == 0) && (uVar15 < uVar10)) {
                sVar27 = (long)iVar26 - uVar15;
                if (cVar4 == '0') {
                  memset(param_1,0x30,sVar27);
                  param_1 = param_1 + sVar27;
                }
                else {
                  memset(param_1,0x20,sVar27);
                  param_1 = param_1 + sVar27;
                }
              }
              if (cVar7 == '\0') {
                memcpy(param_1,pcVar17,uVar15);
              }
              else {
                FUN_00135900(param_1,pcVar17,uVar15);
              }
              param_1 = param_1 + uVar15;
            }
            lVar24 = lVar24 + uVar11;
            goto LAB_001359f4;
          }
        }
        goto LAB_00136dd9;
      case 'z':
        lVar23 = 0;
        pcVar17 = param_3;
LAB_00136bae:
        param_3 = pcVar17;
        if (param_4->tm_isdst < 0) goto LAB_001359f4;
        bVar28 = true;
        iVar22 = (int)param_4->tm_gmtoff;
        if ((-1 < iVar22) && (bVar28 = false, iVar22 == 0)) {
          bVar28 = *__src == '-';
        }
        uVar12 = iVar22 / 0xe10;
        iVar8 = (iVar22 / 0x3c) % 0x3c;
        if (lVar23 == 1) {
LAB_00136c74:
          uVar12 = uVar12 * 100 + iVar8;
          uVar18 = 4;
          bVar2 = true;
          iVar22 = 6;
        }
        else if (lVar23 == 0) {
          uVar12 = uVar12 * 100 + iVar8;
          uVar18 = 0;
          bVar2 = true;
          iVar22 = 5;
        }
        else {
          if (lVar23 != 2) {
            local_4b8 = param_3;
            if (lVar23 != 3) goto LAB_00136cd6;
            if (iVar22 % 0x3c == 0) {
              if (iVar8 != 0) goto LAB_00136c74;
              bVar2 = true;
              iVar22 = 3;
              uVar18 = 0;
              goto LAB_00135edf;
            }
          }
          uVar12 = uVar12 * 10000 + iVar8 * 100 + iVar22 % 0x3c;
          uVar18 = 0x14;
          bVar2 = true;
          iVar22 = 9;
        }
        goto LAB_00135edf;
      }
      pcVar20 = local_4b8 + -1;
      do {
        pcVar17 = pcVar20;
        iVar14 = ((int)(local_4b8 + -1) + 2) - (int)pcVar17;
        pcVar20 = pcVar17 + -1;
        param_3 = local_4b8;
      } while (*pcVar17 != '%');
LAB_00136d21:
      local_4b8 = pcVar17;
      uVar15 = (ulong)iVar14;
      iVar14 = 0;
      if (-1 < iVar26) {
        iVar14 = iVar26;
      }
      uVar10 = (ulong)iVar14;
      uVar11 = uVar10;
      if (uVar10 <= uVar15) {
        uVar11 = uVar15;
      }
      if ((ulong)(param_2 - lVar24) <= uVar11) {
LAB_00136dd9:
        lVar24 = 0;
        goto LAB_00136ddf;
      }
      if (param_1 != (char *)0x0) {
        if (uVar15 < uVar10) {
          sVar27 = (long)iVar26 - uVar15;
          if (cVar4 == '0') {
            memset(param_1,0x30,sVar27);
            param_1 = param_1 + sVar27;
          }
          else {
            memset(param_1,0x20,sVar27);
            param_1 = param_1 + sVar27;
          }
        }
        if (cVar7 == '\0') {
          memcpy(param_1,local_4b8,uVar15);
        }
        else {
          FUN_00135900(param_1,local_4b8,uVar15);
        }
        param_1 = param_1 + uVar15;
      }
      lVar24 = lVar24 + uVar11;
LAB_001359f4:
      cVar5 = param_3[1];
      param_3 = param_3 + 1;
    } while (cVar5 != '\0');
  }
  if ((param_1 != (char *)0x0) && (param_2 != 0)) {
    *param_1 = '\0';
  }
LAB_00136ddf:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return lVar24;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

