
int rsakey_encrypted(Filename *filename,char **comment)

{
  long lVar1;
  int iVar2;
  FILE *__stream;
  char *pcVar3;
  long lVar4;
  byte *pbVar5;
  byte *pbVar6;
  long in_FS_OFFSET;
  bool bVar7;
  bool bVar8;
  byte bVar9;
  char *dummy;
  char buf [64];
  
  bVar9 = 0;
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  __stream = (FILE *)f_open(filename,"rb",0);
  iVar2 = 0;
  if (__stream != (FILE *)0x0) {
    pcVar3 = fgets(buf,0x40,__stream);
    bVar7 = false;
    bVar8 = pcVar3 == (char *)0x0;
    if (!bVar8) {
      lVar4 = 0x21;
      pbVar5 = (byte *)buf;
      pbVar6 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";
      do {
        if (lVar4 == 0) break;
        lVar4 = lVar4 + -1;
        bVar7 = *pbVar5 < *pbVar6;
        bVar8 = *pbVar5 == *pbVar6;
        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;
        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;
      } while (bVar8);
      if ((!bVar7 && !bVar8) == bVar7) {
        iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy);
        goto LAB_0014513a;
      }
    }
    fclose(__stream);
    iVar2 = 0;
  }
LAB_0014513a:
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined8 FUN_001450c3(undefined8 param_1,undefined8 param_2)

{
  FILE *__stream;
  undefined8 uVar1;
  char *pcVar2;
  long lVar3;
  byte *pbVar4;
  byte *pbVar5;
  long in_FS_OFFSET;
  bool bVar6;
  bool bVar7;
  byte bVar8;
  undefined1 local_70 [8];
  byte local_68 [72];
  long local_20;
  
  bVar8 = 0;
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  __stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);
  uVar1 = 0;
  if (__stream != (FILE *)0x0) {
    pcVar2 = fgets((char *)local_68,0x40,__stream);
    bVar6 = false;
    bVar7 = pcVar2 == (char *)0x0;
    if (!bVar7) {
      lVar3 = 0x21;
      pbVar4 = local_68;
      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";
      do {
        if (lVar3 == 0) break;
        lVar3 = lVar3 + -1;
        bVar6 = *pbVar4 < *pbVar5;
        bVar7 = *pbVar4 == *pbVar5;
        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;
        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;
      } while (bVar7);
      if ((!bVar6 && !bVar7) == bVar6) {
        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);
        goto LAB_0014513a;
      }
    }
    fclose(__stream);
    uVar1 = 0;
  }
LAB_0014513a:
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH RBP
PUSH RBX
SUB RSP,0x68
MOV RBP,RSI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x58],RAX
XOR EAX,EAX
MOV EDX,0x0
LEA RSI,[0x16d6b7]
CALL 0x00155838
MOV RBX,RAX
MOV EAX,0x0
TEST RBX,RBX
JZ 0x0014513a
LEA RDI,[RSP + 0x10]
MOV RDX,RBX
MOV ESI,0x40
CALL 0x00108470
TEST RAX,RAX
JZ 0x0014512d
LEA RSI,[RSP + 0x10]
MOV ECX,0x21
LEA RDI,[0x16d948]
CMPSB.REPE RDI,RSI
SETA AL
SBB AL,0x0
TEST AL,AL
JZ 0x00145151
MOV RDI,RBX
CALL 0x00108200
MOV EAX,0x0
MOV RCX,qword ptr [RSP + 0x58]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x00145173
ADD RSP,0x68
POP RBX
POP RBP
RET
LEA R9,[RSP + 0x8]
MOV R8D,0x0
MOV RCX,RBP
MOV EDX,0x0
MOV ESI,0x0
MOV RDI,RBX
CALL 0x001446e9
JMP 0x0014513a
CALL 0x00108280
(translation_unit "undefined8 FUN_001450c3(undefined8 param_1,undefined8 param_2)\n\n{\n  FILE *__stream;\n  undefined8 uVar1;\n  char *pcVar2;\n  long lVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  long in_FS_OFFSET;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  undefined1 local_70 [8];\n  byte local_68 [72];\n  long local_20;\n  \n  bVar8 = 0;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);\n  uVar1 = 0;\n  if (__stream != (FILE *)0x0) {\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }\nLAB_0014513a:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 FUN_001450c3(undefined8 param_1,undefined8 param_2)\n\n{\n  FILE *__stream;\n  undefined8 uVar1;\n  char *pcVar2;\n  long lVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  long in_FS_OFFSET;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  undefined1 local_70 [8];\n  byte local_68 [72];\n  long local_20;\n  \n  bVar8 = 0;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);\n  uVar1 = 0;\n  if (__stream != (FILE *)0x0) {\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }\nLAB_0014513a:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_001450c3(undefined8 param_1,undefined8 param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  FILE *__stream;\n  undefined8 uVar1;\n  char *pcVar2;\n  long lVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  long in_FS_OFFSET;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  undefined1 local_70 [8];\n  byte local_68 [72];\n  long local_20;\n  \n  bVar8 = 0;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);\n  uVar1 = 0;\n  if (__stream != (FILE *)0x0) {\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }\nLAB_0014513a:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "undefined1 local_70 [8];" type_identifier (array_declarator "local_70 [8]" identifier [ number_literal ]) ;) (declaration "byte local_68 [72];" type_identifier (array_declarator "local_68 [72]" identifier [ number_literal ]) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "__stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);" (assignment_expression "__stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0)" identifier = (cast_expression "(FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00155838(param_1,&DAT_0016d6b7,0)" identifier (argument_list "(param_1,&DAT_0016d6b7,0)" ( identifier , (pointer_expression "&DAT_0016d6b7" & identifier) , number_literal ))))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (__stream != (FILE *)0x0) {\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }" { (expression_statement "pcVar2 = fgets((char *)local_68,0x40,__stream);" (assignment_expression "pcVar2 = fgets((char *)local_68,0x40,__stream)" identifier = (call_expression "fgets((char *)local_68,0x40,__stream)" identifier (argument_list "((char *)local_68,0x40,__stream)" ( (cast_expression "(char *)local_68" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier )))) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar7 = pcVar2 == (char *)0x0;" (assignment_expression "bVar7 = pcVar2 == (char *)0x0" identifier = (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }" if (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) (compound_statement "{\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }" { (expression_statement "lVar3 = 0x21;" (assignment_expression "lVar3 = 0x21" identifier = number_literal) ;) (expression_statement "pbVar4 = local_68;" (assignment_expression "pbVar4 = local_68" identifier = identifier) ;) (expression_statement "pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";" (assignment_expression "pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n"" identifier = (cast_expression "(byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""SSH PRIVATE KEY FILE FORMAT 1.1\n"" " string_content escape_sequence "))) ;) (do_statement "do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);" do (compound_statement "{\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      }" { (if_statement "if (lVar3 == 0) break;" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar3 = lVar3 + -1;" (assignment_expression "lVar3 = lVar3 + -1" identifier = (binary_expression "lVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar7 = *pbVar4 == *pbVar5;" (assignment_expression "bVar7 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "pbVar4 + (ulong)bVar8 * -2 + 1" (binary_expression "pbVar4 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "pbVar5 + (ulong)bVar8 * -2 + 1" (binary_expression "pbVar5 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (if_statement "if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }" if (parenthesized_expression "((!bVar6 && !bVar7) == bVar6)" ( (binary_expression "(!bVar6 && !bVar7) == bVar6" (parenthesized_expression "(!bVar6 && !bVar7)" ( (binary_expression "!bVar6 && !bVar7" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) == identifier) )) (compound_statement "{\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }" { (expression_statement "uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);" (assignment_expression "uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70)" identifier = (call_expression "FUN_001446e9(__stream,0,0,param_2,0,local_70)" identifier (argument_list "(__stream,0,0,param_2,0,local_70)" ( identifier , number_literal , number_literal , identifier , number_literal , identifier )))) ;) (goto_statement "goto LAB_0014513a;" goto statement_identifier ;) })) })) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0014513a:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" statement_identifier : (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int rsakey_encrypted(Filename *filename,char **comment)\n\n{\n  long lVar1;\n  int iVar2;\n  FILE *__stream;\n  char *pcVar3;\n  long lVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  long in_FS_OFFSET;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  char *dummy;\n  char buf [64];\n  \n  bVar9 = 0;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  __stream = (FILE *)f_open(filename,"rb",0);\n  iVar2 = 0;\n  if (__stream != (FILE *)0x0) {\n    pcVar3 = fgets(buf,0x40,__stream);\n    bVar7 = false;\n    bVar8 = pcVar3 == (char *)0x0;\n    if (!bVar8) {\n      lVar4 = 0x21;\n      pbVar5 = (byte *)buf;\n      pbVar6 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      if ((!bVar7 && !bVar8) == bVar7) {\n        iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    iVar2 = 0;\n  }\nLAB_0014513a:\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int rsakey_encrypted(Filename *filename,char **comment)\n\n{\n  long lVar1;\n  int iVar2;\n  FILE *__stream;\n  char *pcVar3;\n  long lVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  long in_FS_OFFSET;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  char *dummy;\n  char buf [64];\n  \n  bVar9 = 0;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  __stream = (FILE *)f_open(filename,"rb",0);\n  iVar2 = 0;\n  if (__stream != (FILE *)0x0) {\n    pcVar3 = fgets(buf,0x40,__stream);\n    bVar7 = false;\n    bVar8 = pcVar3 == (char *)0x0;\n    if (!bVar8) {\n      lVar4 = 0x21;\n      pbVar5 = (byte *)buf;\n      pbVar6 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      if ((!bVar7 && !bVar8) == bVar7) {\n        iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    iVar2 = 0;\n  }\nLAB_0014513a:\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "rsakey_encrypted(Filename *filename,char **comment)" identifier (parameter_list "(Filename *filename,char **comment)" ( (parameter_declaration "Filename *filename" type_identifier (pointer_declarator "*filename" * identifier)) , (parameter_declaration "char **comment" primitive_type (pointer_declarator "**comment" * (pointer_declarator "*comment" * identifier))) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  FILE *__stream;\n  char *pcVar3;\n  long lVar4;\n  byte *pbVar5;\n  byte *pbVar6;\n  long in_FS_OFFSET;\n  bool bVar7;\n  bool bVar8;\n  byte bVar9;\n  char *dummy;\n  char buf [64];\n  \n  bVar9 = 0;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  __stream = (FILE *)f_open(filename,"rb",0);\n  iVar2 = 0;\n  if (__stream != (FILE *)0x0) {\n    pcVar3 = fgets(buf,0x40,__stream);\n    bVar7 = false;\n    bVar8 = pcVar3 == (char *)0x0;\n    if (!bVar8) {\n      lVar4 = 0x21;\n      pbVar5 = (byte *)buf;\n      pbVar6 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      if ((!bVar7 && !bVar8) == bVar7) {\n        iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    iVar2 = 0;\n  }\nLAB_0014513a:\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "bool bVar8;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (declaration "char *dummy;" primitive_type (pointer_declarator "*dummy" * identifier) ;) (declaration "char buf [64];" primitive_type (array_declarator "buf [64]" identifier [ number_literal ]) ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "__stream = (FILE *)f_open(filename,"rb",0);" (assignment_expression "__stream = (FILE *)f_open(filename,"rb",0)" identifier = (cast_expression "(FILE *)f_open(filename,"rb",0)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "f_open(filename,"rb",0)" identifier (argument_list "(filename,"rb",0)" ( identifier , (string_literal ""rb"" " string_content ") , number_literal ))))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (__stream != (FILE *)0x0) {\n    pcVar3 = fgets(buf,0x40,__stream);\n    bVar7 = false;\n    bVar8 = pcVar3 == (char *)0x0;\n    if (!bVar8) {\n      lVar4 = 0x21;\n      pbVar5 = (byte *)buf;\n      pbVar6 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      if ((!bVar7 && !bVar8) == bVar7) {\n        iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    iVar2 = 0;\n  }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = fgets(buf,0x40,__stream);\n    bVar7 = false;\n    bVar8 = pcVar3 == (char *)0x0;\n    if (!bVar8) {\n      lVar4 = 0x21;\n      pbVar5 = (byte *)buf;\n      pbVar6 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      if ((!bVar7 && !bVar8) == bVar7) {\n        iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    iVar2 = 0;\n  }" { (expression_statement "pcVar3 = fgets(buf,0x40,__stream);" (assignment_expression "pcVar3 = fgets(buf,0x40,__stream)" identifier = (call_expression "fgets(buf,0x40,__stream)" identifier (argument_list "(buf,0x40,__stream)" ( identifier , number_literal , identifier )))) ;) (expression_statement "bVar7 = false;" (assignment_expression "bVar7 = false" identifier = false) ;) (expression_statement "bVar8 = pcVar3 == (char *)0x0;" (assignment_expression "bVar8 = pcVar3 == (char *)0x0" identifier = (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar8) {\n      lVar4 = 0x21;\n      pbVar5 = (byte *)buf;\n      pbVar6 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      if ((!bVar7 && !bVar8) == bVar7) {\n        iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy);\n        goto LAB_0014513a;\n      }\n    }" if (parenthesized_expression "(!bVar8)" ( (unary_expression "!bVar8" ! identifier) )) (compound_statement "{\n      lVar4 = 0x21;\n      pbVar5 = (byte *)buf;\n      pbVar6 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);\n      if ((!bVar7 && !bVar8) == bVar7) {\n        iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy);\n        goto LAB_0014513a;\n      }\n    }" { (expression_statement "lVar4 = 0x21;" (assignment_expression "lVar4 = 0x21" identifier = number_literal) ;) (expression_statement "pbVar5 = (byte *)buf;" (assignment_expression "pbVar5 = (byte *)buf" identifier = (cast_expression "(byte *)buf" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar6 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";" (assignment_expression "pbVar6 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n"" identifier = (cast_expression "(byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""SSH PRIVATE KEY FILE FORMAT 1.1\n"" " string_content escape_sequence "))) ;) (do_statement "do {\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      } while (bVar8);" do (compound_statement "{\n        if (lVar4 == 0) break;\n        lVar4 = lVar4 + -1;\n        bVar7 = *pbVar5 < *pbVar6;\n        bVar8 = *pbVar5 == *pbVar6;\n        pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;\n        pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;\n      }" { (if_statement "if (lVar4 == 0) break;" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar4 = lVar4 + -1;" (assignment_expression "lVar4 = lVar4 + -1" identifier = (binary_expression "lVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar7 = *pbVar5 < *pbVar6;" (assignment_expression "bVar7 = *pbVar5 < *pbVar6" identifier = (binary_expression "*pbVar5 < *pbVar6" (pointer_expression "*pbVar5" * identifier) < (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "bVar8 = *pbVar5 == *pbVar6;" (assignment_expression "bVar8 = *pbVar5 == *pbVar6" identifier = (binary_expression "*pbVar5 == *pbVar6" (pointer_expression "*pbVar5" * identifier) == (pointer_expression "*pbVar6" * identifier))) ;) (expression_statement "pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar5 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar5 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1;" (assignment_expression "pbVar6 = pbVar6 + (ulong)bVar9 * -2 + 1" identifier = (binary_expression "pbVar6 + (ulong)bVar9 * -2 + 1" (binary_expression "pbVar6 + (ulong)bVar9 * -2" identifier + (binary_expression "(ulong)bVar9 * -2" (cast_expression "(ulong)bVar9" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar8)" ( identifier )) ;) (if_statement "if ((!bVar7 && !bVar8) == bVar7) {\n        iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy);\n        goto LAB_0014513a;\n      }" if (parenthesized_expression "((!bVar7 && !bVar8) == bVar7)" ( (binary_expression "(!bVar7 && !bVar8) == bVar7" (parenthesized_expression "(!bVar7 && !bVar8)" ( (binary_expression "!bVar7 && !bVar8" (unary_expression "!bVar7" ! identifier) && (unary_expression "!bVar8" ! identifier)) )) == identifier) )) (compound_statement "{\n        iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy);\n        goto LAB_0014513a;\n      }" { (expression_statement "iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy);" (assignment_expression "iVar2 = loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy)" identifier = (call_expression "loadrsakey_main((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy)" identifier (argument_list "((FILE *)__stream,(RSAKey *)0x0,0,comment,(char *)0x0,&dummy)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(RSAKey *)0x0" ( (type_descriptor "RSAKey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal , identifier , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (pointer_expression "&dummy" & identifier) )))) ;) (goto_statement "goto LAB_0014513a;" goto statement_identifier ;) })) })) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0014513a:\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined8 FUN_001450c3(undefined8 param_1,undefined8 param_2)\n\n{\n  FILE *__stream;\n  undefined8 uVar1;\n  char *pcVar2;\n  long lVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  long in_FS_OFFSET;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  undefined1 local_70 [8];\n  byte local_68 [72];\n  long local_20;\n  \n  bVar8 = 0;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);\n  uVar1 = 0;\n  if (__stream != (FILE *)0x0) {\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }\nLAB_0014513a:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 FUN_001450c3(undefined8 param_1,undefined8 param_2)\n\n{\n  FILE *__stream;\n  undefined8 uVar1;\n  char *pcVar2;\n  long lVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  long in_FS_OFFSET;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  undefined1 local_70 [8];\n  byte local_68 [72];\n  long local_20;\n  \n  bVar8 = 0;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);\n  uVar1 = 0;\n  if (__stream != (FILE *)0x0) {\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }\nLAB_0014513a:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_001450c3(undefined8 param_1,undefined8 param_2)" identifier (parameter_list "(undefined8 param_1,undefined8 param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  FILE *__stream;\n  undefined8 uVar1;\n  char *pcVar2;\n  long lVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  long in_FS_OFFSET;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  undefined1 local_70 [8];\n  byte local_68 [72];\n  long local_20;\n  \n  bVar8 = 0;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);\n  uVar1 = 0;\n  if (__stream != (FILE *)0x0) {\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }\nLAB_0014513a:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "bool bVar6;" primitive_type identifier ;) (declaration "bool bVar7;" primitive_type identifier ;) (declaration "byte bVar8;" type_identifier identifier ;) (declaration "undefined1 local_70 [8];" type_identifier (array_declarator "local_70 [8]" identifier [ number_literal ]) ;) (declaration "byte local_68 [72];" type_identifier (array_declarator "local_68 [72]" identifier [ number_literal ]) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" identifier = number_literal) ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "__stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);" (assignment_expression "__stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0)" identifier = (cast_expression "(FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00155838(param_1,&DAT_0016d6b7,0)" identifier (argument_list "(param_1,&DAT_0016d6b7,0)" ( identifier , (pointer_expression "&DAT_0016d6b7" & identifier) , number_literal ))))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (__stream != (FILE *)0x0) {\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }" if (parenthesized_expression "(__stream != (FILE *)0x0)" ( (binary_expression "__stream != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }" { (expression_statement "pcVar2 = fgets((char *)local_68,0x40,__stream);" (assignment_expression "pcVar2 = fgets((char *)local_68,0x40,__stream)" identifier = (call_expression "fgets((char *)local_68,0x40,__stream)" identifier (argument_list "((char *)local_68,0x40,__stream)" ( (cast_expression "(char *)local_68" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , number_literal , identifier )))) ;) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" identifier = false) ;) (expression_statement "bVar7 = pcVar2 == (char *)0x0;" (assignment_expression "bVar7 = pcVar2 == (char *)0x0" identifier = (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }" if (parenthesized_expression "(!bVar7)" ( (unary_expression "!bVar7" ! identifier) )) (compound_statement "{\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }" { (expression_statement "lVar3 = 0x21;" (assignment_expression "lVar3 = 0x21" identifier = number_literal) ;) (expression_statement "pbVar4 = local_68;" (assignment_expression "pbVar4 = local_68" identifier = identifier) ;) (expression_statement "pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";" (assignment_expression "pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n"" identifier = (cast_expression "(byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""SSH PRIVATE KEY FILE FORMAT 1.1\n"" " string_content escape_sequence "))) ;) (do_statement "do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);" do (compound_statement "{\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      }" { (if_statement "if (lVar3 == 0) break;" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar3 = lVar3 + -1;" (assignment_expression "lVar3 = lVar3 + -1" identifier = (binary_expression "lVar3 + -1" identifier + number_literal)) ;) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" identifier = (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" * identifier) < (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "bVar7 = *pbVar4 == *pbVar5;" (assignment_expression "bVar7 = *pbVar4 == *pbVar5" identifier = (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" * identifier) == (pointer_expression "*pbVar5" * identifier))) ;) (expression_statement "pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "pbVar4 + (ulong)bVar8 * -2 + 1" (binary_expression "pbVar4 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1" identifier = (binary_expression "pbVar5 + (ulong)bVar8 * -2 + 1" (binary_expression "pbVar5 + (ulong)bVar8 * -2" identifier + (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar7)" ( identifier )) ;) (if_statement "if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }" if (parenthesized_expression "((!bVar6 && !bVar7) == bVar6)" ( (binary_expression "(!bVar6 && !bVar7) == bVar6" (parenthesized_expression "(!bVar6 && !bVar7)" ( (binary_expression "!bVar6 && !bVar7" (unary_expression "!bVar6" ! identifier) && (unary_expression "!bVar7" ! identifier)) )) == identifier) )) (compound_statement "{\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }" { (expression_statement "uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);" (assignment_expression "uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70)" identifier = (call_expression "FUN_001446e9(__stream,0,0,param_2,0,local_70)" identifier (argument_list "(__stream,0,0,param_2,0,local_70)" ( identifier , number_literal , number_literal , identifier , number_literal , identifier )))) ;) (goto_statement "goto LAB_0014513a;" goto statement_identifier ;) })) })) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0014513a:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" statement_identifier : (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) }))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))))) ;) (expression_statement (assignment_expression 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 = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content escape_sequence "))) ;) (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 = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_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)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , IDENT , LIT , IDENT )))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined8 FUN_001450c3(undefined8 param_1,undefined8 param_2)\n\n{\n  FILE *__stream;\n  undefined8 uVar1;\n  char *pcVar2;\n  long lVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  long in_FS_OFFSET;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  undefined1 local_70 [8];\n  byte local_68 [72];\n  long local_20;\n  \n  bVar8 = 0;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);\n  uVar1 = 0;\n  if (__stream != (FILE *)0x0) {\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }\nLAB_0014513a:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined8") (function_declarator "FUN_001450c3(undefined8 param_1,undefined8 param_2)" (identifier "FUN_001450c3") (parameter_list "(undefined8 param_1,undefined8 param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  FILE *__stream;\n  undefined8 uVar1;\n  char *pcVar2;\n  long lVar3;\n  byte *pbVar4;\n  byte *pbVar5;\n  long in_FS_OFFSET;\n  bool bVar6;\n  bool bVar7;\n  byte bVar8;\n  undefined1 local_70 [8];\n  byte local_68 [72];\n  long local_20;\n  \n  bVar8 = 0;\n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  __stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);\n  uVar1 = 0;\n  if (__stream != (FILE *)0x0) {\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }\nLAB_0014513a:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "FILE *__stream;" (type_identifier "FILE") (pointer_declarator "*__stream" (* "*") (identifier "__stream")) (; ";")) (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "bool bVar6;" (primitive_type "bool") (identifier "bVar6") (; ";")) (declaration "bool bVar7;" (primitive_type "bool") (identifier "bVar7") (; ";")) (declaration "byte bVar8;" (type_identifier "byte") (identifier "bVar8") (; ";")) (declaration "undefined1 local_70 [8];" (type_identifier "undefined1") (array_declarator "local_70 [8]" (identifier "local_70") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "byte local_68 [72];" (type_identifier "byte") (array_declarator "local_68 [72]" (identifier "local_68") ([ "[") (number_literal "72") (] "]")) (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "bVar8 = 0;" (assignment_expression "bVar8 = 0" (identifier "bVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "__stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);" (assignment_expression "__stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0)" (identifier "__stream") (= "=") (cast_expression "(FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0)" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00155838(param_1,&DAT_0016d6b7,0)" (identifier "FUN_00155838") (argument_list "(param_1,&DAT_0016d6b7,0)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&DAT_0016d6b7" (& "&") (identifier "DAT_0016d6b7")) (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (__stream != (FILE *)0x0) {\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }" (if "if") (parenthesized_expression "(__stream != (FILE *)0x0)" (( "(") (binary_expression "__stream != (FILE *)0x0" (identifier "__stream") (!= "!=") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar2 = fgets((char *)local_68,0x40,__stream);\n    bVar6 = false;\n    bVar7 = pcVar2 == (char *)0x0;\n    if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }\n    fclose(__stream);\n    uVar1 = 0;\n  }" ({ "{") (expression_statement "pcVar2 = fgets((char *)local_68,0x40,__stream);" (assignment_expression "pcVar2 = fgets((char *)local_68,0x40,__stream)" (identifier "pcVar2") (= "=") (call_expression "fgets((char *)local_68,0x40,__stream)" (identifier "fgets") (argument_list "((char *)local_68,0x40,__stream)" (( "(") (cast_expression "(char *)local_68" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_68")) (, ",") (number_literal "0x40") (, ",") (identifier "__stream") () ")")))) (; ";")) (expression_statement "bVar6 = false;" (assignment_expression "bVar6 = false" (identifier "bVar6") (= "=") (false "false")) (; ";")) (expression_statement "bVar7 = pcVar2 == (char *)0x0;" (assignment_expression "bVar7 = pcVar2 == (char *)0x0" (identifier "bVar7") (= "=") (binary_expression "pcVar2 == (char *)0x0" (identifier "pcVar2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (if_statement "if (!bVar7) {\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }" (if "if") (parenthesized_expression "(!bVar7)" (( "(") (unary_expression "!bVar7" (! "!") (identifier "bVar7")) () ")")) (compound_statement "{\n      lVar3 = 0x21;\n      pbVar4 = local_68;\n      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";\n      do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);\n      if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }\n    }" ({ "{") (expression_statement "lVar3 = 0x21;" (assignment_expression "lVar3 = 0x21" (identifier "lVar3") (= "=") (number_literal "0x21")) (; ";")) (expression_statement "pbVar4 = local_68;" (assignment_expression "pbVar4 = local_68" (identifier "pbVar4") (= "=") (identifier "local_68")) (; ";")) (expression_statement "pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";" (assignment_expression "pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n"" (identifier "pbVar5") (= "=") (cast_expression "(byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""SSH PRIVATE KEY FILE FORMAT 1.1\n"" (" """) (string_content "SSH PRIVATE KEY FILE FORMAT 1.1") (escape_sequence "\n") (" """)))) (; ";")) (do_statement "do {\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      } while (bVar7);" (do "do") (compound_statement "{\n        if (lVar3 == 0) break;\n        lVar3 = lVar3 + -1;\n        bVar6 = *pbVar4 < *pbVar5;\n        bVar7 = *pbVar4 == *pbVar5;\n        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;\n        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;\n      }" ({ "{") (if_statement "if (lVar3 == 0) break;" (if "if") (parenthesized_expression "(lVar3 == 0)" (( "(") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar3 = lVar3 + -1;" (assignment_expression "lVar3 = lVar3 + -1" (identifier "lVar3") (= "=") (binary_expression "lVar3 + -1" (identifier "lVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar6 = *pbVar4 < *pbVar5;" (assignment_expression "bVar6 = *pbVar4 < *pbVar5" (identifier "bVar6") (= "=") (binary_expression "*pbVar4 < *pbVar5" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (< "<") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "bVar7 = *pbVar4 == *pbVar5;" (assignment_expression "bVar7 = *pbVar4 == *pbVar5" (identifier "bVar7") (= "=") (binary_expression "*pbVar4 == *pbVar5" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (== "==") (pointer_expression "*pbVar5" (* "*") (identifier "pbVar5")))) (; ";")) (expression_statement "pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;" (assignment_expression "pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1" (identifier "pbVar4") (= "=") (binary_expression "pbVar4 + (ulong)bVar8 * -2 + 1" (binary_expression "pbVar4 + (ulong)bVar8 * -2" (identifier "pbVar4") (+ "+") (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;" (assignment_expression "pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1" (identifier "pbVar5") (= "=") (binary_expression "pbVar5 + (ulong)bVar8 * -2 + 1" (binary_expression "pbVar5 + (ulong)bVar8 * -2" (identifier "pbVar5") (+ "+") (binary_expression "(ulong)bVar8 * -2" (cast_expression "(ulong)bVar8" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar8")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar7)" (( "(") (identifier "bVar7") () ")")) (; ";")) (if_statement "if ((!bVar6 && !bVar7) == bVar6) {\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }" (if "if") (parenthesized_expression "((!bVar6 && !bVar7) == bVar6)" (( "(") (binary_expression "(!bVar6 && !bVar7) == bVar6" (parenthesized_expression "(!bVar6 && !bVar7)" (( "(") (binary_expression "!bVar6 && !bVar7" (unary_expression "!bVar6" (! "!") (identifier "bVar6")) (&& "&&") (unary_expression "!bVar7" (! "!") (identifier "bVar7"))) () ")")) (== "==") (identifier "bVar6")) () ")")) (compound_statement "{\n        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);\n        goto LAB_0014513a;\n      }" ({ "{") (expression_statement "uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);" (assignment_expression "uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70)" (identifier "uVar1") (= "=") (call_expression "FUN_001446e9(__stream,0,0,param_2,0,local_70)" (identifier "FUN_001446e9") (argument_list "(__stream,0,0,param_2,0,local_70)" (( "(") (identifier "__stream") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (identifier "local_70") () ")")))) (; ";")) (goto_statement "goto LAB_0014513a;" (goto "goto") (statement_identifier "LAB_0014513a") (; ";")) (} "}"))) (} "}"))) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (labeled_statement "LAB_0014513a:\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" (statement_identifier "LAB_0014513a") (: ":") (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *filename,char **comment)

{
  long var_12;
  int iVar2;
  type_2 *var_3;
  char *var_5;
  long var_6;
  type_3 *var_7;
  type_3 *var_8;
  long var_1;
  bool var_9;
  bool bVar8;
  type_3 bVar9;
  char *dummy;
  char buf [64];
  
  bVar9 = 0;
  var_12 = *(long *)(var_1 + 0x28);
  var_3 = (type_2 *)var_2(filename,"rb",0);
  iVar2 = 0;
  if (var_3 != (type_2 *)0x0) {
    var_5 = var_4(buf,0x40,var_3);
    var_9 = false;
    bVar8 = var_5 == (char *)0x0;
    if (!bVar8) {
      var_6 = 0x21;
      var_7 = (type_3 *)buf;
      var_8 = (type_3 *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";
      do {
        if (var_6 == 0) break;
        var_6 = var_6 + -1;
        var_9 = *var_7 < *var_8;
        bVar8 = *var_7 == *var_8;
        var_7 = var_7 + (type_4)bVar9 * -2 + 1;
        var_8 = var_8 + (type_4)bVar9 * -2 + 1;
      } while (bVar8);
      if ((!var_9 && !bVar8) == var_9) {
        iVar2 = var_10((type_2 *)var_3,(type_5 *)0x0,0,comment,(char *)0x0,&dummy);
        goto LAB_0014513a;
      }
    }
    var_11(var_3);
    iVar2 = 0;
  }
LAB_0014513a:
  if (var_12 == *(long *)(var_1 + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_13();
}


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

undefined8 MASKED(undefined8 param_1,undefined8 param_2)

{
  FILE *__stream;
  undefined8 uVar1;
  char *pcVar2;
  long lVar3;
  byte *pbVar4;
  byte *pbVar5;
  long in_FS_OFFSET;
  bool bVar6;
  bool bVar7;
  byte bVar8;
  undefined1 local_70 [8];
  byte local_68 [72];
  long local_20;
  
  bVar8 = 0;
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  __stream = (FILE *)FUN_00155838(param_1,&DAT_0016d6b7,0);
  uVar1 = 0;
  if (__stream != (FILE *)0x0) {
    pcVar2 = fgets((char *)local_68,0x40,__stream);
    bVar6 = false;
    bVar7 = pcVar2 == (char *)0x0;
    if (!bVar7) {
      lVar3 = 0x21;
      pbVar4 = local_68;
      pbVar5 = (byte *)"SSH PRIVATE KEY FILE FORMAT 1.1\n";
      do {
        if (lVar3 == 0) break;
        lVar3 = lVar3 + -1;
        bVar6 = *pbVar4 < *pbVar5;
        bVar7 = *pbVar4 == *pbVar5;
        pbVar4 = pbVar4 + (ulong)bVar8 * -2 + 1;
        pbVar5 = pbVar5 + (ulong)bVar8 * -2 + 1;
      } while (bVar7);
      if ((!bVar6 && !bVar7) == bVar6) {
        uVar1 = FUN_001446e9(__stream,0,0,param_2,0,local_70);
        goto LAB_0014513a;
      }
    }
    fclose(__stream);
    uVar1 = 0;
  }
LAB_0014513a:
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

