
/* WARNING: Unknown calling convention */

int md2_test(void)

{
  long lVar1;
  uchar *in;
  int iVar2;
  size_t inlen;
  uchar *should;
  int which;
  long in_FS_OFFSET;
  hash_state md;
  uchar tmp [16];
  
  which = 0;
  should = md2_test::tests[0].hash;
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  do {
    md2_init(&md);
    in = (uchar *)((anon_struct_24_2_20c22c24 *)(should + -8))->msg;
    inlen = strlen((char *)in);
    md2_process(&md,in,inlen);
    md2_done(&md,tmp);
    iVar2 = compare_testvector(tmp,0x10,should,0x10,"MD2",which);
    if (iVar2 != 0) {
      iVar2 = 5;
      break;
    }
    which = which + 1;
    should = should + 0x18;
    iVar2 = 0;
  } while (which != 6);
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined8 md2_test(void)

{
  char *__s;
  size_t sVar1;
  undefined8 uVar2;
  undefined *puVar3;
  int iVar4;
  long in_FS_OFFSET;
  undefined1 auStack_1f8 [416];
  undefined1 local_58 [24];
  long local_40;
  
  iVar4 = 0;
  puVar3 = &DAT_001e66a8;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  do {
    md2_init(auStack_1f8);
    __s = *(char **)(puVar3 + -8);
    sVar1 = strlen(__s);
    md2_process(auStack_1f8,__s,sVar1);
    md2_done(auStack_1f8,local_58);
    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);
    if ((int)uVar2 != 0) {
      uVar2 = 5;
      break;
    }
    iVar4 = iVar4 + 1;
    puVar3 = puVar3 + 0x18;
  } while (iVar4 != 6);
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
LEA R15,[0x1bd9cf]
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
XOR EBP,EBP
PUSH RBX
LEA RBX,[0x1e66a8]
SUB RSP,0x1c8
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x1b8],RAX
XOR EAX,EAX
MOV R12,RSP
LEA R14,[RSP + 0x1a0]
MOV RDI,R12
CALL 0x001136a0
MOV R13,qword ptr [RBX + -0x8]
MOV RDI,R13
CALL 0x00113800
MOV RSI,R13
MOV RDI,R12
MOV RDX,RAX
CALL 0x001149f0
MOV RSI,R14
MOV RDI,R12
CALL 0x00113080
MOV R9D,EBP
MOV R8,R15
MOV ECX,0x10
MOV RDX,RBX
MOV ESI,0x10
MOV RDI,R14
CALL 0x001143c0
TEST EAX,EAX
JNZ 0x0014e0d0
ADD EBP,0x1
ADD RBX,0x18
CMP EBP,0x6
JNZ 0x0014e04f
MOV RCX,qword ptr [RSP + 0x1b8]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x0014e0d7
ADD RSP,0x1c8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV EAX,0x5
JMP 0x0014e0a7
CALL 0x00113880
(translation_unit "undefined8 md2_test(void)\n\n{\n  char *__s;\n  size_t sVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_1f8 [416];\n  undefined1 local_58 [24];\n  long local_40;\n  \n  iVar4 = 0;\n  puVar3 = &DAT_001e66a8;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  do {\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  } while (iVar4 != 6);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 md2_test(void)\n\n{\n  char *__s;\n  size_t sVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_1f8 [416];\n  undefined1 local_58 [24];\n  long local_40;\n  \n  iVar4 = 0;\n  puVar3 = &DAT_001e66a8;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  do {\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  } while (iVar4 != 6);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "md2_test(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_1f8 [416];\n  undefined1 local_58 [24];\n  long local_40;\n  \n  iVar4 = 0;\n  puVar3 = &DAT_001e66a8;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  do {\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  } while (iVar4 != 6);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_1f8 [416];" type_identifier (array_declarator "auStack_1f8 [416]" identifier [ number_literal ]) ;) (declaration "undefined1 local_58 [24];" type_identifier (array_declarator "local_58 [24]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = &DAT_001e66a8;" (assignment_expression "puVar3 = &DAT_001e66a8" identifier = (pointer_expression "&DAT_001e66a8" & identifier)) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (do_statement "do {\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  } while (iVar4 != 6);" do (compound_statement "{\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  }" { (expression_statement "md2_init(auStack_1f8);" (call_expression "md2_init(auStack_1f8)" identifier (argument_list "(auStack_1f8)" ( identifier ))) ;) (expression_statement "__s = *(char **)(puVar3 + -8);" (assignment_expression "__s = *(char **)(puVar3 + -8)" identifier = (pointer_expression "*(char **)(puVar3 + -8)" * (cast_expression "(char **)(puVar3 + -8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -8)" ( (binary_expression "puVar3 + -8" identifier + number_literal) ))))) ;) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "md2_process(auStack_1f8,__s,sVar1);" (call_expression "md2_process(auStack_1f8,__s,sVar1)" identifier (argument_list "(auStack_1f8,__s,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "md2_done(auStack_1f8,local_58);" (call_expression "md2_done(auStack_1f8,local_58)" identifier (argument_list "(auStack_1f8,local_58)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);" (assignment_expression "uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4)" identifier = (call_expression "compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4)" identifier (argument_list "(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4)" ( identifier , number_literal , identifier , number_literal , (pointer_expression "&DAT_001bd9cf" & identifier) , identifier )))) ;) (if_statement "if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }" if (parenthesized_expression "((int)uVar2 != 0)" ( (binary_expression "(int)uVar2 != 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\n      uVar2 = 5;\n      break;\n    }" { (expression_statement "uVar2 = 5;" (assignment_expression "uVar2 = 5" identifier = number_literal) ;) (break_statement "break;" break ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 0x18;" (assignment_expression "puVar3 = puVar3 + 0x18" identifier = (binary_expression "puVar3 + 0x18" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != 6)" ( (binary_expression "iVar4 != 6" identifier != number_literal) )) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint md2_test(void)\n\n{\n  long lVar1;\n  uchar *in;\n  int iVar2;\n  size_t inlen;\n  uchar *should;\n  int which;\n  long in_FS_OFFSET;\n  hash_state md;\n  uchar tmp [16];\n  \n  which = 0;\n  should = md2_test::tests[0].hash;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  do {\n    md2_init(&md);\n    in = (uchar *)((anon_struct_24_2_20c22c24 *)(should + -8))->msg;\n    inlen = strlen((char *)in);\n    md2_process(&md,in,inlen);\n    md2_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x10,should,0x10,"MD2",which);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n      break;\n    }\n    which = which + 1;\n    should = should + 0x18;\n    iVar2 = 0;\n  } while (which != 6);\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 md2_test(void)\n\n{\n  long lVar1;\n  uchar *in;\n  int iVar2;\n  size_t inlen;\n  uchar *should;\n  int which;\n  long in_FS_OFFSET;\n  hash_state md;\n  uchar tmp [16];\n  \n  which = 0;\n  should = md2_test::tests[0].hash;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  do {\n    md2_init(&md);\n    in = (uchar *)((anon_struct_24_2_20c22c24 *)(should + -8))->msg;\n    inlen = strlen((char *)in);\n    md2_process(&md,in,inlen);\n    md2_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x10,should,0x10,"MD2",which);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n      break;\n    }\n    which = which + 1;\n    should = should + 0x18;\n    iVar2 = 0;\n  } while (which != 6);\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 "md2_test(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  uchar *in;\n  int iVar2;\n  size_t inlen;\n  uchar *should;\n  int which;\n  long in_FS_OFFSET;\n  hash_state md;\n  uchar tmp [16];\n  \n  which = 0;\n  should = md2_test::tests[0].hash;\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  do {\n    md2_init(&md);\n    in = (uchar *)((anon_struct_24_2_20c22c24 *)(should + -8))->msg;\n    inlen = strlen((char *)in);\n    md2_process(&md,in,inlen);\n    md2_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x10,should,0x10,"MD2",which);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n      break;\n    }\n    which = which + 1;\n    should = should + 0x18;\n    iVar2 = 0;\n  } while (which != 6);\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 "uchar *in;" type_identifier (pointer_declarator "*in" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t inlen;" primitive_type identifier ;) (declaration "uchar *should;" type_identifier (pointer_declarator "*should" * identifier) ;) (declaration "int which;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "hash_state md;" type_identifier identifier ;) (declaration "uchar tmp [16];" type_identifier (array_declarator "tmp [16]" identifier [ number_literal ]) ;) (expression_statement "which = 0;" (assignment_expression "which = 0" identifier = number_literal) ;) (expression_statement "should = md2_test::tests[0].hash;" (field_expression "should = md2_test::tests[0].hash" (subscript_expression "should = md2_test::tests[0]" (assignment_expression "should = md2_test" identifier = identifier) (ERROR "::tests" : : identifier) [ number_literal ]) . field_identifier) ;) (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) ))))) ;) (do_statement "do {\n    md2_init(&md);\n    in = (uchar *)((anon_struct_24_2_20c22c24 *)(should + -8))->msg;\n    inlen = strlen((char *)in);\n    md2_process(&md,in,inlen);\n    md2_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x10,should,0x10,"MD2",which);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n      break;\n    }\n    which = which + 1;\n    should = should + 0x18;\n    iVar2 = 0;\n  } while (which != 6);" do (compound_statement "{\n    md2_init(&md);\n    in = (uchar *)((anon_struct_24_2_20c22c24 *)(should + -8))->msg;\n    inlen = strlen((char *)in);\n    md2_process(&md,in,inlen);\n    md2_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x10,should,0x10,"MD2",which);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n      break;\n    }\n    which = which + 1;\n    should = should + 0x18;\n    iVar2 = 0;\n  }" { (expression_statement "md2_init(&md);" (call_expression "md2_init(&md)" identifier (argument_list "(&md)" ( (pointer_expression "&md" & identifier) ))) ;) (expression_statement "in = (uchar *)((anon_struct_24_2_20c22c24 *)(should + -8))->msg;" (assignment_expression "in = (uchar *)((anon_struct_24_2_20c22c24 *)(should + -8))->msg" identifier = (cast_expression "(uchar *)((anon_struct_24_2_20c22c24 *)(should + -8))->msg" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "((anon_struct_24_2_20c22c24 *)(should + -8))->msg" (parenthesized_expression "((anon_struct_24_2_20c22c24 *)(should + -8))" ( (cast_expression "(anon_struct_24_2_20c22c24 *)(should + -8)" ( (type_descriptor "anon_struct_24_2_20c22c24 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(should + -8)" ( (binary_expression "should + -8" identifier + number_literal) ))) )) -> field_identifier))) ;) (expression_statement "inlen = strlen((char *)in);" (assignment_expression "inlen = strlen((char *)in)" identifier = (call_expression "strlen((char *)in)" identifier (argument_list "((char *)in)" ( (cast_expression "(char *)in" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "md2_process(&md,in,inlen);" (call_expression "md2_process(&md,in,inlen)" identifier (argument_list "(&md,in,inlen)" ( (pointer_expression "&md" & identifier) , identifier , identifier ))) ;) (expression_statement "md2_done(&md,tmp);" (call_expression "md2_done(&md,tmp)" identifier (argument_list "(&md,tmp)" ( (pointer_expression "&md" & identifier) , identifier ))) ;) (expression_statement "iVar2 = compare_testvector(tmp,0x10,should,0x10,"MD2",which);" (assignment_expression "iVar2 = compare_testvector(tmp,0x10,should,0x10,"MD2",which)" identifier = (call_expression "compare_testvector(tmp,0x10,should,0x10,"MD2",which)" identifier (argument_list "(tmp,0x10,should,0x10,"MD2",which)" ( identifier , number_literal , identifier , number_literal , (string_literal ""MD2"" " string_content ") , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      iVar2 = 5;\n      break;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar2 = 5;\n      break;\n    }" { (expression_statement "iVar2 = 5;" (assignment_expression "iVar2 = 5" identifier = number_literal) ;) (break_statement "break;" break ;) })) (expression_statement "which = which + 1;" (assignment_expression "which = which + 1" identifier = (binary_expression "which + 1" identifier + number_literal)) ;) (expression_statement "should = should + 0x18;" (assignment_expression "should = should + 0x18" identifier = (binary_expression "should + 0x18" identifier + number_literal)) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }) while (parenthesized_expression "(which != 6)" ( (binary_expression "which != 6" 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 "undefined8 md2_test(void)\n\n{\n  char *__s;\n  size_t sVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_1f8 [416];\n  undefined1 local_58 [24];\n  long local_40;\n  \n  iVar4 = 0;\n  puVar3 = &DAT_001e66a8;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  do {\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  } while (iVar4 != 6);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 md2_test(void)\n\n{\n  char *__s;\n  size_t sVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_1f8 [416];\n  undefined1 local_58 [24];\n  long local_40;\n  \n  iVar4 = 0;\n  puVar3 = &DAT_001e66a8;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  do {\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  } while (iVar4 != 6);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "md2_test(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_1f8 [416];\n  undefined1 local_58 [24];\n  long local_40;\n  \n  iVar4 = 0;\n  puVar3 = &DAT_001e66a8;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  do {\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  } while (iVar4 != 6);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 auStack_1f8 [416];" type_identifier (array_declarator "auStack_1f8 [416]" identifier [ number_literal ]) ;) (declaration "undefined1 local_58 [24];" type_identifier (array_declarator "local_58 [24]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = &DAT_001e66a8;" (assignment_expression "puVar3 = &DAT_001e66a8" identifier = (pointer_expression "&DAT_001e66a8" & identifier)) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (do_statement "do {\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  } while (iVar4 != 6);" do (compound_statement "{\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  }" { (expression_statement "md2_init(auStack_1f8);" (call_expression "md2_init(auStack_1f8)" identifier (argument_list "(auStack_1f8)" ( identifier ))) ;) (expression_statement "__s = *(char **)(puVar3 + -8);" (assignment_expression "__s = *(char **)(puVar3 + -8)" identifier = (pointer_expression "*(char **)(puVar3 + -8)" * (cast_expression "(char **)(puVar3 + -8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -8)" ( (binary_expression "puVar3 + -8" identifier + number_literal) ))))) ;) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "md2_process(auStack_1f8,__s,sVar1);" (call_expression "md2_process(auStack_1f8,__s,sVar1)" identifier (argument_list "(auStack_1f8,__s,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "md2_done(auStack_1f8,local_58);" (call_expression "md2_done(auStack_1f8,local_58)" identifier (argument_list "(auStack_1f8,local_58)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);" (assignment_expression "uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4)" identifier = (call_expression "compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4)" identifier (argument_list "(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4)" ( identifier , number_literal , identifier , number_literal , (pointer_expression "&DAT_001bd9cf" & identifier) , identifier )))) ;) (if_statement "if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }" if (parenthesized_expression "((int)uVar2 != 0)" ( (binary_expression "(int)uVar2 != 0" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\n      uVar2 = 5;\n      break;\n    }" { (expression_statement "uVar2 = 5;" (assignment_expression "uVar2 = 5" identifier = number_literal) ;) (break_statement "break;" break ;) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 0x18;" (assignment_expression "puVar3 = puVar3 + 0x18" identifier = (binary_expression "puVar3 + 0x18" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != 6)" ( (binary_expression "iVar4 != 6" identifier != number_literal) )) ;) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar2;\n  }" { (return_statement "return uVar2;" 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & 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) ))))) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT , (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_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 "undefined8 md2_test(void)\n\n{\n  char *__s;\n  size_t sVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_1f8 [416];\n  undefined1 local_58 [24];\n  long local_40;\n  \n  iVar4 = 0;\n  puVar3 = &DAT_001e66a8;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  do {\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  } while (iVar4 != 6);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined8") (function_declarator "md2_test(void)" (identifier "md2_test") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  char *__s;\n  size_t sVar1;\n  undefined8 uVar2;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_1f8 [416];\n  undefined1 local_58 [24];\n  long local_40;\n  \n  iVar4 = 0;\n  puVar3 = &DAT_001e66a8;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  do {\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  } while (iVar4 != 6);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined1 auStack_1f8 [416];" (type_identifier "undefined1") (array_declarator "auStack_1f8 [416]" (identifier "auStack_1f8") ([ "[") (number_literal "416") (] "]")) (; ";")) (declaration "undefined1 local_58 [24];" (type_identifier "undefined1") (array_declarator "local_58 [24]" (identifier "local_58") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = &DAT_001e66a8;" (assignment_expression "puVar3 = &DAT_001e66a8" (identifier "puVar3") (= "=") (pointer_expression "&DAT_001e66a8" (& "&") (identifier "DAT_001e66a8"))) (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (do_statement "do {\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  } while (iVar4 != 6);" (do "do") (compound_statement "{\n    md2_init(auStack_1f8);\n    __s = *(char **)(puVar3 + -8);\n    sVar1 = strlen(__s);\n    md2_process(auStack_1f8,__s,sVar1);\n    md2_done(auStack_1f8,local_58);\n    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x18;\n  }" ({ "{") (expression_statement "md2_init(auStack_1f8);" (call_expression "md2_init(auStack_1f8)" (identifier "md2_init") (argument_list "(auStack_1f8)" (( "(") (identifier "auStack_1f8") () ")"))) (; ";")) (expression_statement "__s = *(char **)(puVar3 + -8);" (assignment_expression "__s = *(char **)(puVar3 + -8)" (identifier "__s") (= "=") (pointer_expression "*(char **)(puVar3 + -8)" (* "*") (cast_expression "(char **)(puVar3 + -8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + -8)" (( "(") (binary_expression "puVar3 + -8" (identifier "puVar3") (+ "+") (number_literal "-8")) () ")"))))) (; ";")) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" (identifier "sVar1") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "md2_process(auStack_1f8,__s,sVar1);" (call_expression "md2_process(auStack_1f8,__s,sVar1)" (identifier "md2_process") (argument_list "(auStack_1f8,__s,sVar1)" (( "(") (identifier "auStack_1f8") (, ",") (identifier "__s") (, ",") (identifier "sVar1") () ")"))) (; ";")) (expression_statement "md2_done(auStack_1f8,local_58);" (call_expression "md2_done(auStack_1f8,local_58)" (identifier "md2_done") (argument_list "(auStack_1f8,local_58)" (( "(") (identifier "auStack_1f8") (, ",") (identifier "local_58") () ")"))) (; ";")) (expression_statement "uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);" (assignment_expression "uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4)" (identifier "uVar2") (= "=") (call_expression "compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4)" (identifier "compare_testvector") (argument_list "(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4)" (( "(") (identifier "local_58") (, ",") (number_literal "0x10") (, ",") (identifier "puVar3") (, ",") (number_literal "0x10") (, ",") (pointer_expression "&DAT_001bd9cf" (& "&") (identifier "DAT_001bd9cf")) (, ",") (identifier "iVar4") () ")")))) (; ";")) (if_statement "if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }" (if "if") (parenthesized_expression "((int)uVar2 != 0)" (( "(") (binary_expression "(int)uVar2 != 0" (cast_expression "(int)uVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar2")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = 5;\n      break;\n    }" ({ "{") (expression_statement "uVar2 = 5;" (assignment_expression "uVar2 = 5" (identifier "uVar2") (= "=") (number_literal "5")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar3 = puVar3 + 0x18;" (assignment_expression "puVar3 = puVar3 + 0x18" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 0x18" (identifier "puVar3") (+ "+") (number_literal "0x18"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 6)" (( "(") (binary_expression "iVar4 != 6" (identifier "iVar4") (!= "!=") (number_literal "6")) () ")")) (; ";")) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return uVar2;\n  }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (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_10;
  type_1 *in;
  int var_8;
  size_t inlen;
  type_1 *var_3;
  int var_9;
  long var_1;
  type_2 md;
  type_1 tmp [16];
  
  var_9 = 0;
  var_3 = function_1::tests[0].hash;
  var_10 = *(long *)(var_1 + 0x28);
  do {
    var_2(&md);
    in = (type_1 *)((type_3 *)(var_3 + -8))->msg;
    inlen = var_4((char *)in);
    var_5(&md,in,inlen);
    var_6(&md,tmp);
    var_8 = var_7(tmp,0x10,var_3,0x10,"MD2",var_9);
    if (var_8 != 0) {
      var_8 = 5;
      break;
    }
    var_9 = var_9 + 1;
    var_3 = var_3 + 0x18;
    var_8 = 0;
  } while (var_9 != 6);
  if (var_10 == *(long *)(var_1 + 0x28)) {
    return var_8;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


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

undefined8 MASKED(void)

{
  char *__s;
  size_t sVar1;
  undefined8 uVar2;
  undefined *puVar3;
  int iVar4;
  long in_FS_OFFSET;
  undefined1 auStack_1f8 [416];
  undefined1 local_58 [24];
  long local_40;
  
  iVar4 = 0;
  puVar3 = &DAT_001e66a8;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  do {
    md2_init(auStack_1f8);
    __s = *(char **)(puVar3 + -8);
    sVar1 = strlen(__s);
    md2_process(auStack_1f8,__s,sVar1);
    md2_done(auStack_1f8,local_58);
    uVar2 = compare_testvector(local_58,0x10,puVar3,0x10,&DAT_001bd9cf,iVar4);
    if ((int)uVar2 != 0) {
      uVar2 = 5;
      break;
    }
    iVar4 = iVar4 + 1;
    puVar3 = puVar3 + 0x18;
  } while (iVar4 != 6);
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

