
int sha384_done(hash_state *md,uchar *out)

{
  long lVar1;
  int iVar2;
  long in_FS_OFFSET;
  uchar buf [64];
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  if (md == (hash_state *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);
  }
  if (out != (uchar *)0x0) {
    iVar2 = 0x10;
    if ((md->sha3).s[8] < 0x80) {
      sha512_done(md,buf);
      *(undefined8 *)out = buf._0_8_;
      *(undefined8 *)(out + 8) = buf._8_8_;
      *(undefined8 *)(out + 0x10) = buf._16_8_;
      *(undefined8 *)(out + 0x18) = buf._24_8_;
      *(undefined8 *)(out + 0x20) = buf._32_8_;
      *(undefined8 *)(out + 0x28) = buf._40_8_;
      iVar2 = 0;
    }
    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
      return iVar2;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);
}



undefined8 sha384_done(long param_1,undefined8 *param_2)

{
  undefined8 uVar1;
  long in_FS_OFFSET;
  undefined8 local_58;
  undefined8 uStack_50;
  undefined8 local_48;
  undefined8 uStack_40;
  undefined8 local_38;
  undefined8 uStack_30;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);
  }
  if (param_2 != (undefined8 *)0x0) {
    uVar1 = 0x10;
    if (*(ulong *)(param_1 + 0x48) < 0x80) {
      sha512_done(param_1,&local_58);
      *param_2 = local_58;
      param_2[1] = uStack_50;
      param_2[2] = local_48;
      param_2[3] = uStack_40;
      param_2[4] = local_38;
      param_2[5] = uStack_30;
      uVar1 = 0;
    }
    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
      return uVar1;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);
}


PUSH RBX
SUB RSP,0x50
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x48],RAX
XOR EAX,EAX
TEST RDI,RDI
JZ 0x00153d74
MOV RBX,RSI
TEST RSI,RSI
JZ 0x00153d8c
MOV EAX,0x10
CMP qword ptr [RDI + 0x48],0x7f
JA 0x00153d5e
MOV RSI,RSP
CALL 0x00113b30
MOVDQA XMM0,xmmword ptr [RSP]
MOVUPS xmmword ptr [RBX],XMM0
MOVDQA XMM1,xmmword ptr [RSP + 0x10]
MOVUPS xmmword ptr [RBX + 0x10],XMM1
MOVDQA XMM2,xmmword ptr [RSP + 0x20]
MOVUPS xmmword ptr [RBX + 0x20],XMM2
MOV EAX,0x0
MOV RCX,qword ptr [RSP + 0x48]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x00153da4
ADD RSP,0x50
POP RBX
RET
MOV EDX,0x44
LEA RSI,[0x1b1b0d]
LEA RDI,[0x1b14b5]
CALL 0x00114260
MOV EDX,0x45
LEA RSI,[0x1b1b0d]
LEA RDI,[0x1ab721]
CALL 0x00114260
CALL 0x00113870
(translation_unit "undefined8 sha384_done(long param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  long in_FS_OFFSET;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  undefined8 uStack_30;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }\n  if (param_2 != (undefined8 *)0x0) {\n    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);\n}\n\n" (function_definition "undefined8 sha384_done(long param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  long in_FS_OFFSET;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  undefined8 uStack_30;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }\n  if (param_2 != (undefined8 *)0x0) {\n    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);\n}" type_identifier (function_declarator "sha384_done(long param_1,undefined8 *param_2)" identifier (parameter_list "(long param_1,undefined8 *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  long in_FS_OFFSET;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  undefined8 uStack_30;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }\n  if (param_2 != (undefined8 *)0x0) {\n    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 uStack_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 uStack_40;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "undefined8 uStack_30;" type_identifier identifier ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }" { comment (expression_statement "crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);" (call_expression "crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44)" identifier (argument_list "("md != NULL","src/hashes/sha2/sha384.c",0x44)" ( (string_literal ""md != NULL"" " string_content ") , (string_literal ""src/hashes/sha2/sha384.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_2 != (undefined8 *)0x0) {\n    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\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    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { (expression_statement "uVar1 = 0x10;" (assignment_expression "uVar1 = 0x10" identifier = number_literal) ;) (if_statement "if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }" if (parenthesized_expression "(*(ulong *)(param_1 + 0x48) < 0x80)" ( (binary_expression "*(ulong *)(param_1 + 0x48) < 0x80" (pointer_expression "*(ulong *)(param_1 + 0x48)" * (cast_expression "(ulong *)(param_1 + 0x48)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }" { (expression_statement "sha512_done(param_1,&local_58);" (call_expression "sha512_done(param_1,&local_58)" identifier (argument_list "(param_1,&local_58)" ( identifier , (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "*param_2 = local_58;" (assignment_expression "*param_2 = local_58" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = uStack_50;" (assignment_expression "param_2[1] = uStack_50" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = local_48;" (assignment_expression "param_2[2] = local_48" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[3] = uStack_40;" (assignment_expression "param_2[3] = uStack_40" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[4] = local_38;" (assignment_expression "param_2[4] = local_38" (subscript_expression "param_2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[5] = uStack_30;" (assignment_expression "param_2[5] = uStack_30" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }" if (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 == *(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 "()" ( ))) ;) })) comment (expression_statement "crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);" (call_expression "crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45)" identifier (argument_list "("out != NULL","src/hashes/sha2/sha384.c",0x45)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/hashes/sha2/sha384.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "int sha384_done(hash_state *md,uchar *out)\n\n{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  uchar buf [64];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (md == (hash_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }\n  if (out != (uchar *)0x0) {\n    iVar2 = 0x10;\n    if ((md->sha3).s[8] < 0x80) {\n      sha512_done(md,buf);\n      *(undefined8 *)out = buf._0_8_;\n      *(undefined8 *)(out + 8) = buf._8_8_;\n      *(undefined8 *)(out + 0x10) = buf._16_8_;\n      *(undefined8 *)(out + 0x18) = buf._24_8_;\n      *(undefined8 *)(out + 0x20) = buf._32_8_;\n      *(undefined8 *)(out + 0x28) = buf._40_8_;\n      iVar2 = 0;\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return iVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);\n}\n\n" (function_definition "int sha384_done(hash_state *md,uchar *out)\n\n{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  uchar buf [64];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (md == (hash_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }\n  if (out != (uchar *)0x0) {\n    iVar2 = 0x10;\n    if ((md->sha3).s[8] < 0x80) {\n      sha512_done(md,buf);\n      *(undefined8 *)out = buf._0_8_;\n      *(undefined8 *)(out + 8) = buf._8_8_;\n      *(undefined8 *)(out + 0x10) = buf._16_8_;\n      *(undefined8 *)(out + 0x18) = buf._24_8_;\n      *(undefined8 *)(out + 0x20) = buf._32_8_;\n      *(undefined8 *)(out + 0x28) = buf._40_8_;\n      iVar2 = 0;\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return iVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);\n}" primitive_type (function_declarator "sha384_done(hash_state *md,uchar *out)" identifier (parameter_list "(hash_state *md,uchar *out)" ( (parameter_declaration "hash_state *md" type_identifier (pointer_declarator "*md" * identifier)) , (parameter_declaration "uchar *out" type_identifier (pointer_declarator "*out" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  uchar buf [64];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (md == (hash_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }\n  if (out != (uchar *)0x0) {\n    iVar2 = 0x10;\n    if ((md->sha3).s[8] < 0x80) {\n      sha512_done(md,buf);\n      *(undefined8 *)out = buf._0_8_;\n      *(undefined8 *)(out + 8) = buf._8_8_;\n      *(undefined8 *)(out + 0x10) = buf._16_8_;\n      *(undefined8 *)(out + 0x18) = buf._24_8_;\n      *(undefined8 *)(out + 0x20) = buf._32_8_;\n      *(undefined8 *)(out + 0x28) = buf._40_8_;\n      iVar2 = 0;\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return iVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "uchar buf [64];" type_identifier (array_declarator "buf [64]" 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) ))))) ;) (if_statement "if (md == (hash_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }" if (parenthesized_expression "(md == (hash_state *)0x0)" ( (binary_expression "md == (hash_state *)0x0" identifier == (cast_expression "(hash_state *)0x0" ( (type_descriptor "hash_state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }" { comment (expression_statement "crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);" (call_expression "crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44)" identifier (argument_list "("md != NULL","src/hashes/sha2/sha384.c",0x44)" ( (string_literal ""md != NULL"" " string_content ") , (string_literal ""src/hashes/sha2/sha384.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (out != (uchar *)0x0) {\n    iVar2 = 0x10;\n    if ((md->sha3).s[8] < 0x80) {\n      sha512_done(md,buf);\n      *(undefined8 *)out = buf._0_8_;\n      *(undefined8 *)(out + 8) = buf._8_8_;\n      *(undefined8 *)(out + 0x10) = buf._16_8_;\n      *(undefined8 *)(out + 0x18) = buf._24_8_;\n      *(undefined8 *)(out + 0x20) = buf._32_8_;\n      *(undefined8 *)(out + 0x28) = buf._40_8_;\n      iVar2 = 0;\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return iVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(out != (uchar *)0x0)" ( (binary_expression "out != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = 0x10;\n    if ((md->sha3).s[8] < 0x80) {\n      sha512_done(md,buf);\n      *(undefined8 *)out = buf._0_8_;\n      *(undefined8 *)(out + 8) = buf._8_8_;\n      *(undefined8 *)(out + 0x10) = buf._16_8_;\n      *(undefined8 *)(out + 0x18) = buf._24_8_;\n      *(undefined8 *)(out + 0x20) = buf._32_8_;\n      *(undefined8 *)(out + 0x28) = buf._40_8_;\n      iVar2 = 0;\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return iVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { (expression_statement "iVar2 = 0x10;" (assignment_expression "iVar2 = 0x10" identifier = number_literal) ;) (if_statement "if ((md->sha3).s[8] < 0x80) {\n      sha512_done(md,buf);\n      *(undefined8 *)out = buf._0_8_;\n      *(undefined8 *)(out + 8) = buf._8_8_;\n      *(undefined8 *)(out + 0x10) = buf._16_8_;\n      *(undefined8 *)(out + 0x18) = buf._24_8_;\n      *(undefined8 *)(out + 0x20) = buf._32_8_;\n      *(undefined8 *)(out + 0x28) = buf._40_8_;\n      iVar2 = 0;\n    }" if (parenthesized_expression "((md->sha3).s[8] < 0x80)" ( (binary_expression "(md->sha3).s[8] < 0x80" (subscript_expression "(md->sha3).s[8]" (field_expression "(md->sha3).s" (parenthesized_expression "(md->sha3)" ( (field_expression "md->sha3" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) < number_literal) )) (compound_statement "{\n      sha512_done(md,buf);\n      *(undefined8 *)out = buf._0_8_;\n      *(undefined8 *)(out + 8) = buf._8_8_;\n      *(undefined8 *)(out + 0x10) = buf._16_8_;\n      *(undefined8 *)(out + 0x18) = buf._24_8_;\n      *(undefined8 *)(out + 0x20) = buf._32_8_;\n      *(undefined8 *)(out + 0x28) = buf._40_8_;\n      iVar2 = 0;\n    }" { (expression_statement "sha512_done(md,buf);" (call_expression "sha512_done(md,buf)" identifier (argument_list "(md,buf)" ( identifier , identifier ))) ;) (expression_statement "*(undefined8 *)out = buf._0_8_;" (assignment_expression "*(undefined8 *)out = buf._0_8_" (pointer_expression "*(undefined8 *)out" * (cast_expression "(undefined8 *)out" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (field_expression "buf._0_8_" identifier . field_identifier)) ;) (expression_statement "*(undefined8 *)(out + 8) = buf._8_8_;" (assignment_expression "*(undefined8 *)(out + 8) = buf._8_8_" (pointer_expression "*(undefined8 *)(out + 8)" * (cast_expression "(undefined8 *)(out + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(out + 8)" ( (binary_expression "out + 8" identifier + number_literal) )))) = (field_expression "buf._8_8_" identifier . field_identifier)) ;) (expression_statement "*(undefined8 *)(out + 0x10) = buf._16_8_;" (assignment_expression "*(undefined8 *)(out + 0x10) = buf._16_8_" (pointer_expression "*(undefined8 *)(out + 0x10)" * (cast_expression "(undefined8 *)(out + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(out + 0x10)" ( (binary_expression "out + 0x10" identifier + number_literal) )))) = (field_expression "buf._16_8_" identifier . field_identifier)) ;) (expression_statement "*(undefined8 *)(out + 0x18) = buf._24_8_;" (assignment_expression "*(undefined8 *)(out + 0x18) = buf._24_8_" (pointer_expression "*(undefined8 *)(out + 0x18)" * (cast_expression "(undefined8 *)(out + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(out + 0x18)" ( (binary_expression "out + 0x18" identifier + number_literal) )))) = (field_expression "buf._24_8_" identifier . field_identifier)) ;) (expression_statement "*(undefined8 *)(out + 0x20) = buf._32_8_;" (assignment_expression "*(undefined8 *)(out + 0x20) = buf._32_8_" (pointer_expression "*(undefined8 *)(out + 0x20)" * (cast_expression "(undefined8 *)(out + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(out + 0x20)" ( (binary_expression "out + 0x20" identifier + number_literal) )))) = (field_expression "buf._32_8_" identifier . field_identifier)) ;) (expression_statement "*(undefined8 *)(out + 0x28) = buf._40_8_;" (assignment_expression "*(undefined8 *)(out + 0x28) = buf._40_8_" (pointer_expression "*(undefined8 *)(out + 0x28)" * (cast_expression "(undefined8 *)(out + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(out + 0x28)" ( (binary_expression "out + 0x28" identifier + number_literal) )))) = (field_expression "buf._40_8_" identifier . field_identifier)) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) })) (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 "()" ( ))) ;) })) comment (expression_statement "crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);" (call_expression "crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45)" identifier (argument_list "("out != NULL","src/hashes/sha2/sha384.c",0x45)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/hashes/sha2/sha384.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "undefined8 sha384_done(long param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  long in_FS_OFFSET;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  undefined8 uStack_30;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }\n  if (param_2 != (undefined8 *)0x0) {\n    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);\n}\n\n" (function_definition "undefined8 sha384_done(long param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  long in_FS_OFFSET;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  undefined8 uStack_30;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }\n  if (param_2 != (undefined8 *)0x0) {\n    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);\n}" type_identifier (function_declarator "sha384_done(long param_1,undefined8 *param_2)" identifier (parameter_list "(long param_1,undefined8 *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  long in_FS_OFFSET;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  undefined8 uStack_30;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }\n  if (param_2 != (undefined8 *)0x0) {\n    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_58;" type_identifier identifier ;) (declaration "undefined8 uStack_50;" type_identifier identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 uStack_40;" type_identifier identifier ;) (declaration "undefined8 local_38;" type_identifier identifier ;) (declaration "undefined8 uStack_30;" type_identifier identifier ;) (declaration "long local_10;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    \n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }" { (expression_statement "crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);" (call_expression "crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44)" identifier (argument_list "("md != NULL","src/hashes/sha2/sha384.c",0x44)" ( (string_literal ""md != NULL"" " string_content ") , (string_literal ""src/hashes/sha2/sha384.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_2 != (undefined8 *)0x0) {\n    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    \n    __stack_chk_fail();\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    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "uVar1 = 0x10;" (assignment_expression "uVar1 = 0x10" identifier = number_literal) ;) (if_statement "if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }" if (parenthesized_expression "(*(ulong *)(param_1 + 0x48) < 0x80)" ( (binary_expression "*(ulong *)(param_1 + 0x48) < 0x80" (pointer_expression "*(ulong *)(param_1 + 0x48)" * (cast_expression "(ulong *)(param_1 + 0x48)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }" { (expression_statement "sha512_done(param_1,&local_58);" (call_expression "sha512_done(param_1,&local_58)" identifier (argument_list "(param_1,&local_58)" ( identifier , (pointer_expression "&local_58" & identifier) ))) ;) (expression_statement "*param_2 = local_58;" (assignment_expression "*param_2 = local_58" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = uStack_50;" (assignment_expression "param_2[1] = uStack_50" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = local_48;" (assignment_expression "param_2[2] = local_48" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[3] = uStack_40;" (assignment_expression "param_2[3] = uStack_40" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[4] = local_38;" (assignment_expression "param_2[4] = local_38" (subscript_expression "param_2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[5] = uStack_30;" (assignment_expression "param_2[5] = uStack_30" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) })) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }" if (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_10 == *(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 "()" ( ))) ;) })) (expression_statement "crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);" (call_expression "crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45)" identifier (argument_list "("out != NULL","src/hashes/sha2/sha384.c",0x45)" ( (string_literal ""out != NULL"" " string_content ") , (string_literal ""src/hashes/sha2/sha384.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (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 ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })))
(function_definition "undefined8 sha384_done(long param_1,undefined8 *param_2)\n\n{\n  undefined8 uVar1;\n  long in_FS_OFFSET;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  undefined8 uStack_30;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }\n  if (param_2 != (undefined8 *)0x0) {\n    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);\n}" (type_identifier "undefined8") (function_declarator "sha384_done(long param_1,undefined8 *param_2)" (identifier "sha384_done") (parameter_list "(long param_1,undefined8 *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  long in_FS_OFFSET;\n  undefined8 local_58;\n  undefined8 uStack_50;\n  undefined8 local_48;\n  undefined8 uStack_40;\n  undefined8 local_38;\n  undefined8 uStack_30;\n  long local_10;\n  \n  local_10 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }\n  if (param_2 != (undefined8 *)0x0) {\n    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 local_58;" (type_identifier "undefined8") (identifier "local_58") (; ";")) (declaration "undefined8 uStack_50;" (type_identifier "undefined8") (identifier "uStack_50") (; ";")) (declaration "undefined8 local_48;" (type_identifier "undefined8") (identifier "local_48") (; ";")) (declaration "undefined8 uStack_40;" (type_identifier "undefined8") (identifier "uStack_40") (; ";")) (declaration "undefined8 local_38;" (type_identifier "undefined8") (identifier "local_38") (; ";")) (declaration "undefined8 uStack_30;" (type_identifier "undefined8") (identifier "uStack_30") (; ";")) (declaration "long local_10;" (sized_type_specifier "long" (long "long")) (identifier "local_10") (; ";")) (expression_statement "local_10 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_10 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);\n  }" ({ "{") (expression_statement "crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);" (call_expression "crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44)" (identifier "crypt_argchk") (argument_list "("md != NULL","src/hashes/sha2/sha384.c",0x44)" (( "(") (string_literal ""md != NULL"" (" """) (string_content "md != NULL") (" """)) (, ",") (string_literal ""src/hashes/sha2/sha384.c"" (" """) (string_content "src/hashes/sha2/sha384.c") (" """)) (, ",") (number_literal "0x44") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 != (undefined8 *)0x0) {\n    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    \n    __stack_chk_fail();\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    uVar1 = 0x10;\n    if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }\n    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "uVar1 = 0x10;" (assignment_expression "uVar1 = 0x10" (identifier "uVar1") (= "=") (number_literal "0x10")) (; ";")) (if_statement "if (*(ulong *)(param_1 + 0x48) < 0x80) {\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }" (if "if") (parenthesized_expression "(*(ulong *)(param_1 + 0x48) < 0x80)" (( "(") (binary_expression "*(ulong *)(param_1 + 0x48) < 0x80" (pointer_expression "*(ulong *)(param_1 + 0x48)" (* "*") (cast_expression "(ulong *)(param_1 + 0x48)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (< "<") (number_literal "0x80")) () ")")) (compound_statement "{\n      sha512_done(param_1,&local_58);\n      *param_2 = local_58;\n      param_2[1] = uStack_50;\n      param_2[2] = local_48;\n      param_2[3] = uStack_40;\n      param_2[4] = local_38;\n      param_2[5] = uStack_30;\n      uVar1 = 0;\n    }" ({ "{") (expression_statement "sha512_done(param_1,&local_58);" (call_expression "sha512_done(param_1,&local_58)" (identifier "sha512_done") (argument_list "(param_1,&local_58)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_58" (& "&") (identifier "local_58")) () ")"))) (; ";")) (expression_statement "*param_2 = local_58;" (assignment_expression "*param_2 = local_58" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "local_58")) (; ";")) (expression_statement "param_2[1] = uStack_50;" (assignment_expression "param_2[1] = uStack_50" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uStack_50")) (; ";")) (expression_statement "param_2[2] = local_48;" (assignment_expression "param_2[2] = local_48" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_48")) (; ";")) (expression_statement "param_2[3] = uStack_40;" (assignment_expression "param_2[3] = uStack_40" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uStack_40")) (; ";")) (expression_statement "param_2[4] = local_38;" (assignment_expression "param_2[4] = local_38" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "local_38")) (; ";")) (expression_statement "param_2[5] = uStack_30;" (assignment_expression "param_2[5] = uStack_30" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "uStack_30")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return uVar1;\n    }" (if "if") (parenthesized_expression "(local_10 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_10 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_10") (== "==") (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 "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);" (call_expression "crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45)" (identifier "crypt_argchk") (argument_list "("out != NULL","src/hashes/sha2/sha384.c",0x45)" (( "(") (string_literal ""out != NULL"" (" """) (string_content "out != NULL") (" """)) (, ",") (string_literal ""src/hashes/sha2/sha384.c"" (" """) (string_content "src/hashes/sha2/sha384.c") (" """)) (, ",") (number_literal "0x45") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *var_2,type_2 *var_4)

{
  long var_6;
  int iVar2;
  long var_1;
  type_2 buf [64];
  
  var_6 = *(long *)(var_1 + 0x28);
  if (var_2 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("md != NULL","src/hashes/sha2/sha384.c",0x44);
  }
  if (var_4 != (type_2 *)0x0) {
    iVar2 = 0x10;
    if ((var_2->sha3).s[8] < 0x80) {
      var_5(var_2,buf);
      *(type_3 *)var_4 = buf._0_8_;
      *(type_3 *)(var_4 + 8) = buf._8_8_;
      *(type_3 *)(var_4 + 0x10) = buf._16_8_;
      *(type_3 *)(var_4 + 0x18) = buf._24_8_;
      *(type_3 *)(var_4 + 0x20) = buf._32_8_;
      *(type_3 *)(var_4 + 0x28) = buf._40_8_;
      iVar2 = 0;
    }
    if (var_6 == *(long *)(var_1 + 0x28)) {
      return iVar2;
    }
                    /* WARNING: Subroutine does not return */
    var_7();
  }
                    /* WARNING: Subroutine does not return */
  var_3("out != NULL","src/hashes/sha2/sha384.c",0x45);
}


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

undefined8 MASKED(long param_1,undefined8 *param_2)

{
  undefined8 uVar1;
  long in_FS_OFFSET;
  undefined8 local_58;
  undefined8 uStack_50;
  undefined8 local_48;
  undefined8 uStack_40;
  undefined8 local_38;
  undefined8 uStack_30;
  long local_10;
  
  local_10 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("md != NULL","src/hashes/sha2/sha384.c",0x44);
  }
  if (param_2 != (undefined8 *)0x0) {
    uVar1 = 0x10;
    if (*(ulong *)(param_1 + 0x48) < 0x80) {
      sha512_done(param_1,&local_58);
      *param_2 = local_58;
      param_2[1] = uStack_50;
      param_2[2] = local_48;
      param_2[3] = uStack_40;
      param_2[4] = local_38;
      param_2[5] = uStack_30;
      uVar1 = 0;
    }
    if (local_10 == *(long *)(in_FS_OFFSET + 0x28)) {
      return uVar1;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("out != NULL","src/hashes/sha2/sha384.c",0x45);
}

