
/* WARNING: Unknown calling convention */

int sha1_test(void)

{
  long lVar1;
  int iVar2;
  long in_FS_OFFSET;
  hash_state md;
  uchar tmp [20];
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  sha1_init(&md);
  sha1_process(&md,"abc",3);
  sha1_done(&md,tmp);
  iVar2 = compare_testvector(tmp,0x14,tests_8012 + 8,0x14,"SHA1",0);
  if (iVar2 == 0) {
    sha1_init(&md);
    sha1_process(&md,(uchar *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);
    sha1_done(&md,tmp);
    iVar2 = compare_testvector(tmp,0x14,tests_8012 + 0x28,0x14,"SHA1",1);
    if (iVar2 != 0) {
      iVar2 = 5;
    }
  }
  else {
    iVar2 = 5;
  }
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



int FUN_00156a70(void)

{
  int iVar1;
  long in_FS_OFFSET;
  undefined1 auStack_1d8 [416];
  undefined1 local_38 [24];
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  sha1_init(auStack_1d8);
  sha1_process(auStack_1d8,&DAT_001bd690,3);
  sha1_done(auStack_1d8,local_38);
  iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);
  if (iVar1 == 0) {
    sha1_init(auStack_1d8);
    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);
    sha1_done(auStack_1d8,local_38);
    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);
    if (iVar1 != 0) {
      iVar1 = 5;
    }
  }
  else {
    iVar1 = 5;
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH RBP
PUSH RBX
SUB RSP,0x1c8
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x1b8],RAX
XOR EAX,EAX
MOV RBX,RSP
LEA RBP,[RSP + 0x1a0]
MOV RDI,RBX
CALL 0x00113910
MOV EDX,0x3
LEA RSI,[0x1bd690]
MOV RDI,RBX
CALL 0x00114a00
MOV RSI,RBP
MOV RDI,RBX
CALL 0x00114a30
XOR R9D,R9D
MOV ECX,0x14
MOV RDI,RBP
LEA R8,[0x1bdd12]
LEA RDX,[0x1e6c48]
MOV ESI,0x14
CALL 0x001143c0
TEST EAX,EAX
JNZ 0x00156b60
MOV RDI,RBX
CALL 0x00113910
MOV EDX,0x38
LEA RSI,[0x1bdc48]
MOV RDI,RBX
CALL 0x00114a00
MOV RSI,RBP
MOV RDI,RBX
CALL 0x00114a30
LEA RDX,[0x1e6c68]
MOV R9D,0x1
MOV RDI,RBP
LEA R8,[0x1bdd12]
MOV ECX,0x14
MOV ESI,0x14
CALL 0x001143c0
MOV EDX,0x5
TEST EAX,EAX
CMOVNZ EAX,EDX
MOV RCX,qword ptr [RSP + 0x1b8]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x00156b67
ADD RSP,0x1c8
POP RBX
POP RBP
RET
MOV EAX,0x5
JMP 0x00156b3c
CALL 0x00113880
(translation_unit "int FUN_00156a70(void)\n\n{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined1 auStack_1d8 [416];\n  undefined1 local_38 [24];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  sha1_init(auStack_1d8);\n  sha1_process(auStack_1d8,&DAT_001bd690,3);\n  sha1_done(auStack_1d8,local_38);\n  iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);\n  if (iVar1 == 0) {\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }\n  else {\n    iVar1 = 5;\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "int FUN_00156a70(void)\n\n{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined1 auStack_1d8 [416];\n  undefined1 local_38 [24];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  sha1_init(auStack_1d8);\n  sha1_process(auStack_1d8,&DAT_001bd690,3);\n  sha1_done(auStack_1d8,local_38);\n  iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);\n  if (iVar1 == 0) {\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }\n  else {\n    iVar1 = 5;\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_00156a70(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined1 auStack_1d8 [416];\n  undefined1 local_38 [24];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  sha1_init(auStack_1d8);\n  sha1_process(auStack_1d8,&DAT_001bd690,3);\n  sha1_done(auStack_1d8,local_38);\n  iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);\n  if (iVar1 == 0) {\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }\n  else {\n    iVar1 = 5;\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_1d8 [416];" type_identifier (array_declarator "auStack_1d8 [416]" identifier [ number_literal ]) ;) (declaration "undefined1 local_38 [24];" type_identifier (array_declarator "local_38 [24]" identifier [ number_literal ]) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (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 "sha1_init(auStack_1d8);" (call_expression "sha1_init(auStack_1d8)" identifier (argument_list "(auStack_1d8)" ( identifier ))) ;) (expression_statement "sha1_process(auStack_1d8,&DAT_001bd690,3);" (call_expression "sha1_process(auStack_1d8,&DAT_001bd690,3)" identifier (argument_list "(auStack_1d8,&DAT_001bd690,3)" ( identifier , (pointer_expression "&DAT_001bd690" & identifier) , number_literal ))) ;) (expression_statement "sha1_done(auStack_1d8,local_38);" (call_expression "sha1_done(auStack_1d8,local_38)" identifier (argument_list "(auStack_1d8,local_38)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);" (assignment_expression "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0)" identifier = (call_expression "compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0)" identifier (argument_list "(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0)" ( identifier , number_literal , (pointer_expression "&DAT_001e6c48" & identifier) , number_literal , (pointer_expression "&DAT_001bdd12" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }\n  else {\n    iVar1 = 5;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }" { (expression_statement "sha1_init(auStack_1d8);" (call_expression "sha1_init(auStack_1d8)" identifier (argument_list "(auStack_1d8)" ( identifier ))) ;) (expression_statement "sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);" (call_expression "sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38)" identifier (argument_list "(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38)" ( identifier , (string_literal ""abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"" " string_content ") , number_literal ))) ;) (expression_statement "sha1_done(auStack_1d8,local_38);" (call_expression "sha1_done(auStack_1d8,local_38)" identifier (argument_list "(auStack_1d8,local_38)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);" (assignment_expression "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1)" identifier = (call_expression "compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1)" identifier (argument_list "(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1)" ( identifier , number_literal , (pointer_expression "&DAT_001e6c68" & identifier) , number_literal , (pointer_expression "&DAT_001bdd12" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      iVar1 = 5;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = 5;\n    }" { (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" identifier = number_literal) ;) })) }) (else_clause "else {\n    iVar1 = 5;\n  }" else (compound_statement "{\n    iVar1 = 5;\n  }" { (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" identifier = number_literal) ;) }))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\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 iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint sha1_test(void)\n\n{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  hash_state md;\n  uchar tmp [20];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  sha1_init(&md);\n  sha1_process(&md,"abc",3);\n  sha1_done(&md,tmp);\n  iVar2 = compare_testvector(tmp,0x14,tests_8012 + 8,0x14,"SHA1",0);\n  if (iVar2 == 0) {\n    sha1_init(&md);\n    sha1_process(&md,(uchar *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x14,tests_8012 + 0x28,0x14,"SHA1",1);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n    }\n  }\n  else {\n    iVar2 = 5;\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\n" comment (function_definition "int sha1_test(void)\n\n{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  hash_state md;\n  uchar tmp [20];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  sha1_init(&md);\n  sha1_process(&md,"abc",3);\n  sha1_done(&md,tmp);\n  iVar2 = compare_testvector(tmp,0x14,tests_8012 + 8,0x14,"SHA1",0);\n  if (iVar2 == 0) {\n    sha1_init(&md);\n    sha1_process(&md,(uchar *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x14,tests_8012 + 0x28,0x14,"SHA1",1);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n    }\n  }\n  else {\n    iVar2 = 5;\n  }\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 "sha1_test(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long in_FS_OFFSET;\n  hash_state md;\n  uchar tmp [20];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  sha1_init(&md);\n  sha1_process(&md,"abc",3);\n  sha1_done(&md,tmp);\n  iVar2 = compare_testvector(tmp,0x14,tests_8012 + 8,0x14,"SHA1",0);\n  if (iVar2 == 0) {\n    sha1_init(&md);\n    sha1_process(&md,(uchar *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x14,tests_8012 + 0x28,0x14,"SHA1",1);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n    }\n  }\n  else {\n    iVar2 = 5;\n  }\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 "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "hash_state md;" type_identifier identifier ;) (declaration "uchar tmp [20];" type_identifier (array_declarator "tmp [20]" 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 "sha1_init(&md);" (call_expression "sha1_init(&md)" identifier (argument_list "(&md)" ( (pointer_expression "&md" & identifier) ))) ;) (expression_statement "sha1_process(&md,"abc",3);" (call_expression "sha1_process(&md,"abc",3)" identifier (argument_list "(&md,"abc",3)" ( (pointer_expression "&md" & identifier) , (string_literal ""abc"" " string_content ") , number_literal ))) ;) (expression_statement "sha1_done(&md,tmp);" (call_expression "sha1_done(&md,tmp)" identifier (argument_list "(&md,tmp)" ( (pointer_expression "&md" & identifier) , identifier ))) ;) (expression_statement "iVar2 = compare_testvector(tmp,0x14,tests_8012 + 8,0x14,"SHA1",0);" (assignment_expression "iVar2 = compare_testvector(tmp,0x14,tests_8012 + 8,0x14,"SHA1",0)" identifier = (call_expression "compare_testvector(tmp,0x14,tests_8012 + 8,0x14,"SHA1",0)" identifier (argument_list "(tmp,0x14,tests_8012 + 8,0x14,"SHA1",0)" ( identifier , number_literal , (binary_expression "tests_8012 + 8" identifier + number_literal) , number_literal , (string_literal ""SHA1"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n    sha1_init(&md);\n    sha1_process(&md,(uchar *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x14,tests_8012 + 0x28,0x14,"SHA1",1);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n    }\n  }\n  else {\n    iVar2 = 5;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    sha1_init(&md);\n    sha1_process(&md,(uchar *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x14,tests_8012 + 0x28,0x14,"SHA1",1);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n    }\n  }" { (expression_statement "sha1_init(&md);" (call_expression "sha1_init(&md)" identifier (argument_list "(&md)" ( (pointer_expression "&md" & identifier) ))) ;) (expression_statement "sha1_process(&md,(uchar *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);" (call_expression "sha1_process(&md,(uchar *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38)" identifier (argument_list "(&md,(uchar *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38)" ( (pointer_expression "&md" & identifier) , (cast_expression "(uchar *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"" " string_content ")) , number_literal ))) ;) (expression_statement "sha1_done(&md,tmp);" (call_expression "sha1_done(&md,tmp)" identifier (argument_list "(&md,tmp)" ( (pointer_expression "&md" & identifier) , identifier ))) ;) (expression_statement "iVar2 = compare_testvector(tmp,0x14,tests_8012 + 0x28,0x14,"SHA1",1);" (assignment_expression "iVar2 = compare_testvector(tmp,0x14,tests_8012 + 0x28,0x14,"SHA1",1)" identifier = (call_expression "compare_testvector(tmp,0x14,tests_8012 + 0x28,0x14,"SHA1",1)" identifier (argument_list "(tmp,0x14,tests_8012 + 0x28,0x14,"SHA1",1)" ( identifier , number_literal , (binary_expression "tests_8012 + 0x28" identifier + number_literal) , number_literal , (string_literal ""SHA1"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n      iVar2 = 5;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = 5;\n    }" { (expression_statement "iVar2 = 5;" (assignment_expression "iVar2 = 5" identifier = number_literal) ;) })) }) (else_clause "else {\n    iVar2 = 5;\n  }" else (compound_statement "{\n    iVar2 = 5;\n  }" { (expression_statement "iVar2 = 5;" (assignment_expression "iVar2 = 5" 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 "()" ( ))) ;) })))
(translation_unit "int FUN_00156a70(void)\n\n{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined1 auStack_1d8 [416];\n  undefined1 local_38 [24];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  sha1_init(auStack_1d8);\n  sha1_process(auStack_1d8,&DAT_001bd690,3);\n  sha1_done(auStack_1d8,local_38);\n  iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);\n  if (iVar1 == 0) {\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }\n  else {\n    iVar1 = 5;\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "int FUN_00156a70(void)\n\n{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined1 auStack_1d8 [416];\n  undefined1 local_38 [24];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  sha1_init(auStack_1d8);\n  sha1_process(auStack_1d8,&DAT_001bd690,3);\n  sha1_done(auStack_1d8,local_38);\n  iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);\n  if (iVar1 == 0) {\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }\n  else {\n    iVar1 = 5;\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    \n  __stack_chk_fail();\n}" primitive_type (function_declarator "FUN_00156a70(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined1 auStack_1d8 [416];\n  undefined1 local_38 [24];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  sha1_init(auStack_1d8);\n  sha1_process(auStack_1d8,&DAT_001bd690,3);\n  sha1_done(auStack_1d8,local_38);\n  iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);\n  if (iVar1 == 0) {\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }\n  else {\n    iVar1 = 5;\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_1d8 [416];" type_identifier (array_declarator "auStack_1d8 [416]" identifier [ number_literal ]) ;) (declaration "undefined1 local_38 [24];" type_identifier (array_declarator "local_38 [24]" identifier [ number_literal ]) ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (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 "sha1_init(auStack_1d8);" (call_expression "sha1_init(auStack_1d8)" identifier (argument_list "(auStack_1d8)" ( identifier ))) ;) (expression_statement "sha1_process(auStack_1d8,&DAT_001bd690,3);" (call_expression "sha1_process(auStack_1d8,&DAT_001bd690,3)" identifier (argument_list "(auStack_1d8,&DAT_001bd690,3)" ( identifier , (pointer_expression "&DAT_001bd690" & identifier) , number_literal ))) ;) (expression_statement "sha1_done(auStack_1d8,local_38);" (call_expression "sha1_done(auStack_1d8,local_38)" identifier (argument_list "(auStack_1d8,local_38)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);" (assignment_expression "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0)" identifier = (call_expression "compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0)" identifier (argument_list "(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0)" ( identifier , number_literal , (pointer_expression "&DAT_001e6c48" & identifier) , number_literal , (pointer_expression "&DAT_001bdd12" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }\n  else {\n    iVar1 = 5;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }" { (expression_statement "sha1_init(auStack_1d8);" (call_expression "sha1_init(auStack_1d8)" identifier (argument_list "(auStack_1d8)" ( identifier ))) ;) (expression_statement "sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);" (call_expression "sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38)" identifier (argument_list "(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38)" ( identifier , (string_literal ""abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"" " string_content ") , number_literal ))) ;) (expression_statement "sha1_done(auStack_1d8,local_38);" (call_expression "sha1_done(auStack_1d8,local_38)" identifier (argument_list "(auStack_1d8,local_38)" ( identifier , identifier ))) ;) (expression_statement "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);" (assignment_expression "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1)" identifier = (call_expression "compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1)" identifier (argument_list "(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1)" ( identifier , number_literal , (pointer_expression "&DAT_001e6c68" & identifier) , number_literal , (pointer_expression "&DAT_001bdd12" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      iVar1 = 5;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = 5;\n    }" { (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" identifier = number_literal) ;) })) }) (else_clause "else {\n    iVar1 = 5;\n  }" else (compound_statement "{\n    iVar1 = 5;\n  }" { (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" identifier = number_literal) ;) }))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\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 iVar1;\n  }" { (return_statement "return iVar1;" 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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = 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 ( ))) ;) })))
(function_definition "int FUN_00156a70(void)\n\n{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined1 auStack_1d8 [416];\n  undefined1 local_38 [24];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  sha1_init(auStack_1d8);\n  sha1_process(auStack_1d8,&DAT_001bd690,3);\n  sha1_done(auStack_1d8,local_38);\n  iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);\n  if (iVar1 == 0) {\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }\n  else {\n    iVar1 = 5;\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    \n  __stack_chk_fail();\n}" (primitive_type "int") (function_declarator "FUN_00156a70(void)" (identifier "FUN_00156a70") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined1 auStack_1d8 [416];\n  undefined1 local_38 [24];\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  sha1_init(auStack_1d8);\n  sha1_process(auStack_1d8,&DAT_001bd690,3);\n  sha1_done(auStack_1d8,local_38);\n  iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);\n  if (iVar1 == 0) {\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }\n  else {\n    iVar1 = 5;\n  }\n  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 auStack_1d8 [416];" (type_identifier "undefined1") (array_declarator "auStack_1d8 [416]" (identifier "auStack_1d8") ([ "[") (number_literal "416") (] "]")) (; ";")) (declaration "undefined1 local_38 [24];" (type_identifier "undefined1") (array_declarator "local_38 [24]" (identifier "local_38") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (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 "sha1_init(auStack_1d8);" (call_expression "sha1_init(auStack_1d8)" (identifier "sha1_init") (argument_list "(auStack_1d8)" (( "(") (identifier "auStack_1d8") () ")"))) (; ";")) (expression_statement "sha1_process(auStack_1d8,&DAT_001bd690,3);" (call_expression "sha1_process(auStack_1d8,&DAT_001bd690,3)" (identifier "sha1_process") (argument_list "(auStack_1d8,&DAT_001bd690,3)" (( "(") (identifier "auStack_1d8") (, ",") (pointer_expression "&DAT_001bd690" (& "&") (identifier "DAT_001bd690")) (, ",") (number_literal "3") () ")"))) (; ";")) (expression_statement "sha1_done(auStack_1d8,local_38);" (call_expression "sha1_done(auStack_1d8,local_38)" (identifier "sha1_done") (argument_list "(auStack_1d8,local_38)" (( "(") (identifier "auStack_1d8") (, ",") (identifier "local_38") () ")"))) (; ";")) (expression_statement "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);" (assignment_expression "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0)" (identifier "iVar1") (= "=") (call_expression "compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0)" (identifier "compare_testvector") (argument_list "(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0)" (( "(") (identifier "local_38") (, ",") (number_literal "0x14") (, ",") (pointer_expression "&DAT_001e6c48" (& "&") (identifier "DAT_001e6c48")) (, ",") (number_literal "0x14") (, ",") (pointer_expression "&DAT_001bdd12" (& "&") (identifier "DAT_001bdd12")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }\n  else {\n    iVar1 = 5;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    sha1_init(auStack_1d8);\n    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);\n    sha1_done(auStack_1d8,local_38);\n    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);\n    if (iVar1 != 0) {\n      iVar1 = 5;\n    }\n  }" ({ "{") (expression_statement "sha1_init(auStack_1d8);" (call_expression "sha1_init(auStack_1d8)" (identifier "sha1_init") (argument_list "(auStack_1d8)" (( "(") (identifier "auStack_1d8") () ")"))) (; ";")) (expression_statement "sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);" (call_expression "sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38)" (identifier "sha1_process") (argument_list "(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38)" (( "(") (identifier "auStack_1d8") (, ",") (string_literal ""abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"" (" """) (string_content "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq") (" """)) (, ",") (number_literal "0x38") () ")"))) (; ";")) (expression_statement "sha1_done(auStack_1d8,local_38);" (call_expression "sha1_done(auStack_1d8,local_38)" (identifier "sha1_done") (argument_list "(auStack_1d8,local_38)" (( "(") (identifier "auStack_1d8") (, ",") (identifier "local_38") () ")"))) (; ";")) (expression_statement "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);" (assignment_expression "iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1)" (identifier "iVar1") (= "=") (call_expression "compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1)" (identifier "compare_testvector") (argument_list "(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1)" (( "(") (identifier "local_38") (, ",") (number_literal "0x14") (, ",") (pointer_expression "&DAT_001e6c68" (& "&") (identifier "DAT_001e6c68")) (, ",") (number_literal "0x14") (, ",") (pointer_expression "&DAT_001bdd12" (& "&") (identifier "DAT_001bdd12")) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      iVar1 = 5;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = 5;\n    }" ({ "{") (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" (identifier "iVar1") (= "=") (number_literal "5")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = 5;\n  }" (else "else") (compound_statement "{\n    iVar1 = 5;\n  }" ({ "{") (expression_statement "iVar1 = 5;" (assignment_expression "iVar1 = 5" (identifier "iVar1") (= "=") (number_literal "5")) (; ";")) (} "}")))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar1;\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 iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(void)

{
  long var_8;
  int var_7;
  long var_1;
  type_1 md;
  type_2 tmp [20];
  
  var_8 = *(long *)(var_1 + 0x28);
  var_2(&md);
  var_3(&md,"abc",3);
  var_4(&md,tmp);
  var_7 = var_5(tmp,0x14,var_6 + 8,0x14,"SHA1",0);
  if (var_7 == 0) {
    var_2(&md);
    var_3(&md,(type_2 *)"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);
    var_4(&md,tmp);
    var_7 = var_5(tmp,0x14,var_6 + 0x28,0x14,"SHA1",1);
    if (var_7 != 0) {
      var_7 = 5;
    }
  }
  else {
    var_7 = 5;
  }
  if (var_8 == *(long *)(var_1 + 0x28)) {
    return var_7;
  }
                    /* WARNING: Subroutine does not return */
  var_9();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) 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: (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 (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)) (number_literal) (pointer_expression argument: (identifier)) (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 (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)) (number_literal) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))))

int MASKED(void)

{
  int iVar1;
  long in_FS_OFFSET;
  undefined1 auStack_1d8 [416];
  undefined1 local_38 [24];
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  sha1_init(auStack_1d8);
  sha1_process(auStack_1d8,&DAT_001bd690,3);
  sha1_done(auStack_1d8,local_38);
  iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c48,0x14,&DAT_001bdd12,0);
  if (iVar1 == 0) {
    sha1_init(auStack_1d8);
    sha1_process(auStack_1d8,"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",0x38);
    sha1_done(auStack_1d8,local_38);
    iVar1 = compare_testvector(local_38,0x14,&DAT_001e6c68,0x14,&DAT_001bdd12,1);
    if (iVar1 != 0) {
      iVar1 = 5;
    }
  }
  else {
    iVar1 = 5;
  }
  if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

