
int der_encode_ia5_string(uchar *in,ulong inlen,uchar *out,ulong *outlen)

{
  ulong uVar1;
  ushort uVar2;
  int iVar3;
  int iVar4;
  uchar *puVar5;
  long lVar6;
  uint uVar7;
  ulong uVar8;
  ulong uVar9;
  long in_FS_OFFSET;
  ulong len;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (in == (uchar *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);
  }
  if (out == (uchar *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);
  }
  if (outlen == (ulong *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);
  }
  iVar3 = der_length_ia5_string(in,inlen,&len);
  if (iVar3 != 0) goto LAB_0017063a;
  if (*outlen < len) {
    *outlen = len;
    iVar3 = 6;
    goto LAB_0017063a;
  }
  *out = '\x16';
  if (inlen < 0x80) {
    out[1] = (uchar)inlen;
    lVar6 = 2;
    uVar8 = 2;
    if (inlen != 0) goto LAB_001704af;
  }
  else {
    if (inlen < 0x100) {
      out[1] = 0x81;
      lVar6 = 3;
      out[2] = (uchar)inlen;
    }
    else {
      uVar2 = (ushort)inlen;
      if (inlen < 0x10000) {
        out[1] = 0x82;
        lVar6 = 4;
        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;
      }
      else {
        if (0xffffff < inlen) {
          iVar3 = 0x10;
          goto LAB_0017063a;
        }
        out[1] = 0x83;
        lVar6 = 5;
        out[2] = (uchar)(inlen >> 0x10);
        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;
      }
    }
LAB_001704af:
    uVar1 = lVar6 + 1;
    puVar5 = out + lVar6;
    uVar7 = (int)inlen - 1U & 7;
    iVar4 = der_ia5_char_encode((uint)*in);
    *puVar5 = (uchar)iVar4;
    uVar9 = 1;
    uVar8 = uVar1;
    if (1 < inlen) {
      if (uVar7 != 0) {
        if (uVar7 != 1) {
          if (uVar7 != 2) {
            if (uVar7 != 3) {
              if (uVar7 != 4) {
                if (uVar7 != 5) {
                  if (uVar7 != 6) {
                    uVar9 = 2;
                    iVar4 = der_ia5_char_encode((uint)in[1]);
                    puVar5[1] = (uchar)iVar4;
                  }
                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);
                  puVar5[uVar9] = (uchar)iVar4;
                  uVar9 = uVar9 + 1;
                }
                iVar4 = der_ia5_char_encode((uint)in[uVar9]);
                puVar5[uVar9] = (uchar)iVar4;
                uVar9 = uVar9 + 1;
              }
              iVar4 = der_ia5_char_encode((uint)in[uVar9]);
              puVar5[uVar9] = (uchar)iVar4;
              uVar9 = uVar9 + 1;
            }
            iVar4 = der_ia5_char_encode((uint)in[uVar9]);
            puVar5[uVar9] = (uchar)iVar4;
            uVar9 = uVar9 + 1;
          }
          iVar4 = der_ia5_char_encode((uint)in[uVar9]);
          puVar5[uVar9] = (uchar)iVar4;
          uVar9 = uVar9 + 1;
        }
        iVar4 = der_ia5_char_encode((uint)in[uVar9]);
        puVar5[uVar9] = (uchar)iVar4;
        uVar8 = uVar1 + uVar9;
        uVar9 = uVar9 + 1;
        if (inlen <= uVar9) goto LAB_00170636;
      }
      do {
        iVar4 = der_ia5_char_encode((uint)in[uVar9]);
        puVar5[uVar9] = (uchar)iVar4;
        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);
        puVar5[uVar9 + 1] = (uchar)iVar4;
        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);
        puVar5[uVar9 + 2] = (uchar)iVar4;
        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);
        puVar5[uVar9 + 3] = (uchar)iVar4;
        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);
        puVar5[uVar9 + 4] = (uchar)iVar4;
        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);
        puVar5[uVar9 + 5] = (uchar)iVar4;
        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);
        puVar5[uVar9 + 6] = (uchar)iVar4;
        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);
        uVar8 = uVar9 + 7 + uVar1;
        puVar5[uVar9 + 7] = (uchar)iVar4;
        uVar9 = uVar9 + 8;
      } while (uVar9 < inlen);
    }
  }
LAB_00170636:
  *outlen = uVar8;
LAB_0017063a:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



int der_encode_ia5_string(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)

{
  ulong uVar1;
  ushort uVar2;
  undefined1 uVar3;
  int iVar4;
  long lVar5;
  uint uVar6;
  ulong uVar7;
  ulong uVar8;
  long in_FS_OFFSET;
  ulong local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == (undefined1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);
  }
  if (param_3 == (undefined1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);
  }
  if (param_4 == (ulong *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);
  }
  iVar4 = der_length_ia5_string(param_1,param_2,&local_48);
  if (iVar4 != 0) goto LAB_0017063a;
  if (*param_4 < local_48) {
    *param_4 = local_48;
    iVar4 = 6;
    goto LAB_0017063a;
  }
  *param_3 = 0x16;
  if (param_2 < 0x80) {
    param_3[1] = (char)param_2;
    lVar5 = 2;
    uVar7 = 2;
    if (param_2 != 0) goto LAB_001704af;
  }
  else {
    if (param_2 < 0x100) {
      param_3[1] = 0x81;
      lVar5 = 3;
      param_3[2] = (char)param_2;
    }
    else {
      uVar2 = (ushort)param_2;
      if (param_2 < 0x10000) {
        param_3[1] = 0x82;
        lVar5 = 4;
        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;
      }
      else {
        if (0xffffff < param_2) {
          iVar4 = 0x10;
          goto LAB_0017063a;
        }
        param_3[1] = 0x83;
        lVar5 = 5;
        param_3[2] = (char)(param_2 >> 0x10);
        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;
      }
    }
LAB_001704af:
    uVar1 = lVar5 + 1;
    param_3 = param_3 + lVar5;
    uVar6 = (int)param_2 - 1U & 7;
    uVar3 = der_ia5_char_encode(*param_1);
    *param_3 = uVar3;
    uVar8 = 1;
    uVar7 = uVar1;
    if (1 < param_2) {
      if (uVar6 != 0) {
        if (uVar6 != 1) {
          if (uVar6 != 2) {
            if (uVar6 != 3) {
              if (uVar6 != 4) {
                if (uVar6 != 5) {
                  if (uVar6 != 6) {
                    uVar8 = 2;
                    uVar3 = der_ia5_char_encode(param_1[1]);
                    param_3[1] = uVar3;
                  }
                  uVar3 = der_ia5_char_encode(param_1[uVar8]);
                  param_3[uVar8] = uVar3;
                  uVar8 = uVar8 + 1;
                }
                uVar3 = der_ia5_char_encode(param_1[uVar8]);
                param_3[uVar8] = uVar3;
                uVar8 = uVar8 + 1;
              }
              uVar3 = der_ia5_char_encode(param_1[uVar8]);
              param_3[uVar8] = uVar3;
              uVar8 = uVar8 + 1;
            }
            uVar3 = der_ia5_char_encode(param_1[uVar8]);
            param_3[uVar8] = uVar3;
            uVar8 = uVar8 + 1;
          }
          uVar3 = der_ia5_char_encode(param_1[uVar8]);
          param_3[uVar8] = uVar3;
          uVar8 = uVar8 + 1;
        }
        uVar3 = der_ia5_char_encode(param_1[uVar8]);
        param_3[uVar8] = uVar3;
        uVar7 = uVar1 + uVar8;
        uVar8 = uVar8 + 1;
        if (param_2 <= uVar8) goto LAB_00170636;
      }
      do {
        uVar3 = der_ia5_char_encode(param_1[uVar8]);
        param_3[uVar8] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);
        param_3[uVar8 + 1] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);
        param_3[uVar8 + 2] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);
        param_3[uVar8 + 3] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);
        param_3[uVar8 + 4] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);
        param_3[uVar8 + 5] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);
        param_3[uVar8 + 6] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);
        uVar7 = uVar8 + 7 + uVar1;
        param_3[uVar8 + 7] = uVar3;
        uVar8 = uVar8 + 8;
      } while (uVar8 < param_2);
    }
  }
LAB_00170636:
  *param_4 = uVar7;
LAB_0017063a:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x28
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x18],RAX
XOR EAX,EAX
TEST RDI,RDI
JZ 0x0017073a
MOV RBP,RDX
TEST RDX,RDX
JZ 0x0017070a
MOV R13,RCX
TEST RCX,RCX
JZ 0x00170722
LEA RDX,[RSP + 0x10]
MOV RBX,RDI
MOV R12,RSI
CALL 0x00114170
MOV R14D,EAX
TEST EAX,EAX
JNZ 0x0017063a
MOV RAX,qword ptr [RSP + 0x10]
CMP qword ptr [R13],RAX
JC 0x001706a8
MOV byte ptr [RBP],0x16
CMP R12,0x7f
JA 0x00170660
MOV byte ptr [RBP + 0x1],R12B
MOV EDI,0x2
MOV R10D,0x2
TEST R12,R12
JZ 0x00170636
LEA R15,[RDI + 0x1]
ADD RBP,RDI
LEA R8,[R12 + -0x1]
MOVZX EDI,byte ptr [RBX]
AND R8D,0x7
MOV qword ptr [RSP],R15
MOV qword ptr [RSP + 0x8],R8
CALL 0x00113150
CMP R12,0x1
MOV R10,R15
MOV R9,qword ptr [RSP + 0x8]
MOV byte ptr [RBP],AL
MOV R15D,0x1
JBE 0x00170636
TEST R9,R9
JZ 0x001705a2
CMP R9,0x1
JZ 0x0017057f
CMP R9,0x2
JZ 0x0017056c
CMP R9,0x3
JZ 0x00170559
CMP R9,0x4
JZ 0x00170546
CMP R9,0x5
JZ 0x00170533
CMP R9,0x6
JNZ 0x001706e8
MOVZX EDI,byte ptr [RBX + R15*0x1]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1],AL
ADD R15,0x1
MOVZX EDI,byte ptr [RBX + R15*0x1]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1],AL
ADD R15,0x1
MOVZX EDI,byte ptr [RBX + R15*0x1]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1],AL
ADD R15,0x1
MOVZX EDI,byte ptr [RBX + R15*0x1]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1],AL
ADD R15,0x1
MOVZX EDI,byte ptr [RBX + R15*0x1]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1],AL
ADD R15,0x1
MOVZX EDI,byte ptr [RBX + R15*0x1]
CALL 0x00113150
MOV R10,qword ptr [RSP]
MOV byte ptr [RBP + R15*0x1],AL
ADD R10,R15
ADD R15,0x1
CMP R12,R15
JBE 0x00170636
MOVZX EDI,byte ptr [RBX + R15*0x1]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1],AL
MOVZX EDI,byte ptr [RBX + R15*0x1 + 0x1]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1 + 0x1],AL
MOVZX EDI,byte ptr [RBX + R15*0x1 + 0x2]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1 + 0x2],AL
MOVZX EDI,byte ptr [RBX + R15*0x1 + 0x3]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1 + 0x3],AL
MOVZX EDI,byte ptr [RBX + R15*0x1 + 0x4]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1 + 0x4],AL
MOVZX EDI,byte ptr [RBX + R15*0x1 + 0x5]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1 + 0x5],AL
MOVZX EDI,byte ptr [RBX + R15*0x1 + 0x6]
CALL 0x00113150
MOV byte ptr [RBP + R15*0x1 + 0x6],AL
MOVZX EDI,byte ptr [RBX + R15*0x1 + 0x7]
CALL 0x00113150
LEA R10,[R15 + 0x7]
ADD R10,qword ptr [RSP]
MOV byte ptr [RBP + R15*0x1 + 0x7],AL
ADD R15,0x8
CMP R12,R15
JA 0x001705a2
MOV qword ptr [R13],R10
MOV RDX,qword ptr [RSP + 0x18]
XOR RDX,qword ptr FS:[0x28]
MOV EAX,R14D
JNZ 0x00170752
ADD RSP,0x28
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
CMP R12,0xff
JBE 0x00170690
CMP R12,0xffff
JA 0x001706b8
MOV ESI,R12D
MOV byte ptr [RBP + 0x1],0x82
MOV EDI,0x4
ROL SI,0x8
MOV word ptr [RBP + 0x2],SI
JMP 0x001704af
MOV byte ptr [RBP + 0x1],0x81
MOV EDI,0x3
MOV byte ptr [RBP + 0x2],R12B
JMP 0x001704af
MOV qword ptr [R13],RAX
MOV R14D,0x6
JMP 0x0017063a
CMP R12,0xffffff
JA 0x001706ff
MOV RDX,R12
MOV ECX,R12D
MOV byte ptr [RBP + 0x1],0x83
MOV EDI,0x5
SHR RDX,0x10
ROL CX,0x8
MOV byte ptr [RBP + 0x2],DL
MOV word ptr [RBP + 0x3],CX
JMP 0x001704af
MOVZX EDI,byte ptr [RBX + 0x1]
MOV R15D,0x2
CALL 0x00113150
MOV byte ptr [RBP + 0x1],AL
JMP 0x00170520
MOV R14D,0x10
JMP 0x0017063a
MOV EDX,0x21
LEA RSI,[0x1c2f50]
LEA RDI,[0x1a87a1]
CALL 0x00114270
MOV EDX,0x22
LEA RSI,[0x1c2f50]
LEA RDI,[0x1ae804]
CALL 0x00114270
MOV EDX,0x20
LEA RSI,[0x1c2f50]
LEA RDI,[0x1a8790]
CALL 0x00114270
CALL 0x00113880
(translation_unit "int der_encode_ia5_string(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)\n\n{\n  ulong uVar1;\n  ushort uVar2;\n  undefined1 uVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  ulong uVar8;\n  long in_FS_OFFSET;\n  ulong local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }\n  if (param_3 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }\n  iVar4 = der_length_ia5_string(param_1,param_2,&local_48);\n  if (iVar4 != 0) goto LAB_0017063a;\n  if (*param_4 < local_48) {\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }\n  *param_3 = 0x16;\n  if (param_2 < 0x80) {\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }\n  else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }\nLAB_00170636:\n  *param_4 = uVar7;\nLAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int der_encode_ia5_string(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)\n\n{\n  ulong uVar1;\n  ushort uVar2;\n  undefined1 uVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  ulong uVar8;\n  long in_FS_OFFSET;\n  ulong local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }\n  if (param_3 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }\n  iVar4 = der_length_ia5_string(param_1,param_2,&local_48);\n  if (iVar4 != 0) goto LAB_0017063a;\n  if (*param_4 < local_48) {\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }\n  *param_3 = 0x16;\n  if (param_2 < 0x80) {\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }\n  else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }\nLAB_00170636:\n  *param_4 = uVar7;\nLAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "der_encode_ia5_string(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)" identifier (parameter_list "(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "ulong *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  ushort uVar2;\n  undefined1 uVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  ulong uVar8;\n  long in_FS_OFFSET;\n  ulong local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }\n  if (param_3 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }\n  iVar4 = der_length_ia5_string(param_1,param_2,&local_48);\n  if (iVar4 != 0) goto LAB_0017063a;\n  if (*param_4 < local_48) {\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }\n  *param_3 = 0x16;\n  if (param_2 < 0x80) {\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }\n  else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }\nLAB_00170636:\n  *param_4 = uVar7;\nLAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong local_48;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (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) ))))) ;) (if_statement "if (param_1 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }" if (parenthesized_expression "(param_1 == (undefined1 *)0x0)" ( (binary_expression "param_1 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }" { comment (expression_statement "crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);" (call_expression "crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20)" identifier (argument_list "("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20)" ( (string_literal ""in != NULL"" " string_content ") , (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 == (undefined1 *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }" if (parenthesized_expression "(param_3 == (undefined1 *)0x0)" ( (binary_expression "param_3 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }" { comment (expression_statement "crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);" (call_expression "crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21)" identifier (argument_list "("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_4 == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }" if (parenthesized_expression "(param_4 == (ulong *)0x0)" ( (binary_expression "param_4 == (ulong *)0x0" identifier == (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }" { comment (expression_statement "crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);" (call_expression "crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22)" identifier (argument_list "("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22)" ( (string_literal ""outlen != NULL"" " string_content ") , (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar4 = der_length_ia5_string(param_1,param_2,&local_48);" (assignment_expression "iVar4 = der_length_ia5_string(param_1,param_2,&local_48)" identifier = (call_expression "der_length_ia5_string(param_1,param_2,&local_48)" identifier (argument_list "(param_1,param_2,&local_48)" ( identifier , identifier , (pointer_expression "&local_48" & identifier) )))) ;) (if_statement "if (iVar4 != 0) goto LAB_0017063a;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0017063a;" goto statement_identifier ;)) (if_statement "if (*param_4 < local_48) {\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }" if (parenthesized_expression "(*param_4 < local_48)" ( (binary_expression "*param_4 < local_48" (pointer_expression "*param_4" * identifier) < identifier) )) (compound_statement "{\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }" { (expression_statement "*param_4 = local_48;" (assignment_expression "*param_4 = local_48" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "iVar4 = 6;" (assignment_expression "iVar4 = 6" identifier = number_literal) ;) (goto_statement "goto LAB_0017063a;" goto statement_identifier ;) })) (expression_statement "*param_3 = 0x16;" (assignment_expression "*param_3 = 0x16" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (param_2 < 0x80) {\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }\n  else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }" if (parenthesized_expression "(param_2 < 0x80)" ( (binary_expression "param_2 < 0x80" identifier < number_literal) )) (compound_statement "{\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }" { (expression_statement "param_3[1] = (char)param_2;" (assignment_expression "param_3[1] = (char)param_2" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "lVar5 = 2;" (assignment_expression "lVar5 = 2" identifier = number_literal) ;) (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" identifier = number_literal) ;) (if_statement "if (param_2 != 0) goto LAB_001704af;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001704af;" goto statement_identifier ;)) }) (else_clause "else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }" else (compound_statement "{\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }" { (if_statement "if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" if (parenthesized_expression "(param_2 < 0x100)" ( (binary_expression "param_2 < 0x100" identifier < number_literal) )) (compound_statement "{\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }" { (expression_statement "param_3[1] = 0x81;" (assignment_expression "param_3[1] = 0x81" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar5 = 3;" (assignment_expression "lVar5 = 3" identifier = number_literal) ;) (expression_statement "param_3[2] = (char)param_2;" (assignment_expression "param_3[2] = (char)param_2" (subscript_expression "param_3[2]" identifier [ number_literal ]) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" else (compound_statement "{\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" { (expression_statement "uVar2 = (ushort)param_2;" (assignment_expression "uVar2 = (ushort)param_2" identifier = (cast_expression "(ushort)param_2" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (if_statement "if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" if (parenthesized_expression "(param_2 < 0x10000)" ( (binary_expression "param_2 < 0x10000" identifier < number_literal) )) (compound_statement "{\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }" { (expression_statement "param_3[1] = 0x82;" (assignment_expression "param_3[1] = 0x82" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar5 = 4;" (assignment_expression "lVar5 = 4" identifier = number_literal) ;) (expression_statement "*(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;" (assignment_expression "*(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8" (pointer_expression "*(ushort *)(param_3 + 2)" * (cast_expression "(ushort *)(param_3 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 2)" ( (binary_expression "param_3 + 2" identifier + number_literal) )))) = (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" identifier << number_literal) | (binary_expression "uVar2 >> 8" identifier >> number_literal))) ;) }) (else_clause "else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" else (compound_statement "{\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" { (if_statement "if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }" if (parenthesized_expression "(0xffffff < param_2)" ( (binary_expression "0xffffff < param_2" number_literal < identifier) )) (compound_statement "{\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }" { (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" identifier = number_literal) ;) (goto_statement "goto LAB_0017063a;" goto statement_identifier ;) })) (expression_statement "param_3[1] = 0x83;" (assignment_expression "param_3[1] = 0x83" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar5 = 5;" (assignment_expression "lVar5 = 5" identifier = number_literal) ;) (expression_statement "param_3[2] = (char)(param_2 >> 0x10);" (assignment_expression "param_3[2] = (char)(param_2 >> 0x10)" (subscript_expression "param_3[2]" identifier [ number_literal ]) = (cast_expression "(char)(param_2 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_2 >> 0x10)" ( (binary_expression "param_2 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "*(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;" (assignment_expression "*(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8" (pointer_expression "*(ushort *)(param_3 + 3)" * (cast_expression "(ushort *)(param_3 + 3)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 3)" ( (binary_expression "param_3 + 3" identifier + number_literal) )))) = (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" identifier << number_literal) | (binary_expression "uVar2 >> 8" identifier >> number_literal))) ;) }))) }))) (labeled_statement "LAB_001704af:\n    uVar1 = lVar5 + 1;" statement_identifier : (expression_statement "uVar1 = lVar5 + 1;" (assignment_expression "uVar1 = lVar5 + 1" identifier = (binary_expression "lVar5 + 1" identifier + number_literal)) ;)) (expression_statement "param_3 = param_3 + lVar5;" (assignment_expression "param_3 = param_3 + lVar5" identifier = (binary_expression "param_3 + lVar5" identifier + identifier)) ;) (expression_statement "uVar6 = (int)param_2 - 1U & 7;" (assignment_expression "uVar6 = (int)param_2 - 1U & 7" identifier = (binary_expression "(int)param_2 - 1U & 7" (binary_expression "(int)param_2 - 1U" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal)) ;) (expression_statement "uVar3 = der_ia5_char_encode(*param_1);" (assignment_expression "uVar3 = der_ia5_char_encode(*param_1)" identifier = (call_expression "der_ia5_char_encode(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" identifier = number_literal) ;) (expression_statement "uVar7 = uVar1;" (assignment_expression "uVar7 = uVar1" identifier = identifier) ;) (if_statement "if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }" if (parenthesized_expression "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) )) (compound_statement "{\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }" { (if_statement "if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }" { (if_statement "if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }" if (parenthesized_expression "(uVar6 != 1)" ( (binary_expression "uVar6 != 1" identifier != number_literal) )) (compound_statement "{\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }" { (if_statement "if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }" if (parenthesized_expression "(uVar6 != 2)" ( (binary_expression "uVar6 != 2" identifier != number_literal) )) (compound_statement "{\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }" { (if_statement "if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }" if (parenthesized_expression "(uVar6 != 3)" ( (binary_expression "uVar6 != 3" identifier != number_literal) )) (compound_statement "{\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }" { (if_statement "if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }" if (parenthesized_expression "(uVar6 != 4)" ( (binary_expression "uVar6 != 4" identifier != number_literal) )) (compound_statement "{\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }" { (if_statement "if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }" if (parenthesized_expression "(uVar6 != 5)" ( (binary_expression "uVar6 != 5" identifier != number_literal) )) (compound_statement "{\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }" { (if_statement "if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }" if (parenthesized_expression "(uVar6 != 6)" ( (binary_expression "uVar6 != 6" identifier != number_literal) )) (compound_statement "{\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }" { (expression_statement "uVar8 = 2;" (assignment_expression "uVar8 = 2" identifier = number_literal) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[1]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[1])" identifier = (call_expression "der_ia5_char_encode(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) )))) ;) (expression_statement "param_3[1] = uVar3;" (assignment_expression "param_3[1] = uVar3" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar7 = uVar1 + uVar8;" (assignment_expression "uVar7 = uVar1 + uVar8" identifier = (binary_expression "uVar1 + uVar8" identifier + identifier)) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if (param_2 <= uVar8) goto LAB_00170636;" if (parenthesized_expression "(param_2 <= uVar8)" ( (binary_expression "param_2 <= uVar8" identifier <= identifier) )) (goto_statement "goto LAB_00170636;" goto statement_identifier ;)) })) (do_statement "do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);" do (compound_statement "{\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      }" { (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 1])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 1])" identifier (argument_list "(param_1[uVar8 + 1])" ( (subscript_expression "param_1[uVar8 + 1]" identifier [ (binary_expression "uVar8 + 1" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 1] = uVar3;" (assignment_expression "param_3[uVar8 + 1] = uVar3" (subscript_expression "param_3[uVar8 + 1]" identifier [ (binary_expression "uVar8 + 1" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 2])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 2])" identifier (argument_list "(param_1[uVar8 + 2])" ( (subscript_expression "param_1[uVar8 + 2]" identifier [ (binary_expression "uVar8 + 2" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 2] = uVar3;" (assignment_expression "param_3[uVar8 + 2] = uVar3" (subscript_expression "param_3[uVar8 + 2]" identifier [ (binary_expression "uVar8 + 2" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 3])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 3])" identifier (argument_list "(param_1[uVar8 + 3])" ( (subscript_expression "param_1[uVar8 + 3]" identifier [ (binary_expression "uVar8 + 3" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 3] = uVar3;" (assignment_expression "param_3[uVar8 + 3] = uVar3" (subscript_expression "param_3[uVar8 + 3]" identifier [ (binary_expression "uVar8 + 3" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 4])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 4])" identifier (argument_list "(param_1[uVar8 + 4])" ( (subscript_expression "param_1[uVar8 + 4]" identifier [ (binary_expression "uVar8 + 4" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 4] = uVar3;" (assignment_expression "param_3[uVar8 + 4] = uVar3" (subscript_expression "param_3[uVar8 + 4]" identifier [ (binary_expression "uVar8 + 4" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 5])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 5])" identifier (argument_list "(param_1[uVar8 + 5])" ( (subscript_expression "param_1[uVar8 + 5]" identifier [ (binary_expression "uVar8 + 5" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 5] = uVar3;" (assignment_expression "param_3[uVar8 + 5] = uVar3" (subscript_expression "param_3[uVar8 + 5]" identifier [ (binary_expression "uVar8 + 5" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 6])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 6])" identifier (argument_list "(param_1[uVar8 + 6])" ( (subscript_expression "param_1[uVar8 + 6]" identifier [ (binary_expression "uVar8 + 6" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 6] = uVar3;" (assignment_expression "param_3[uVar8 + 6] = uVar3" (subscript_expression "param_3[uVar8 + 6]" identifier [ (binary_expression "uVar8 + 6" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 7])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 7])" identifier (argument_list "(param_1[uVar8 + 7])" ( (subscript_expression "param_1[uVar8 + 7]" identifier [ (binary_expression "uVar8 + 7" identifier + number_literal) ]) )))) ;) (expression_statement "uVar7 = uVar8 + 7 + uVar1;" (assignment_expression "uVar7 = uVar8 + 7 + uVar1" identifier = (binary_expression "uVar8 + 7 + uVar1" (binary_expression "uVar8 + 7" identifier + number_literal) + identifier)) ;) (expression_statement "param_3[uVar8 + 7] = uVar3;" (assignment_expression "param_3[uVar8 + 7] = uVar3" (subscript_expression "param_3[uVar8 + 7]" identifier [ (binary_expression "uVar8 + 7" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 8;" (assignment_expression "uVar8 = uVar8 + 8" identifier = (binary_expression "uVar8 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar8 < param_2)" ( (binary_expression "uVar8 < param_2" identifier < identifier) )) ;) })) }))) (labeled_statement "LAB_00170636:\n  *param_4 = uVar7;" statement_identifier : (expression_statement "*param_4 = uVar7;" (assignment_expression "*param_4 = uVar7" (pointer_expression "*param_4" * identifier) = identifier) ;)) (labeled_statement "LAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\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 iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int der_encode_ia5_string(uchar *in,ulong inlen,uchar *out,ulong *outlen)\n\n{\n  ulong uVar1;\n  ushort uVar2;\n  int iVar3;\n  int iVar4;\n  uchar *puVar5;\n  long lVar6;\n  uint uVar7;\n  ulong uVar8;\n  ulong uVar9;\n  long in_FS_OFFSET;\n  ulong len;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (in == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }\n  if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }\n  if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }\n  iVar3 = der_length_ia5_string(in,inlen,&len);\n  if (iVar3 != 0) goto LAB_0017063a;\n  if (*outlen < len) {\n    *outlen = len;\n    iVar3 = 6;\n    goto LAB_0017063a;\n  }\n  *out = '\x16';\n  if (inlen < 0x80) {\n    out[1] = (uchar)inlen;\n    lVar6 = 2;\n    uVar8 = 2;\n    if (inlen != 0) goto LAB_001704af;\n  }\n  else {\n    if (inlen < 0x100) {\n      out[1] = 0x81;\n      lVar6 = 3;\n      out[2] = (uchar)inlen;\n    }\n    else {\n      uVar2 = (ushort)inlen;\n      if (inlen < 0x10000) {\n        out[1] = 0x82;\n        lVar6 = 4;\n        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar6 + 1;\n    puVar5 = out + lVar6;\n    uVar7 = (int)inlen - 1U & 7;\n    iVar4 = der_ia5_char_encode((uint)*in);\n    *puVar5 = (uchar)iVar4;\n    uVar9 = 1;\n    uVar8 = uVar1;\n    if (1 < inlen) {\n      if (uVar7 != 0) {\n        if (uVar7 != 1) {\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        uVar8 = uVar1 + uVar9;\n        uVar9 = uVar9 + 1;\n        if (inlen <= uVar9) goto LAB_00170636;\n      }\n      do {\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);\n        puVar5[uVar9 + 1] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);\n        puVar5[uVar9 + 2] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);\n        puVar5[uVar9 + 3] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);\n        puVar5[uVar9 + 4] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);\n        puVar5[uVar9 + 5] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);\n        puVar5[uVar9 + 6] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);\n        uVar8 = uVar9 + 7 + uVar1;\n        puVar5[uVar9 + 7] = (uchar)iVar4;\n        uVar9 = uVar9 + 8;\n      } while (uVar9 < inlen);\n    }\n  }\nLAB_00170636:\n  *outlen = uVar8;\nLAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int der_encode_ia5_string(uchar *in,ulong inlen,uchar *out,ulong *outlen)\n\n{\n  ulong uVar1;\n  ushort uVar2;\n  int iVar3;\n  int iVar4;\n  uchar *puVar5;\n  long lVar6;\n  uint uVar7;\n  ulong uVar8;\n  ulong uVar9;\n  long in_FS_OFFSET;\n  ulong len;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (in == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }\n  if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }\n  if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }\n  iVar3 = der_length_ia5_string(in,inlen,&len);\n  if (iVar3 != 0) goto LAB_0017063a;\n  if (*outlen < len) {\n    *outlen = len;\n    iVar3 = 6;\n    goto LAB_0017063a;\n  }\n  *out = '\x16';\n  if (inlen < 0x80) {\n    out[1] = (uchar)inlen;\n    lVar6 = 2;\n    uVar8 = 2;\n    if (inlen != 0) goto LAB_001704af;\n  }\n  else {\n    if (inlen < 0x100) {\n      out[1] = 0x81;\n      lVar6 = 3;\n      out[2] = (uchar)inlen;\n    }\n    else {\n      uVar2 = (ushort)inlen;\n      if (inlen < 0x10000) {\n        out[1] = 0x82;\n        lVar6 = 4;\n        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar6 + 1;\n    puVar5 = out + lVar6;\n    uVar7 = (int)inlen - 1U & 7;\n    iVar4 = der_ia5_char_encode((uint)*in);\n    *puVar5 = (uchar)iVar4;\n    uVar9 = 1;\n    uVar8 = uVar1;\n    if (1 < inlen) {\n      if (uVar7 != 0) {\n        if (uVar7 != 1) {\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        uVar8 = uVar1 + uVar9;\n        uVar9 = uVar9 + 1;\n        if (inlen <= uVar9) goto LAB_00170636;\n      }\n      do {\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);\n        puVar5[uVar9 + 1] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);\n        puVar5[uVar9 + 2] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);\n        puVar5[uVar9 + 3] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);\n        puVar5[uVar9 + 4] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);\n        puVar5[uVar9 + 5] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);\n        puVar5[uVar9 + 6] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);\n        uVar8 = uVar9 + 7 + uVar1;\n        puVar5[uVar9 + 7] = (uchar)iVar4;\n        uVar9 = uVar9 + 8;\n      } while (uVar9 < inlen);\n    }\n  }\nLAB_00170636:\n  *outlen = uVar8;\nLAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "der_encode_ia5_string(uchar *in,ulong inlen,uchar *out,ulong *outlen)" identifier (parameter_list "(uchar *in,ulong inlen,uchar *out,ulong *outlen)" ( (parameter_declaration "uchar *in" type_identifier (pointer_declarator "*in" * identifier)) , (parameter_declaration "ulong inlen" type_identifier identifier) , (parameter_declaration "uchar *out" type_identifier (pointer_declarator "*out" * identifier)) , (parameter_declaration "ulong *outlen" type_identifier (pointer_declarator "*outlen" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  ushort uVar2;\n  int iVar3;\n  int iVar4;\n  uchar *puVar5;\n  long lVar6;\n  uint uVar7;\n  ulong uVar8;\n  ulong uVar9;\n  long in_FS_OFFSET;\n  ulong len;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (in == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }\n  if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }\n  if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }\n  iVar3 = der_length_ia5_string(in,inlen,&len);\n  if (iVar3 != 0) goto LAB_0017063a;\n  if (*outlen < len) {\n    *outlen = len;\n    iVar3 = 6;\n    goto LAB_0017063a;\n  }\n  *out = '\x16';\n  if (inlen < 0x80) {\n    out[1] = (uchar)inlen;\n    lVar6 = 2;\n    uVar8 = 2;\n    if (inlen != 0) goto LAB_001704af;\n  }\n  else {\n    if (inlen < 0x100) {\n      out[1] = 0x81;\n      lVar6 = 3;\n      out[2] = (uchar)inlen;\n    }\n    else {\n      uVar2 = (ushort)inlen;\n      if (inlen < 0x10000) {\n        out[1] = 0x82;\n        lVar6 = 4;\n        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar6 + 1;\n    puVar5 = out + lVar6;\n    uVar7 = (int)inlen - 1U & 7;\n    iVar4 = der_ia5_char_encode((uint)*in);\n    *puVar5 = (uchar)iVar4;\n    uVar9 = 1;\n    uVar8 = uVar1;\n    if (1 < inlen) {\n      if (uVar7 != 0) {\n        if (uVar7 != 1) {\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        uVar8 = uVar1 + uVar9;\n        uVar9 = uVar9 + 1;\n        if (inlen <= uVar9) goto LAB_00170636;\n      }\n      do {\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);\n        puVar5[uVar9 + 1] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);\n        puVar5[uVar9 + 2] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);\n        puVar5[uVar9 + 3] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);\n        puVar5[uVar9 + 4] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);\n        puVar5[uVar9 + 5] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);\n        puVar5[uVar9 + 6] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);\n        uVar8 = uVar9 + 7 + uVar1;\n        puVar5[uVar9 + 7] = (uchar)iVar4;\n        uVar9 = uVar9 + 8;\n      } while (uVar9 < inlen);\n    }\n  }\nLAB_00170636:\n  *outlen = uVar8;\nLAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uchar *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong len;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (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) ))))) ;) (if_statement "if (in == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }" if (parenthesized_expression "(in == (uchar *)0x0)" ( (binary_expression "in == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }" { comment (expression_statement "crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);" (call_expression "crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20)" identifier (argument_list "("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20)" ( (string_literal ""in != NULL"" " string_content ") , (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (out == (uchar *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }" if (parenthesized_expression "(out == (uchar *)0x0)" ( (binary_expression "out == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }" { comment (expression_statement "crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);" (call_expression "crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21)" identifier (argument_list "("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (outlen == (ulong *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }" if (parenthesized_expression "(outlen == (ulong *)0x0)" ( (binary_expression "outlen == (ulong *)0x0" identifier == (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }" { comment (expression_statement "crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);" (call_expression "crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22)" identifier (argument_list "("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22)" ( (string_literal ""outlen != NULL"" " string_content ") , (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar3 = der_length_ia5_string(in,inlen,&len);" (assignment_expression "iVar3 = der_length_ia5_string(in,inlen,&len)" identifier = (call_expression "der_length_ia5_string(in,inlen,&len)" identifier (argument_list "(in,inlen,&len)" ( identifier , identifier , (pointer_expression "&len" & identifier) )))) ;) (if_statement "if (iVar3 != 0) goto LAB_0017063a;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0017063a;" goto statement_identifier ;)) (if_statement "if (*outlen < len) {\n    *outlen = len;\n    iVar3 = 6;\n    goto LAB_0017063a;\n  }" if (parenthesized_expression "(*outlen < len)" ( (binary_expression "*outlen < len" (pointer_expression "*outlen" * identifier) < identifier) )) (compound_statement "{\n    *outlen = len;\n    iVar3 = 6;\n    goto LAB_0017063a;\n  }" { (expression_statement "*outlen = len;" (assignment_expression "*outlen = len" (pointer_expression "*outlen" * identifier) = identifier) ;) (expression_statement "iVar3 = 6;" (assignment_expression "iVar3 = 6" identifier = number_literal) ;) (goto_statement "goto LAB_0017063a;" goto statement_identifier ;) })) (expression_statement "*out = '\x16';" (assignment_expression "*out = '\x16'" (pointer_expression "*out" * identifier) = (char_literal "'\x16'" ' escape_sequence ')) ;) (if_statement "if (inlen < 0x80) {\n    out[1] = (uchar)inlen;\n    lVar6 = 2;\n    uVar8 = 2;\n    if (inlen != 0) goto LAB_001704af;\n  }\n  else {\n    if (inlen < 0x100) {\n      out[1] = 0x81;\n      lVar6 = 3;\n      out[2] = (uchar)inlen;\n    }\n    else {\n      uVar2 = (ushort)inlen;\n      if (inlen < 0x10000) {\n        out[1] = 0x82;\n        lVar6 = 4;\n        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar6 + 1;\n    puVar5 = out + lVar6;\n    uVar7 = (int)inlen - 1U & 7;\n    iVar4 = der_ia5_char_encode((uint)*in);\n    *puVar5 = (uchar)iVar4;\n    uVar9 = 1;\n    uVar8 = uVar1;\n    if (1 < inlen) {\n      if (uVar7 != 0) {\n        if (uVar7 != 1) {\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        uVar8 = uVar1 + uVar9;\n        uVar9 = uVar9 + 1;\n        if (inlen <= uVar9) goto LAB_00170636;\n      }\n      do {\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);\n        puVar5[uVar9 + 1] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);\n        puVar5[uVar9 + 2] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);\n        puVar5[uVar9 + 3] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);\n        puVar5[uVar9 + 4] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);\n        puVar5[uVar9 + 5] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);\n        puVar5[uVar9 + 6] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);\n        uVar8 = uVar9 + 7 + uVar1;\n        puVar5[uVar9 + 7] = (uchar)iVar4;\n        uVar9 = uVar9 + 8;\n      } while (uVar9 < inlen);\n    }\n  }" if (parenthesized_expression "(inlen < 0x80)" ( (binary_expression "inlen < 0x80" identifier < number_literal) )) (compound_statement "{\n    out[1] = (uchar)inlen;\n    lVar6 = 2;\n    uVar8 = 2;\n    if (inlen != 0) goto LAB_001704af;\n  }" { (expression_statement "out[1] = (uchar)inlen;" (assignment_expression "out[1] = (uchar)inlen" (subscript_expression "out[1]" identifier [ number_literal ]) = (cast_expression "(uchar)inlen" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "lVar6 = 2;" (assignment_expression "lVar6 = 2" identifier = number_literal) ;) (expression_statement "uVar8 = 2;" (assignment_expression "uVar8 = 2" identifier = number_literal) ;) (if_statement "if (inlen != 0) goto LAB_001704af;" if (parenthesized_expression "(inlen != 0)" ( (binary_expression "inlen != 0" identifier != number_literal) )) (goto_statement "goto LAB_001704af;" goto statement_identifier ;)) }) (else_clause "else {\n    if (inlen < 0x100) {\n      out[1] = 0x81;\n      lVar6 = 3;\n      out[2] = (uchar)inlen;\n    }\n    else {\n      uVar2 = (ushort)inlen;\n      if (inlen < 0x10000) {\n        out[1] = 0x82;\n        lVar6 = 4;\n        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar6 + 1;\n    puVar5 = out + lVar6;\n    uVar7 = (int)inlen - 1U & 7;\n    iVar4 = der_ia5_char_encode((uint)*in);\n    *puVar5 = (uchar)iVar4;\n    uVar9 = 1;\n    uVar8 = uVar1;\n    if (1 < inlen) {\n      if (uVar7 != 0) {\n        if (uVar7 != 1) {\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        uVar8 = uVar1 + uVar9;\n        uVar9 = uVar9 + 1;\n        if (inlen <= uVar9) goto LAB_00170636;\n      }\n      do {\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);\n        puVar5[uVar9 + 1] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);\n        puVar5[uVar9 + 2] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);\n        puVar5[uVar9 + 3] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);\n        puVar5[uVar9 + 4] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);\n        puVar5[uVar9 + 5] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);\n        puVar5[uVar9 + 6] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);\n        uVar8 = uVar9 + 7 + uVar1;\n        puVar5[uVar9 + 7] = (uchar)iVar4;\n        uVar9 = uVar9 + 8;\n      } while (uVar9 < inlen);\n    }\n  }" else (compound_statement "{\n    if (inlen < 0x100) {\n      out[1] = 0x81;\n      lVar6 = 3;\n      out[2] = (uchar)inlen;\n    }\n    else {\n      uVar2 = (ushort)inlen;\n      if (inlen < 0x10000) {\n        out[1] = 0x82;\n        lVar6 = 4;\n        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar6 + 1;\n    puVar5 = out + lVar6;\n    uVar7 = (int)inlen - 1U & 7;\n    iVar4 = der_ia5_char_encode((uint)*in);\n    *puVar5 = (uchar)iVar4;\n    uVar9 = 1;\n    uVar8 = uVar1;\n    if (1 < inlen) {\n      if (uVar7 != 0) {\n        if (uVar7 != 1) {\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        uVar8 = uVar1 + uVar9;\n        uVar9 = uVar9 + 1;\n        if (inlen <= uVar9) goto LAB_00170636;\n      }\n      do {\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);\n        puVar5[uVar9 + 1] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);\n        puVar5[uVar9 + 2] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);\n        puVar5[uVar9 + 3] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);\n        puVar5[uVar9 + 4] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);\n        puVar5[uVar9 + 5] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);\n        puVar5[uVar9 + 6] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);\n        uVar8 = uVar9 + 7 + uVar1;\n        puVar5[uVar9 + 7] = (uchar)iVar4;\n        uVar9 = uVar9 + 8;\n      } while (uVar9 < inlen);\n    }\n  }" { (if_statement "if (inlen < 0x100) {\n      out[1] = 0x81;\n      lVar6 = 3;\n      out[2] = (uchar)inlen;\n    }\n    else {\n      uVar2 = (ushort)inlen;\n      if (inlen < 0x10000) {\n        out[1] = 0x82;\n        lVar6 = 4;\n        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" if (parenthesized_expression "(inlen < 0x100)" ( (binary_expression "inlen < 0x100" identifier < number_literal) )) (compound_statement "{\n      out[1] = 0x81;\n      lVar6 = 3;\n      out[2] = (uchar)inlen;\n    }" { (expression_statement "out[1] = 0x81;" (assignment_expression "out[1] = 0x81" (subscript_expression "out[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar6 = 3;" (assignment_expression "lVar6 = 3" identifier = number_literal) ;) (expression_statement "out[2] = (uchar)inlen;" (assignment_expression "out[2] = (uchar)inlen" (subscript_expression "out[2]" identifier [ number_literal ]) = (cast_expression "(uchar)inlen" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) }) (else_clause "else {\n      uVar2 = (ushort)inlen;\n      if (inlen < 0x10000) {\n        out[1] = 0x82;\n        lVar6 = 4;\n        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" else (compound_statement "{\n      uVar2 = (ushort)inlen;\n      if (inlen < 0x10000) {\n        out[1] = 0x82;\n        lVar6 = 4;\n        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" { (expression_statement "uVar2 = (ushort)inlen;" (assignment_expression "uVar2 = (ushort)inlen" identifier = (cast_expression "(ushort)inlen" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (if_statement "if (inlen < 0x10000) {\n        out[1] = 0x82;\n        lVar6 = 4;\n        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" if (parenthesized_expression "(inlen < 0x10000)" ( (binary_expression "inlen < 0x10000" identifier < number_literal) )) (compound_statement "{\n        out[1] = 0x82;\n        lVar6 = 4;\n        *(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;\n      }" { (expression_statement "out[1] = 0x82;" (assignment_expression "out[1] = 0x82" (subscript_expression "out[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar6 = 4;" (assignment_expression "lVar6 = 4" identifier = number_literal) ;) (expression_statement "*(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8;" (assignment_expression "*(ushort *)(out + 2) = uVar2 << 8 | uVar2 >> 8" (pointer_expression "*(ushort *)(out + 2)" * (cast_expression "(ushort *)(out + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(out + 2)" ( (binary_expression "out + 2" identifier + number_literal) )))) = (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" identifier << number_literal) | (binary_expression "uVar2 >> 8" identifier >> number_literal))) ;) }) (else_clause "else {\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" else (compound_statement "{\n        if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }\n        out[1] = 0x83;\n        lVar6 = 5;\n        out[2] = (uchar)(inlen >> 0x10);\n        *(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" { (if_statement "if (0xffffff < inlen) {\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }" if (parenthesized_expression "(0xffffff < inlen)" ( (binary_expression "0xffffff < inlen" number_literal < identifier) )) (compound_statement "{\n          iVar3 = 0x10;\n          goto LAB_0017063a;\n        }" { (expression_statement "iVar3 = 0x10;" (assignment_expression "iVar3 = 0x10" identifier = number_literal) ;) (goto_statement "goto LAB_0017063a;" goto statement_identifier ;) })) (expression_statement "out[1] = 0x83;" (assignment_expression "out[1] = 0x83" (subscript_expression "out[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar6 = 5;" (assignment_expression "lVar6 = 5" identifier = number_literal) ;) (expression_statement "out[2] = (uchar)(inlen >> 0x10);" (assignment_expression "out[2] = (uchar)(inlen >> 0x10)" (subscript_expression "out[2]" identifier [ number_literal ]) = (call_expression "(uchar)(inlen >> 0x10)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(inlen >> 0x10)" ( (binary_expression "inlen >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "*(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8;" (assignment_expression "*(ushort *)(out + 3) = uVar2 << 8 | uVar2 >> 8" (pointer_expression "*(ushort *)(out + 3)" * (cast_expression "(ushort *)(out + 3)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(out + 3)" ( (binary_expression "out + 3" identifier + number_literal) )))) = (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" identifier << number_literal) | (binary_expression "uVar2 >> 8" identifier >> number_literal))) ;) }))) }))) (labeled_statement "LAB_001704af:\n    uVar1 = lVar6 + 1;" statement_identifier : (expression_statement "uVar1 = lVar6 + 1;" (assignment_expression "uVar1 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;)) (expression_statement "puVar5 = out + lVar6;" (assignment_expression "puVar5 = out + lVar6" identifier = (binary_expression "out + lVar6" identifier + identifier)) ;) (expression_statement "uVar7 = (int)inlen - 1U & 7;" (assignment_expression "uVar7 = (int)inlen - 1U & 7" identifier = (binary_expression "(int)inlen - 1U & 7" (binary_expression "(int)inlen - 1U" (cast_expression "(int)inlen" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal)) ;) (expression_statement "iVar4 = der_ia5_char_encode((uint)*in);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)*in)" identifier = (call_expression "der_ia5_char_encode((uint)*in)" identifier (argument_list "((uint)*in)" ( (binary_expression "(uint)*in" (parenthesized_expression "(uint)" ( identifier )) * identifier) )))) ;) (expression_statement "*puVar5 = (uchar)iVar4;" (assignment_expression "*puVar5 = (uchar)iVar4" (pointer_expression "*puVar5" * identifier) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "uVar9 = 1;" (assignment_expression "uVar9 = 1" identifier = number_literal) ;) (expression_statement "uVar8 = uVar1;" (assignment_expression "uVar8 = uVar1" identifier = identifier) ;) (if_statement "if (1 < inlen) {\n      if (uVar7 != 0) {\n        if (uVar7 != 1) {\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        uVar8 = uVar1 + uVar9;\n        uVar9 = uVar9 + 1;\n        if (inlen <= uVar9) goto LAB_00170636;\n      }\n      do {\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);\n        puVar5[uVar9 + 1] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);\n        puVar5[uVar9 + 2] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);\n        puVar5[uVar9 + 3] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);\n        puVar5[uVar9 + 4] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);\n        puVar5[uVar9 + 5] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);\n        puVar5[uVar9 + 6] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);\n        uVar8 = uVar9 + 7 + uVar1;\n        puVar5[uVar9 + 7] = (uchar)iVar4;\n        uVar9 = uVar9 + 8;\n      } while (uVar9 < inlen);\n    }" if (parenthesized_expression "(1 < inlen)" ( (binary_expression "1 < inlen" number_literal < identifier) )) (compound_statement "{\n      if (uVar7 != 0) {\n        if (uVar7 != 1) {\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        uVar8 = uVar1 + uVar9;\n        uVar9 = uVar9 + 1;\n        if (inlen <= uVar9) goto LAB_00170636;\n      }\n      do {\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);\n        puVar5[uVar9 + 1] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);\n        puVar5[uVar9 + 2] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);\n        puVar5[uVar9 + 3] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);\n        puVar5[uVar9 + 4] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);\n        puVar5[uVar9 + 5] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);\n        puVar5[uVar9 + 6] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);\n        uVar8 = uVar9 + 7 + uVar1;\n        puVar5[uVar9 + 7] = (uchar)iVar4;\n        uVar9 = uVar9 + 8;\n      } while (uVar9 < inlen);\n    }" { (if_statement "if (uVar7 != 0) {\n        if (uVar7 != 1) {\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        uVar8 = uVar1 + uVar9;\n        uVar9 = uVar9 + 1;\n        if (inlen <= uVar9) goto LAB_00170636;\n      }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        if (uVar7 != 1) {\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        uVar8 = uVar1 + uVar9;\n        uVar9 = uVar9 + 1;\n        if (inlen <= uVar9) goto LAB_00170636;\n      }" { (if_statement "if (uVar7 != 1) {\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }" if (parenthesized_expression "(uVar7 != 1)" ( (binary_expression "uVar7 != 1" identifier != number_literal) )) (compound_statement "{\n          if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }\n          iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n          puVar5[uVar9] = (uchar)iVar4;\n          uVar9 = uVar9 + 1;\n        }" { (if_statement "if (uVar7 != 2) {\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }" if (parenthesized_expression "(uVar7 != 2)" ( (binary_expression "uVar7 != 2" identifier != number_literal) )) (compound_statement "{\n            if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }\n            iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n            puVar5[uVar9] = (uchar)iVar4;\n            uVar9 = uVar9 + 1;\n          }" { (if_statement "if (uVar7 != 3) {\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }" if (parenthesized_expression "(uVar7 != 3)" ( (binary_expression "uVar7 != 3" identifier != number_literal) )) (compound_statement "{\n              if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }\n              iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n              puVar5[uVar9] = (uchar)iVar4;\n              uVar9 = uVar9 + 1;\n            }" { (if_statement "if (uVar7 != 4) {\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }" if (parenthesized_expression "(uVar7 != 4)" ( (binary_expression "uVar7 != 4" identifier != number_literal) )) (compound_statement "{\n                if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }\n                iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                puVar5[uVar9] = (uchar)iVar4;\n                uVar9 = uVar9 + 1;\n              }" { (if_statement "if (uVar7 != 5) {\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }" if (parenthesized_expression "(uVar7 != 5)" ( (binary_expression "uVar7 != 5" identifier != number_literal) )) (compound_statement "{\n                  if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }\n                  iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n                  puVar5[uVar9] = (uchar)iVar4;\n                  uVar9 = uVar9 + 1;\n                }" { (if_statement "if (uVar7 != 6) {\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }" if (parenthesized_expression "(uVar7 != 6)" ( (binary_expression "uVar7 != 6" identifier != number_literal) )) (compound_statement "{\n                    uVar9 = 2;\n                    iVar4 = der_ia5_char_encode((uint)in[1]);\n                    puVar5[1] = (uchar)iVar4;\n                  }" { (expression_statement "uVar9 = 2;" (assignment_expression "uVar9 = 2" identifier = number_literal) ;) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[1]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[1])" identifier = (call_expression "der_ia5_char_encode((uint)in[1])" identifier (argument_list "((uint)in[1])" ( (cast_expression "(uint)in[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[1]" identifier [ number_literal ])) )))) ;) (expression_statement "puVar5[1] = (uchar)iVar4;" (assignment_expression "puVar5[1] = (uchar)iVar4" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) })) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9])" identifier (argument_list "((uint)in[uVar9])" ( (cast_expression "(uint)in[uVar9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9]" identifier [ identifier ])) )))) ;) (expression_statement "puVar5[uVar9] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9] = (uchar)iVar4" (subscript_expression "puVar5[uVar9]" identifier [ identifier ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9])" identifier (argument_list "((uint)in[uVar9])" ( (cast_expression "(uint)in[uVar9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9]" identifier [ identifier ])) )))) ;) (expression_statement "puVar5[uVar9] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9] = (uchar)iVar4" (subscript_expression "puVar5[uVar9]" identifier [ identifier ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9])" identifier (argument_list "((uint)in[uVar9])" ( (cast_expression "(uint)in[uVar9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9]" identifier [ identifier ])) )))) ;) (expression_statement "puVar5[uVar9] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9] = (uchar)iVar4" (subscript_expression "puVar5[uVar9]" identifier [ identifier ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9])" identifier (argument_list "((uint)in[uVar9])" ( (cast_expression "(uint)in[uVar9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9]" identifier [ identifier ])) )))) ;) (expression_statement "puVar5[uVar9] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9] = (uchar)iVar4" (subscript_expression "puVar5[uVar9]" identifier [ identifier ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9])" identifier (argument_list "((uint)in[uVar9])" ( (cast_expression "(uint)in[uVar9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9]" identifier [ identifier ])) )))) ;) (expression_statement "puVar5[uVar9] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9] = (uchar)iVar4" (subscript_expression "puVar5[uVar9]" identifier [ identifier ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) })) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9])" identifier (argument_list "((uint)in[uVar9])" ( (cast_expression "(uint)in[uVar9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9]" identifier [ identifier ])) )))) ;) (expression_statement "puVar5[uVar9] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9] = (uchar)iVar4" (subscript_expression "puVar5[uVar9]" identifier [ identifier ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = uVar1 + uVar9;" (assignment_expression "uVar8 = uVar1 + uVar9" identifier = (binary_expression "uVar1 + uVar9" identifier + identifier)) ;) (expression_statement "uVar9 = uVar9 + 1;" (assignment_expression "uVar9 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (if_statement "if (inlen <= uVar9) goto LAB_00170636;" if (parenthesized_expression "(inlen <= uVar9)" ( (binary_expression "inlen <= uVar9" identifier <= identifier) )) (goto_statement "goto LAB_00170636;" goto statement_identifier ;)) })) (do_statement "do {\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);\n        puVar5[uVar9 + 1] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);\n        puVar5[uVar9 + 2] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);\n        puVar5[uVar9 + 3] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);\n        puVar5[uVar9 + 4] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);\n        puVar5[uVar9 + 5] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);\n        puVar5[uVar9 + 6] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);\n        uVar8 = uVar9 + 7 + uVar1;\n        puVar5[uVar9 + 7] = (uchar)iVar4;\n        uVar9 = uVar9 + 8;\n      } while (uVar9 < inlen);" do (compound_statement "{\n        iVar4 = der_ia5_char_encode((uint)in[uVar9]);\n        puVar5[uVar9] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);\n        puVar5[uVar9 + 1] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);\n        puVar5[uVar9 + 2] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);\n        puVar5[uVar9 + 3] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);\n        puVar5[uVar9 + 4] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);\n        puVar5[uVar9 + 5] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);\n        puVar5[uVar9 + 6] = (uchar)iVar4;\n        iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);\n        uVar8 = uVar9 + 7 + uVar1;\n        puVar5[uVar9 + 7] = (uchar)iVar4;\n        uVar9 = uVar9 + 8;\n      }" { (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9])" identifier (argument_list "((uint)in[uVar9])" ( (cast_expression "(uint)in[uVar9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9]" identifier [ identifier ])) )))) ;) (expression_statement "puVar5[uVar9] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9] = (uchar)iVar4" (subscript_expression "puVar5[uVar9]" identifier [ identifier ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 1])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9 + 1])" identifier (argument_list "((uint)in[uVar9 + 1])" ( (cast_expression "(uint)in[uVar9 + 1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9 + 1]" identifier [ (binary_expression "uVar9 + 1" identifier + number_literal) ])) )))) ;) (expression_statement "puVar5[uVar9 + 1] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9 + 1] = (uchar)iVar4" (subscript_expression "puVar5[uVar9 + 1]" identifier [ (binary_expression "uVar9 + 1" identifier + number_literal) ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 2])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9 + 2])" identifier (argument_list "((uint)in[uVar9 + 2])" ( (cast_expression "(uint)in[uVar9 + 2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9 + 2]" identifier [ (binary_expression "uVar9 + 2" identifier + number_literal) ])) )))) ;) (expression_statement "puVar5[uVar9 + 2] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9 + 2] = (uchar)iVar4" (subscript_expression "puVar5[uVar9 + 2]" identifier [ (binary_expression "uVar9 + 2" identifier + number_literal) ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 3])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9 + 3])" identifier (argument_list "((uint)in[uVar9 + 3])" ( (cast_expression "(uint)in[uVar9 + 3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9 + 3]" identifier [ (binary_expression "uVar9 + 3" identifier + number_literal) ])) )))) ;) (expression_statement "puVar5[uVar9 + 3] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9 + 3] = (uchar)iVar4" (subscript_expression "puVar5[uVar9 + 3]" identifier [ (binary_expression "uVar9 + 3" identifier + number_literal) ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 4])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9 + 4])" identifier (argument_list "((uint)in[uVar9 + 4])" ( (cast_expression "(uint)in[uVar9 + 4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9 + 4]" identifier [ (binary_expression "uVar9 + 4" identifier + number_literal) ])) )))) ;) (expression_statement "puVar5[uVar9 + 4] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9 + 4] = (uchar)iVar4" (subscript_expression "puVar5[uVar9 + 4]" identifier [ (binary_expression "uVar9 + 4" identifier + number_literal) ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 5])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9 + 5])" identifier (argument_list "((uint)in[uVar9 + 5])" ( (cast_expression "(uint)in[uVar9 + 5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9 + 5]" identifier [ (binary_expression "uVar9 + 5" identifier + number_literal) ])) )))) ;) (expression_statement "puVar5[uVar9 + 5] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9 + 5] = (uchar)iVar4" (subscript_expression "puVar5[uVar9 + 5]" identifier [ (binary_expression "uVar9 + 5" identifier + number_literal) ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 6])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9 + 6])" identifier (argument_list "((uint)in[uVar9 + 6])" ( (cast_expression "(uint)in[uVar9 + 6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9 + 6]" identifier [ (binary_expression "uVar9 + 6" identifier + number_literal) ])) )))) ;) (expression_statement "puVar5[uVar9 + 6] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9 + 6] = (uchar)iVar4" (subscript_expression "puVar5[uVar9 + 6]" identifier [ (binary_expression "uVar9 + 6" identifier + number_literal) ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7]);" (assignment_expression "iVar4 = der_ia5_char_encode((uint)in[uVar9 + 7])" identifier = (call_expression "der_ia5_char_encode((uint)in[uVar9 + 7])" identifier (argument_list "((uint)in[uVar9 + 7])" ( (cast_expression "(uint)in[uVar9 + 7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "in[uVar9 + 7]" identifier [ (binary_expression "uVar9 + 7" identifier + number_literal) ])) )))) ;) (expression_statement "uVar8 = uVar9 + 7 + uVar1;" (assignment_expression "uVar8 = uVar9 + 7 + uVar1" identifier = (binary_expression "uVar9 + 7 + uVar1" (binary_expression "uVar9 + 7" identifier + number_literal) + identifier)) ;) (expression_statement "puVar5[uVar9 + 7] = (uchar)iVar4;" (assignment_expression "puVar5[uVar9 + 7] = (uchar)iVar4" (subscript_expression "puVar5[uVar9 + 7]" identifier [ (binary_expression "uVar9 + 7" identifier + number_literal) ]) = (cast_expression "(uchar)iVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "uVar9 = uVar9 + 8;" (assignment_expression "uVar9 = uVar9 + 8" identifier = (binary_expression "uVar9 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar9 < inlen)" ( (binary_expression "uVar9 < inlen" identifier < identifier) )) ;) })) }))) (labeled_statement "LAB_00170636:\n  *outlen = uVar8;" statement_identifier : (expression_statement "*outlen = uVar8;" (assignment_expression "*outlen = uVar8" (pointer_expression "*outlen" * identifier) = identifier) ;)) (labeled_statement "LAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar3;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar3;\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 iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int der_encode_ia5_string(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)\n\n{\n  ulong uVar1;\n  ushort uVar2;\n  undefined1 uVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  ulong uVar8;\n  long in_FS_OFFSET;\n  ulong local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }\n  if (param_3 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }\n  iVar4 = der_length_ia5_string(param_1,param_2,&local_48);\n  if (iVar4 != 0) goto LAB_0017063a;\n  if (*param_4 < local_48) {\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }\n  *param_3 = 0x16;\n  if (param_2 < 0x80) {\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }\n  else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }\nLAB_00170636:\n  *param_4 = uVar7;\nLAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "int der_encode_ia5_string(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)\n\n{\n  ulong uVar1;\n  ushort uVar2;\n  undefined1 uVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  ulong uVar8;\n  long in_FS_OFFSET;\n  ulong local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }\n  if (param_3 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }\n  iVar4 = der_length_ia5_string(param_1,param_2,&local_48);\n  if (iVar4 != 0) goto LAB_0017063a;\n  if (*param_4 < local_48) {\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }\n  *param_3 = 0x16;\n  if (param_2 < 0x80) {\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }\n  else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }\nLAB_00170636:\n  *param_4 = uVar7;\nLAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "der_encode_ia5_string(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)" identifier (parameter_list "(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "ulong param_2" type_identifier identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "ulong *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  ulong uVar1;\n  ushort uVar2;\n  undefined1 uVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  ulong uVar8;\n  long in_FS_OFFSET;\n  ulong local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }\n  if (param_3 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }\n  iVar4 = der_length_ia5_string(param_1,param_2,&local_48);\n  if (iVar4 != 0) goto LAB_0017063a;\n  if (*param_4 < local_48) {\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }\n  *param_3 = 0x16;\n  if (param_2 < 0x80) {\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }\n  else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }\nLAB_00170636:\n  *param_4 = uVar7;\nLAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong local_48;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (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) ))))) ;) (if_statement "if (param_1 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }" if (parenthesized_expression "(param_1 == (undefined1 *)0x0)" ( (binary_expression "param_1 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }" { (expression_statement "crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);" (call_expression "crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20)" identifier (argument_list "("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20)" ( (string_literal ""in != NULL"" " string_content ") , (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_3 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }" if (parenthesized_expression "(param_3 == (undefined1 *)0x0)" ( (binary_expression "param_3 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }" { (expression_statement "crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);" (call_expression "crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21)" identifier (argument_list "("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }" if (parenthesized_expression "(param_4 == (ulong *)0x0)" ( (binary_expression "param_4 == (ulong *)0x0" identifier == (cast_expression "(ulong *)0x0" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }" { (expression_statement "crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);" (call_expression "crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22)" identifier (argument_list "("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22)" ( (string_literal ""outlen != NULL"" " string_content ") , (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar4 = der_length_ia5_string(param_1,param_2,&local_48);" (assignment_expression "iVar4 = der_length_ia5_string(param_1,param_2,&local_48)" identifier = (call_expression "der_length_ia5_string(param_1,param_2,&local_48)" identifier (argument_list "(param_1,param_2,&local_48)" ( identifier , identifier , (pointer_expression "&local_48" & identifier) )))) ;) (if_statement "if (iVar4 != 0) goto LAB_0017063a;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0017063a;" goto statement_identifier ;)) (if_statement "if (*param_4 < local_48) {\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }" if (parenthesized_expression "(*param_4 < local_48)" ( (binary_expression "*param_4 < local_48" (pointer_expression "*param_4" * identifier) < identifier) )) (compound_statement "{\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }" { (expression_statement "*param_4 = local_48;" (assignment_expression "*param_4 = local_48" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "iVar4 = 6;" (assignment_expression "iVar4 = 6" identifier = number_literal) ;) (goto_statement "goto LAB_0017063a;" goto statement_identifier ;) })) (expression_statement "*param_3 = 0x16;" (assignment_expression "*param_3 = 0x16" (pointer_expression "*param_3" * identifier) = number_literal) ;) (if_statement "if (param_2 < 0x80) {\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }\n  else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }" if (parenthesized_expression "(param_2 < 0x80)" ( (binary_expression "param_2 < 0x80" identifier < number_literal) )) (compound_statement "{\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }" { (expression_statement "param_3[1] = (char)param_2;" (assignment_expression "param_3[1] = (char)param_2" (subscript_expression "param_3[1]" identifier [ number_literal ]) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "lVar5 = 2;" (assignment_expression "lVar5 = 2" identifier = number_literal) ;) (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" identifier = number_literal) ;) (if_statement "if (param_2 != 0) goto LAB_001704af;" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_001704af;" goto statement_identifier ;)) }) (else_clause "else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }" else (compound_statement "{\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }" { (if_statement "if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" if (parenthesized_expression "(param_2 < 0x100)" ( (binary_expression "param_2 < 0x100" identifier < number_literal) )) (compound_statement "{\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }" { (expression_statement "param_3[1] = 0x81;" (assignment_expression "param_3[1] = 0x81" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar5 = 3;" (assignment_expression "lVar5 = 3" identifier = number_literal) ;) (expression_statement "param_3[2] = (char)param_2;" (assignment_expression "param_3[2] = (char)param_2" (subscript_expression "param_3[2]" identifier [ number_literal ]) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" else (compound_statement "{\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" { (expression_statement "uVar2 = (ushort)param_2;" (assignment_expression "uVar2 = (ushort)param_2" identifier = (cast_expression "(ushort)param_2" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (if_statement "if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" if (parenthesized_expression "(param_2 < 0x10000)" ( (binary_expression "param_2 < 0x10000" identifier < number_literal) )) (compound_statement "{\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }" { (expression_statement "param_3[1] = 0x82;" (assignment_expression "param_3[1] = 0x82" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar5 = 4;" (assignment_expression "lVar5 = 4" identifier = number_literal) ;) (expression_statement "*(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;" (assignment_expression "*(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8" (pointer_expression "*(ushort *)(param_3 + 2)" * (cast_expression "(ushort *)(param_3 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 2)" ( (binary_expression "param_3 + 2" identifier + number_literal) )))) = (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" identifier << number_literal) | (binary_expression "uVar2 >> 8" identifier >> number_literal))) ;) }) (else_clause "else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" else (compound_statement "{\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" { (if_statement "if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }" if (parenthesized_expression "(0xffffff < param_2)" ( (binary_expression "0xffffff < param_2" number_literal < identifier) )) (compound_statement "{\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }" { (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" identifier = number_literal) ;) (goto_statement "goto LAB_0017063a;" goto statement_identifier ;) })) (expression_statement "param_3[1] = 0x83;" (assignment_expression "param_3[1] = 0x83" (subscript_expression "param_3[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "lVar5 = 5;" (assignment_expression "lVar5 = 5" identifier = number_literal) ;) (expression_statement "param_3[2] = (char)(param_2 >> 0x10);" (assignment_expression "param_3[2] = (char)(param_2 >> 0x10)" (subscript_expression "param_3[2]" identifier [ number_literal ]) = (cast_expression "(char)(param_2 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_2 >> 0x10)" ( (binary_expression "param_2 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "*(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;" (assignment_expression "*(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8" (pointer_expression "*(ushort *)(param_3 + 3)" * (cast_expression "(ushort *)(param_3 + 3)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 3)" ( (binary_expression "param_3 + 3" identifier + number_literal) )))) = (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" identifier << number_literal) | (binary_expression "uVar2 >> 8" identifier >> number_literal))) ;) }))) }))) (labeled_statement "LAB_001704af:\n    uVar1 = lVar5 + 1;" statement_identifier : (expression_statement "uVar1 = lVar5 + 1;" (assignment_expression "uVar1 = lVar5 + 1" identifier = (binary_expression "lVar5 + 1" identifier + number_literal)) ;)) (expression_statement "param_3 = param_3 + lVar5;" (assignment_expression "param_3 = param_3 + lVar5" identifier = (binary_expression "param_3 + lVar5" identifier + identifier)) ;) (expression_statement "uVar6 = (int)param_2 - 1U & 7;" (assignment_expression "uVar6 = (int)param_2 - 1U & 7" identifier = (binary_expression "(int)param_2 - 1U & 7" (binary_expression "(int)param_2 - 1U" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - number_literal) & number_literal)) ;) (expression_statement "uVar3 = der_ia5_char_encode(*param_1);" (assignment_expression "uVar3 = der_ia5_char_encode(*param_1)" identifier = (call_expression "der_ia5_char_encode(*param_1)" identifier (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" identifier = number_literal) ;) (expression_statement "uVar7 = uVar1;" (assignment_expression "uVar7 = uVar1" identifier = identifier) ;) (if_statement "if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }" if (parenthesized_expression "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) )) (compound_statement "{\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }" { (if_statement "if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }" { (if_statement "if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }" if (parenthesized_expression "(uVar6 != 1)" ( (binary_expression "uVar6 != 1" identifier != number_literal) )) (compound_statement "{\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }" { (if_statement "if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }" if (parenthesized_expression "(uVar6 != 2)" ( (binary_expression "uVar6 != 2" identifier != number_literal) )) (compound_statement "{\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }" { (if_statement "if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }" if (parenthesized_expression "(uVar6 != 3)" ( (binary_expression "uVar6 != 3" identifier != number_literal) )) (compound_statement "{\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }" { (if_statement "if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }" if (parenthesized_expression "(uVar6 != 4)" ( (binary_expression "uVar6 != 4" identifier != number_literal) )) (compound_statement "{\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }" { (if_statement "if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }" if (parenthesized_expression "(uVar6 != 5)" ( (binary_expression "uVar6 != 5" identifier != number_literal) )) (compound_statement "{\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }" { (if_statement "if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }" if (parenthesized_expression "(uVar6 != 6)" ( (binary_expression "uVar6 != 6" identifier != number_literal) )) (compound_statement "{\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }" { (expression_statement "uVar8 = 2;" (assignment_expression "uVar8 = 2" identifier = number_literal) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[1]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[1])" identifier = (call_expression "der_ia5_char_encode(param_1[1])" identifier (argument_list "(param_1[1])" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) )))) ;) (expression_statement "param_3[1] = uVar3;" (assignment_expression "param_3[1] = uVar3" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar7 = uVar1 + uVar8;" (assignment_expression "uVar7 = uVar1 + uVar8" identifier = (binary_expression "uVar1 + uVar8" identifier + identifier)) ;) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if (param_2 <= uVar8) goto LAB_00170636;" if (parenthesized_expression "(param_2 <= uVar8)" ( (binary_expression "param_2 <= uVar8" identifier <= identifier) )) (goto_statement "goto LAB_00170636;" goto statement_identifier ;)) })) (do_statement "do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);" do (compound_statement "{\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      }" { (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8])" identifier (argument_list "(param_1[uVar8])" ( (subscript_expression "param_1[uVar8]" identifier [ identifier ]) )))) ;) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" identifier [ identifier ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 1])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 1])" identifier (argument_list "(param_1[uVar8 + 1])" ( (subscript_expression "param_1[uVar8 + 1]" identifier [ (binary_expression "uVar8 + 1" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 1] = uVar3;" (assignment_expression "param_3[uVar8 + 1] = uVar3" (subscript_expression "param_3[uVar8 + 1]" identifier [ (binary_expression "uVar8 + 1" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 2])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 2])" identifier (argument_list "(param_1[uVar8 + 2])" ( (subscript_expression "param_1[uVar8 + 2]" identifier [ (binary_expression "uVar8 + 2" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 2] = uVar3;" (assignment_expression "param_3[uVar8 + 2] = uVar3" (subscript_expression "param_3[uVar8 + 2]" identifier [ (binary_expression "uVar8 + 2" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 3])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 3])" identifier (argument_list "(param_1[uVar8 + 3])" ( (subscript_expression "param_1[uVar8 + 3]" identifier [ (binary_expression "uVar8 + 3" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 3] = uVar3;" (assignment_expression "param_3[uVar8 + 3] = uVar3" (subscript_expression "param_3[uVar8 + 3]" identifier [ (binary_expression "uVar8 + 3" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 4])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 4])" identifier (argument_list "(param_1[uVar8 + 4])" ( (subscript_expression "param_1[uVar8 + 4]" identifier [ (binary_expression "uVar8 + 4" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 4] = uVar3;" (assignment_expression "param_3[uVar8 + 4] = uVar3" (subscript_expression "param_3[uVar8 + 4]" identifier [ (binary_expression "uVar8 + 4" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 5])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 5])" identifier (argument_list "(param_1[uVar8 + 5])" ( (subscript_expression "param_1[uVar8 + 5]" identifier [ (binary_expression "uVar8 + 5" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 5] = uVar3;" (assignment_expression "param_3[uVar8 + 5] = uVar3" (subscript_expression "param_3[uVar8 + 5]" identifier [ (binary_expression "uVar8 + 5" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 6])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 6])" identifier (argument_list "(param_1[uVar8 + 6])" ( (subscript_expression "param_1[uVar8 + 6]" identifier [ (binary_expression "uVar8 + 6" identifier + number_literal) ]) )))) ;) (expression_statement "param_3[uVar8 + 6] = uVar3;" (assignment_expression "param_3[uVar8 + 6] = uVar3" (subscript_expression "param_3[uVar8 + 6]" identifier [ (binary_expression "uVar8 + 6" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 7])" identifier = (call_expression "der_ia5_char_encode(param_1[uVar8 + 7])" identifier (argument_list "(param_1[uVar8 + 7])" ( (subscript_expression "param_1[uVar8 + 7]" identifier [ (binary_expression "uVar8 + 7" identifier + number_literal) ]) )))) ;) (expression_statement "uVar7 = uVar8 + 7 + uVar1;" (assignment_expression "uVar7 = uVar8 + 7 + uVar1" identifier = (binary_expression "uVar8 + 7 + uVar1" (binary_expression "uVar8 + 7" identifier + number_literal) + identifier)) ;) (expression_statement "param_3[uVar8 + 7] = uVar3;" (assignment_expression "param_3[uVar8 + 7] = uVar3" (subscript_expression "param_3[uVar8 + 7]" identifier [ (binary_expression "uVar8 + 7" identifier + number_literal) ]) = identifier) ;) (expression_statement "uVar8 = uVar8 + 8;" (assignment_expression "uVar8 = uVar8 + 8" identifier = (binary_expression "uVar8 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar8 < param_2)" ( (binary_expression "uVar8 < param_2" identifier < identifier) )) ;) })) }))) (labeled_statement "LAB_00170636:\n  *param_4 = uVar7;" statement_identifier : (expression_statement "*param_4 = uVar7;" (assignment_expression "*param_4 = uVar7" (pointer_expression "*param_4" * identifier) = identifier) ;)) (labeled_statement "LAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\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 iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) }))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (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 ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (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 ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT << LIT) | (binary_expression IDENT >> LIT))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression IDENT << LIT) | (binary_expression IDENT >> LIT))) ;) }))) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - LIT) & LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ IDENT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ IDENT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ IDENT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ IDENT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ IDENT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ IDENT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ IDENT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (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 "int der_encode_ia5_string(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)\n\n{\n  ulong uVar1;\n  ushort uVar2;\n  undefined1 uVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  ulong uVar8;\n  long in_FS_OFFSET;\n  ulong local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }\n  if (param_3 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }\n  iVar4 = der_length_ia5_string(param_1,param_2,&local_48);\n  if (iVar4 != 0) goto LAB_0017063a;\n  if (*param_4 < local_48) {\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }\n  *param_3 = 0x16;\n  if (param_2 < 0x80) {\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }\n  else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }\nLAB_00170636:\n  *param_4 = uVar7;\nLAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "int") (function_declarator "der_encode_ia5_string(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)" (identifier "der_encode_ia5_string") (parameter_list "(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "ulong param_2" (type_identifier "ulong") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 *param_3" (type_identifier "undefined1") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "ulong *param_4" (type_identifier "ulong") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  ulong uVar1;\n  ushort uVar2;\n  undefined1 uVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  ulong uVar8;\n  long in_FS_OFFSET;\n  ulong local_48;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }\n  if (param_3 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }\n  if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }\n  iVar4 = der_length_ia5_string(param_1,param_2,&local_48);\n  if (iVar4 != 0) goto LAB_0017063a;\n  if (*param_4 < local_48) {\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }\n  *param_3 = 0x16;\n  if (param_2 < 0x80) {\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }\n  else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }\nLAB_00170636:\n  *param_4 = uVar7;\nLAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "ulong uVar1;" (type_identifier "ulong") (identifier "uVar1") (; ";")) (declaration "ushort uVar2;" (type_identifier "ushort") (identifier "uVar2") (; ";")) (declaration "undefined1 uVar3;" (type_identifier "undefined1") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "ulong uVar7;" (type_identifier "ulong") (identifier "uVar7") (; ";")) (declaration "ulong uVar8;" (type_identifier "ulong") (identifier "uVar8") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "ulong local_48;" (type_identifier "ulong") (identifier "local_48") (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (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")) () ")"))))) (; ";")) (if_statement "if (param_1 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }" (if "if") (parenthesized_expression "(param_1 == (undefined1 *)0x0)" (( "(") (binary_expression "param_1 == (undefined1 *)0x0" (identifier "param_1") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);\n  }" ({ "{") (expression_statement "crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);" (call_expression "crypt_argchk("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20)" (identifier "crypt_argchk") (argument_list "("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20)" (( "(") (string_literal ""in != NULL"" (" """) (string_content "in != NULL") (" """)) (, ",") (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" (" """) (string_content "src/pk/asn1/der/ia5/der_encode_ia5_string.c") (" """)) (, ",") (number_literal "0x20") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 == (undefined1 *)0x0) {\n                    \n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }" (if "if") (parenthesized_expression "(param_3 == (undefined1 *)0x0)" (( "(") (binary_expression "param_3 == (undefined1 *)0x0" (identifier "param_3") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);\n  }" ({ "{") (expression_statement "crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);" (call_expression "crypt_argchk("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21)" (identifier "crypt_argchk") (argument_list "("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21)" (( "(") (string_literal ""out != NULL"" (" """) (string_content "out != NULL") (" """)) (, ",") (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" (" """) (string_content "src/pk/asn1/der/ia5/der_encode_ia5_string.c") (" """)) (, ",") (number_literal "0x21") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_4 == (ulong *)0x0) {\n                    \n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }" (if "if") (parenthesized_expression "(param_4 == (ulong *)0x0)" (( "(") (binary_expression "param_4 == (ulong *)0x0" (identifier "param_4") (== "==") (cast_expression "(ulong *)0x0" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);\n  }" ({ "{") (expression_statement "crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);" (call_expression "crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22)" (identifier "crypt_argchk") (argument_list "("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22)" (( "(") (string_literal ""outlen != NULL"" (" """) (string_content "outlen != NULL") (" """)) (, ",") (string_literal ""src/pk/asn1/der/ia5/der_encode_ia5_string.c"" (" """) (string_content "src/pk/asn1/der/ia5/der_encode_ia5_string.c") (" """)) (, ",") (number_literal "0x22") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar4 = der_length_ia5_string(param_1,param_2,&local_48);" (assignment_expression "iVar4 = der_length_ia5_string(param_1,param_2,&local_48)" (identifier "iVar4") (= "=") (call_expression "der_length_ia5_string(param_1,param_2,&local_48)" (identifier "der_length_ia5_string") (argument_list "(param_1,param_2,&local_48)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")")))) (; ";")) (if_statement "if (iVar4 != 0) goto LAB_0017063a;" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0017063a;" (goto "goto") (statement_identifier "LAB_0017063a") (; ";"))) (if_statement "if (*param_4 < local_48) {\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }" (if "if") (parenthesized_expression "(*param_4 < local_48)" (( "(") (binary_expression "*param_4 < local_48" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (< "<") (identifier "local_48")) () ")")) (compound_statement "{\n    *param_4 = local_48;\n    iVar4 = 6;\n    goto LAB_0017063a;\n  }" ({ "{") (expression_statement "*param_4 = local_48;" (assignment_expression "*param_4 = local_48" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "local_48")) (; ";")) (expression_statement "iVar4 = 6;" (assignment_expression "iVar4 = 6" (identifier "iVar4") (= "=") (number_literal "6")) (; ";")) (goto_statement "goto LAB_0017063a;" (goto "goto") (statement_identifier "LAB_0017063a") (; ";")) (} "}"))) (expression_statement "*param_3 = 0x16;" (assignment_expression "*param_3 = 0x16" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0x16")) (; ";")) (if_statement "if (param_2 < 0x80) {\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }\n  else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < 0x80)" (( "(") (binary_expression "param_2 < 0x80" (identifier "param_2") (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n    param_3[1] = (char)param_2;\n    lVar5 = 2;\n    uVar7 = 2;\n    if (param_2 != 0) goto LAB_001704af;\n  }" ({ "{") (expression_statement "param_3[1] = (char)param_2;" (assignment_expression "param_3[1] = (char)param_2" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(char)param_2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "lVar5 = 2;" (assignment_expression "lVar5 = 2" (identifier "lVar5") (= "=") (number_literal "2")) (; ";")) (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" (identifier "uVar7") (= "=") (number_literal "2")) (; ";")) (if_statement "if (param_2 != 0) goto LAB_001704af;" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_001704af;" (goto "goto") (statement_identifier "LAB_001704af") (; ";"))) (} "}")) (else_clause "else {\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }" (else "else") (compound_statement "{\n    if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }\nLAB_001704af:\n    uVar1 = lVar5 + 1;\n    param_3 = param_3 + lVar5;\n    uVar6 = (int)param_2 - 1U & 7;\n    uVar3 = der_ia5_char_encode(*param_1);\n    *param_3 = uVar3;\n    uVar8 = 1;\n    uVar7 = uVar1;\n    if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }\n  }" ({ "{") (if_statement "if (param_2 < 0x100) {\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }\n    else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" (if "if") (parenthesized_expression "(param_2 < 0x100)" (( "(") (binary_expression "param_2 < 0x100" (identifier "param_2") (< "<") (number_literal "0x100")) () ")")) (compound_statement "{\n      param_3[1] = 0x81;\n      lVar5 = 3;\n      param_3[2] = (char)param_2;\n    }" ({ "{") (expression_statement "param_3[1] = 0x81;" (assignment_expression "param_3[1] = 0x81" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x81")) (; ";")) (expression_statement "lVar5 = 3;" (assignment_expression "lVar5 = 3" (identifier "lVar5") (= "=") (number_literal "3")) (; ";")) (expression_statement "param_3[2] = (char)param_2;" (assignment_expression "param_3[2] = (char)param_2" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(char)param_2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_2"))) (; ";")) (} "}")) (else_clause "else {\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" (else "else") (compound_statement "{\n      uVar2 = (ushort)param_2;\n      if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }\n    }" ({ "{") (expression_statement "uVar2 = (ushort)param_2;" (assignment_expression "uVar2 = (ushort)param_2" (identifier "uVar2") (= "=") (cast_expression "(ushort)param_2" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "param_2"))) (; ";")) (if_statement "if (param_2 < 0x10000) {\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }\n      else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" (if "if") (parenthesized_expression "(param_2 < 0x10000)" (( "(") (binary_expression "param_2 < 0x10000" (identifier "param_2") (< "<") (number_literal "0x10000")) () ")")) (compound_statement "{\n        param_3[1] = 0x82;\n        lVar5 = 4;\n        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;\n      }" ({ "{") (expression_statement "param_3[1] = 0x82;" (assignment_expression "param_3[1] = 0x82" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x82")) (; ";")) (expression_statement "lVar5 = 4;" (assignment_expression "lVar5 = 4" (identifier "lVar5") (= "=") (number_literal "4")) (; ";")) (expression_statement "*(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;" (assignment_expression "*(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8" (pointer_expression "*(ushort *)(param_3 + 2)" (* "*") (cast_expression "(ushort *)(param_3 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 2)" (( "(") (binary_expression "param_3 + 2" (identifier "param_3") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" (identifier "uVar2") (<< "<<") (number_literal "8")) (| "|") (binary_expression "uVar2 >> 8" (identifier "uVar2") (>> ">>") (number_literal "8")))) (; ";")) (} "}")) (else_clause "else {\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" (else "else") (compound_statement "{\n        if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }\n        param_3[1] = 0x83;\n        lVar5 = 5;\n        param_3[2] = (char)(param_2 >> 0x10);\n        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;\n      }" ({ "{") (if_statement "if (0xffffff < param_2) {\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }" (if "if") (parenthesized_expression "(0xffffff < param_2)" (( "(") (binary_expression "0xffffff < param_2" (number_literal "0xffffff") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n          iVar4 = 0x10;\n          goto LAB_0017063a;\n        }" ({ "{") (expression_statement "iVar4 = 0x10;" (assignment_expression "iVar4 = 0x10" (identifier "iVar4") (= "=") (number_literal "0x10")) (; ";")) (goto_statement "goto LAB_0017063a;" (goto "goto") (statement_identifier "LAB_0017063a") (; ";")) (} "}"))) (expression_statement "param_3[1] = 0x83;" (assignment_expression "param_3[1] = 0x83" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x83")) (; ";")) (expression_statement "lVar5 = 5;" (assignment_expression "lVar5 = 5" (identifier "lVar5") (= "=") (number_literal "5")) (; ";")) (expression_statement "param_3[2] = (char)(param_2 >> 0x10);" (assignment_expression "param_3[2] = (char)(param_2 >> 0x10)" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(char)(param_2 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(param_2 >> 0x10)" (( "(") (binary_expression "param_2 >> 0x10" (identifier "param_2") (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "*(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;" (assignment_expression "*(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8" (pointer_expression "*(ushort *)(param_3 + 3)" (* "*") (cast_expression "(ushort *)(param_3 + 3)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 3)" (( "(") (binary_expression "param_3 + 3" (identifier "param_3") (+ "+") (number_literal "3")) () ")")))) (= "=") (binary_expression "uVar2 << 8 | uVar2 >> 8" (binary_expression "uVar2 << 8" (identifier "uVar2") (<< "<<") (number_literal "8")) (| "|") (binary_expression "uVar2 >> 8" (identifier "uVar2") (>> ">>") (number_literal "8")))) (; ";")) (} "}")))) (} "}")))) (labeled_statement "LAB_001704af:\n    uVar1 = lVar5 + 1;" (statement_identifier "LAB_001704af") (: ":") (expression_statement "uVar1 = lVar5 + 1;" (assignment_expression "uVar1 = lVar5 + 1" (identifier "uVar1") (= "=") (binary_expression "lVar5 + 1" (identifier "lVar5") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "param_3 = param_3 + lVar5;" (assignment_expression "param_3 = param_3 + lVar5" (identifier "param_3") (= "=") (binary_expression "param_3 + lVar5" (identifier "param_3") (+ "+") (identifier "lVar5"))) (; ";")) (expression_statement "uVar6 = (int)param_2 - 1U & 7;" (assignment_expression "uVar6 = (int)param_2 - 1U & 7" (identifier "uVar6") (= "=") (binary_expression "(int)param_2 - 1U & 7" (binary_expression "(int)param_2 - 1U" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (- "-") (number_literal "1U")) (& "&") (number_literal "7"))) (; ";")) (expression_statement "uVar3 = der_ia5_char_encode(*param_1);" (assignment_expression "uVar3 = der_ia5_char_encode(*param_1)" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(*param_1)" (identifier "der_ia5_char_encode") (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (expression_statement "*param_3 = uVar3;" (assignment_expression "*param_3 = uVar3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" (identifier "uVar8") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar7 = uVar1;" (assignment_expression "uVar7 = uVar1" (identifier "uVar7") (= "=") (identifier "uVar1")) (; ";")) (if_statement "if (1 < param_2) {\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }" (if "if") (parenthesized_expression "(1 < param_2)" (( "(") (binary_expression "1 < param_2" (number_literal "1") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n      if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }\n      do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);\n    }" ({ "{") (if_statement "if (uVar6 != 0) {\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }" (if "if") (parenthesized_expression "(uVar6 != 0)" (( "(") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar7 = uVar1 + uVar8;\n        uVar8 = uVar8 + 1;\n        if (param_2 <= uVar8) goto LAB_00170636;\n      }" ({ "{") (if_statement "if (uVar6 != 1) {\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }" (if "if") (parenthesized_expression "(uVar6 != 1)" (( "(") (binary_expression "uVar6 != 1" (identifier "uVar6") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n          if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }\n          uVar3 = der_ia5_char_encode(param_1[uVar8]);\n          param_3[uVar8] = uVar3;\n          uVar8 = uVar8 + 1;\n        }" ({ "{") (if_statement "if (uVar6 != 2) {\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }" (if "if") (parenthesized_expression "(uVar6 != 2)" (( "(") (binary_expression "uVar6 != 2" (identifier "uVar6") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n            if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }\n            uVar3 = der_ia5_char_encode(param_1[uVar8]);\n            param_3[uVar8] = uVar3;\n            uVar8 = uVar8 + 1;\n          }" ({ "{") (if_statement "if (uVar6 != 3) {\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }" (if "if") (parenthesized_expression "(uVar6 != 3)" (( "(") (binary_expression "uVar6 != 3" (identifier "uVar6") (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\n              if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }\n              uVar3 = der_ia5_char_encode(param_1[uVar8]);\n              param_3[uVar8] = uVar3;\n              uVar8 = uVar8 + 1;\n            }" ({ "{") (if_statement "if (uVar6 != 4) {\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }" (if "if") (parenthesized_expression "(uVar6 != 4)" (( "(") (binary_expression "uVar6 != 4" (identifier "uVar6") (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\n                if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }\n                uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                param_3[uVar8] = uVar3;\n                uVar8 = uVar8 + 1;\n              }" ({ "{") (if_statement "if (uVar6 != 5) {\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }" (if "if") (parenthesized_expression "(uVar6 != 5)" (( "(") (binary_expression "uVar6 != 5" (identifier "uVar6") (!= "!=") (number_literal "5")) () ")")) (compound_statement "{\n                  if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }\n                  uVar3 = der_ia5_char_encode(param_1[uVar8]);\n                  param_3[uVar8] = uVar3;\n                  uVar8 = uVar8 + 1;\n                }" ({ "{") (if_statement "if (uVar6 != 6) {\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }" (if "if") (parenthesized_expression "(uVar6 != 6)" (( "(") (binary_expression "uVar6 != 6" (identifier "uVar6") (!= "!=") (number_literal "6")) () ")")) (compound_statement "{\n                    uVar8 = 2;\n                    uVar3 = der_ia5_char_encode(param_1[1]);\n                    param_3[1] = uVar3;\n                  }" ({ "{") (expression_statement "uVar8 = 2;" (assignment_expression "uVar8 = 2" (identifier "uVar8") (= "=") (number_literal "2")) (; ";")) (expression_statement "uVar3 = der_ia5_char_encode(param_1[1]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[1])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[1])" (identifier "der_ia5_char_encode") (argument_list "(param_1[1])" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "param_3[1] = uVar3;" (assignment_expression "param_3[1] = uVar3" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8])" (( "(") (subscript_expression "param_1[uVar8]" (identifier "param_1") ([ "[") (identifier "uVar8") (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" (identifier "param_3") ([ "[") (identifier "uVar8") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8])" (( "(") (subscript_expression "param_1[uVar8]" (identifier "param_1") ([ "[") (identifier "uVar8") (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" (identifier "param_3") ([ "[") (identifier "uVar8") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8])" (( "(") (subscript_expression "param_1[uVar8]" (identifier "param_1") ([ "[") (identifier "uVar8") (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" (identifier "param_3") ([ "[") (identifier "uVar8") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8])" (( "(") (subscript_expression "param_1[uVar8]" (identifier "param_1") ([ "[") (identifier "uVar8") (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" (identifier "param_3") ([ "[") (identifier "uVar8") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8])" (( "(") (subscript_expression "param_1[uVar8]" (identifier "param_1") ([ "[") (identifier "uVar8") (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" (identifier "param_3") ([ "[") (identifier "uVar8") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8])" (( "(") (subscript_expression "param_1[uVar8]" (identifier "param_1") ([ "[") (identifier "uVar8") (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" (identifier "param_3") ([ "[") (identifier "uVar8") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar7 = uVar1 + uVar8;" (assignment_expression "uVar7 = uVar1 + uVar8" (identifier "uVar7") (= "=") (binary_expression "uVar1 + uVar8" (identifier "uVar1") (+ "+") (identifier "uVar8"))) (; ";")) (expression_statement "uVar8 = uVar8 + 1;" (assignment_expression "uVar8 = uVar8 + 1" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_2 <= uVar8) goto LAB_00170636;" (if "if") (parenthesized_expression "(param_2 <= uVar8)" (( "(") (binary_expression "param_2 <= uVar8" (identifier "param_2") (<= "<=") (identifier "uVar8")) () ")")) (goto_statement "goto LAB_00170636;" (goto "goto") (statement_identifier "LAB_00170636") (; ";"))) (} "}"))) (do_statement "do {\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      } while (uVar8 < param_2);" (do "do") (compound_statement "{\n        uVar3 = der_ia5_char_encode(param_1[uVar8]);\n        param_3[uVar8] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);\n        param_3[uVar8 + 1] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);\n        param_3[uVar8 + 2] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);\n        param_3[uVar8 + 3] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);\n        param_3[uVar8 + 4] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);\n        param_3[uVar8 + 5] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);\n        param_3[uVar8 + 6] = uVar3;\n        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);\n        uVar7 = uVar8 + 7 + uVar1;\n        param_3[uVar8 + 7] = uVar3;\n        uVar8 = uVar8 + 8;\n      }" ({ "{") (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8])" (( "(") (subscript_expression "param_1[uVar8]" (identifier "param_1") ([ "[") (identifier "uVar8") (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8] = uVar3;" (assignment_expression "param_3[uVar8] = uVar3" (subscript_expression "param_3[uVar8]" (identifier "param_3") ([ "[") (identifier "uVar8") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 1])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8 + 1])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8 + 1])" (( "(") (subscript_expression "param_1[uVar8 + 1]" (identifier "param_1") ([ "[") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1")) (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8 + 1] = uVar3;" (assignment_expression "param_3[uVar8 + 1] = uVar3" (subscript_expression "param_3[uVar8 + 1]" (identifier "param_3") ([ "[") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1")) (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 2])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8 + 2])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8 + 2])" (( "(") (subscript_expression "param_1[uVar8 + 2]" (identifier "param_1") ([ "[") (binary_expression "uVar8 + 2" (identifier "uVar8") (+ "+") (number_literal "2")) (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8 + 2] = uVar3;" (assignment_expression "param_3[uVar8 + 2] = uVar3" (subscript_expression "param_3[uVar8 + 2]" (identifier "param_3") ([ "[") (binary_expression "uVar8 + 2" (identifier "uVar8") (+ "+") (number_literal "2")) (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 3])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8 + 3])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8 + 3])" (( "(") (subscript_expression "param_1[uVar8 + 3]" (identifier "param_1") ([ "[") (binary_expression "uVar8 + 3" (identifier "uVar8") (+ "+") (number_literal "3")) (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8 + 3] = uVar3;" (assignment_expression "param_3[uVar8 + 3] = uVar3" (subscript_expression "param_3[uVar8 + 3]" (identifier "param_3") ([ "[") (binary_expression "uVar8 + 3" (identifier "uVar8") (+ "+") (number_literal "3")) (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 4])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8 + 4])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8 + 4])" (( "(") (subscript_expression "param_1[uVar8 + 4]" (identifier "param_1") ([ "[") (binary_expression "uVar8 + 4" (identifier "uVar8") (+ "+") (number_literal "4")) (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8 + 4] = uVar3;" (assignment_expression "param_3[uVar8 + 4] = uVar3" (subscript_expression "param_3[uVar8 + 4]" (identifier "param_3") ([ "[") (binary_expression "uVar8 + 4" (identifier "uVar8") (+ "+") (number_literal "4")) (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 5])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8 + 5])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8 + 5])" (( "(") (subscript_expression "param_1[uVar8 + 5]" (identifier "param_1") ([ "[") (binary_expression "uVar8 + 5" (identifier "uVar8") (+ "+") (number_literal "5")) (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8 + 5] = uVar3;" (assignment_expression "param_3[uVar8 + 5] = uVar3" (subscript_expression "param_3[uVar8 + 5]" (identifier "param_3") ([ "[") (binary_expression "uVar8 + 5" (identifier "uVar8") (+ "+") (number_literal "5")) (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 6])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8 + 6])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8 + 6])" (( "(") (subscript_expression "param_1[uVar8 + 6]" (identifier "param_1") ([ "[") (binary_expression "uVar8 + 6" (identifier "uVar8") (+ "+") (number_literal "6")) (] "]")) () ")")))) (; ";")) (expression_statement "param_3[uVar8 + 6] = uVar3;" (assignment_expression "param_3[uVar8 + 6] = uVar3" (subscript_expression "param_3[uVar8 + 6]" (identifier "param_3") ([ "[") (binary_expression "uVar8 + 6" (identifier "uVar8") (+ "+") (number_literal "6")) (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);" (assignment_expression "uVar3 = der_ia5_char_encode(param_1[uVar8 + 7])" (identifier "uVar3") (= "=") (call_expression "der_ia5_char_encode(param_1[uVar8 + 7])" (identifier "der_ia5_char_encode") (argument_list "(param_1[uVar8 + 7])" (( "(") (subscript_expression "param_1[uVar8 + 7]" (identifier "param_1") ([ "[") (binary_expression "uVar8 + 7" (identifier "uVar8") (+ "+") (number_literal "7")) (] "]")) () ")")))) (; ";")) (expression_statement "uVar7 = uVar8 + 7 + uVar1;" (assignment_expression "uVar7 = uVar8 + 7 + uVar1" (identifier "uVar7") (= "=") (binary_expression "uVar8 + 7 + uVar1" (binary_expression "uVar8 + 7" (identifier "uVar8") (+ "+") (number_literal "7")) (+ "+") (identifier "uVar1"))) (; ";")) (expression_statement "param_3[uVar8 + 7] = uVar3;" (assignment_expression "param_3[uVar8 + 7] = uVar3" (subscript_expression "param_3[uVar8 + 7]" (identifier "param_3") ([ "[") (binary_expression "uVar8 + 7" (identifier "uVar8") (+ "+") (number_literal "7")) (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar8 = uVar8 + 8;" (assignment_expression "uVar8 = uVar8 + 8" (identifier "uVar8") (= "=") (binary_expression "uVar8 + 8" (identifier "uVar8") (+ "+") (number_literal "8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar8 < param_2)" (( "(") (binary_expression "uVar8 < param_2" (identifier "uVar8") (< "<") (identifier "param_2")) () ")")) (; ";")) (} "}"))) (} "}")))) (labeled_statement "LAB_00170636:\n  *param_4 = uVar7;" (statement_identifier "LAB_00170636") (: ":") (expression_statement "*param_4 = uVar7;" (assignment_expression "*param_4 = uVar7" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uVar7")) (; ";"))) (labeled_statement "LAB_0017063a:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\n  }" (statement_identifier "LAB_0017063a") (: ":") (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar4;\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 iVar4;\n  }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *var_2,type_2 var_9,type_1 *var_4,type_2 *var_5)

{
  type_2 var_15;
  type_3 var_10;
  int var_7;
  int iVar4;
  type_1 *puVar5;
  long var_11;
  type_4 var_13;
  type_2 uVar8;
  type_2 var_14;
  long var_1;
  type_2 var_8;
  long var_16;
  
  var_16 = *(long *)(var_1 + 0x28);
  if (var_2 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("in != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x20);
  }
  if (var_4 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("out != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x21);
  }
  if (var_5 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("outlen != NULL","src/pk/asn1/der/ia5/der_encode_ia5_string.c",0x22);
  }
  var_7 = var_6(var_2,var_9,&var_8);
  if (var_7 != 0) goto LAB_0017063a;
  if (*var_5 < var_8) {
    *var_5 = var_8;
    var_7 = 6;
    goto LAB_0017063a;
  }
  *var_4 = '\x16';
  if (var_9 < 0x80) {
    var_4[1] = (type_1)var_9;
    var_11 = 2;
    uVar8 = 2;
    if (var_9 != 0) goto LAB_001704af;
  }
  else {
    if (var_9 < 0x100) {
      var_4[1] = 0x81;
      var_11 = 3;
      var_4[2] = (type_1)var_9;
    }
    else {
      var_10 = (type_3)var_9;
      if (var_9 < 0x10000) {
        var_4[1] = 0x82;
        var_11 = 4;
        *(type_3 *)(var_4 + 2) = var_10 << 8 | var_10 >> 8;
      }
      else {
        if (0xffffff < var_9) {
          var_7 = 0x10;
          goto LAB_0017063a;
        }
        var_4[1] = 0x83;
        var_11 = 5;
        var_4[2] = (type_1)(var_9 >> 0x10);
        *(type_3 *)(var_4 + 3) = var_10 << 8 | var_10 >> 8;
      }
    }
LAB_001704af:
    var_15 = var_11 + 1;
    puVar5 = var_4 + var_11;
    var_13 = (int)var_9 - 1U & 7;
    iVar4 = var_12((type_4)*var_2);
    *puVar5 = (type_1)iVar4;
    var_14 = 1;
    uVar8 = var_15;
    if (1 < var_9) {
      if (var_13 != 0) {
        if (var_13 != 1) {
          if (var_13 != 2) {
            if (var_13 != 3) {
              if (var_13 != 4) {
                if (var_13 != 5) {
                  if (var_13 != 6) {
                    var_14 = 2;
                    iVar4 = var_12((type_4)var_2[1]);
                    puVar5[1] = (type_1)iVar4;
                  }
                  iVar4 = var_12((type_4)var_2[var_14]);
                  puVar5[var_14] = (type_1)iVar4;
                  var_14 = var_14 + 1;
                }
                iVar4 = var_12((type_4)var_2[var_14]);
                puVar5[var_14] = (type_1)iVar4;
                var_14 = var_14 + 1;
              }
              iVar4 = var_12((type_4)var_2[var_14]);
              puVar5[var_14] = (type_1)iVar4;
              var_14 = var_14 + 1;
            }
            iVar4 = var_12((type_4)var_2[var_14]);
            puVar5[var_14] = (type_1)iVar4;
            var_14 = var_14 + 1;
          }
          iVar4 = var_12((type_4)var_2[var_14]);
          puVar5[var_14] = (type_1)iVar4;
          var_14 = var_14 + 1;
        }
        iVar4 = var_12((type_4)var_2[var_14]);
        puVar5[var_14] = (type_1)iVar4;
        uVar8 = var_15 + var_14;
        var_14 = var_14 + 1;
        if (var_9 <= var_14) goto LAB_00170636;
      }
      do {
        iVar4 = var_12((type_4)var_2[var_14]);
        puVar5[var_14] = (type_1)iVar4;
        iVar4 = var_12((type_4)var_2[var_14 + 1]);
        puVar5[var_14 + 1] = (type_1)iVar4;
        iVar4 = var_12((type_4)var_2[var_14 + 2]);
        puVar5[var_14 + 2] = (type_1)iVar4;
        iVar4 = var_12((type_4)var_2[var_14 + 3]);
        puVar5[var_14 + 3] = (type_1)iVar4;
        iVar4 = var_12((type_4)var_2[var_14 + 4]);
        puVar5[var_14 + 4] = (type_1)iVar4;
        iVar4 = var_12((type_4)var_2[var_14 + 5]);
        puVar5[var_14 + 5] = (type_1)iVar4;
        iVar4 = var_12((type_4)var_2[var_14 + 6]);
        puVar5[var_14 + 6] = (type_1)iVar4;
        iVar4 = var_12((type_4)var_2[var_14 + 7]);
        uVar8 = var_14 + 7 + var_15;
        puVar5[var_14 + 7] = (type_1)iVar4;
        var_14 = var_14 + 8;
      } while (var_14 < var_9);
    }
  }
LAB_00170636:
  *var_5 = uVar8;
LAB_0017063a:
  if (var_16 == *(long *)(var_1 + 0x28)) {
    return var_7;
  }
                    /* WARNING: Subroutine does not return */
  var_17();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (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: (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: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (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: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))) 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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) alternative: (else_clause (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))))))) (labeled_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: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (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: (identifier) right: (number_literal))) consequence: (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: (identifier) right: (number_literal))) consequence: (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: (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))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) 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: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (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))))))

int MASKED(undefined1 *param_1,ulong param_2,undefined1 *param_3,ulong *param_4)

{
  ulong uVar1;
  ushort uVar2;
  undefined1 uVar3;
  int iVar4;
  long lVar5;
  uint uVar6;
  ulong uVar7;
  ulong uVar8;
  long in_FS_OFFSET;
  ulong local_48;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == (undefined1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("in != NULL","src/pk/asn1/der/ia5/MASKED.c",0x20);
  }
  if (param_3 == (undefined1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("out != NULL","src/pk/asn1/der/ia5/MASKED.c",0x21);
  }
  if (param_4 == (ulong *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("outlen != NULL","src/pk/asn1/der/ia5/MASKED.c",0x22);
  }
  iVar4 = der_length_ia5_string(param_1,param_2,&local_48);
  if (iVar4 != 0) goto LAB_0017063a;
  if (*param_4 < local_48) {
    *param_4 = local_48;
    iVar4 = 6;
    goto LAB_0017063a;
  }
  *param_3 = 0x16;
  if (param_2 < 0x80) {
    param_3[1] = (char)param_2;
    lVar5 = 2;
    uVar7 = 2;
    if (param_2 != 0) goto LAB_001704af;
  }
  else {
    if (param_2 < 0x100) {
      param_3[1] = 0x81;
      lVar5 = 3;
      param_3[2] = (char)param_2;
    }
    else {
      uVar2 = (ushort)param_2;
      if (param_2 < 0x10000) {
        param_3[1] = 0x82;
        lVar5 = 4;
        *(ushort *)(param_3 + 2) = uVar2 << 8 | uVar2 >> 8;
      }
      else {
        if (0xffffff < param_2) {
          iVar4 = 0x10;
          goto LAB_0017063a;
        }
        param_3[1] = 0x83;
        lVar5 = 5;
        param_3[2] = (char)(param_2 >> 0x10);
        *(ushort *)(param_3 + 3) = uVar2 << 8 | uVar2 >> 8;
      }
    }
LAB_001704af:
    uVar1 = lVar5 + 1;
    param_3 = param_3 + lVar5;
    uVar6 = (int)param_2 - 1U & 7;
    uVar3 = der_ia5_char_encode(*param_1);
    *param_3 = uVar3;
    uVar8 = 1;
    uVar7 = uVar1;
    if (1 < param_2) {
      if (uVar6 != 0) {
        if (uVar6 != 1) {
          if (uVar6 != 2) {
            if (uVar6 != 3) {
              if (uVar6 != 4) {
                if (uVar6 != 5) {
                  if (uVar6 != 6) {
                    uVar8 = 2;
                    uVar3 = der_ia5_char_encode(param_1[1]);
                    param_3[1] = uVar3;
                  }
                  uVar3 = der_ia5_char_encode(param_1[uVar8]);
                  param_3[uVar8] = uVar3;
                  uVar8 = uVar8 + 1;
                }
                uVar3 = der_ia5_char_encode(param_1[uVar8]);
                param_3[uVar8] = uVar3;
                uVar8 = uVar8 + 1;
              }
              uVar3 = der_ia5_char_encode(param_1[uVar8]);
              param_3[uVar8] = uVar3;
              uVar8 = uVar8 + 1;
            }
            uVar3 = der_ia5_char_encode(param_1[uVar8]);
            param_3[uVar8] = uVar3;
            uVar8 = uVar8 + 1;
          }
          uVar3 = der_ia5_char_encode(param_1[uVar8]);
          param_3[uVar8] = uVar3;
          uVar8 = uVar8 + 1;
        }
        uVar3 = der_ia5_char_encode(param_1[uVar8]);
        param_3[uVar8] = uVar3;
        uVar7 = uVar1 + uVar8;
        uVar8 = uVar8 + 1;
        if (param_2 <= uVar8) goto LAB_00170636;
      }
      do {
        uVar3 = der_ia5_char_encode(param_1[uVar8]);
        param_3[uVar8] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 1]);
        param_3[uVar8 + 1] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 2]);
        param_3[uVar8 + 2] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 3]);
        param_3[uVar8 + 3] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 4]);
        param_3[uVar8 + 4] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 5]);
        param_3[uVar8 + 5] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 6]);
        param_3[uVar8 + 6] = uVar3;
        uVar3 = der_ia5_char_encode(param_1[uVar8 + 7]);
        uVar7 = uVar8 + 7 + uVar1;
        param_3[uVar8 + 7] = uVar3;
        uVar8 = uVar8 + 8;
      } while (uVar8 < param_2);
    }
  }
LAB_00170636:
  *param_4 = uVar7;
LAB_0017063a:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

