
/* WARNING: Unknown calling convention */

int blake2b_256_test(void)

{
  long lVar1;
  int iVar2;
  size_t inlen;
  uchar *in;
  uchar *should;
  int which;
  long in_FS_OFFSET;
  hash_state md;
  uchar tmp [32];
  
  which = 0;
  in = "";
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  should = blake2b_256_test::tests[0].hash;
  do {
    blake2b_256_init(&md);
    inlen = strlen((char *)in);
    blake2b_process(&md,in,inlen);
    blake2b_done(&md,tmp);
    iVar2 = compare_testvector(tmp,0x20,should,0x20,"BLAKE2B_256",which);
    if (iVar2 != 0) {
      iVar2 = 5;
      break;
    }
    in = *(uchar **)(should + 0x20);
    which = which + 1;
    iVar2 = 0;
    should = should + 0x28;
  } while (in != (uchar *)0x0);
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined8 blake2b_256_test(void)

{
  size_t sVar1;
  undefined8 uVar2;
  char *__s;
  undefined *puVar3;
  int iVar4;
  long in_FS_OFFSET;
  undefined1 auStack_208 [416];
  undefined1 local_68 [40];
  long local_40;
  
  iVar4 = 0;
  __s = "";
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  puVar3 = &DAT_001d71e8;
  do {
    blake2b_256_init(auStack_208);
    sVar1 = strlen(__s);
    blake2b_process(auStack_208,__s,sVar1);
    blake2b_done(auStack_208,local_68);
    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);
    if ((int)uVar2 != 0) {
      uVar2 = 5;
      break;
    }
    __s = *(char **)(puVar3 + 0x20);
    iVar4 = iVar4 + 1;
    puVar3 = puVar3 + 0x28;
  } while (__s != (char *)0x0);
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
LEA R15,[0x1ae5ac]
PUSH R14
PUSH R13
XOR R13D,R13D
PUSH R12
PUSH RBP
LEA RBP,[0x1d71e8]
PUSH RBX
LEA RBX,[0x1be9f6]
SUB RSP,0x1d8
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x1c8],RAX
XOR EAX,EAX
MOV R12,RSP
LEA R14,[RSP + 0x1a0]
JMP 0x001438f1
ADD RBP,0x28
MOV RBX,qword ptr [RBP + -0x8]
ADD R13D,0x1
TEST RBX,RBX
JZ 0x0014393e
MOV RDI,R12
CALL 0x00113a60
MOV RDI,RBX
CALL 0x00113800
MOV RSI,RBX
MOV RDI,R12
MOV RDX,RAX
CALL 0x001136b0
MOV RSI,R14
MOV RDI,R12
CALL 0x00113cb0
MOV R9D,R13D
MOV R8,R15
MOV ECX,0x20
MOV RDX,RBP
MOV ESI,0x20
MOV RDI,R14
CALL 0x001143c0
TEST EAX,EAX
JZ 0x001438e0
MOV EAX,0x5
MOV RCX,qword ptr [RSP + 0x1c8]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x00143963
ADD RSP,0x1d8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
CALL 0x00113880
(translation_unit "undefined8 blake2b_256_test(void)\n\n{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_208 [416];\n  undefined1 local_68 [40];\n  long local_40;\n  \n  iVar4 = 0;\n  __s = "";\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar3 = &DAT_001d71e8;\n  do {\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  } while (__s != (char *)0x0);\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 blake2b_256_test(void)\n\n{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_208 [416];\n  undefined1 local_68 [40];\n  long local_40;\n  \n  iVar4 = 0;\n  __s = "";\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar3 = &DAT_001d71e8;\n  do {\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  } while (__s != (char *)0x0);\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 "blake2b_256_test(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_208 [416];\n  undefined1 local_68 [40];\n  long local_40;\n  \n  iVar4 = 0;\n  __s = "";\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar3 = &DAT_001d71e8;\n  do {\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  } while (__s != (char *)0x0);\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 "size_t sVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * 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_208 [416];" type_identifier (array_declarator "auStack_208 [416]" identifier [ number_literal ]) ;) (declaration "undefined1 local_68 [40];" type_identifier (array_declarator "local_68 [40]" 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 "__s = "";" (assignment_expression "__s = """ identifier = (string_literal """" " ")) ;) (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) ))))) ;) (expression_statement "puVar3 = &DAT_001d71e8;" (assignment_expression "puVar3 = &DAT_001d71e8" identifier = (pointer_expression "&DAT_001d71e8" & identifier)) ;) (do_statement "do {\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  } while (__s != (char *)0x0);" do (compound_statement "{\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  }" { (expression_statement "blake2b_256_init(auStack_208);" (call_expression "blake2b_256_init(auStack_208)" identifier (argument_list "(auStack_208)" ( identifier ))) ;) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "blake2b_process(auStack_208,__s,sVar1);" (call_expression "blake2b_process(auStack_208,__s,sVar1)" identifier (argument_list "(auStack_208,__s,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "blake2b_done(auStack_208,local_68);" (call_expression "blake2b_done(auStack_208,local_68)" identifier (argument_list "(auStack_208,local_68)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);" (assignment_expression "uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4)" identifier = (call_expression "compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4)" identifier (argument_list "(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4)" ( identifier , number_literal , identifier , number_literal , (string_literal ""BLAKE2B_256"" " string_content ") , 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 "__s = *(char **)(puVar3 + 0x20);" (assignment_expression "__s = *(char **)(puVar3 + 0x20)" identifier = (pointer_expression "*(char **)(puVar3 + 0x20)" * (cast_expression "(char **)(puVar3 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x20)" ( (binary_expression "puVar3 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 0x28;" (assignment_expression "puVar3 = puVar3 + 0x28" identifier = (binary_expression "puVar3 + 0x28" identifier + number_literal)) ;) }) while (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) 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 blake2b_256_test(void)\n\n{\n  long lVar1;\n  int iVar2;\n  size_t inlen;\n  uchar *in;\n  uchar *should;\n  int which;\n  long in_FS_OFFSET;\n  hash_state md;\n  uchar tmp [32];\n  \n  which = 0;\n  in = "";\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  should = blake2b_256_test::tests[0].hash;\n  do {\n    blake2b_256_init(&md);\n    inlen = strlen((char *)in);\n    blake2b_process(&md,in,inlen);\n    blake2b_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x20,should,0x20,"BLAKE2B_256",which);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n      break;\n    }\n    in = *(uchar **)(should + 0x20);\n    which = which + 1;\n    iVar2 = 0;\n    should = should + 0x28;\n  } while (in != (uchar *)0x0);\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 blake2b_256_test(void)\n\n{\n  long lVar1;\n  int iVar2;\n  size_t inlen;\n  uchar *in;\n  uchar *should;\n  int which;\n  long in_FS_OFFSET;\n  hash_state md;\n  uchar tmp [32];\n  \n  which = 0;\n  in = "";\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  should = blake2b_256_test::tests[0].hash;\n  do {\n    blake2b_256_init(&md);\n    inlen = strlen((char *)in);\n    blake2b_process(&md,in,inlen);\n    blake2b_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x20,should,0x20,"BLAKE2B_256",which);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n      break;\n    }\n    in = *(uchar **)(should + 0x20);\n    which = which + 1;\n    iVar2 = 0;\n    should = should + 0x28;\n  } while (in != (uchar *)0x0);\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 "blake2b_256_test(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  size_t inlen;\n  uchar *in;\n  uchar *should;\n  int which;\n  long in_FS_OFFSET;\n  hash_state md;\n  uchar tmp [32];\n  \n  which = 0;\n  in = "";\n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  should = blake2b_256_test::tests[0].hash;\n  do {\n    blake2b_256_init(&md);\n    inlen = strlen((char *)in);\n    blake2b_process(&md,in,inlen);\n    blake2b_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x20,should,0x20,"BLAKE2B_256",which);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n      break;\n    }\n    in = *(uchar **)(should + 0x20);\n    which = which + 1;\n    iVar2 = 0;\n    should = should + 0x28;\n  } while (in != (uchar *)0x0);\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 "size_t inlen;" primitive_type identifier ;) (declaration "uchar *in;" type_identifier (pointer_declarator "*in" * 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 [32];" type_identifier (array_declarator "tmp [32]" identifier [ number_literal ]) ;) (expression_statement "which = 0;" (assignment_expression "which = 0" identifier = number_literal) ;) (expression_statement "in = "";" (assignment_expression "in = """ identifier = (string_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 "should = blake2b_256_test::tests[0].hash;" (field_expression "should = blake2b_256_test::tests[0].hash" (subscript_expression "should = blake2b_256_test::tests[0]" (assignment_expression "should = blake2b_256_test" identifier = identifier) (ERROR "::tests" : : identifier) [ number_literal ]) . field_identifier) ;) (do_statement "do {\n    blake2b_256_init(&md);\n    inlen = strlen((char *)in);\n    blake2b_process(&md,in,inlen);\n    blake2b_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x20,should,0x20,"BLAKE2B_256",which);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n      break;\n    }\n    in = *(uchar **)(should + 0x20);\n    which = which + 1;\n    iVar2 = 0;\n    should = should + 0x28;\n  } while (in != (uchar *)0x0);" do (compound_statement "{\n    blake2b_256_init(&md);\n    inlen = strlen((char *)in);\n    blake2b_process(&md,in,inlen);\n    blake2b_done(&md,tmp);\n    iVar2 = compare_testvector(tmp,0x20,should,0x20,"BLAKE2B_256",which);\n    if (iVar2 != 0) {\n      iVar2 = 5;\n      break;\n    }\n    in = *(uchar **)(should + 0x20);\n    which = which + 1;\n    iVar2 = 0;\n    should = should + 0x28;\n  }" { (expression_statement "blake2b_256_init(&md);" (call_expression "blake2b_256_init(&md)" identifier (argument_list "(&md)" ( (pointer_expression "&md" & 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 "blake2b_process(&md,in,inlen);" (call_expression "blake2b_process(&md,in,inlen)" identifier (argument_list "(&md,in,inlen)" ( (pointer_expression "&md" & identifier) , identifier , identifier ))) ;) (expression_statement "blake2b_done(&md,tmp);" (call_expression "blake2b_done(&md,tmp)" identifier (argument_list "(&md,tmp)" ( (pointer_expression "&md" & identifier) , identifier ))) ;) (expression_statement "iVar2 = compare_testvector(tmp,0x20,should,0x20,"BLAKE2B_256",which);" (assignment_expression "iVar2 = compare_testvector(tmp,0x20,should,0x20,"BLAKE2B_256",which)" identifier = (call_expression "compare_testvector(tmp,0x20,should,0x20,"BLAKE2B_256",which)" identifier (argument_list "(tmp,0x20,should,0x20,"BLAKE2B_256",which)" ( identifier , number_literal , identifier , number_literal , (string_literal ""BLAKE2B_256"" " 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 "in = *(uchar **)(should + 0x20);" (assignment_expression "in = *(uchar **)(should + 0x20)" identifier = (pointer_expression "*(uchar **)(should + 0x20)" * (cast_expression "(uchar **)(should + 0x20)" ( (type_descriptor "uchar **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(should + 0x20)" ( (binary_expression "should + 0x20" identifier + number_literal) ))))) ;) (expression_statement "which = which + 1;" (assignment_expression "which = which + 1" identifier = (binary_expression "which + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "should = should + 0x28;" (assignment_expression "should = should + 0x28" identifier = (binary_expression "should + 0x28" identifier + number_literal)) ;) }) while (parenthesized_expression "(in != (uchar *)0x0)" ( (binary_expression "in != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) 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 blake2b_256_test(void)\n\n{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_208 [416];\n  undefined1 local_68 [40];\n  long local_40;\n  \n  iVar4 = 0;\n  __s = "";\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar3 = &DAT_001d71e8;\n  do {\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  } while (__s != (char *)0x0);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 blake2b_256_test(void)\n\n{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_208 [416];\n  undefined1 local_68 [40];\n  long local_40;\n  \n  iVar4 = 0;\n  __s = "";\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar3 = &DAT_001d71e8;\n  do {\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  } while (__s != (char *)0x0);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "blake2b_256_test(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_208 [416];\n  undefined1 local_68 [40];\n  long local_40;\n  \n  iVar4 = 0;\n  __s = "";\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar3 = &DAT_001d71e8;\n  do {\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  } while (__s != (char *)0x0);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * 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_208 [416];" type_identifier (array_declarator "auStack_208 [416]" identifier [ number_literal ]) ;) (declaration "undefined1 local_68 [40];" type_identifier (array_declarator "local_68 [40]" 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 "__s = "";" (assignment_expression "__s = """ identifier = (string_literal """" " ")) ;) (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) ))))) ;) (expression_statement "puVar3 = &DAT_001d71e8;" (assignment_expression "puVar3 = &DAT_001d71e8" identifier = (pointer_expression "&DAT_001d71e8" & identifier)) ;) (do_statement "do {\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  } while (__s != (char *)0x0);" do (compound_statement "{\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  }" { (expression_statement "blake2b_256_init(auStack_208);" (call_expression "blake2b_256_init(auStack_208)" identifier (argument_list "(auStack_208)" ( identifier ))) ;) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "blake2b_process(auStack_208,__s,sVar1);" (call_expression "blake2b_process(auStack_208,__s,sVar1)" identifier (argument_list "(auStack_208,__s,sVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "blake2b_done(auStack_208,local_68);" (call_expression "blake2b_done(auStack_208,local_68)" identifier (argument_list "(auStack_208,local_68)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);" (assignment_expression "uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4)" identifier = (call_expression "compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4)" identifier (argument_list "(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4)" ( identifier , number_literal , identifier , number_literal , (string_literal ""BLAKE2B_256"" " string_content ") , 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 "__s = *(char **)(puVar3 + 0x20);" (assignment_expression "__s = *(char **)(puVar3 + 0x20)" identifier = (pointer_expression "*(char **)(puVar3 + 0x20)" * (cast_expression "(char **)(puVar3 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x20)" ( (binary_expression "puVar3 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 0x28;" (assignment_expression "puVar3 = puVar3 + 0x28" identifier = (binary_expression "puVar3 + 0x28" identifier + number_literal)) ;) }) while (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 = (string_literal " ")) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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 , (string_literal " string_content ") , 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 blake2b_256_test(void)\n\n{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_208 [416];\n  undefined1 local_68 [40];\n  long local_40;\n  \n  iVar4 = 0;\n  __s = "";\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar3 = &DAT_001d71e8;\n  do {\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  } while (__s != (char *)0x0);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined8") (function_declarator "blake2b_256_test(void)" (identifier "blake2b_256_test") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  size_t sVar1;\n  undefined8 uVar2;\n  char *__s;\n  undefined *puVar3;\n  int iVar4;\n  long in_FS_OFFSET;\n  undefined1 auStack_208 [416];\n  undefined1 local_68 [40];\n  long local_40;\n  \n  iVar4 = 0;\n  __s = "";\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  puVar3 = &DAT_001d71e8;\n  do {\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  } while (__s != (char *)0x0);\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar2;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (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_208 [416];" (type_identifier "undefined1") (array_declarator "auStack_208 [416]" (identifier "auStack_208") ([ "[") (number_literal "416") (] "]")) (; ";")) (declaration "undefined1 local_68 [40];" (type_identifier "undefined1") (array_declarator "local_68 [40]" (identifier "local_68") ([ "[") (number_literal "40") (] "]")) (; ";")) (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 "__s = "";" (assignment_expression "__s = """ (identifier "__s") (= "=") (string_literal """" (" """) (" """))) (; ";")) (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")) () ")"))))) (; ";")) (expression_statement "puVar3 = &DAT_001d71e8;" (assignment_expression "puVar3 = &DAT_001d71e8" (identifier "puVar3") (= "=") (pointer_expression "&DAT_001d71e8" (& "&") (identifier "DAT_001d71e8"))) (; ";")) (do_statement "do {\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  } while (__s != (char *)0x0);" (do "do") (compound_statement "{\n    blake2b_256_init(auStack_208);\n    sVar1 = strlen(__s);\n    blake2b_process(auStack_208,__s,sVar1);\n    blake2b_done(auStack_208,local_68);\n    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);\n    if ((int)uVar2 != 0) {\n      uVar2 = 5;\n      break;\n    }\n    __s = *(char **)(puVar3 + 0x20);\n    iVar4 = iVar4 + 1;\n    puVar3 = puVar3 + 0x28;\n  }" ({ "{") (expression_statement "blake2b_256_init(auStack_208);" (call_expression "blake2b_256_init(auStack_208)" (identifier "blake2b_256_init") (argument_list "(auStack_208)" (( "(") (identifier "auStack_208") () ")"))) (; ";")) (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 "blake2b_process(auStack_208,__s,sVar1);" (call_expression "blake2b_process(auStack_208,__s,sVar1)" (identifier "blake2b_process") (argument_list "(auStack_208,__s,sVar1)" (( "(") (identifier "auStack_208") (, ",") (identifier "__s") (, ",") (identifier "sVar1") () ")"))) (; ";")) (expression_statement "blake2b_done(auStack_208,local_68);" (call_expression "blake2b_done(auStack_208,local_68)" (identifier "blake2b_done") (argument_list "(auStack_208,local_68)" (( "(") (identifier "auStack_208") (, ",") (identifier "local_68") () ")"))) (; ";")) (expression_statement "uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);" (assignment_expression "uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4)" (identifier "uVar2") (= "=") (call_expression "compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4)" (identifier "compare_testvector") (argument_list "(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4)" (( "(") (identifier "local_68") (, ",") (number_literal "0x20") (, ",") (identifier "puVar3") (, ",") (number_literal "0x20") (, ",") (string_literal ""BLAKE2B_256"" (" """) (string_content "BLAKE2B_256") (" """)) (, ",") (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 "__s = *(char **)(puVar3 + 0x20);" (assignment_expression "__s = *(char **)(puVar3 + 0x20)" (identifier "__s") (= "=") (pointer_expression "*(char **)(puVar3 + 0x20)" (* "*") (cast_expression "(char **)(puVar3 + 0x20)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar3 + 0x20)" (( "(") (binary_expression "puVar3 + 0x20" (identifier "puVar3") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (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 + 0x28;" (assignment_expression "puVar3 = puVar3 + 0x28" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 0x28" (identifier "puVar3") (+ "+") (number_literal "0x28"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (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_11;
  int var_7;
  size_t inlen;
  type_1 *var_10;
  type_1 *var_8;
  int var_9;
  long var_1;
  type_2 md;
  type_1 tmp [32];
  
  var_9 = 0;
  var_10 = "";
  var_11 = *(long *)(var_1 + 0x28);
  var_8 = function_1::tests[0].hash;
  do {
    var_2(&md);
    inlen = var_3((char *)var_10);
    var_4(&md,var_10,inlen);
    var_5(&md,tmp);
    var_7 = var_6(tmp,0x20,var_8,0x20,"BLAKE2B_256",var_9);
    if (var_7 != 0) {
      var_7 = 5;
      break;
    }
    var_10 = *(type_1 **)(var_8 + 0x20);
    var_9 = var_9 + 1;
    var_7 = 0;
    var_8 = var_8 + 0x28;
  } while (var_10 != (type_1 *)0x0);
  if (var_11 == *(long *)(var_1 + 0x28)) {
    return var_7;
  }
                    /* WARNING: Subroutine does not return */
  var_12();
}


(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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (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: (string_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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) (string_literal (string_content)) (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: (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: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (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)

{
  size_t sVar1;
  undefined8 uVar2;
  char *__s;
  undefined *puVar3;
  int iVar4;
  long in_FS_OFFSET;
  undefined1 auStack_208 [416];
  undefined1 local_68 [40];
  long local_40;
  
  iVar4 = 0;
  __s = "";
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  puVar3 = &DAT_001d71e8;
  do {
    blake2b_256_init(auStack_208);
    sVar1 = strlen(__s);
    blake2b_process(auStack_208,__s,sVar1);
    blake2b_done(auStack_208,local_68);
    uVar2 = compare_testvector(local_68,0x20,puVar3,0x20,"BLAKE2B_256",iVar4);
    if ((int)uVar2 != 0) {
      uVar2 = 5;
      break;
    }
    __s = *(char **)(puVar3 + 0x20);
    iVar4 = iVar4 + 1;
    puVar3 = puVar3 + 0x28;
  } while (__s != (char *)0x0);
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

