
uchar * openssh_loadpub(FILE *fp,char **algorithm,int *pub_blob_len,char **commentptr,
                       char **errorstr)

{
  char cVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  char *pcVar5;
  char *pcVar6;
  byte *ptr;
  void *pvVar7;
  ulong uVar8;
  long lVar9;
  size_t __n;
  char *pcVar10;
  int iVar11;
  char *pcVar12;
  byte bVar13;
  
  bVar13 = 0;
  pcVar5 = fgetline(fp);
  pcVar5 = chomp(pcVar5);
  pcVar6 = strchr(pcVar5,0x20);
  if (pcVar6 == (char *)0x0) {
    pcVar10 = "no key blob in OpenSSH public key file";
    ptr = (byte *)0x0;
    pcVar6 = (char *)0x0;
  }
  else {
    pcVar10 = pcVar6 + 1;
    *pcVar6 = '\0';
    pcVar6 = strchr(pcVar10,0x20);
    if (pcVar6 != (char *)0x0) {
      *pcVar6 = '\0';
      pcVar6 = dupstr(pcVar6 + 1);
    }
    uVar8 = 0xffffffffffffffff;
    pcVar12 = pcVar10;
    do {
      if (uVar8 == 0) break;
      uVar8 = uVar8 - 1;
      cVar1 = *pcVar12;
      pcVar12 = pcVar12 + (ulong)bVar13 * -2 + 1;
    } while (cVar1 != '\0');
    iVar2 = (int)(~uVar8 - 1 >> 2);
    iVar4 = iVar2 * 3;
    ptr = (byte *)safemalloc((long)iVar4,1);
    iVar11 = 0;
    while (pvVar7 = memchr(pcVar10,0,4), pvVar7 == (void *)0x0) {
      if (SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");
      }
      iVar3 = base64_decode_atom(pcVar10,ptr + iVar11);
      iVar11 = iVar11 + iVar3;
      pcVar10 = pcVar10 + 4;
    }
    if (*pcVar10 == '\0') {
      lVar9 = -1;
      pcVar10 = pcVar5;
      do {
        if (lVar9 == 0) break;
        lVar9 = lVar9 + -1;
        cVar1 = *pcVar10;
        pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;
      } while (cVar1 != '\0');
      if ((int)(~(uint)lVar9 + 2) < iVar11) {
        __n = (size_t)(int)(~(uint)lVar9 - 1);
        if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==
            __n) {
          iVar4 = memcmp(ptr + 4,pcVar5,__n);
          if (iVar4 == 0) {
            if (algorithm != (char **)0x0) {
              pcVar10 = dupstr(pcVar5);
              *algorithm = pcVar10;
            }
            if (pub_blob_len != (int *)0x0) {
              *pub_blob_len = iVar11;
            }
            if (commentptr == (char **)0x0) {
              safefree(pcVar6);
            }
            else {
              *commentptr = pcVar6;
            }
            safefree(pcVar5);
            return ptr;
          }
          pcVar10 = "key algorithms do not match in OpenSSH public key file";
        }
        else {
          pcVar10 = "key algorithms do not match in OpenSSH public key file";
        }
      }
      else {
        pcVar10 = "key algorithms do not match in OpenSSH public key file";
      }
    }
    else {
      pcVar10 = "invalid length for base64 data in OpenSSH public key file";
    }
  }
  safefree(pcVar5);
  safefree(pcVar6);
  safefree(ptr);
  if (errorstr != (char **)0x0) {
    *errorstr = pcVar10;
    errorstr = (char **)0x0;
  }
  return (uchar *)errorstr;
}



byte * FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,
                   byte *param_5)

{
  char cVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined8 uVar5;
  char *__s;
  char *pcVar6;
  byte *pbVar7;
  void *pvVar8;
  ulong uVar9;
  long lVar10;
  size_t __n;
  char *pcVar11;
  int iVar12;
  char *pcVar13;
  byte bVar14;
  
  bVar14 = 0;
  uVar5 = FUN_0010db67();
  __s = (char *)FUN_0010cfb4(uVar5);
  pcVar6 = strchr(__s,0x20);
  if (pcVar6 == (char *)0x0) {
    pcVar11 = "no key blob in OpenSSH public key file";
    pbVar7 = (byte *)0x0;
    pcVar6 = (char *)0x0;
  }
  else {
    pcVar11 = pcVar6 + 1;
    *pcVar6 = '\0';
    pcVar6 = strchr(pcVar11,0x20);
    if (pcVar6 != (char *)0x0) {
      *pcVar6 = '\0';
      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);
    }
    uVar9 = 0xffffffffffffffff;
    pcVar13 = pcVar11;
    do {
      if (uVar9 == 0) break;
      uVar9 = uVar9 - 1;
      cVar1 = *pcVar13;
      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;
    } while (cVar1 != '\0');
    iVar2 = (int)(~uVar9 - 1 >> 2);
    iVar4 = iVar2 * 3;
    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);
    iVar12 = 0;
    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {
      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");
      }
      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);
      iVar12 = iVar12 + iVar3;
      pcVar11 = pcVar11 + 4;
    }
    if (*pcVar11 == '\0') {
      lVar10 = -1;
      pcVar11 = __s;
      do {
        if (lVar10 == 0) break;
        lVar10 = lVar10 + -1;
        cVar1 = *pcVar11;
        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;
      } while (cVar1 != '\0');
      if ((int)(~(uint)lVar10 + 2) < iVar12) {
        __n = (size_t)(int)(~(uint)lVar10 - 1);
        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |
            (ulong)pbVar7[2] << 8) == __n) {
          iVar4 = memcmp(pbVar7 + 4,__s,__n);
          if (iVar4 == 0) {
            if (param_2 != (undefined8 *)0x0) {
              uVar5 = FUN_0010d3b9(__s);
              *param_2 = uVar5;
            }
            if (param_3 != (int *)0x0) {
              *param_3 = iVar12;
            }
            if (param_4 == (undefined8 *)0x0) {
              FUN_0010db2f(pcVar6);
            }
            else {
              *param_4 = pcVar6;
            }
            FUN_0010db2f(__s);
            return pbVar7;
          }
          pcVar11 = "key algorithms do not match in OpenSSH public key file";
        }
        else {
          pcVar11 = "key algorithms do not match in OpenSSH public key file";
        }
      }
      else {
        pcVar11 = "key algorithms do not match in OpenSSH public key file";
      }
    }
    else {
      pcVar11 = "invalid length for base64 data in OpenSSH public key file";
    }
  }
  FUN_0010db2f(__s);
  FUN_0010db2f(pcVar6);
  FUN_0010db2f(pbVar7);
  if (param_5 != (byte *)0x0) {
    *(char **)param_5 = pcVar11;
    param_5 = (byte *)0x0;
  }
  return param_5;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x28
MOV qword ptr [RSP + 0x8],RSI
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RSP + 0x18],RCX
MOV R15,R8
CALL 0x0010db67
MOV RDI,RAX
CALL 0x0010cfb4
MOV qword ptr [RSP],RAX
MOV ESI,0x20
MOV RDI,RAX
CALL 0x001041b0
MOV R14,RAX
TEST RAX,RAX
JZ 0x00121a6c
LEA RBX,[RAX + 0x1]
MOV byte ptr [RAX],0x0
MOV ESI,0x20
MOV RDI,RBX
CALL 0x001041b0
MOV R14,RAX
TEST RAX,RAX
JZ 0x0012191d
LEA RDI,[RAX + 0x1]
MOV byte ptr [RAX],0x0
CALL 0x0010d3b9
MOV R14,RAX
MOV RCX,-0x1
MOV EAX,0x0
MOV RDI,RBX
SCASB.REPNE RDI
MOV RAX,RCX
NOT RAX
SUB RAX,0x1
SHR RAX,0x2
LEA EDI,[RAX + RAX*0x2]
MOV R13D,EDI
MOVSXD RDI,EDI
MOV ESI,0x1
CALL 0x0010d2c3
MOV R12,RAX
MOV EBP,0x0
MOV EDX,0x4
MOV ESI,0x0
MOV RDI,RBX
CALL 0x00104280
TEST RAX,RAX
JNZ 0x001219ab
LEA EAX,[RBP + 0x2]
CMP EAX,R13D
JGE 0x0012198c
MOVSXD RSI,EBP
ADD RSI,R12
MOV RDI,RBX
CALL 0x0010d0bb
ADD EBP,EAX
ADD RBX,0x4
JMP 0x00121957
LEA RCX,[0x139000]
MOV EDX,0x441
LEA RSI,[0x1388f1]
LEA RDI,[0x138a78]
CALL 0x001041f0
CMP byte ptr [RBX],0x0
JNZ 0x00121a78
MOV RCX,-0x1
MOV EAX,0x0
MOV RDI,qword ptr [RSP]
SCASB.REPNE RDI
NOT RCX
LEA RDX,[RCX + -0x1]
LEA EAX,[RDX + 0x3]
CMP EAX,EBP
JGE 0x00121abb
MOVSXD RDX,EDX
MOVZX EAX,byte ptr [R12]
SHL RAX,0x18
MOVZX ECX,byte ptr [R12 + 0x1]
SHL RCX,0x10
OR RAX,RCX
MOVZX ECX,byte ptr [R12 + 0x3]
OR RAX,RCX
MOVZX ECX,byte ptr [R12 + 0x2]
SHL RCX,0x8
OR RAX,RCX
CMP RAX,RDX
JNZ 0x00121ac4
LEA RDI,[R12 + 0x4]
MOV RBX,qword ptr [RSP]
MOV RSI,RBX
CALL 0x001042a0
TEST EAX,EAX
JNZ 0x00121acd
MOV R15,qword ptr [RSP + 0x8]
TEST R15,R15
JZ 0x00121a3e
MOV RDI,RBX
CALL 0x0010d3b9
MOV qword ptr [R15],RAX
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x00121a4a
MOV dword ptr [RAX],EBP
MOV RAX,qword ptr [RSP + 0x18]
TEST RAX,RAX
JZ 0x00121a62
MOV qword ptr [RAX],R14
MOV RDI,qword ptr [RSP]
CALL 0x0010db2f
JMP 0x00121aa9
MOV RDI,R14
CALL 0x0010db2f
JMP 0x00121a57
MOV R12,RAX
LEA RBX,[0x138dd8]
JMP 0x00121a7f
LEA RBX,[0x138d98]
MOV RDI,qword ptr [RSP]
CALL 0x0010db2f
MOV RDI,R14
CALL 0x0010db2f
MOV RDI,R12
CALL 0x0010db2f
MOV R12,R15
TEST R15,R15
JZ 0x00121aa9
MOV qword ptr [R15],RBX
MOV R12D,0x0
MOV RAX,R12
ADD RSP,0x28
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
LEA RBX,[0x138d60]
JMP 0x00121a7f
LEA RBX,[0x138d60]
JMP 0x00121a7f
LEA RBX,[0x138d60]
JMP 0x00121a7f
(translation_unit "byte * FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined8 uVar5;\n  char *__s;\n  char *pcVar6;\n  byte *pbVar7;\n  void *pvVar8;\n  ulong uVar9;\n  long lVar10;\n  size_t __n;\n  char *pcVar11;\n  int iVar12;\n  char *pcVar13;\n  byte bVar14;\n  \n  bVar14 = 0;\n  uVar5 = FUN_0010db67();\n  __s = (char *)FUN_0010cfb4(uVar5);\n  pcVar6 = strchr(__s,0x20);\n  if (pcVar6 == (char *)0x0) {\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }\n  FUN_0010db2f(__s);\n  FUN_0010db2f(pcVar6);\n  FUN_0010db2f(pbVar7);\n  if (param_5 != (byte *)0x0) {\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }\n  return param_5;\n}\n\n" (function_definition "byte * FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined8 uVar5;\n  char *__s;\n  char *pcVar6;\n  byte *pbVar7;\n  void *pvVar8;\n  ulong uVar9;\n  long lVar10;\n  size_t __n;\n  char *pcVar11;\n  int iVar12;\n  char *pcVar13;\n  byte bVar14;\n  \n  bVar14 = 0;\n  uVar5 = FUN_0010db67();\n  __s = (char *)FUN_0010cfb4(uVar5);\n  pcVar6 = strchr(__s,0x20);\n  if (pcVar6 == (char *)0x0) {\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }\n  FUN_0010db2f(__s);\n  FUN_0010db2f(pcVar6);\n  FUN_0010db2f(pbVar7);\n  if (param_5 != (byte *)0x0) {\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }\n  return param_5;\n}" type_identifier (pointer_declarator "* FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)" * (function_declarator "FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined8 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "byte *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined8 uVar5;\n  char *__s;\n  char *pcVar6;\n  byte *pbVar7;\n  void *pvVar8;\n  ulong uVar9;\n  long lVar10;\n  size_t __n;\n  char *pcVar11;\n  int iVar12;\n  char *pcVar13;\n  byte bVar14;\n  \n  bVar14 = 0;\n  uVar5 = FUN_0010db67();\n  __s = (char *)FUN_0010cfb4(uVar5);\n  pcVar6 = strchr(__s,0x20);\n  if (pcVar6 == (char *)0x0) {\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }\n  FUN_0010db2f(__s);\n  FUN_0010db2f(pcVar6);\n  FUN_0010db2f(pbVar7);\n  if (param_5 != (byte *)0x0) {\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }\n  return param_5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "void *pvVar8;" primitive_type (pointer_declarator "*pvVar8" * identifier) ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "char *pcVar13;" primitive_type (pointer_declarator "*pcVar13" * identifier) ;) (declaration "byte bVar14;" type_identifier identifier ;) (expression_statement "bVar14 = 0;" (assignment_expression "bVar14 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = FUN_0010db67();" (assignment_expression "uVar5 = FUN_0010db67()" identifier = (call_expression "FUN_0010db67()" identifier (argument_list "()" ( )))) ;) (expression_statement "__s = (char *)FUN_0010cfb4(uVar5);" (assignment_expression "__s = (char *)FUN_0010cfb4(uVar5)" identifier = (cast_expression "(char *)FUN_0010cfb4(uVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010cfb4(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))))) ;) (expression_statement "pcVar6 = strchr(__s,0x20);" (assignment_expression "pcVar6 = strchr(__s,0x20)" identifier = (call_expression "strchr(__s,0x20)" identifier (argument_list "(__s,0x20)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar6 == (char *)0x0) {\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }" { (expression_statement "pcVar11 = "no key blob in OpenSSH public key file";" (assignment_expression "pcVar11 = "no key blob in OpenSSH public key file"" identifier = (string_literal ""no key blob in OpenSSH public key file"" " string_content ")) ;) (expression_statement "pbVar7 = (byte *)0x0;" (assignment_expression "pbVar7 = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" else (compound_statement "{\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" { (expression_statement "pcVar11 = pcVar6 + 1;" (assignment_expression "pcVar11 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6 = strchr(pcVar11,0x20);" (assignment_expression "pcVar6 = strchr(pcVar11,0x20)" identifier = (call_expression "strchr(pcVar11,0x20)" identifier (argument_list "(pcVar11,0x20)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }" if (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }" { (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);" (assignment_expression "pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1)" identifier = (cast_expression "(char *)FUN_0010d3b9(pcVar6 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010d3b9(pcVar6 + 1)" identifier (argument_list "(pcVar6 + 1)" ( (binary_expression "pcVar6 + 1" identifier + number_literal) ))))) ;) })) (expression_statement "uVar9 = 0xffffffffffffffff;" (assignment_expression "uVar9 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar13 = pcVar11;" (assignment_expression "pcVar13 = pcVar11" identifier = identifier) ;) (do_statement "do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    }" { (if_statement "if (uVar9 == 0) break;" if (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar9 = uVar9 - 1;" (assignment_expression "uVar9 = uVar9 - 1" identifier = (binary_expression "uVar9 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar13;" (assignment_expression "cVar1 = *pcVar13" identifier = (pointer_expression "*pcVar13" * identifier)) ;) (expression_statement "pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;" (assignment_expression "pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1" identifier = (binary_expression "pcVar13 + (ulong)bVar14 * -2 + 1" (binary_expression "pcVar13 + (ulong)bVar14 * -2" identifier + (binary_expression "(ulong)bVar14 * -2" (cast_expression "(ulong)bVar14" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar2 = (int)(~uVar9 - 1 >> 2);" (assignment_expression "iVar2 = (int)(~uVar9 - 1 >> 2)" identifier = (cast_expression "(int)(~uVar9 - 1 >> 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~uVar9 - 1 >> 2)" ( (binary_expression "~uVar9 - 1 >> 2" (binary_expression "~uVar9 - 1" (unary_expression "~uVar9" ~ identifier) - number_literal) >> number_literal) )))) ;) (expression_statement "iVar4 = iVar2 * 3;" (assignment_expression "iVar4 = iVar2 * 3" identifier = (binary_expression "iVar2 * 3" identifier * number_literal)) ;) (expression_statement "pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);" (assignment_expression "pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1)" identifier = (cast_expression "(byte *)FUN_0010d2c3((long)iVar4,1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010d2c3((long)iVar4,1)" identifier (argument_list "((long)iVar4,1)" ( (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal ))))) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (while_statement "while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }" while (parenthesized_expression "(pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0)" ( (comma_expression "pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0" (assignment_expression "pvVar8 = memchr(pcVar11,0,4)" identifier = (call_expression "memchr(pcVar11,0,4)" identifier (argument_list "(pcVar11,0,4)" ( identifier , number_literal , number_literal )))) , (binary_expression "pvVar8 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }" { (if_statement "if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }" if (parenthesized_expression "(SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0)" ( (binary_expression "SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0" (call_expression "SBORROW4(iVar12 + 2,iVar4)" identifier (argument_list "(iVar12 + 2,iVar4)" ( (binary_expression "iVar12 + 2" identifier + number_literal) , identifier ))) == (binary_expression "iVar12 + 2 + iVar2 * -3 < 0" (binary_expression "iVar12 + 2 + iVar2 * -3" (binary_expression "iVar12 + 2" identifier + number_literal) + (binary_expression "iVar2 * -3" identifier * number_literal)) < number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }" { comment (expression_statement "__assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");" (call_expression "__assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub")" identifier (argument_list "("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub")" ( (string_literal ""pubbloblen + 3 <= pubblobsize"" " string_content ") , (string_literal ""sshpubk.c"" " string_content ") , number_literal , (string_literal ""openssh_loadpub"" " string_content ") ))) ;) })) (expression_statement "iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);" (assignment_expression "iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12)" identifier = (call_expression "FUN_0010d0bb(pcVar11,pbVar7 + iVar12)" identifier (argument_list "(pcVar11,pbVar7 + iVar12)" ( identifier , (binary_expression "pbVar7 + iVar12" identifier + identifier) )))) ;) (expression_statement "iVar12 = iVar12 + iVar3;" (assignment_expression "iVar12 = iVar12 + iVar3" identifier = (binary_expression "iVar12 + iVar3" identifier + identifier)) ;) (expression_statement "pcVar11 = pcVar11 + 4;" (assignment_expression "pcVar11 = pcVar11 + 4" identifier = (binary_expression "pcVar11 + 4" identifier + number_literal)) ;) })) (if_statement "if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }" if (parenthesized_expression "(*pcVar11 == '\0')" ( (binary_expression "*pcVar11 == '\0'" (pointer_expression "*pcVar11" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }" { (expression_statement "lVar10 = -1;" (assignment_expression "lVar10 = -1" identifier = number_literal) ;) (expression_statement "pcVar11 = __s;" (assignment_expression "pcVar11 = __s" identifier = identifier) ;) (do_statement "do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      }" { (if_statement "if (lVar10 == 0) break;" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar10 = lVar10 + -1;" (assignment_expression "lVar10 = lVar10 + -1" identifier = (binary_expression "lVar10 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar11;" (assignment_expression "cVar1 = *pcVar11" identifier = (pointer_expression "*pcVar11" * identifier)) ;) (expression_statement "pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;" (assignment_expression "pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1" identifier = (binary_expression "pcVar11 + (ulong)bVar14 * -2 + 1" (binary_expression "pcVar11 + (ulong)bVar14 * -2" identifier + (binary_expression "(ulong)bVar14 * -2" (cast_expression "(ulong)bVar14" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }" if (parenthesized_expression "((int)(~(uint)lVar10 + 2) < iVar12)" ( (binary_expression "(int)(~(uint)lVar10 + 2) < iVar12" (cast_expression "(int)(~(uint)lVar10 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~(uint)lVar10 + 2)" ( (binary_expression "~(uint)lVar10 + 2" (unary_expression "~(uint)lVar10" ~ (cast_expression "(uint)lVar10" ( (type_descriptor "uint" type_identifier) ) identifier)) + number_literal) ))) < identifier) )) (compound_statement "{\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }" { (expression_statement "__n = (size_t)(int)(~(uint)lVar10 - 1);" (assignment_expression "__n = (size_t)(int)(~(uint)lVar10 - 1)" identifier = (cast_expression "(size_t)(int)(~(uint)lVar10 - 1)" ( (type_descriptor "size_t" primitive_type) ) (cast_expression "(int)(~(uint)lVar10 - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~(uint)lVar10 - 1)" ( (binary_expression "~(uint)lVar10 - 1" (unary_expression "~(uint)lVar10" ~ (cast_expression "(uint)lVar10" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal) ))))) ;) (if_statement "if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" if (parenthesized_expression "(((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n)" ( (binary_expression "((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n" (parenthesized_expression "((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8)" ( (binary_expression "(ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8" (binary_expression "(ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3]" (binary_expression "(ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10" (binary_expression "(ulong)*pbVar7 << 0x18" (binary_expression "(ulong)*pbVar7" (parenthesized_expression "(ulong)" ( identifier )) * identifier) << number_literal) | (binary_expression "(ulong)pbVar7[1] << 0x10" (cast_expression "(ulong)pbVar7[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "pbVar7[1]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(ulong)pbVar7[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "pbVar7[3]" identifier [ number_literal ]))) | (binary_expression "(ulong)pbVar7[2] << 8" (cast_expression "(ulong)pbVar7[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "pbVar7[2]" identifier [ number_literal ])) << number_literal)) )) == identifier) )) (compound_statement "{\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" { (expression_statement "iVar4 = memcmp(pbVar7 + 4,__s,__n);" (assignment_expression "iVar4 = memcmp(pbVar7 + 4,__s,__n)" identifier = (call_expression "memcmp(pbVar7 + 4,__s,__n)" identifier (argument_list "(pbVar7 + 4,__s,__n)" ( (binary_expression "pbVar7 + 4" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }" { (if_statement "if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }" if (parenthesized_expression "(param_2 != (undefined8 *)0x0)" ( (binary_expression "param_2 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }" { (expression_statement "uVar5 = FUN_0010d3b9(__s);" (assignment_expression "uVar5 = FUN_0010d3b9(__s)" identifier = (call_expression "FUN_0010d3b9(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" * identifier) = identifier) ;) })) (if_statement "if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }" if (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              *param_3 = iVar12;\n            }" { (expression_statement "*param_3 = iVar12;" (assignment_expression "*param_3 = iVar12" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (if_statement "if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }" if (parenthesized_expression "(param_4 == (undefined8 *)0x0)" ( (binary_expression "param_4 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              FUN_0010db2f(pcVar6);\n            }" { (expression_statement "FUN_0010db2f(pcVar6);" (call_expression "FUN_0010db2f(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) }) (else_clause "else {\n              *param_4 = pcVar6;\n            }" else (compound_statement "{\n              *param_4 = pcVar6;\n            }" { (expression_statement "*param_4 = pcVar6;" (assignment_expression "*param_4 = pcVar6" (pointer_expression "*param_4" * identifier) = identifier) ;) }))) (expression_statement "FUN_0010db2f(__s);" (call_expression "FUN_0010db2f(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return pbVar7;" return identifier ;) })) (expression_statement "pcVar11 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar11 = "key algorithms do not match in OpenSSH public key file"" identifier = (string_literal ""key algorithms do not match in OpenSSH public key file"" " string_content ")) ;) }) (else_clause "else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" else (compound_statement "{\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" { (expression_statement "pcVar11 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar11 = "key algorithms do not match in OpenSSH public key file"" identifier = (string_literal ""key algorithms do not match in OpenSSH public key file"" " string_content ")) ;) }))) }) (else_clause "else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }" else (compound_statement "{\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }" { (expression_statement "pcVar11 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar11 = "key algorithms do not match in OpenSSH public key file"" identifier = (string_literal ""key algorithms do not match in OpenSSH public key file"" " string_content ")) ;) }))) }) (else_clause "else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }" else (compound_statement "{\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }" { (expression_statement "pcVar11 = "invalid length for base64 data in OpenSSH public key file";" (assignment_expression "pcVar11 = "invalid length for base64 data in OpenSSH public key file"" identifier = (string_literal ""invalid length for base64 data in OpenSSH public key file"" " string_content ")) ;) }))) }))) (expression_statement "FUN_0010db2f(__s);" (call_expression "FUN_0010db2f(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_0010db2f(pcVar6);" (call_expression "FUN_0010db2f(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "FUN_0010db2f(pbVar7);" (call_expression "FUN_0010db2f(pbVar7)" identifier (argument_list "(pbVar7)" ( identifier ))) ;) (if_statement "if (param_5 != (byte *)0x0) {\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }" if (parenthesized_expression "(param_5 != (byte *)0x0)" ( (binary_expression "param_5 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }" { (expression_statement "*(char **)param_5 = pcVar11;" (assignment_expression "*(char **)param_5 = pcVar11" (pointer_expression "*(char **)param_5" * (cast_expression "(char **)param_5" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "param_5 = (byte *)0x0;" (assignment_expression "param_5 = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return param_5;" return identifier ;) })))
(translation_unit "uchar * openssh_loadpub(FILE *fp,char **algorithm,int *pub_blob_len,char **commentptr,\n                       char **errorstr)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  byte *ptr;\n  void *pvVar7;\n  ulong uVar8;\n  long lVar9;\n  size_t __n;\n  char *pcVar10;\n  int iVar11;\n  char *pcVar12;\n  byte bVar13;\n  \n  bVar13 = 0;\n  pcVar5 = fgetline(fp);\n  pcVar5 = chomp(pcVar5);\n  pcVar6 = strchr(pcVar5,0x20);\n  if (pcVar6 == (char *)0x0) {\n    pcVar10 = "no key blob in OpenSSH public key file";\n    ptr = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar10 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar10,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = dupstr(pcVar6 + 1);\n    }\n    uVar8 = 0xffffffffffffffff;\n    pcVar12 = pcVar10;\n    do {\n      if (uVar8 == 0) break;\n      uVar8 = uVar8 - 1;\n      cVar1 = *pcVar12;\n      pcVar12 = pcVar12 + (ulong)bVar13 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar8 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    ptr = (byte *)safemalloc((long)iVar4,1);\n    iVar11 = 0;\n    while (pvVar7 = memchr(pcVar10,0,4), pvVar7 == (void *)0x0) {\n      if (SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = base64_decode_atom(pcVar10,ptr + iVar11);\n      iVar11 = iVar11 + iVar3;\n      pcVar10 = pcVar10 + 4;\n    }\n    if (*pcVar10 == '\0') {\n      lVar9 = -1;\n      pcVar10 = pcVar5;\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        cVar1 = *pcVar10;\n        pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar9 + 2) < iVar11) {\n        __n = (size_t)(int)(~(uint)lVar9 - 1);\n        if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n) {\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar10 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar10 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }\n  safefree(pcVar5);\n  safefree(pcVar6);\n  safefree(ptr);\n  if (errorstr != (char **)0x0) {\n    *errorstr = pcVar10;\n    errorstr = (char **)0x0;\n  }\n  return (uchar *)errorstr;\n}\n\n" (function_definition "uchar * openssh_loadpub(FILE *fp,char **algorithm,int *pub_blob_len,char **commentptr,\n                       char **errorstr)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  byte *ptr;\n  void *pvVar7;\n  ulong uVar8;\n  long lVar9;\n  size_t __n;\n  char *pcVar10;\n  int iVar11;\n  char *pcVar12;\n  byte bVar13;\n  \n  bVar13 = 0;\n  pcVar5 = fgetline(fp);\n  pcVar5 = chomp(pcVar5);\n  pcVar6 = strchr(pcVar5,0x20);\n  if (pcVar6 == (char *)0x0) {\n    pcVar10 = "no key blob in OpenSSH public key file";\n    ptr = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar10 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar10,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = dupstr(pcVar6 + 1);\n    }\n    uVar8 = 0xffffffffffffffff;\n    pcVar12 = pcVar10;\n    do {\n      if (uVar8 == 0) break;\n      uVar8 = uVar8 - 1;\n      cVar1 = *pcVar12;\n      pcVar12 = pcVar12 + (ulong)bVar13 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar8 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    ptr = (byte *)safemalloc((long)iVar4,1);\n    iVar11 = 0;\n    while (pvVar7 = memchr(pcVar10,0,4), pvVar7 == (void *)0x0) {\n      if (SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = base64_decode_atom(pcVar10,ptr + iVar11);\n      iVar11 = iVar11 + iVar3;\n      pcVar10 = pcVar10 + 4;\n    }\n    if (*pcVar10 == '\0') {\n      lVar9 = -1;\n      pcVar10 = pcVar5;\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        cVar1 = *pcVar10;\n        pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar9 + 2) < iVar11) {\n        __n = (size_t)(int)(~(uint)lVar9 - 1);\n        if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n) {\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar10 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar10 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }\n  safefree(pcVar5);\n  safefree(pcVar6);\n  safefree(ptr);\n  if (errorstr != (char **)0x0) {\n    *errorstr = pcVar10;\n    errorstr = (char **)0x0;\n  }\n  return (uchar *)errorstr;\n}" type_identifier (pointer_declarator "* openssh_loadpub(FILE *fp,char **algorithm,int *pub_blob_len,char **commentptr,\n                       char **errorstr)" * (function_declarator "openssh_loadpub(FILE *fp,char **algorithm,int *pub_blob_len,char **commentptr,\n                       char **errorstr)" identifier (parameter_list "(FILE *fp,char **algorithm,int *pub_blob_len,char **commentptr,\n                       char **errorstr)" ( (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) , (parameter_declaration "char **algorithm" primitive_type (pointer_declarator "**algorithm" * (pointer_declarator "*algorithm" * identifier))) , (parameter_declaration "int *pub_blob_len" primitive_type (pointer_declarator "*pub_blob_len" * identifier)) , (parameter_declaration "char **commentptr" primitive_type (pointer_declarator "**commentptr" * (pointer_declarator "*commentptr" * identifier))) , (parameter_declaration "char **errorstr" primitive_type (pointer_declarator "**errorstr" * (pointer_declarator "*errorstr" * identifier))) )))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  char *pcVar6;\n  byte *ptr;\n  void *pvVar7;\n  ulong uVar8;\n  long lVar9;\n  size_t __n;\n  char *pcVar10;\n  int iVar11;\n  char *pcVar12;\n  byte bVar13;\n  \n  bVar13 = 0;\n  pcVar5 = fgetline(fp);\n  pcVar5 = chomp(pcVar5);\n  pcVar6 = strchr(pcVar5,0x20);\n  if (pcVar6 == (char *)0x0) {\n    pcVar10 = "no key blob in OpenSSH public key file";\n    ptr = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar10 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar10,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = dupstr(pcVar6 + 1);\n    }\n    uVar8 = 0xffffffffffffffff;\n    pcVar12 = pcVar10;\n    do {\n      if (uVar8 == 0) break;\n      uVar8 = uVar8 - 1;\n      cVar1 = *pcVar12;\n      pcVar12 = pcVar12 + (ulong)bVar13 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar8 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    ptr = (byte *)safemalloc((long)iVar4,1);\n    iVar11 = 0;\n    while (pvVar7 = memchr(pcVar10,0,4), pvVar7 == (void *)0x0) {\n      if (SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = base64_decode_atom(pcVar10,ptr + iVar11);\n      iVar11 = iVar11 + iVar3;\n      pcVar10 = pcVar10 + 4;\n    }\n    if (*pcVar10 == '\0') {\n      lVar9 = -1;\n      pcVar10 = pcVar5;\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        cVar1 = *pcVar10;\n        pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar9 + 2) < iVar11) {\n        __n = (size_t)(int)(~(uint)lVar9 - 1);\n        if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n) {\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar10 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar10 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }\n  safefree(pcVar5);\n  safefree(pcVar6);\n  safefree(ptr);\n  if (errorstr != (char **)0x0) {\n    *errorstr = pcVar10;\n    errorstr = (char **)0x0;\n  }\n  return (uchar *)errorstr;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "byte *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "void *pvVar7;" primitive_type (pointer_declarator "*pvVar7" * identifier) ;) (declaration "ulong uVar8;" type_identifier identifier ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (declaration "byte bVar13;" type_identifier identifier ;) (expression_statement "bVar13 = 0;" (assignment_expression "bVar13 = 0" identifier = number_literal) ;) (expression_statement "pcVar5 = fgetline(fp);" (assignment_expression "pcVar5 = fgetline(fp)" identifier = (call_expression "fgetline(fp)" identifier (argument_list "(fp)" ( identifier )))) ;) (expression_statement "pcVar5 = chomp(pcVar5);" (assignment_expression "pcVar5 = chomp(pcVar5)" identifier = (call_expression "chomp(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "pcVar6 = strchr(pcVar5,0x20);" (assignment_expression "pcVar6 = strchr(pcVar5,0x20)" identifier = (call_expression "strchr(pcVar5,0x20)" identifier (argument_list "(pcVar5,0x20)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar6 == (char *)0x0) {\n    pcVar10 = "no key blob in OpenSSH public key file";\n    ptr = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar10 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar10,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = dupstr(pcVar6 + 1);\n    }\n    uVar8 = 0xffffffffffffffff;\n    pcVar12 = pcVar10;\n    do {\n      if (uVar8 == 0) break;\n      uVar8 = uVar8 - 1;\n      cVar1 = *pcVar12;\n      pcVar12 = pcVar12 + (ulong)bVar13 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar8 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    ptr = (byte *)safemalloc((long)iVar4,1);\n    iVar11 = 0;\n    while (pvVar7 = memchr(pcVar10,0,4), pvVar7 == (void *)0x0) {\n      if (SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = base64_decode_atom(pcVar10,ptr + iVar11);\n      iVar11 = iVar11 + iVar3;\n      pcVar10 = pcVar10 + 4;\n    }\n    if (*pcVar10 == '\0') {\n      lVar9 = -1;\n      pcVar10 = pcVar5;\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        cVar1 = *pcVar10;\n        pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar9 + 2) < iVar11) {\n        __n = (size_t)(int)(~(uint)lVar9 - 1);\n        if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n) {\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar10 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar10 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar10 = "no key blob in OpenSSH public key file";\n    ptr = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }" { (expression_statement "pcVar10 = "no key blob in OpenSSH public key file";" (assignment_expression "pcVar10 = "no key blob in OpenSSH public key file"" identifier = (string_literal ""no key blob in OpenSSH public key file"" " string_content ")) ;) (expression_statement "ptr = (byte *)0x0;" (assignment_expression "ptr = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    pcVar10 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar10,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = dupstr(pcVar6 + 1);\n    }\n    uVar8 = 0xffffffffffffffff;\n    pcVar12 = pcVar10;\n    do {\n      if (uVar8 == 0) break;\n      uVar8 = uVar8 - 1;\n      cVar1 = *pcVar12;\n      pcVar12 = pcVar12 + (ulong)bVar13 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar8 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    ptr = (byte *)safemalloc((long)iVar4,1);\n    iVar11 = 0;\n    while (pvVar7 = memchr(pcVar10,0,4), pvVar7 == (void *)0x0) {\n      if (SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = base64_decode_atom(pcVar10,ptr + iVar11);\n      iVar11 = iVar11 + iVar3;\n      pcVar10 = pcVar10 + 4;\n    }\n    if (*pcVar10 == '\0') {\n      lVar9 = -1;\n      pcVar10 = pcVar5;\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        cVar1 = *pcVar10;\n        pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar9 + 2) < iVar11) {\n        __n = (size_t)(int)(~(uint)lVar9 - 1);\n        if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n) {\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar10 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar10 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" else (compound_statement "{\n    pcVar10 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar10,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = dupstr(pcVar6 + 1);\n    }\n    uVar8 = 0xffffffffffffffff;\n    pcVar12 = pcVar10;\n    do {\n      if (uVar8 == 0) break;\n      uVar8 = uVar8 - 1;\n      cVar1 = *pcVar12;\n      pcVar12 = pcVar12 + (ulong)bVar13 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar8 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    ptr = (byte *)safemalloc((long)iVar4,1);\n    iVar11 = 0;\n    while (pvVar7 = memchr(pcVar10,0,4), pvVar7 == (void *)0x0) {\n      if (SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = base64_decode_atom(pcVar10,ptr + iVar11);\n      iVar11 = iVar11 + iVar3;\n      pcVar10 = pcVar10 + 4;\n    }\n    if (*pcVar10 == '\0') {\n      lVar9 = -1;\n      pcVar10 = pcVar5;\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        cVar1 = *pcVar10;\n        pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar9 + 2) < iVar11) {\n        __n = (size_t)(int)(~(uint)lVar9 - 1);\n        if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n) {\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar10 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar10 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" { (expression_statement "pcVar10 = pcVar6 + 1;" (assignment_expression "pcVar10 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6 = strchr(pcVar10,0x20);" (assignment_expression "pcVar6 = strchr(pcVar10,0x20)" identifier = (call_expression "strchr(pcVar10,0x20)" identifier (argument_list "(pcVar10,0x20)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = dupstr(pcVar6 + 1);\n    }" if (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *pcVar6 = '\0';\n      pcVar6 = dupstr(pcVar6 + 1);\n    }" { (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6 = dupstr(pcVar6 + 1);" (assignment_expression "pcVar6 = dupstr(pcVar6 + 1)" identifier = (call_expression "dupstr(pcVar6 + 1)" identifier (argument_list "(pcVar6 + 1)" ( (binary_expression "pcVar6 + 1" identifier + number_literal) )))) ;) })) (expression_statement "uVar8 = 0xffffffffffffffff;" (assignment_expression "uVar8 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar12 = pcVar10;" (assignment_expression "pcVar12 = pcVar10" identifier = identifier) ;) (do_statement "do {\n      if (uVar8 == 0) break;\n      uVar8 = uVar8 - 1;\n      cVar1 = *pcVar12;\n      pcVar12 = pcVar12 + (ulong)bVar13 * -2 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (uVar8 == 0) break;\n      uVar8 = uVar8 - 1;\n      cVar1 = *pcVar12;\n      pcVar12 = pcVar12 + (ulong)bVar13 * -2 + 1;\n    }" { (if_statement "if (uVar8 == 0) break;" if (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = uVar8 - 1;" (assignment_expression "uVar8 = uVar8 - 1" identifier = (binary_expression "uVar8 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar12;" (assignment_expression "cVar1 = *pcVar12" identifier = (pointer_expression "*pcVar12" * identifier)) ;) (expression_statement "pcVar12 = pcVar12 + (ulong)bVar13 * -2 + 1;" (assignment_expression "pcVar12 = pcVar12 + (ulong)bVar13 * -2 + 1" identifier = (binary_expression "pcVar12 + (ulong)bVar13 * -2 + 1" (binary_expression "pcVar12 + (ulong)bVar13 * -2" identifier + (binary_expression "(ulong)bVar13 * -2" (cast_expression "(ulong)bVar13" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar2 = (int)(~uVar8 - 1 >> 2);" (assignment_expression "iVar2 = (int)(~uVar8 - 1 >> 2)" identifier = (cast_expression "(int)(~uVar8 - 1 >> 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~uVar8 - 1 >> 2)" ( (binary_expression "~uVar8 - 1 >> 2" (binary_expression "~uVar8 - 1" (unary_expression "~uVar8" ~ identifier) - number_literal) >> number_literal) )))) ;) (expression_statement "iVar4 = iVar2 * 3;" (assignment_expression "iVar4 = iVar2 * 3" identifier = (binary_expression "iVar2 * 3" identifier * number_literal)) ;) (expression_statement "ptr = (byte *)safemalloc((long)iVar4,1);" (assignment_expression "ptr = (byte *)safemalloc((long)iVar4,1)" identifier = (cast_expression "(byte *)safemalloc((long)iVar4,1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc((long)iVar4,1)" identifier (argument_list "((long)iVar4,1)" ( (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal ))))) ;) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (while_statement "while (pvVar7 = memchr(pcVar10,0,4), pvVar7 == (void *)0x0) {\n      if (SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = base64_decode_atom(pcVar10,ptr + iVar11);\n      iVar11 = iVar11 + iVar3;\n      pcVar10 = pcVar10 + 4;\n    }" while (parenthesized_expression "(pvVar7 = memchr(pcVar10,0,4), pvVar7 == (void *)0x0)" ( (comma_expression "pvVar7 = memchr(pcVar10,0,4), pvVar7 == (void *)0x0" (assignment_expression "pvVar7 = memchr(pcVar10,0,4)" identifier = (call_expression "memchr(pcVar10,0,4)" identifier (argument_list "(pcVar10,0,4)" ( identifier , number_literal , number_literal )))) , (binary_expression "pvVar7 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      if (SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = base64_decode_atom(pcVar10,ptr + iVar11);\n      iVar11 = iVar11 + iVar3;\n      pcVar10 = pcVar10 + 4;\n    }" { (if_statement "if (SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }" if (parenthesized_expression "(SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0)" ( (binary_expression "SBORROW4(iVar11 + 2,iVar4) == iVar11 + 2 + iVar2 * -3 < 0" (call_expression "SBORROW4(iVar11 + 2,iVar4)" identifier (argument_list "(iVar11 + 2,iVar4)" ( (binary_expression "iVar11 + 2" identifier + number_literal) , identifier ))) == (binary_expression "iVar11 + 2 + iVar2 * -3 < 0" (binary_expression "iVar11 + 2 + iVar2 * -3" (binary_expression "iVar11 + 2" identifier + number_literal) + (binary_expression "iVar2 * -3" identifier * number_literal)) < number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }" { comment (expression_statement "__assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");" (call_expression "__assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub")" identifier (argument_list "("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub")" ( (string_literal ""pubbloblen + 3 <= pubblobsize"" " string_content ") , (string_literal ""sshpubk.c"" " string_content ") , number_literal , (string_literal ""openssh_loadpub"" " string_content ") ))) ;) })) (expression_statement "iVar3 = base64_decode_atom(pcVar10,ptr + iVar11);" (assignment_expression "iVar3 = base64_decode_atom(pcVar10,ptr + iVar11)" identifier = (call_expression "base64_decode_atom(pcVar10,ptr + iVar11)" identifier (argument_list "(pcVar10,ptr + iVar11)" ( identifier , (binary_expression "ptr + iVar11" identifier + identifier) )))) ;) (expression_statement "iVar11 = iVar11 + iVar3;" (assignment_expression "iVar11 = iVar11 + iVar3" identifier = (binary_expression "iVar11 + iVar3" identifier + identifier)) ;) (expression_statement "pcVar10 = pcVar10 + 4;" (assignment_expression "pcVar10 = pcVar10 + 4" identifier = (binary_expression "pcVar10 + 4" identifier + number_literal)) ;) })) (if_statement "if (*pcVar10 == '\0') {\n      lVar9 = -1;\n      pcVar10 = pcVar5;\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        cVar1 = *pcVar10;\n        pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar9 + 2) < iVar11) {\n        __n = (size_t)(int)(~(uint)lVar9 - 1);\n        if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n) {\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar10 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar10 = "invalid length for base64 data in OpenSSH public key file";\n    }" if (parenthesized_expression "(*pcVar10 == '\0')" ( (binary_expression "*pcVar10 == '\0'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      lVar9 = -1;\n      pcVar10 = pcVar5;\n      do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        cVar1 = *pcVar10;\n        pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar9 + 2) < iVar11) {\n        __n = (size_t)(int)(~(uint)lVar9 - 1);\n        if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n) {\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar10 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }" { (expression_statement "lVar9 = -1;" (assignment_expression "lVar9 = -1" identifier = number_literal) ;) (expression_statement "pcVar10 = pcVar5;" (assignment_expression "pcVar10 = pcVar5" identifier = identifier) ;) (do_statement "do {\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        cVar1 = *pcVar10;\n        pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (lVar9 == 0) break;\n        lVar9 = lVar9 + -1;\n        cVar1 = *pcVar10;\n        pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;\n      }" { (if_statement "if (lVar9 == 0) break;" if (parenthesized_expression "(lVar9 == 0)" ( (binary_expression "lVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar9 = lVar9 + -1;" (assignment_expression "lVar9 = lVar9 + -1" identifier = (binary_expression "lVar9 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (expression_statement "pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1;" (assignment_expression "pcVar10 = pcVar10 + (ulong)bVar13 * -2 + 1" identifier = (binary_expression "pcVar10 + (ulong)bVar13 * -2 + 1" (binary_expression "pcVar10 + (ulong)bVar13 * -2" identifier + (binary_expression "(ulong)bVar13 * -2" (cast_expression "(ulong)bVar13" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if ((int)(~(uint)lVar9 + 2) < iVar11) {\n        __n = (size_t)(int)(~(uint)lVar9 - 1);\n        if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n) {\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar10 = "key algorithms do not match in OpenSSH public key file";\n      }" if (parenthesized_expression "((int)(~(uint)lVar9 + 2) < iVar11)" ( (binary_expression "(int)(~(uint)lVar9 + 2) < iVar11" (cast_expression "(int)(~(uint)lVar9 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~(uint)lVar9 + 2)" ( (binary_expression "~(uint)lVar9 + 2" (unary_expression "~(uint)lVar9" ~ (cast_expression "(uint)lVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) + number_literal) ))) < identifier) )) (compound_statement "{\n        __n = (size_t)(int)(~(uint)lVar9 - 1);\n        if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n) {\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }" { (expression_statement "__n = (size_t)(int)(~(uint)lVar9 - 1);" (assignment_expression "__n = (size_t)(int)(~(uint)lVar9 - 1)" identifier = (cast_expression "(size_t)(int)(~(uint)lVar9 - 1)" ( (type_descriptor "size_t" primitive_type) ) (cast_expression "(int)(~(uint)lVar9 - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~(uint)lVar9 - 1)" ( (binary_expression "~(uint)lVar9 - 1" (unary_expression "~(uint)lVar9" ~ (cast_expression "(uint)lVar9" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal) ))))) ;) (if_statement "if (((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n) {\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }" if (parenthesized_expression "(((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n)" ( (binary_expression "((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8) ==\n            __n" (parenthesized_expression "((ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8)" ( (binary_expression "(ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3] | (ulong)ptr[2] << 8" (binary_expression "(ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10 | (ulong)ptr[3]" (binary_expression "(ulong)*ptr << 0x18 | (ulong)ptr[1] << 0x10" (binary_expression "(ulong)*ptr << 0x18" (binary_expression "(ulong)*ptr" (parenthesized_expression "(ulong)" ( identifier )) * identifier) << number_literal) | (binary_expression "(ulong)ptr[1] << 0x10" (cast_expression "(ulong)ptr[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "ptr[1]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(ulong)ptr[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "ptr[3]" identifier [ number_literal ]))) | (binary_expression "(ulong)ptr[2] << 8" (cast_expression "(ulong)ptr[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "ptr[2]" identifier [ number_literal ])) << number_literal)) )) == identifier) )) (compound_statement "{\n          iVar4 = memcmp(ptr + 4,pcVar5,__n);\n          if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }" { (expression_statement "iVar4 = memcmp(ptr + 4,pcVar5,__n);" (assignment_expression "iVar4 = memcmp(ptr + 4,pcVar5,__n)" identifier = (call_expression "memcmp(ptr + 4,pcVar5,__n)" identifier (argument_list "(ptr + 4,pcVar5,__n)" ( (binary_expression "ptr + 4" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }\n            if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }\n            if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }\n            safefree(pcVar5);\n            return ptr;\n          }" { (if_statement "if (algorithm != (char **)0x0) {\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }" if (parenthesized_expression "(algorithm != (char **)0x0)" ( (binary_expression "algorithm != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n              pcVar10 = dupstr(pcVar5);\n              *algorithm = pcVar10;\n            }" { (expression_statement "pcVar10 = dupstr(pcVar5);" (assignment_expression "pcVar10 = dupstr(pcVar5)" identifier = (call_expression "dupstr(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "*algorithm = pcVar10;" (assignment_expression "*algorithm = pcVar10" (pointer_expression "*algorithm" * identifier) = identifier) ;) })) (if_statement "if (pub_blob_len != (int *)0x0) {\n              *pub_blob_len = iVar11;\n            }" if (parenthesized_expression "(pub_blob_len != (int *)0x0)" ( (binary_expression "pub_blob_len != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              *pub_blob_len = iVar11;\n            }" { (expression_statement "*pub_blob_len = iVar11;" (assignment_expression "*pub_blob_len = iVar11" (pointer_expression "*pub_blob_len" * identifier) = identifier) ;) })) (if_statement "if (commentptr == (char **)0x0) {\n              safefree(pcVar6);\n            }\n            else {\n              *commentptr = pcVar6;\n            }" if (parenthesized_expression "(commentptr == (char **)0x0)" ( (binary_expression "commentptr == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n              safefree(pcVar6);\n            }" { (expression_statement "safefree(pcVar6);" (call_expression "safefree(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) }) (else_clause "else {\n              *commentptr = pcVar6;\n            }" else (compound_statement "{\n              *commentptr = pcVar6;\n            }" { (expression_statement "*commentptr = pcVar6;" (assignment_expression "*commentptr = pcVar6" (pointer_expression "*commentptr" * identifier) = identifier) ;) }))) (expression_statement "safefree(pcVar5);" (call_expression "safefree(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (return_statement "return ptr;" return identifier ;) })) (expression_statement "pcVar10 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar10 = "key algorithms do not match in OpenSSH public key file"" identifier = (string_literal ""key algorithms do not match in OpenSSH public key file"" " string_content ")) ;) }) (else_clause "else {\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }" else (compound_statement "{\n          pcVar10 = "key algorithms do not match in OpenSSH public key file";\n        }" { (expression_statement "pcVar10 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar10 = "key algorithms do not match in OpenSSH public key file"" identifier = (string_literal ""key algorithms do not match in OpenSSH public key file"" " string_content ")) ;) }))) }) (else_clause "else {\n        pcVar10 = "key algorithms do not match in OpenSSH public key file";\n      }" else (compound_statement "{\n        pcVar10 = "key algorithms do not match in OpenSSH public key file";\n      }" { (expression_statement "pcVar10 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar10 = "key algorithms do not match in OpenSSH public key file"" identifier = (string_literal ""key algorithms do not match in OpenSSH public key file"" " string_content ")) ;) }))) }) (else_clause "else {\n      pcVar10 = "invalid length for base64 data in OpenSSH public key file";\n    }" else (compound_statement "{\n      pcVar10 = "invalid length for base64 data in OpenSSH public key file";\n    }" { (expression_statement "pcVar10 = "invalid length for base64 data in OpenSSH public key file";" (assignment_expression "pcVar10 = "invalid length for base64 data in OpenSSH public key file"" identifier = (string_literal ""invalid length for base64 data in OpenSSH public key file"" " string_content ")) ;) }))) }))) (expression_statement "safefree(pcVar5);" (call_expression "safefree(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "safefree(pcVar6);" (call_expression "safefree(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (if_statement "if (errorstr != (char **)0x0) {\n    *errorstr = pcVar10;\n    errorstr = (char **)0x0;\n  }" if (parenthesized_expression "(errorstr != (char **)0x0)" ( (binary_expression "errorstr != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    *errorstr = pcVar10;\n    errorstr = (char **)0x0;\n  }" { (expression_statement "*errorstr = pcVar10;" (assignment_expression "*errorstr = pcVar10" (pointer_expression "*errorstr" * identifier) = identifier) ;) (expression_statement "errorstr = (char **)0x0;" (assignment_expression "errorstr = (char **)0x0" identifier = (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ;) })) (return_statement "return (uchar *)errorstr;" return (cast_expression "(uchar *)errorstr" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "byte * FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined8 uVar5;\n  char *__s;\n  char *pcVar6;\n  byte *pbVar7;\n  void *pvVar8;\n  ulong uVar9;\n  long lVar10;\n  size_t __n;\n  char *pcVar11;\n  int iVar12;\n  char *pcVar13;\n  byte bVar14;\n  \n  bVar14 = 0;\n  uVar5 = FUN_0010db67();\n  __s = (char *)FUN_0010cfb4(uVar5);\n  pcVar6 = strchr(__s,0x20);\n  if (pcVar6 == (char *)0x0) {\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }\n  FUN_0010db2f(__s);\n  FUN_0010db2f(pcVar6);\n  FUN_0010db2f(pbVar7);\n  if (param_5 != (byte *)0x0) {\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }\n  return param_5;\n}\n\n" (function_definition "byte * FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined8 uVar5;\n  char *__s;\n  char *pcVar6;\n  byte *pbVar7;\n  void *pvVar8;\n  ulong uVar9;\n  long lVar10;\n  size_t __n;\n  char *pcVar11;\n  int iVar12;\n  char *pcVar13;\n  byte bVar14;\n  \n  bVar14 = 0;\n  uVar5 = FUN_0010db67();\n  __s = (char *)FUN_0010cfb4(uVar5);\n  pcVar6 = strchr(__s,0x20);\n  if (pcVar6 == (char *)0x0) {\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }\n  FUN_0010db2f(__s);\n  FUN_0010db2f(pcVar6);\n  FUN_0010db2f(pbVar7);\n  if (param_5 != (byte *)0x0) {\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }\n  return param_5;\n}" type_identifier (pointer_declarator "* FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)" * (function_declarator "FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined8 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "byte *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) )))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined8 uVar5;\n  char *__s;\n  char *pcVar6;\n  byte *pbVar7;\n  void *pvVar8;\n  ulong uVar9;\n  long lVar10;\n  size_t __n;\n  char *pcVar11;\n  int iVar12;\n  char *pcVar13;\n  byte bVar14;\n  \n  bVar14 = 0;\n  uVar5 = FUN_0010db67();\n  __s = (char *)FUN_0010cfb4(uVar5);\n  pcVar6 = strchr(__s,0x20);\n  if (pcVar6 == (char *)0x0) {\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }\n  FUN_0010db2f(__s);\n  FUN_0010db2f(pcVar6);\n  FUN_0010db2f(pbVar7);\n  if (param_5 != (byte *)0x0) {\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }\n  return param_5;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "byte *pbVar7;" type_identifier (pointer_declarator "*pbVar7" * identifier) ;) (declaration "void *pvVar8;" primitive_type (pointer_declarator "*pvVar8" * identifier) ;) (declaration "ulong uVar9;" type_identifier identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "char *pcVar13;" primitive_type (pointer_declarator "*pcVar13" * identifier) ;) (declaration "byte bVar14;" type_identifier identifier ;) (expression_statement "bVar14 = 0;" (assignment_expression "bVar14 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = FUN_0010db67();" (assignment_expression "uVar5 = FUN_0010db67()" identifier = (call_expression "FUN_0010db67()" identifier (argument_list "()" ( )))) ;) (expression_statement "__s = (char *)FUN_0010cfb4(uVar5);" (assignment_expression "__s = (char *)FUN_0010cfb4(uVar5)" identifier = (cast_expression "(char *)FUN_0010cfb4(uVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010cfb4(uVar5)" identifier (argument_list "(uVar5)" ( identifier ))))) ;) (expression_statement "pcVar6 = strchr(__s,0x20);" (assignment_expression "pcVar6 = strchr(__s,0x20)" identifier = (call_expression "strchr(__s,0x20)" identifier (argument_list "(__s,0x20)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar6 == (char *)0x0) {\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" if (parenthesized_expression "(pcVar6 == (char *)0x0)" ( (binary_expression "pcVar6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }" { (expression_statement "pcVar11 = "no key blob in OpenSSH public key file";" (assignment_expression "pcVar11 = "no key blob in OpenSSH public key file"" identifier = (string_literal ""no key blob in OpenSSH public key file"" " string_content ")) ;) (expression_statement "pbVar7 = (byte *)0x0;" (assignment_expression "pbVar7 = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" else (compound_statement "{\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" { (expression_statement "pcVar11 = pcVar6 + 1;" (assignment_expression "pcVar11 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6 = strchr(pcVar11,0x20);" (assignment_expression "pcVar6 = strchr(pcVar11,0x20)" identifier = (call_expression "strchr(pcVar11,0x20)" identifier (argument_list "(pcVar11,0x20)" ( identifier , number_literal )))) ;) (if_statement "if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }" if (parenthesized_expression "(pcVar6 != (char *)0x0)" ( (binary_expression "pcVar6 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }" { (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);" (assignment_expression "pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1)" identifier = (cast_expression "(char *)FUN_0010d3b9(pcVar6 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010d3b9(pcVar6 + 1)" identifier (argument_list "(pcVar6 + 1)" ( (binary_expression "pcVar6 + 1" identifier + number_literal) ))))) ;) })) (expression_statement "uVar9 = 0xffffffffffffffff;" (assignment_expression "uVar9 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar13 = pcVar11;" (assignment_expression "pcVar13 = pcVar11" identifier = identifier) ;) (do_statement "do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    }" { (if_statement "if (uVar9 == 0) break;" if (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar9 = uVar9 - 1;" (assignment_expression "uVar9 = uVar9 - 1" identifier = (binary_expression "uVar9 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar13;" (assignment_expression "cVar1 = *pcVar13" identifier = (pointer_expression "*pcVar13" * identifier)) ;) (expression_statement "pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;" (assignment_expression "pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1" identifier = (binary_expression "pcVar13 + (ulong)bVar14 * -2 + 1" (binary_expression "pcVar13 + (ulong)bVar14 * -2" identifier + (binary_expression "(ulong)bVar14 * -2" (cast_expression "(ulong)bVar14" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar2 = (int)(~uVar9 - 1 >> 2);" (assignment_expression "iVar2 = (int)(~uVar9 - 1 >> 2)" identifier = (cast_expression "(int)(~uVar9 - 1 >> 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~uVar9 - 1 >> 2)" ( (binary_expression "~uVar9 - 1 >> 2" (binary_expression "~uVar9 - 1" (unary_expression "~uVar9" ~ identifier) - number_literal) >> number_literal) )))) ;) (expression_statement "iVar4 = iVar2 * 3;" (assignment_expression "iVar4 = iVar2 * 3" identifier = (binary_expression "iVar2 * 3" identifier * number_literal)) ;) (expression_statement "pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);" (assignment_expression "pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1)" identifier = (cast_expression "(byte *)FUN_0010d2c3((long)iVar4,1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0010d2c3((long)iVar4,1)" identifier (argument_list "((long)iVar4,1)" ( (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal ))))) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) (while_statement "while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }" while (parenthesized_expression "(pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0)" ( (comma_expression "pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0" (assignment_expression "pvVar8 = memchr(pcVar11,0,4)" identifier = (call_expression "memchr(pcVar11,0,4)" identifier (argument_list "(pcVar11,0,4)" ( identifier , number_literal , number_literal )))) , (binary_expression "pvVar8 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }" { (if_statement "if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }" if (parenthesized_expression "(SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0)" ( (binary_expression "SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0" (call_expression "SBORROW4(iVar12 + 2,iVar4)" identifier (argument_list "(iVar12 + 2,iVar4)" ( (binary_expression "iVar12 + 2" identifier + number_literal) , identifier ))) == (binary_expression "iVar12 + 2 + iVar2 * -3 < 0" (binary_expression "iVar12 + 2 + iVar2 * -3" (binary_expression "iVar12 + 2" identifier + number_literal) + (binary_expression "iVar2 * -3" identifier * number_literal)) < number_literal)) )) (compound_statement "{\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }" { (expression_statement "__assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");" (call_expression "__assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub")" identifier (argument_list "("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub")" ( (string_literal ""pubbloblen + 3 <= pubblobsize"" " string_content ") , (string_literal ""sshpubk.c"" " string_content ") , number_literal , (string_literal ""openssh_loadpub"" " string_content ") ))) ;) })) (expression_statement "iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);" (assignment_expression "iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12)" identifier = (call_expression "FUN_0010d0bb(pcVar11,pbVar7 + iVar12)" identifier (argument_list "(pcVar11,pbVar7 + iVar12)" ( identifier , (binary_expression "pbVar7 + iVar12" identifier + identifier) )))) ;) (expression_statement "iVar12 = iVar12 + iVar3;" (assignment_expression "iVar12 = iVar12 + iVar3" identifier = (binary_expression "iVar12 + iVar3" identifier + identifier)) ;) (expression_statement "pcVar11 = pcVar11 + 4;" (assignment_expression "pcVar11 = pcVar11 + 4" identifier = (binary_expression "pcVar11 + 4" identifier + number_literal)) ;) })) (if_statement "if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }" if (parenthesized_expression "(*pcVar11 == '\0')" ( (binary_expression "*pcVar11 == '\0'" (pointer_expression "*pcVar11" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }" { (expression_statement "lVar10 = -1;" (assignment_expression "lVar10 = -1" identifier = number_literal) ;) (expression_statement "pcVar11 = __s;" (assignment_expression "pcVar11 = __s" identifier = identifier) ;) (do_statement "do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      }" { (if_statement "if (lVar10 == 0) break;" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar10 = lVar10 + -1;" (assignment_expression "lVar10 = lVar10 + -1" identifier = (binary_expression "lVar10 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar11;" (assignment_expression "cVar1 = *pcVar11" identifier = (pointer_expression "*pcVar11" * identifier)) ;) (expression_statement "pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;" (assignment_expression "pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1" identifier = (binary_expression "pcVar11 + (ulong)bVar14 * -2 + 1" (binary_expression "pcVar11 + (ulong)bVar14 * -2" identifier + (binary_expression "(ulong)bVar14 * -2" (cast_expression "(ulong)bVar14" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (if_statement "if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }" if (parenthesized_expression "((int)(~(uint)lVar10 + 2) < iVar12)" ( (binary_expression "(int)(~(uint)lVar10 + 2) < iVar12" (cast_expression "(int)(~(uint)lVar10 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~(uint)lVar10 + 2)" ( (binary_expression "~(uint)lVar10 + 2" (unary_expression "~(uint)lVar10" ~ (cast_expression "(uint)lVar10" ( (type_descriptor "uint" type_identifier) ) identifier)) + number_literal) ))) < identifier) )) (compound_statement "{\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }" { (expression_statement "__n = (size_t)(int)(~(uint)lVar10 - 1);" (assignment_expression "__n = (size_t)(int)(~(uint)lVar10 - 1)" identifier = (cast_expression "(size_t)(int)(~(uint)lVar10 - 1)" ( (type_descriptor "size_t" primitive_type) ) (cast_expression "(int)(~(uint)lVar10 - 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(~(uint)lVar10 - 1)" ( (binary_expression "~(uint)lVar10 - 1" (unary_expression "~(uint)lVar10" ~ (cast_expression "(uint)lVar10" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal) ))))) ;) (if_statement "if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" if (parenthesized_expression "(((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n)" ( (binary_expression "((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n" (parenthesized_expression "((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8)" ( (binary_expression "(ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8" (binary_expression "(ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3]" (binary_expression "(ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10" (binary_expression "(ulong)*pbVar7 << 0x18" (binary_expression "(ulong)*pbVar7" (parenthesized_expression "(ulong)" ( identifier )) * identifier) << number_literal) | (binary_expression "(ulong)pbVar7[1] << 0x10" (cast_expression "(ulong)pbVar7[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "pbVar7[1]" identifier [ number_literal ])) << number_literal)) | (cast_expression "(ulong)pbVar7[3]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "pbVar7[3]" identifier [ number_literal ]))) | (binary_expression "(ulong)pbVar7[2] << 8" (cast_expression "(ulong)pbVar7[2]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "pbVar7[2]" identifier [ number_literal ])) << number_literal)) )) == identifier) )) (compound_statement "{\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" { (expression_statement "iVar4 = memcmp(pbVar7 + 4,__s,__n);" (assignment_expression "iVar4 = memcmp(pbVar7 + 4,__s,__n)" identifier = (call_expression "memcmp(pbVar7 + 4,__s,__n)" identifier (argument_list "(pbVar7 + 4,__s,__n)" ( (binary_expression "pbVar7 + 4" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }" { (if_statement "if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }" if (parenthesized_expression "(param_2 != (undefined8 *)0x0)" ( (binary_expression "param_2 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }" { (expression_statement "uVar5 = FUN_0010d3b9(__s);" (assignment_expression "uVar5 = FUN_0010d3b9(__s)" identifier = (call_expression "FUN_0010d3b9(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" * identifier) = identifier) ;) })) (if_statement "if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }" if (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              *param_3 = iVar12;\n            }" { (expression_statement "*param_3 = iVar12;" (assignment_expression "*param_3 = iVar12" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (if_statement "if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }" if (parenthesized_expression "(param_4 == (undefined8 *)0x0)" ( (binary_expression "param_4 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              FUN_0010db2f(pcVar6);\n            }" { (expression_statement "FUN_0010db2f(pcVar6);" (call_expression "FUN_0010db2f(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) }) (else_clause "else {\n              *param_4 = pcVar6;\n            }" else (compound_statement "{\n              *param_4 = pcVar6;\n            }" { (expression_statement "*param_4 = pcVar6;" (assignment_expression "*param_4 = pcVar6" (pointer_expression "*param_4" * identifier) = identifier) ;) }))) (expression_statement "FUN_0010db2f(__s);" (call_expression "FUN_0010db2f(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return pbVar7;" return identifier ;) })) (expression_statement "pcVar11 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar11 = "key algorithms do not match in OpenSSH public key file"" identifier = (string_literal ""key algorithms do not match in OpenSSH public key file"" " string_content ")) ;) }) (else_clause "else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" else (compound_statement "{\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" { (expression_statement "pcVar11 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar11 = "key algorithms do not match in OpenSSH public key file"" identifier = (string_literal ""key algorithms do not match in OpenSSH public key file"" " string_content ")) ;) }))) }) (else_clause "else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }" else (compound_statement "{\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }" { (expression_statement "pcVar11 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar11 = "key algorithms do not match in OpenSSH public key file"" identifier = (string_literal ""key algorithms do not match in OpenSSH public key file"" " string_content ")) ;) }))) }) (else_clause "else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }" else (compound_statement "{\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }" { (expression_statement "pcVar11 = "invalid length for base64 data in OpenSSH public key file";" (assignment_expression "pcVar11 = "invalid length for base64 data in OpenSSH public key file"" identifier = (string_literal ""invalid length for base64 data in OpenSSH public key file"" " string_content ")) ;) }))) }))) (expression_statement "FUN_0010db2f(__s);" (call_expression "FUN_0010db2f(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_0010db2f(pcVar6);" (call_expression "FUN_0010db2f(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "FUN_0010db2f(pbVar7);" (call_expression "FUN_0010db2f(pbVar7)" identifier (argument_list "(pbVar7)" ( identifier ))) ;) (if_statement "if (param_5 != (byte *)0x0) {\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }" if (parenthesized_expression "(param_5 != (byte *)0x0)" ( (binary_expression "param_5 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }" { (expression_statement "*(char **)param_5 = pcVar11;" (assignment_expression "*(char **)param_5 = pcVar11" (pointer_expression "*(char **)param_5" * (cast_expression "(char **)param_5" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) (expression_statement "param_5 = (byte *)0x0;" (assignment_expression "param_5 = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return param_5;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * 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 TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (unary_expression ~ IDENT) - LIT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) , LIT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) == (binary_expression (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) < LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression 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 (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (unary_expression ~ (cast_expression ( (type_descriptor TYPE) ) IDENT)) + LIT) ))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (unary_expression ~ (cast_expression ( (type_descriptor TYPE) ) IDENT)) - LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT)) | (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) << LIT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "byte * FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)\n\n{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined8 uVar5;\n  char *__s;\n  char *pcVar6;\n  byte *pbVar7;\n  void *pvVar8;\n  ulong uVar9;\n  long lVar10;\n  size_t __n;\n  char *pcVar11;\n  int iVar12;\n  char *pcVar13;\n  byte bVar14;\n  \n  bVar14 = 0;\n  uVar5 = FUN_0010db67();\n  __s = (char *)FUN_0010cfb4(uVar5);\n  pcVar6 = strchr(__s,0x20);\n  if (pcVar6 == (char *)0x0) {\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }\n  FUN_0010db2f(__s);\n  FUN_0010db2f(pcVar6);\n  FUN_0010db2f(pbVar7);\n  if (param_5 != (byte *)0x0) {\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }\n  return param_5;\n}" (type_identifier "byte") (pointer_declarator "* FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)" (* "*") (function_declarator "FUN_001218a8(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)" (identifier "FUN_001218a8") (parameter_list "(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,\n                   byte *param_5)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined8 *param_4" (type_identifier "undefined8") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "byte *param_5" (type_identifier "byte") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")")))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  undefined8 uVar5;\n  char *__s;\n  char *pcVar6;\n  byte *pbVar7;\n  void *pvVar8;\n  ulong uVar9;\n  long lVar10;\n  size_t __n;\n  char *pcVar11;\n  int iVar12;\n  char *pcVar13;\n  byte bVar14;\n  \n  bVar14 = 0;\n  uVar5 = FUN_0010db67();\n  __s = (char *)FUN_0010cfb4(uVar5);\n  pcVar6 = strchr(__s,0x20);\n  if (pcVar6 == (char *)0x0) {\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }\n  FUN_0010db2f(__s);\n  FUN_0010db2f(pcVar6);\n  FUN_0010db2f(pbVar7);\n  if (param_5 != (byte *)0x0) {\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }\n  return param_5;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "byte *pbVar7;" (type_identifier "byte") (pointer_declarator "*pbVar7" (* "*") (identifier "pbVar7")) (; ";")) (declaration "void *pvVar8;" (primitive_type "void") (pointer_declarator "*pvVar8" (* "*") (identifier "pvVar8")) (; ";")) (declaration "ulong uVar9;" (type_identifier "ulong") (identifier "uVar9") (; ";")) (declaration "long lVar10;" (sized_type_specifier "long" (long "long")) (identifier "lVar10") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "char *pcVar11;" (primitive_type "char") (pointer_declarator "*pcVar11" (* "*") (identifier "pcVar11")) (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "char *pcVar13;" (primitive_type "char") (pointer_declarator "*pcVar13" (* "*") (identifier "pcVar13")) (; ";")) (declaration "byte bVar14;" (type_identifier "byte") (identifier "bVar14") (; ";")) (expression_statement "bVar14 = 0;" (assignment_expression "bVar14 = 0" (identifier "bVar14") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = FUN_0010db67();" (assignment_expression "uVar5 = FUN_0010db67()" (identifier "uVar5") (= "=") (call_expression "FUN_0010db67()" (identifier "FUN_0010db67") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "__s = (char *)FUN_0010cfb4(uVar5);" (assignment_expression "__s = (char *)FUN_0010cfb4(uVar5)" (identifier "__s") (= "=") (cast_expression "(char *)FUN_0010cfb4(uVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0010cfb4(uVar5)" (identifier "FUN_0010cfb4") (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")"))))) (; ";")) (expression_statement "pcVar6 = strchr(__s,0x20);" (assignment_expression "pcVar6 = strchr(__s,0x20)" (identifier "pcVar6") (= "=") (call_expression "strchr(__s,0x20)" (identifier "strchr") (argument_list "(__s,0x20)" (( "(") (identifier "__s") (, ",") (number_literal "0x20") () ")")))) (; ";")) (if_statement "if (pcVar6 == (char *)0x0) {\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }\n  else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" (if "if") (parenthesized_expression "(pcVar6 == (char *)0x0)" (( "(") (binary_expression "pcVar6 == (char *)0x0" (identifier "pcVar6") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar11 = "no key blob in OpenSSH public key file";\n    pbVar7 = (byte *)0x0;\n    pcVar6 = (char *)0x0;\n  }" ({ "{") (expression_statement "pcVar11 = "no key blob in OpenSSH public key file";" (assignment_expression "pcVar11 = "no key blob in OpenSSH public key file"" (identifier "pcVar11") (= "=") (string_literal ""no key blob in OpenSSH public key file"" (" """) (string_content "no key blob in OpenSSH public key file") (" """))) (; ";")) (expression_statement "pbVar7 = (byte *)0x0;" (assignment_expression "pbVar7 = (byte *)0x0" (identifier "pbVar7") (= "=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "pcVar6 = (char *)0x0;" (assignment_expression "pcVar6 = (char *)0x0" (identifier "pcVar6") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" (else "else") (compound_statement "{\n    pcVar11 = pcVar6 + 1;\n    *pcVar6 = '\0';\n    pcVar6 = strchr(pcVar11,0x20);\n    if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }\n    uVar9 = 0xffffffffffffffff;\n    pcVar13 = pcVar11;\n    do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');\n    iVar2 = (int)(~uVar9 - 1 >> 2);\n    iVar4 = iVar2 * 3;\n    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);\n    iVar12 = 0;\n    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }\n    if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }\n  }" ({ "{") (expression_statement "pcVar11 = pcVar6 + 1;" (assignment_expression "pcVar11 = pcVar6 + 1" (identifier "pcVar11") (= "=") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar6 = strchr(pcVar11,0x20);" (assignment_expression "pcVar6 = strchr(pcVar11,0x20)" (identifier "pcVar6") (= "=") (call_expression "strchr(pcVar11,0x20)" (identifier "strchr") (argument_list "(pcVar11,0x20)" (( "(") (identifier "pcVar11") (, ",") (number_literal "0x20") () ")")))) (; ";")) (if_statement "if (pcVar6 != (char *)0x0) {\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }" (if "if") (parenthesized_expression "(pcVar6 != (char *)0x0)" (( "(") (binary_expression "pcVar6 != (char *)0x0" (identifier "pcVar6") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *pcVar6 = '\0';\n      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);\n    }" ({ "{") (expression_statement "*pcVar6 = '\0';" (assignment_expression "*pcVar6 = '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);" (assignment_expression "pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1)" (identifier "pcVar6") (= "=") (cast_expression "(char *)FUN_0010d3b9(pcVar6 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0010d3b9(pcVar6 + 1)" (identifier "FUN_0010d3b9") (argument_list "(pcVar6 + 1)" (( "(") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar9 = 0xffffffffffffffff;" (assignment_expression "uVar9 = 0xffffffffffffffff" (identifier "uVar9") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar13 = pcVar11;" (assignment_expression "pcVar13 = pcVar11" (identifier "pcVar13") (= "=") (identifier "pcVar11")) (; ";")) (do_statement "do {\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    } while (cVar1 != '\0');" (do "do") (compound_statement "{\n      if (uVar9 == 0) break;\n      uVar9 = uVar9 - 1;\n      cVar1 = *pcVar13;\n      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;\n    }" ({ "{") (if_statement "if (uVar9 == 0) break;" (if "if") (parenthesized_expression "(uVar9 == 0)" (( "(") (binary_expression "uVar9 == 0" (identifier "uVar9") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar9 = uVar9 - 1;" (assignment_expression "uVar9 = uVar9 - 1" (identifier "uVar9") (= "=") (binary_expression "uVar9 - 1" (identifier "uVar9") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar13;" (assignment_expression "cVar1 = *pcVar13" (identifier "cVar1") (= "=") (pointer_expression "*pcVar13" (* "*") (identifier "pcVar13"))) (; ";")) (expression_statement "pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;" (assignment_expression "pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1" (identifier "pcVar13") (= "=") (binary_expression "pcVar13 + (ulong)bVar14 * -2 + 1" (binary_expression "pcVar13 + (ulong)bVar14 * -2" (identifier "pcVar13") (+ "+") (binary_expression "(ulong)bVar14 * -2" (cast_expression "(ulong)bVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar14")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "iVar2 = (int)(~uVar9 - 1 >> 2);" (assignment_expression "iVar2 = (int)(~uVar9 - 1 >> 2)" (identifier "iVar2") (= "=") (cast_expression "(int)(~uVar9 - 1 >> 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(~uVar9 - 1 >> 2)" (( "(") (binary_expression "~uVar9 - 1 >> 2" (binary_expression "~uVar9 - 1" (unary_expression "~uVar9" (~ "~") (identifier "uVar9")) (- "-") (number_literal "1")) (>> ">>") (number_literal "2")) () ")")))) (; ";")) (expression_statement "iVar4 = iVar2 * 3;" (assignment_expression "iVar4 = iVar2 * 3" (identifier "iVar4") (= "=") (binary_expression "iVar2 * 3" (identifier "iVar2") (* "*") (number_literal "3"))) (; ";")) (expression_statement "pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);" (assignment_expression "pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1)" (identifier "pbVar7") (= "=") (cast_expression "(byte *)FUN_0010d2c3((long)iVar4,1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0010d2c3((long)iVar4,1)" (identifier "FUN_0010d2c3") (argument_list "((long)iVar4,1)" (( "(") (cast_expression "(long)iVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar4")) (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (while_statement "while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }" (while "while") (parenthesized_expression "(pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0)" (( "(") (comma_expression "pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0" (assignment_expression "pvVar8 = memchr(pcVar11,0,4)" (identifier "pvVar8") (= "=") (call_expression "memchr(pcVar11,0,4)" (identifier "memchr") (argument_list "(pcVar11,0,4)" (( "(") (identifier "pcVar11") (, ",") (number_literal "0") (, ",") (number_literal "4") () ")")))) (, ",") (binary_expression "pvVar8 == (void *)0x0" (identifier "pvVar8") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")")) (compound_statement "{\n      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }\n      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);\n      iVar12 = iVar12 + iVar3;\n      pcVar11 = pcVar11 + 4;\n    }" ({ "{") (if_statement "if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }" (if "if") (parenthesized_expression "(SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0)" (( "(") (binary_expression "SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0" (call_expression "SBORROW4(iVar12 + 2,iVar4)" (identifier "SBORROW4") (argument_list "(iVar12 + 2,iVar4)" (( "(") (binary_expression "iVar12 + 2" (identifier "iVar12") (+ "+") (number_literal "2")) (, ",") (identifier "iVar4") () ")"))) (== "==") (binary_expression "iVar12 + 2 + iVar2 * -3 < 0" (binary_expression "iVar12 + 2 + iVar2 * -3" (binary_expression "iVar12 + 2" (identifier "iVar12") (+ "+") (number_literal "2")) (+ "+") (binary_expression "iVar2 * -3" (identifier "iVar2") (* "*") (number_literal "-3"))) (< "<") (number_literal "0"))) () ")")) (compound_statement "{\n                    \n        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");\n      }" ({ "{") (expression_statement "__assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");" (call_expression "__assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub")" (identifier "__assert_fail") (argument_list "("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub")" (( "(") (string_literal ""pubbloblen + 3 <= pubblobsize"" (" """) (string_content "pubbloblen + 3 <= pubblobsize") (" """)) (, ",") (string_literal ""sshpubk.c"" (" """) (string_content "sshpubk.c") (" """)) (, ",") (number_literal "0x441") (, ",") (string_literal ""openssh_loadpub"" (" """) (string_content "openssh_loadpub") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);" (assignment_expression "iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12)" (identifier "iVar3") (= "=") (call_expression "FUN_0010d0bb(pcVar11,pbVar7 + iVar12)" (identifier "FUN_0010d0bb") (argument_list "(pcVar11,pbVar7 + iVar12)" (( "(") (identifier "pcVar11") (, ",") (binary_expression "pbVar7 + iVar12" (identifier "pbVar7") (+ "+") (identifier "iVar12")) () ")")))) (; ";")) (expression_statement "iVar12 = iVar12 + iVar3;" (assignment_expression "iVar12 = iVar12 + iVar3" (identifier "iVar12") (= "=") (binary_expression "iVar12 + iVar3" (identifier "iVar12") (+ "+") (identifier "iVar3"))) (; ";")) (expression_statement "pcVar11 = pcVar11 + 4;" (assignment_expression "pcVar11 = pcVar11 + 4" (identifier "pcVar11") (= "=") (binary_expression "pcVar11 + 4" (identifier "pcVar11") (+ "+") (number_literal "4"))) (; ";")) (} "}"))) (if_statement "if (*pcVar11 == '\0') {\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }\n    else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }" (if "if") (parenthesized_expression "(*pcVar11 == '\0')" (( "(") (binary_expression "*pcVar11 == '\0'" (pointer_expression "*pcVar11" (* "*") (identifier "pcVar11")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      lVar10 = -1;\n      pcVar11 = __s;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');\n      if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }\n    }" ({ "{") (expression_statement "lVar10 = -1;" (assignment_expression "lVar10 = -1" (identifier "lVar10") (= "=") (number_literal "-1")) (; ";")) (expression_statement "pcVar11 = __s;" (assignment_expression "pcVar11 = __s" (identifier "pcVar11") (= "=") (identifier "__s")) (; ";")) (do_statement "do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      } while (cVar1 != '\0');" (do "do") (compound_statement "{\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar1 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;\n      }" ({ "{") (if_statement "if (lVar10 == 0) break;" (if "if") (parenthesized_expression "(lVar10 == 0)" (( "(") (binary_expression "lVar10 == 0" (identifier "lVar10") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar10 = lVar10 + -1;" (assignment_expression "lVar10 = lVar10 + -1" (identifier "lVar10") (= "=") (binary_expression "lVar10 + -1" (identifier "lVar10") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "cVar1 = *pcVar11;" (assignment_expression "cVar1 = *pcVar11" (identifier "cVar1") (= "=") (pointer_expression "*pcVar11" (* "*") (identifier "pcVar11"))) (; ";")) (expression_statement "pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;" (assignment_expression "pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1" (identifier "pcVar11") (= "=") (binary_expression "pcVar11 + (ulong)bVar14 * -2 + 1" (binary_expression "pcVar11 + (ulong)bVar14 * -2" (identifier "pcVar11") (+ "+") (binary_expression "(ulong)bVar14 * -2" (cast_expression "(ulong)bVar14" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar14")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (if_statement "if ((int)(~(uint)lVar10 + 2) < iVar12) {\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }\n      else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }" (if "if") (parenthesized_expression "((int)(~(uint)lVar10 + 2) < iVar12)" (( "(") (binary_expression "(int)(~(uint)lVar10 + 2) < iVar12" (cast_expression "(int)(~(uint)lVar10 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(~(uint)lVar10 + 2)" (( "(") (binary_expression "~(uint)lVar10 + 2" (unary_expression "~(uint)lVar10" (~ "~") (cast_expression "(uint)lVar10" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar10"))) (+ "+") (number_literal "2")) () ")"))) (< "<") (identifier "iVar12")) () ")")) (compound_statement "{\n        __n = (size_t)(int)(~(uint)lVar10 - 1);\n        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n      }" ({ "{") (expression_statement "__n = (size_t)(int)(~(uint)lVar10 - 1);" (assignment_expression "__n = (size_t)(int)(~(uint)lVar10 - 1)" (identifier "__n") (= "=") (cast_expression "(size_t)(int)(~(uint)lVar10 - 1)" (( "(") (type_descriptor "size_t" (primitive_type "size_t")) () ")") (cast_expression "(int)(~(uint)lVar10 - 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(~(uint)lVar10 - 1)" (( "(") (binary_expression "~(uint)lVar10 - 1" (unary_expression "~(uint)lVar10" (~ "~") (cast_expression "(uint)lVar10" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar10"))) (- "-") (number_literal "1")) () ")"))))) (; ";")) (if_statement "if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n) {\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }\n        else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" (if "if") (parenthesized_expression "(((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n)" (( "(") (binary_expression "((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8) == __n" (parenthesized_expression "((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8)" (( "(") (binary_expression "(ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |\n            (ulong)pbVar7[2] << 8" (binary_expression "(ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3]" (binary_expression "(ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10" (binary_expression "(ulong)*pbVar7 << 0x18" (binary_expression "(ulong)*pbVar7" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (identifier "pbVar7")) (<< "<<") (number_literal "0x18")) (| "|") (binary_expression "(ulong)pbVar7[1] << 0x10" (cast_expression "(ulong)pbVar7[1]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "pbVar7[1]" (identifier "pbVar7") ([ "[") (number_literal "1") (] "]"))) (<< "<<") (number_literal "0x10"))) (| "|") (cast_expression "(ulong)pbVar7[3]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "pbVar7[3]" (identifier "pbVar7") ([ "[") (number_literal "3") (] "]")))) (| "|") (binary_expression "(ulong)pbVar7[2] << 8" (cast_expression "(ulong)pbVar7[2]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "pbVar7[2]" (identifier "pbVar7") ([ "[") (number_literal "2") (] "]"))) (<< "<<") (number_literal "8"))) () ")")) (== "==") (identifier "__n")) () ")")) (compound_statement "{\n          iVar4 = memcmp(pbVar7 + 4,__s,__n);\n          if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" ({ "{") (expression_statement "iVar4 = memcmp(pbVar7 + 4,__s,__n);" (assignment_expression "iVar4 = memcmp(pbVar7 + 4,__s,__n)" (identifier "iVar4") (= "=") (call_expression "memcmp(pbVar7 + 4,__s,__n)" (identifier "memcmp") (argument_list "(pbVar7 + 4,__s,__n)" (( "(") (binary_expression "pbVar7 + 4" (identifier "pbVar7") (+ "+") (number_literal "4")) (, ",") (identifier "__s") (, ",") (identifier "__n") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }\n            if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }\n            if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }\n            FUN_0010db2f(__s);\n            return pbVar7;\n          }" ({ "{") (if_statement "if (param_2 != (undefined8 *)0x0) {\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }" (if "if") (parenthesized_expression "(param_2 != (undefined8 *)0x0)" (( "(") (binary_expression "param_2 != (undefined8 *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              uVar5 = FUN_0010d3b9(__s);\n              *param_2 = uVar5;\n            }" ({ "{") (expression_statement "uVar5 = FUN_0010d3b9(__s);" (assignment_expression "uVar5 = FUN_0010d3b9(__s)" (identifier "uVar5") (= "=") (call_expression "FUN_0010d3b9(__s)" (identifier "FUN_0010d3b9") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "*param_2 = uVar5;" (assignment_expression "*param_2 = uVar5" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar5")) (; ";")) (} "}"))) (if_statement "if (param_3 != (int *)0x0) {\n              *param_3 = iVar12;\n            }" (if "if") (parenthesized_expression "(param_3 != (int *)0x0)" (( "(") (binary_expression "param_3 != (int *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              *param_3 = iVar12;\n            }" ({ "{") (expression_statement "*param_3 = iVar12;" (assignment_expression "*param_3 = iVar12" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar12")) (; ";")) (} "}"))) (if_statement "if (param_4 == (undefined8 *)0x0) {\n              FUN_0010db2f(pcVar6);\n            }\n            else {\n              *param_4 = pcVar6;\n            }" (if "if") (parenthesized_expression "(param_4 == (undefined8 *)0x0)" (( "(") (binary_expression "param_4 == (undefined8 *)0x0" (identifier "param_4") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              FUN_0010db2f(pcVar6);\n            }" ({ "{") (expression_statement "FUN_0010db2f(pcVar6);" (call_expression "FUN_0010db2f(pcVar6)" (identifier "FUN_0010db2f") (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")"))) (; ";")) (} "}")) (else_clause "else {\n              *param_4 = pcVar6;\n            }" (else "else") (compound_statement "{\n              *param_4 = pcVar6;\n            }" ({ "{") (expression_statement "*param_4 = pcVar6;" (assignment_expression "*param_4 = pcVar6" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "pcVar6")) (; ";")) (} "}")))) (expression_statement "FUN_0010db2f(__s);" (call_expression "FUN_0010db2f(__s)" (identifier "FUN_0010db2f") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return pbVar7;" (return "return") (identifier "pbVar7") (; ";")) (} "}"))) (expression_statement "pcVar11 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar11 = "key algorithms do not match in OpenSSH public key file"" (identifier "pcVar11") (= "=") (string_literal ""key algorithms do not match in OpenSSH public key file"" (" """) (string_content "key algorithms do not match in OpenSSH public key file") (" """))) (; ";")) (} "}")) (else_clause "else {\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" (else "else") (compound_statement "{\n          pcVar11 = "key algorithms do not match in OpenSSH public key file";\n        }" ({ "{") (expression_statement "pcVar11 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar11 = "key algorithms do not match in OpenSSH public key file"" (identifier "pcVar11") (= "=") (string_literal ""key algorithms do not match in OpenSSH public key file"" (" """) (string_content "key algorithms do not match in OpenSSH public key file") (" """))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }" (else "else") (compound_statement "{\n        pcVar11 = "key algorithms do not match in OpenSSH public key file";\n      }" ({ "{") (expression_statement "pcVar11 = "key algorithms do not match in OpenSSH public key file";" (assignment_expression "pcVar11 = "key algorithms do not match in OpenSSH public key file"" (identifier "pcVar11") (= "=") (string_literal ""key algorithms do not match in OpenSSH public key file"" (" """) (string_content "key algorithms do not match in OpenSSH public key file") (" """))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }" (else "else") (compound_statement "{\n      pcVar11 = "invalid length for base64 data in OpenSSH public key file";\n    }" ({ "{") (expression_statement "pcVar11 = "invalid length for base64 data in OpenSSH public key file";" (assignment_expression "pcVar11 = "invalid length for base64 data in OpenSSH public key file"" (identifier "pcVar11") (= "=") (string_literal ""invalid length for base64 data in OpenSSH public key file"" (" """) (string_content "invalid length for base64 data in OpenSSH public key file") (" """))) (; ";")) (} "}")))) (} "}")))) (expression_statement "FUN_0010db2f(__s);" (call_expression "FUN_0010db2f(__s)" (identifier "FUN_0010db2f") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "FUN_0010db2f(pcVar6);" (call_expression "FUN_0010db2f(pcVar6)" (identifier "FUN_0010db2f") (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")"))) (; ";")) (expression_statement "FUN_0010db2f(pbVar7);" (call_expression "FUN_0010db2f(pbVar7)" (identifier "FUN_0010db2f") (argument_list "(pbVar7)" (( "(") (identifier "pbVar7") () ")"))) (; ";")) (if_statement "if (param_5 != (byte *)0x0) {\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }" (if "if") (parenthesized_expression "(param_5 != (byte *)0x0)" (( "(") (binary_expression "param_5 != (byte *)0x0" (identifier "param_5") (!= "!=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *(char **)param_5 = pcVar11;\n    param_5 = (byte *)0x0;\n  }" ({ "{") (expression_statement "*(char **)param_5 = pcVar11;" (assignment_expression "*(char **)param_5 = pcVar11" (pointer_expression "*(char **)param_5" (* "*") (cast_expression "(char **)param_5" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "param_5"))) (= "=") (identifier "pcVar11")) (; ";")) (expression_statement "param_5 = (byte *)0x0;" (assignment_expression "param_5 = (byte *)0x0" (identifier "param_5") (= "=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (return_statement "return param_5;" (return "return") (identifier "param_5") (; ";")) (} "}")))

type_1 * function_1(type_2 *fp,char **var_24,int *var_25,char **var_26,
                       char **var_28)

{
  char var_8;
  int var_9;
  int var_18;
  int var_23;
  char *pcVar5;
  char *var_4;
  type_3 *var_17;
  void *var_12;
  type_4 var_6;
  long var_20;
  size_t var_21;
  char *var_19;
  int var_14;
  char *var_7;
  type_3 bVar13;
  
  bVar13 = 0;
  pcVar5 = var_1(fp);
  pcVar5 = var_2(pcVar5);
  var_4 = var_3(pcVar5,0x20);
  if (var_4 == (char *)0x0) {
    var_19 = "no key blob in OpenSSH public key file";
    var_17 = (type_3 *)0x0;
    var_4 = (char *)0x0;
  }
  else {
    var_19 = var_4 + 1;
    *var_4 = '\0';
    var_4 = var_3(var_19,0x20);
    if (var_4 != (char *)0x0) {
      *var_4 = '\0';
      var_4 = var_5(var_4 + 1);
    }
    var_6 = 0xffffffffffffffff;
    var_7 = var_19;
    do {
      if (var_6 == 0) break;
      var_6 = var_6 - 1;
      var_8 = *var_7;
      var_7 = var_7 + (type_4)bVar13 * -2 + 1;
    } while (var_8 != '\0');
    var_9 = (int)(~var_6 - 1 >> 2);
    var_23 = var_9 * 3;
    var_17 = (type_3 *)var_10((long)var_23,1);
    var_14 = 0;
    while (var_12 = var_11(var_19,0,4), var_12 == (void *)0x0) {
      if (var_13(var_14 + 2,var_23) == var_14 + 2 + var_9 * -3 < 0) {
                    /* WARNING: Subroutine does not return */
        var_15("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");
      }
      var_18 = var_16(var_19,var_17 + var_14);
      var_14 = var_14 + var_18;
      var_19 = var_19 + 4;
    }
    if (*var_19 == '\0') {
      var_20 = -1;
      var_19 = pcVar5;
      do {
        if (var_20 == 0) break;
        var_20 = var_20 + -1;
        var_8 = *var_19;
        var_19 = var_19 + (type_4)bVar13 * -2 + 1;
      } while (var_8 != '\0');
      if ((int)(~(type_5)var_20 + 2) < var_14) {
        var_21 = (size_t)(int)(~(type_5)var_20 - 1);
        if (((type_4)*var_17 << 0x18 | (type_4)var_17[1] << 0x10 | (type_4)var_17[3] | (type_4)var_17[2] << 8) ==
            var_21) {
          var_23 = var_22(var_17 + 4,pcVar5,var_21);
          if (var_23 == 0) {
            if (var_24 != (char **)0x0) {
              var_19 = var_5(pcVar5);
              *var_24 = var_19;
            }
            if (var_25 != (int *)0x0) {
              *var_25 = var_14;
            }
            if (var_26 == (char **)0x0) {
              var_27(var_4);
            }
            else {
              *var_26 = var_4;
            }
            var_27(pcVar5);
            return var_17;
          }
          var_19 = "key algorithms do not match in OpenSSH public key file";
        }
        else {
          var_19 = "key algorithms do not match in OpenSSH public key file";
        }
      }
      else {
        var_19 = "key algorithms do not match in OpenSSH public key file";
      }
    }
    else {
      var_19 = "invalid length for base64 data in OpenSSH public key file";
    }
  }
  var_27(pcVar5);
  var_27(var_4);
  var_27(var_17);
  if (var_28 != (char **)0x0) {
    *var_28 = var_19;
    var_28 = (char **)0x0;
  }
  return (type_1 *)var_28;
}


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

byte * MASKED(undefined8 param_1,undefined8 *param_2,int *param_3,undefined8 *param_4,
                   byte *param_5)

{
  char cVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  undefined8 uVar5;
  char *__s;
  char *pcVar6;
  byte *pbVar7;
  void *pvVar8;
  ulong uVar9;
  long lVar10;
  size_t __n;
  char *pcVar11;
  int iVar12;
  char *pcVar13;
  byte bVar14;
  
  bVar14 = 0;
  uVar5 = FUN_0010db67();
  __s = (char *)FUN_0010cfb4(uVar5);
  pcVar6 = strchr(__s,0x20);
  if (pcVar6 == (char *)0x0) {
    pcVar11 = "no key blob in OpenSSH public key file";
    pbVar7 = (byte *)0x0;
    pcVar6 = (char *)0x0;
  }
  else {
    pcVar11 = pcVar6 + 1;
    *pcVar6 = '\0';
    pcVar6 = strchr(pcVar11,0x20);
    if (pcVar6 != (char *)0x0) {
      *pcVar6 = '\0';
      pcVar6 = (char *)FUN_0010d3b9(pcVar6 + 1);
    }
    uVar9 = 0xffffffffffffffff;
    pcVar13 = pcVar11;
    do {
      if (uVar9 == 0) break;
      uVar9 = uVar9 - 1;
      cVar1 = *pcVar13;
      pcVar13 = pcVar13 + (ulong)bVar14 * -2 + 1;
    } while (cVar1 != '\0');
    iVar2 = (int)(~uVar9 - 1 >> 2);
    iVar4 = iVar2 * 3;
    pbVar7 = (byte *)FUN_0010d2c3((long)iVar4,1);
    iVar12 = 0;
    while (pvVar8 = memchr(pcVar11,0,4), pvVar8 == (void *)0x0) {
      if (SBORROW4(iVar12 + 2,iVar4) == iVar12 + 2 + iVar2 * -3 < 0) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("pubbloblen + 3 <= pubblobsize","sshpubk.c",0x441,"openssh_loadpub");
      }
      iVar3 = FUN_0010d0bb(pcVar11,pbVar7 + iVar12);
      iVar12 = iVar12 + iVar3;
      pcVar11 = pcVar11 + 4;
    }
    if (*pcVar11 == '\0') {
      lVar10 = -1;
      pcVar11 = __s;
      do {
        if (lVar10 == 0) break;
        lVar10 = lVar10 + -1;
        cVar1 = *pcVar11;
        pcVar11 = pcVar11 + (ulong)bVar14 * -2 + 1;
      } while (cVar1 != '\0');
      if ((int)(~(uint)lVar10 + 2) < iVar12) {
        __n = (size_t)(int)(~(uint)lVar10 - 1);
        if (((ulong)*pbVar7 << 0x18 | (ulong)pbVar7[1] << 0x10 | (ulong)pbVar7[3] |
            (ulong)pbVar7[2] << 8) == __n) {
          iVar4 = memcmp(pbVar7 + 4,__s,__n);
          if (iVar4 == 0) {
            if (param_2 != (undefined8 *)0x0) {
              uVar5 = FUN_0010d3b9(__s);
              *param_2 = uVar5;
            }
            if (param_3 != (int *)0x0) {
              *param_3 = iVar12;
            }
            if (param_4 == (undefined8 *)0x0) {
              FUN_0010db2f(pcVar6);
            }
            else {
              *param_4 = pcVar6;
            }
            FUN_0010db2f(__s);
            return pbVar7;
          }
          pcVar11 = "key algorithms do not match in OpenSSH public key file";
        }
        else {
          pcVar11 = "key algorithms do not match in OpenSSH public key file";
        }
      }
      else {
        pcVar11 = "key algorithms do not match in OpenSSH public key file";
      }
    }
    else {
      pcVar11 = "invalid length for base64 data in OpenSSH public key file";
    }
  }
  FUN_0010db2f(__s);
  FUN_0010db2f(pcVar6);
  FUN_0010db2f(pbVar7);
  if (param_5 != (byte *)0x0) {
    *(char **)param_5 = pcVar11;
    param_5 = (byte *)0x0;
  }
  return param_5;
}

