
/* WARNING: Unknown calling convention */

int xcbc_test(void)

{
  long lVar1;
  int cipher;
  int iVar2;
  uchar *key;
  ulong inlen;
  int which;
  long in_FS_OFFSET;
  ulong taglen;
  uchar T [16];
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  cipher = find_cipher("aes");
  if (cipher == -1) {
    cipher = find_cipher("rijndael");
    if (cipher == -1) {
      iVar2 = 2;
      goto LAB_0015fa58;
    }
  }
  inlen = 0;
  which = 0;
  key = xcbc_test::tests[0].K;
  while( true ) {
    taglen = 0x10;
    iVar2 = xcbc_memory(cipher,key,0x10,key + 0x10,inlen,T,&taglen);
    if (iVar2 != 0) break;
    iVar2 = compare_testvector(T,taglen,key + 0x32,0x10,"XCBC",which);
    if (iVar2 != 0) {
LAB_0015fa50:
      iVar2 = 5;
      break;
    }
    iVar2 = 0;
    if (which + 1 == 5) break;
    taglen = 0x10;
    iVar2 = xcbc_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),T,&taglen);
    if (iVar2 != 0) break;
    iVar2 = compare_testvector(T,taglen,key + 0x7a,0x10,"XCBC",which + 1);
    if (iVar2 != 0) goto LAB_0015fa50;
    which = which + 2;
    inlen = (ulong)*(int *)(key + 0x8c);
    key = key + 0x90;
  }
LAB_0015fa58:
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined8 xcbc_test(void)

{
  int iVar1;
  int iVar2;
  undefined8 uVar3;
  undefined *puVar4;
  long lVar5;
  int iVar6;
  long in_FS_OFFSET;
  undefined8 local_60;
  undefined1 local_58 [24];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  iVar1 = find_cipher(&DAT_0018d061);
  if (iVar1 == -1) {
    iVar1 = find_cipher("rijndael");
    if (iVar1 == -1) {
      uVar3 = 2;
      goto LAB_0015fa58;
    }
  }
  lVar5 = 0;
  iVar6 = 0;
  puVar4 = &DAT_001bd9c4;
  while( true ) {
    local_60 = 0x10;
    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);
    if ((int)uVar3 != 0) break;
    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);
    if ((int)uVar3 != 0) {
LAB_0015fa50:
      uVar3 = 5;
      break;
    }
    if (iVar6 + 1 == 5) break;
    local_60 = 0x10;
    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),
                        local_58);
    if ((int)uVar3 != 0) break;
    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);
    if (iVar2 != 0) goto LAB_0015fa50;
    iVar6 = iVar6 + 2;
    lVar5 = (long)*(int *)(puVar4 + 0x8c);
    puVar4 = puVar4 + 0x90;
  }
LAB_0015fa58:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
LEA RDI,[0x18d061]
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x48
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x38],RAX
XOR EAX,EAX
CALL 0x00114ed0
MOV R13D,EAX
CMP EAX,-0x1
JZ 0x0015fa80
XOR R8D,R8D
LEA RBP,[RSP + 0x20]
LEA R14,[RSP + 0x18]
XOR R12D,R12D
LEA RBX,[0x1bd9c4]
LEA R15,[0x1bd9b5]
SUB RSP,0x8
MOV RSI,RBX
MOV EDI,R13D
MOV R9,RBP
MOV qword ptr [RSP + 0x20],0x10
LEA RCX,[RBX + 0x10]
MOV EDX,0x10
PUSH R14
CALL 0x00114470
POP RSI
POP RDI
TEST EAX,EAX
JNZ 0x0015fa58
MOV RSI,qword ptr [RSP + 0x18]
LEA RDX,[RBX + 0x32]
MOV R9D,R12D
MOV R8,R15
MOV ECX,0x10
MOV RDI,RBP
CALL 0x001143c0
TEST EAX,EAX
JNZ 0x0015fa50
LEA R10D,[R12 + 0x1]
LEA RSI,[RBX + 0x48]
CMP R10D,0x5
MOV dword ptr [RSP + 0xc],R10D
JZ 0x0015fa58
SUB RSP,0x8
MOVSXD R8,dword ptr [RSI + -0x4]
LEA RCX,[RBX + 0x58]
MOV R9,RBP
MOV qword ptr [RSP + 0x20],0x10
MOV EDX,0x10
MOV EDI,R13D
PUSH R14
CALL 0x00114470
POP RDX
POP RCX
TEST EAX,EAX
MOV ECX,dword ptr [RSP + 0xc]
JNZ 0x0015fa58
MOV RSI,qword ptr [RSP + 0x18]
MOV R9D,ECX
LEA RDX,[RBX + 0x7a]
MOV R8,R15
MOV ECX,0x10
MOV RDI,RBP
CALL 0x001143c0
TEST EAX,EAX
JNZ 0x0015fa50
ADD RBX,0x90
ADD R12D,0x2
MOVSXD R8,dword ptr [RBX + -0x4]
JMP 0x0015f984
MOV EAX,0x5
NOP dword ptr [RAX]
MOV RDI,qword ptr [RSP + 0x38]
XOR RDI,qword ptr FS:[0x28]
JNZ 0x0015fa9f
ADD RSP,0x48
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
LEA RDI,[0x18d065]
CALL 0x00114ed0
MOV R13D,EAX
CMP EAX,-0x1
JNZ 0x0015f966
MOV EAX,0x2
JMP 0x0015fa58
CALL 0x00113880
(translation_unit "undefined8 xcbc_test(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  long lVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined8 local_60;\n  undefined1 local_58 [24];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = find_cipher(&DAT_0018d061);\n  if (iVar1 == -1) {\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }\n  lVar5 = 0;\n  iVar6 = 0;\n  puVar4 = &DAT_001bd9c4;\n  while( true ) {\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }\nLAB_0015fa58:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 xcbc_test(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  long lVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined8 local_60;\n  undefined1 local_58 [24];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = find_cipher(&DAT_0018d061);\n  if (iVar1 == -1) {\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }\n  lVar5 = 0;\n  iVar6 = 0;\n  puVar4 = &DAT_001bd9c4;\n  while( true ) {\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }\nLAB_0015fa58:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "xcbc_test(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  long lVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined8 local_60;\n  undefined1 local_58 [24];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = find_cipher(&DAT_0018d061);\n  if (iVar1 == -1) {\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }\n  lVar5 = 0;\n  iVar6 = 0;\n  puVar4 = &DAT_001bd9c4;\n  while( true ) {\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }\nLAB_0015fa58:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_60;" type_identifier identifier ;) (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 "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 "iVar1 = find_cipher(&DAT_0018d061);" (assignment_expression "iVar1 = find_cipher(&DAT_0018d061)" identifier = (call_expression "find_cipher(&DAT_0018d061)" identifier (argument_list "(&DAT_0018d061)" ( (pointer_expression "&DAT_0018d061" & identifier) )))) ;) (if_statement "if (iVar1 == -1) {\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }" { (expression_statement "iVar1 = find_cipher("rijndael");" (assignment_expression "iVar1 = find_cipher("rijndael")" identifier = (call_expression "find_cipher("rijndael")" identifier (argument_list "("rijndael")" ( (string_literal ""rijndael"" " string_content ") )))) ;) (if_statement "if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }" { (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_0015fa58;" goto statement_identifier ;) })) })) (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = &DAT_001bd9c4;" (assignment_expression "puVar4 = &DAT_001bd9c4" identifier = (pointer_expression "&DAT_001bd9c4" & identifier)) ;) (while_statement "while( true ) {\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }" { (expression_statement "local_60 = 0x10;" (assignment_expression "local_60 = 0x10" identifier = number_literal) ;) (expression_statement "uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);" (assignment_expression "uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60)" identifier = (call_expression "xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60)" identifier (argument_list "(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60)" ( identifier , identifier , number_literal , (binary_expression "puVar4 + 0x10" identifier + number_literal) , identifier , identifier , (pointer_expression "&local_60" & identifier) )))) ;) (if_statement "if ((int)uVar3 != 0) break;" if (parenthesized_expression "((int)uVar3 != 0)" ( (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);" (assignment_expression "uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6)" identifier = (call_expression "compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6)" identifier (argument_list "(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6)" ( identifier , identifier , (binary_expression "puVar4 + 0x32" identifier + number_literal) , number_literal , (pointer_expression "&DAT_001bd9b5" & identifier) , identifier )))) ;) (if_statement "if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }" if (parenthesized_expression "((int)uVar3 != 0)" ( (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }" { (labeled_statement "LAB_0015fa50:\n      uVar3 = 5;" statement_identifier : (expression_statement "uVar3 = 5;" (assignment_expression "uVar3 = 5" identifier = number_literal) ;)) (break_statement "break;" break ;) })) (if_statement "if (iVar6 + 1 == 5) break;" if (parenthesized_expression "(iVar6 + 1 == 5)" ( (binary_expression "iVar6 + 1 == 5" (binary_expression "iVar6 + 1" identifier + number_literal) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "local_60 = 0x10;" (assignment_expression "local_60 = 0x10" identifier = number_literal) ;) (expression_statement "uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);" (assignment_expression "uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58)" identifier = (call_expression "xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58)" identifier (argument_list "(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58)" ( identifier , (binary_expression "puVar4 + 0x48" identifier + number_literal) , number_literal , (binary_expression "puVar4 + 0x58" identifier + number_literal) , (cast_expression "(long)*(int *)(puVar4 + 0x44)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(puVar4 + 0x44)" * (cast_expression "(int *)(puVar4 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x44)" ( (binary_expression "puVar4 + 0x44" identifier + number_literal) ))))) , identifier )))) ;) (if_statement "if ((int)uVar3 != 0) break;" if (parenthesized_expression "((int)uVar3 != 0)" ( (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);" (assignment_expression "iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1)" identifier = (call_expression "compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1)" identifier (argument_list "(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1)" ( identifier , identifier , (binary_expression "puVar4 + 0x7a" identifier + number_literal) , number_literal , (pointer_expression "&DAT_001bd9b5" & identifier) , (binary_expression "iVar6 + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_0015fa50;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0015fa50;" goto statement_identifier ;)) (expression_statement "iVar6 = iVar6 + 2;" (assignment_expression "iVar6 = iVar6 + 2" identifier = (binary_expression "iVar6 + 2" identifier + number_literal)) ;) (expression_statement "lVar5 = (long)*(int *)(puVar4 + 0x8c);" (assignment_expression "lVar5 = (long)*(int *)(puVar4 + 0x8c)" identifier = (cast_expression "(long)*(int *)(puVar4 + 0x8c)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(puVar4 + 0x8c)" * (cast_expression "(int *)(puVar4 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x8c)" ( (binary_expression "puVar4 + 0x8c" identifier + number_literal) )))))) ;) (expression_statement "puVar4 = puVar4 + 0x90;" (assignment_expression "puVar4 = puVar4 + 0x90" identifier = (binary_expression "puVar4 + 0x90" identifier + number_literal)) ;) })) (labeled_statement "LAB_0015fa58:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\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 uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint xcbc_test(void)\n\n{\n  long lVar1;\n  int cipher;\n  int iVar2;\n  uchar *key;\n  ulong inlen;\n  int which;\n  long in_FS_OFFSET;\n  ulong taglen;\n  uchar T [16];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  cipher = find_cipher("aes");\n  if (cipher == -1) {\n    cipher = find_cipher("rijndael");\n    if (cipher == -1) {\n      iVar2 = 2;\n      goto LAB_0015fa58;\n    }\n  }\n  inlen = 0;\n  which = 0;\n  key = xcbc_test::tests[0].K;\n  while( true ) {\n    taglen = 0x10;\n    iVar2 = xcbc_memory(cipher,key,0x10,key + 0x10,inlen,T,&taglen);\n    if (iVar2 != 0) break;\n    iVar2 = compare_testvector(T,taglen,key + 0x32,0x10,"XCBC",which);\n    if (iVar2 != 0) {\nLAB_0015fa50:\n      iVar2 = 5;\n      break;\n    }\n    iVar2 = 0;\n    if (which + 1 == 5) break;\n    taglen = 0x10;\n    iVar2 = xcbc_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),T,&taglen);\n    if (iVar2 != 0) break;\n    iVar2 = compare_testvector(T,taglen,key + 0x7a,0x10,"XCBC",which + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    which = which + 2;\n    inlen = (ulong)*(int *)(key + 0x8c);\n    key = key + 0x90;\n  }\nLAB_0015fa58:\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 xcbc_test(void)\n\n{\n  long lVar1;\n  int cipher;\n  int iVar2;\n  uchar *key;\n  ulong inlen;\n  int which;\n  long in_FS_OFFSET;\n  ulong taglen;\n  uchar T [16];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  cipher = find_cipher("aes");\n  if (cipher == -1) {\n    cipher = find_cipher("rijndael");\n    if (cipher == -1) {\n      iVar2 = 2;\n      goto LAB_0015fa58;\n    }\n  }\n  inlen = 0;\n  which = 0;\n  key = xcbc_test::tests[0].K;\n  while( true ) {\n    taglen = 0x10;\n    iVar2 = xcbc_memory(cipher,key,0x10,key + 0x10,inlen,T,&taglen);\n    if (iVar2 != 0) break;\n    iVar2 = compare_testvector(T,taglen,key + 0x32,0x10,"XCBC",which);\n    if (iVar2 != 0) {\nLAB_0015fa50:\n      iVar2 = 5;\n      break;\n    }\n    iVar2 = 0;\n    if (which + 1 == 5) break;\n    taglen = 0x10;\n    iVar2 = xcbc_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),T,&taglen);\n    if (iVar2 != 0) break;\n    iVar2 = compare_testvector(T,taglen,key + 0x7a,0x10,"XCBC",which + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    which = which + 2;\n    inlen = (ulong)*(int *)(key + 0x8c);\n    key = key + 0x90;\n  }\nLAB_0015fa58:\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 "xcbc_test(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long lVar1;\n  int cipher;\n  int iVar2;\n  uchar *key;\n  ulong inlen;\n  int which;\n  long in_FS_OFFSET;\n  ulong taglen;\n  uchar T [16];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  cipher = find_cipher("aes");\n  if (cipher == -1) {\n    cipher = find_cipher("rijndael");\n    if (cipher == -1) {\n      iVar2 = 2;\n      goto LAB_0015fa58;\n    }\n  }\n  inlen = 0;\n  which = 0;\n  key = xcbc_test::tests[0].K;\n  while( true ) {\n    taglen = 0x10;\n    iVar2 = xcbc_memory(cipher,key,0x10,key + 0x10,inlen,T,&taglen);\n    if (iVar2 != 0) break;\n    iVar2 = compare_testvector(T,taglen,key + 0x32,0x10,"XCBC",which);\n    if (iVar2 != 0) {\nLAB_0015fa50:\n      iVar2 = 5;\n      break;\n    }\n    iVar2 = 0;\n    if (which + 1 == 5) break;\n    taglen = 0x10;\n    iVar2 = xcbc_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),T,&taglen);\n    if (iVar2 != 0) break;\n    iVar2 = compare_testvector(T,taglen,key + 0x7a,0x10,"XCBC",which + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    which = which + 2;\n    inlen = (ulong)*(int *)(key + 0x8c);\n    key = key + 0x90;\n  }\nLAB_0015fa58:\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 cipher;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uchar *key;" type_identifier (pointer_declarator "*key" * identifier) ;) (declaration "ulong inlen;" type_identifier identifier ;) (declaration "int which;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong taglen;" type_identifier identifier ;) (declaration "uchar T [16];" type_identifier (array_declarator "T [16]" identifier [ number_literal ]) ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "cipher = find_cipher("aes");" (assignment_expression "cipher = find_cipher("aes")" identifier = (call_expression "find_cipher("aes")" identifier (argument_list "("aes")" ( (string_literal ""aes"" " string_content ") )))) ;) (if_statement "if (cipher == -1) {\n    cipher = find_cipher("rijndael");\n    if (cipher == -1) {\n      iVar2 = 2;\n      goto LAB_0015fa58;\n    }\n  }" if (parenthesized_expression "(cipher == -1)" ( (binary_expression "cipher == -1" identifier == number_literal) )) (compound_statement "{\n    cipher = find_cipher("rijndael");\n    if (cipher == -1) {\n      iVar2 = 2;\n      goto LAB_0015fa58;\n    }\n  }" { (expression_statement "cipher = find_cipher("rijndael");" (assignment_expression "cipher = find_cipher("rijndael")" identifier = (call_expression "find_cipher("rijndael")" identifier (argument_list "("rijndael")" ( (string_literal ""rijndael"" " string_content ") )))) ;) (if_statement "if (cipher == -1) {\n      iVar2 = 2;\n      goto LAB_0015fa58;\n    }" if (parenthesized_expression "(cipher == -1)" ( (binary_expression "cipher == -1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = 2;\n      goto LAB_0015fa58;\n    }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_0015fa58;" goto statement_identifier ;) })) })) (expression_statement "inlen = 0;" (assignment_expression "inlen = 0" identifier = number_literal) ;) (expression_statement "which = 0;" (assignment_expression "which = 0" identifier = number_literal) ;) (expression_statement "key = xcbc_test::tests[0].K;" (field_expression "key = xcbc_test::tests[0].K" (subscript_expression "key = xcbc_test::tests[0]" (assignment_expression "key = xcbc_test" identifier = identifier) (ERROR "::tests" : : identifier) [ number_literal ]) . field_identifier) ;) (while_statement "while( true ) {\n    taglen = 0x10;\n    iVar2 = xcbc_memory(cipher,key,0x10,key + 0x10,inlen,T,&taglen);\n    if (iVar2 != 0) break;\n    iVar2 = compare_testvector(T,taglen,key + 0x32,0x10,"XCBC",which);\n    if (iVar2 != 0) {\nLAB_0015fa50:\n      iVar2 = 5;\n      break;\n    }\n    iVar2 = 0;\n    if (which + 1 == 5) break;\n    taglen = 0x10;\n    iVar2 = xcbc_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),T,&taglen);\n    if (iVar2 != 0) break;\n    iVar2 = compare_testvector(T,taglen,key + 0x7a,0x10,"XCBC",which + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    which = which + 2;\n    inlen = (ulong)*(int *)(key + 0x8c);\n    key = key + 0x90;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    taglen = 0x10;\n    iVar2 = xcbc_memory(cipher,key,0x10,key + 0x10,inlen,T,&taglen);\n    if (iVar2 != 0) break;\n    iVar2 = compare_testvector(T,taglen,key + 0x32,0x10,"XCBC",which);\n    if (iVar2 != 0) {\nLAB_0015fa50:\n      iVar2 = 5;\n      break;\n    }\n    iVar2 = 0;\n    if (which + 1 == 5) break;\n    taglen = 0x10;\n    iVar2 = xcbc_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),T,&taglen);\n    if (iVar2 != 0) break;\n    iVar2 = compare_testvector(T,taglen,key + 0x7a,0x10,"XCBC",which + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    which = which + 2;\n    inlen = (ulong)*(int *)(key + 0x8c);\n    key = key + 0x90;\n  }" { (expression_statement "taglen = 0x10;" (assignment_expression "taglen = 0x10" identifier = number_literal) ;) (expression_statement "iVar2 = xcbc_memory(cipher,key,0x10,key + 0x10,inlen,T,&taglen);" (assignment_expression "iVar2 = xcbc_memory(cipher,key,0x10,key + 0x10,inlen,T,&taglen)" identifier = (call_expression "xcbc_memory(cipher,key,0x10,key + 0x10,inlen,T,&taglen)" identifier (argument_list "(cipher,key,0x10,key + 0x10,inlen,T,&taglen)" ( identifier , identifier , number_literal , (binary_expression "key + 0x10" identifier + number_literal) , identifier , identifier , (pointer_expression "&taglen" & identifier) )))) ;) (if_statement "if (iVar2 != 0) break;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = compare_testvector(T,taglen,key + 0x32,0x10,"XCBC",which);" (assignment_expression "iVar2 = compare_testvector(T,taglen,key + 0x32,0x10,"XCBC",which)" identifier = (call_expression "compare_testvector(T,taglen,key + 0x32,0x10,"XCBC",which)" identifier (argument_list "(T,taglen,key + 0x32,0x10,"XCBC",which)" ( identifier , identifier , (binary_expression "key + 0x32" identifier + number_literal) , number_literal , (string_literal ""XCBC"" " string_content ") , identifier )))) ;) (if_statement "if (iVar2 != 0) {\nLAB_0015fa50:\n      iVar2 = 5;\n      break;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\nLAB_0015fa50:\n      iVar2 = 5;\n      break;\n    }" { (labeled_statement "LAB_0015fa50:\n      iVar2 = 5;" statement_identifier : (expression_statement "iVar2 = 5;" (assignment_expression "iVar2 = 5" identifier = number_literal) ;)) (break_statement "break;" break ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (which + 1 == 5) break;" if (parenthesized_expression "(which + 1 == 5)" ( (binary_expression "which + 1 == 5" (binary_expression "which + 1" identifier + number_literal) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "taglen = 0x10;" (assignment_expression "taglen = 0x10" identifier = number_literal) ;) (expression_statement "iVar2 = xcbc_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),T,&taglen);" (assignment_expression "iVar2 = xcbc_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),T,&taglen)" identifier = (call_expression "xcbc_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),T,&taglen)" identifier (argument_list "(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),T,&taglen)" ( identifier , (binary_expression "key + 0x48" identifier + number_literal) , number_literal , (binary_expression "key + 0x58" identifier + number_literal) , (cast_expression "(long)*(int *)(key + 0x44)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(key + 0x44)" * (cast_expression "(int *)(key + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(key + 0x44)" ( (binary_expression "key + 0x44" identifier + number_literal) ))))) , identifier , (pointer_expression "&taglen" & identifier) )))) ;) (if_statement "if (iVar2 != 0) break;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = compare_testvector(T,taglen,key + 0x7a,0x10,"XCBC",which + 1);" (assignment_expression "iVar2 = compare_testvector(T,taglen,key + 0x7a,0x10,"XCBC",which + 1)" identifier = (call_expression "compare_testvector(T,taglen,key + 0x7a,0x10,"XCBC",which + 1)" identifier (argument_list "(T,taglen,key + 0x7a,0x10,"XCBC",which + 1)" ( identifier , identifier , (binary_expression "key + 0x7a" identifier + number_literal) , number_literal , (string_literal ""XCBC"" " string_content ") , (binary_expression "which + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_0015fa50;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0015fa50;" goto statement_identifier ;)) (expression_statement "which = which + 2;" (assignment_expression "which = which + 2" identifier = (binary_expression "which + 2" identifier + number_literal)) ;) (expression_statement "inlen = (ulong)*(int *)(key + 0x8c);" (assignment_expression "inlen = (ulong)*(int *)(key + 0x8c)" identifier = (binary_expression "(ulong)*(int *)(key + 0x8c)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(int *)(key + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(key + 0x8c)" ( (binary_expression "key + 0x8c" identifier + number_literal) ))))) ;) (expression_statement "key = key + 0x90;" (assignment_expression "key = key + 0x90" identifier = (binary_expression "key + 0x90" identifier + number_literal)) ;) })) (labeled_statement "LAB_0015fa58:\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" statement_identifier : (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar2;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar2;\n  }" { (return_statement "return iVar2;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined8 xcbc_test(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  long lVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined8 local_60;\n  undefined1 local_58 [24];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = find_cipher(&DAT_0018d061);\n  if (iVar1 == -1) {\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }\n  lVar5 = 0;\n  iVar6 = 0;\n  puVar4 = &DAT_001bd9c4;\n  while( true ) {\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }\nLAB_0015fa58:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 xcbc_test(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  long lVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined8 local_60;\n  undefined1 local_58 [24];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = find_cipher(&DAT_0018d061);\n  if (iVar1 == -1) {\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }\n  lVar5 = 0;\n  iVar6 = 0;\n  puVar4 = &DAT_001bd9c4;\n  while( true ) {\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }\nLAB_0015fa58:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "xcbc_test(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  long lVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined8 local_60;\n  undefined1 local_58 [24];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = find_cipher(&DAT_0018d061);\n  if (iVar1 == -1) {\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }\n  lVar5 = 0;\n  iVar6 = 0;\n  puVar4 = &DAT_001bd9c4;\n  while( true ) {\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }\nLAB_0015fa58:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_60;" type_identifier identifier ;) (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 "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 "iVar1 = find_cipher(&DAT_0018d061);" (assignment_expression "iVar1 = find_cipher(&DAT_0018d061)" identifier = (call_expression "find_cipher(&DAT_0018d061)" identifier (argument_list "(&DAT_0018d061)" ( (pointer_expression "&DAT_0018d061" & identifier) )))) ;) (if_statement "if (iVar1 == -1) {\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }" { (expression_statement "iVar1 = find_cipher("rijndael");" (assignment_expression "iVar1 = find_cipher("rijndael")" identifier = (call_expression "find_cipher("rijndael")" identifier (argument_list "("rijndael")" ( (string_literal ""rijndael"" " string_content ") )))) ;) (if_statement "if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }" { (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_0015fa58;" goto statement_identifier ;) })) })) (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = &DAT_001bd9c4;" (assignment_expression "puVar4 = &DAT_001bd9c4" identifier = (pointer_expression "&DAT_001bd9c4" & identifier)) ;) (while_statement "while( true ) {\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }" { (expression_statement "local_60 = 0x10;" (assignment_expression "local_60 = 0x10" identifier = number_literal) ;) (expression_statement "uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);" (assignment_expression "uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60)" identifier = (call_expression "xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60)" identifier (argument_list "(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60)" ( identifier , identifier , number_literal , (binary_expression "puVar4 + 0x10" identifier + number_literal) , identifier , identifier , (pointer_expression "&local_60" & identifier) )))) ;) (if_statement "if ((int)uVar3 != 0) break;" if (parenthesized_expression "((int)uVar3 != 0)" ( (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);" (assignment_expression "uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6)" identifier = (call_expression "compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6)" identifier (argument_list "(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6)" ( identifier , identifier , (binary_expression "puVar4 + 0x32" identifier + number_literal) , number_literal , (pointer_expression "&DAT_001bd9b5" & identifier) , identifier )))) ;) (if_statement "if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }" if (parenthesized_expression "((int)uVar3 != 0)" ( (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (compound_statement "{\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }" { (labeled_statement "LAB_0015fa50:\n      uVar3 = 5;" statement_identifier : (expression_statement "uVar3 = 5;" (assignment_expression "uVar3 = 5" identifier = number_literal) ;)) (break_statement "break;" break ;) })) (if_statement "if (iVar6 + 1 == 5) break;" if (parenthesized_expression "(iVar6 + 1 == 5)" ( (binary_expression "iVar6 + 1 == 5" (binary_expression "iVar6 + 1" identifier + number_literal) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "local_60 = 0x10;" (assignment_expression "local_60 = 0x10" identifier = number_literal) ;) (expression_statement "uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);" (assignment_expression "uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58)" identifier = (call_expression "xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58)" identifier (argument_list "(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58)" ( identifier , (binary_expression "puVar4 + 0x48" identifier + number_literal) , number_literal , (binary_expression "puVar4 + 0x58" identifier + number_literal) , (cast_expression "(long)*(int *)(puVar4 + 0x44)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(puVar4 + 0x44)" * (cast_expression "(int *)(puVar4 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x44)" ( (binary_expression "puVar4 + 0x44" identifier + number_literal) ))))) , identifier )))) ;) (if_statement "if ((int)uVar3 != 0) break;" if (parenthesized_expression "((int)uVar3 != 0)" ( (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);" (assignment_expression "iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1)" identifier = (call_expression "compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1)" identifier (argument_list "(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1)" ( identifier , identifier , (binary_expression "puVar4 + 0x7a" identifier + number_literal) , number_literal , (pointer_expression "&DAT_001bd9b5" & identifier) , (binary_expression "iVar6 + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_0015fa50;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0015fa50;" goto statement_identifier ;)) (expression_statement "iVar6 = iVar6 + 2;" (assignment_expression "iVar6 = iVar6 + 2" identifier = (binary_expression "iVar6 + 2" identifier + number_literal)) ;) (expression_statement "lVar5 = (long)*(int *)(puVar4 + 0x8c);" (assignment_expression "lVar5 = (long)*(int *)(puVar4 + 0x8c)" identifier = (cast_expression "(long)*(int *)(puVar4 + 0x8c)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*(int *)(puVar4 + 0x8c)" * (cast_expression "(int *)(puVar4 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x8c)" ( (binary_expression "puVar4 + 0x8c" identifier + number_literal) )))))) ;) (expression_statement "puVar4 = puVar4 + 0x90;" (assignment_expression "puVar4 = puVar4 + 0x90" identifier = (binary_expression "puVar4 + 0x90" identifier + number_literal)) ;) })) (labeled_statement "LAB_0015fa58:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\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 uVar3;\n  }" { (return_statement "return uVar3;" 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , (binary_expression IDENT + LIT) , IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , LIT , (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (break_statement break ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT + LIT) , LIT , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined8 xcbc_test(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  long lVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined8 local_60;\n  undefined1 local_58 [24];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = find_cipher(&DAT_0018d061);\n  if (iVar1 == -1) {\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }\n  lVar5 = 0;\n  iVar6 = 0;\n  puVar4 = &DAT_001bd9c4;\n  while( true ) {\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }\nLAB_0015fa58:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined8") (function_declarator "xcbc_test(void)" (identifier "xcbc_test") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  long lVar5;\n  int iVar6;\n  long in_FS_OFFSET;\n  undefined8 local_60;\n  undefined1 local_58 [24];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar1 = find_cipher(&DAT_0018d061);\n  if (iVar1 == -1) {\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }\n  lVar5 = 0;\n  iVar6 = 0;\n  puVar4 = &DAT_001bd9c4;\n  while( true ) {\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }\nLAB_0015fa58:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 local_60;" (type_identifier "undefined8") (identifier "local_60") (; ";")) (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 "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 "iVar1 = find_cipher(&DAT_0018d061);" (assignment_expression "iVar1 = find_cipher(&DAT_0018d061)" (identifier "iVar1") (= "=") (call_expression "find_cipher(&DAT_0018d061)" (identifier "find_cipher") (argument_list "(&DAT_0018d061)" (( "(") (pointer_expression "&DAT_0018d061" (& "&") (identifier "DAT_0018d061")) () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    iVar1 = find_cipher("rijndael");\n    if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }\n  }" ({ "{") (expression_statement "iVar1 = find_cipher("rijndael");" (assignment_expression "iVar1 = find_cipher("rijndael")" (identifier "iVar1") (= "=") (call_expression "find_cipher("rijndael")" (identifier "find_cipher") (argument_list "("rijndael")" (( "(") (string_literal ""rijndael"" (" """) (string_content "rijndael") (" """)) () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar3 = 2;\n      goto LAB_0015fa58;\n    }" ({ "{") (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" (identifier "uVar3") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_0015fa58;" (goto "goto") (statement_identifier "LAB_0015fa58") (; ";")) (} "}"))) (} "}"))) (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" (identifier "lVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = &DAT_001bd9c4;" (assignment_expression "puVar4 = &DAT_001bd9c4" (identifier "puVar4") (= "=") (pointer_expression "&DAT_001bd9c4" (& "&") (identifier "DAT_001bd9c4"))) (; ";")) (while_statement "while( true ) {\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);\n    if ((int)uVar3 != 0) break;\n    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);\n    if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }\n    if (iVar6 + 1 == 5) break;\n    local_60 = 0x10;\n    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);\n    if ((int)uVar3 != 0) break;\n    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);\n    if (iVar2 != 0) goto LAB_0015fa50;\n    iVar6 = iVar6 + 2;\n    lVar5 = (long)*(int *)(puVar4 + 0x8c);\n    puVar4 = puVar4 + 0x90;\n  }" ({ "{") (expression_statement "local_60 = 0x10;" (assignment_expression "local_60 = 0x10" (identifier "local_60") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);" (assignment_expression "uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60)" (identifier "uVar3") (= "=") (call_expression "xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60)" (identifier "xcbc_memory") (argument_list "(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60)" (( "(") (identifier "iVar1") (, ",") (identifier "puVar4") (, ",") (number_literal "0x10") (, ",") (binary_expression "puVar4 + 0x10" (identifier "puVar4") (+ "+") (number_literal "0x10")) (, ",") (identifier "lVar5") (, ",") (identifier "local_58") (, ",") (pointer_expression "&local_60" (& "&") (identifier "local_60")) () ")")))) (; ";")) (if_statement "if ((int)uVar3 != 0) break;" (if "if") (parenthesized_expression "((int)uVar3 != 0)" (( "(") (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);" (assignment_expression "uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6)" (identifier "uVar3") (= "=") (call_expression "compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6)" (identifier "compare_testvector") (argument_list "(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6)" (( "(") (identifier "local_58") (, ",") (identifier "local_60") (, ",") (binary_expression "puVar4 + 0x32" (identifier "puVar4") (+ "+") (number_literal "0x32")) (, ",") (number_literal "0x10") (, ",") (pointer_expression "&DAT_001bd9b5" (& "&") (identifier "DAT_001bd9b5")) (, ",") (identifier "iVar6") () ")")))) (; ";")) (if_statement "if ((int)uVar3 != 0) {\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }" (if "if") (parenthesized_expression "((int)uVar3 != 0)" (( "(") (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\nLAB_0015fa50:\n      uVar3 = 5;\n      break;\n    }" ({ "{") (labeled_statement "LAB_0015fa50:\n      uVar3 = 5;" (statement_identifier "LAB_0015fa50") (: ":") (expression_statement "uVar3 = 5;" (assignment_expression "uVar3 = 5" (identifier "uVar3") (= "=") (number_literal "5")) (; ";"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (if_statement "if (iVar6 + 1 == 5) break;" (if "if") (parenthesized_expression "(iVar6 + 1 == 5)" (( "(") (binary_expression "iVar6 + 1 == 5" (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) (== "==") (number_literal "5")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "local_60 = 0x10;" (assignment_expression "local_60 = 0x10" (identifier "local_60") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58);" (assignment_expression "uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58)" (identifier "uVar3") (= "=") (call_expression "xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58)" (identifier "xcbc_memory") (argument_list "(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                        local_58)" (( "(") (identifier "iVar1") (, ",") (binary_expression "puVar4 + 0x48" (identifier "puVar4") (+ "+") (number_literal "0x48")) (, ",") (number_literal "0x10") (, ",") (binary_expression "puVar4 + 0x58" (identifier "puVar4") (+ "+") (number_literal "0x58")) (, ",") (cast_expression "(long)*(int *)(puVar4 + 0x44)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(puVar4 + 0x44)" (* "*") (cast_expression "(int *)(puVar4 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x44)" (( "(") (binary_expression "puVar4 + 0x44" (identifier "puVar4") (+ "+") (number_literal "0x44")) () ")"))))) (, ",") (identifier "local_58") () ")")))) (; ";")) (if_statement "if ((int)uVar3 != 0) break;" (if "if") (parenthesized_expression "((int)uVar3 != 0)" (( "(") (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);" (assignment_expression "iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1)" (identifier "iVar2") (= "=") (call_expression "compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1)" (identifier "compare_testvector") (argument_list "(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1)" (( "(") (identifier "local_58") (, ",") (identifier "local_60") (, ",") (binary_expression "puVar4 + 0x7a" (identifier "puVar4") (+ "+") (number_literal "0x7a")) (, ",") (number_literal "0x10") (, ",") (pointer_expression "&DAT_001bd9b5" (& "&") (identifier "DAT_001bd9b5")) (, ",") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_0015fa50;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0015fa50;" (goto "goto") (statement_identifier "LAB_0015fa50") (; ";"))) (expression_statement "iVar6 = iVar6 + 2;" (assignment_expression "iVar6 = iVar6 + 2" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 2" (identifier "iVar6") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "lVar5 = (long)*(int *)(puVar4 + 0x8c);" (assignment_expression "lVar5 = (long)*(int *)(puVar4 + 0x8c)" (identifier "lVar5") (= "=") (cast_expression "(long)*(int *)(puVar4 + 0x8c)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*(int *)(puVar4 + 0x8c)" (* "*") (cast_expression "(int *)(puVar4 + 0x8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x8c)" (( "(") (binary_expression "puVar4 + 0x8c" (identifier "puVar4") (+ "+") (number_literal "0x8c")) () ")")))))) (; ";")) (expression_statement "puVar4 = puVar4 + 0x90;" (assignment_expression "puVar4 = puVar4 + 0x90" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 0x90" (identifier "puVar4") (+ "+") (number_literal "0x90"))) (; ";")) (} "}"))) (labeled_statement "LAB_0015fa58:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" (statement_identifier "LAB_0015fa58") (: ":") (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\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 uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))) (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_9;
  int var_3;
  int var_6;
  type_1 *var_5;
  type_2 inlen;
  int var_8;
  long var_1;
  type_2 taglen;
  type_1 T [16];
  
  var_9 = *(long *)(var_1 + 0x28);
  var_3 = var_2("aes");
  if (var_3 == -1) {
    var_3 = var_2("rijndael");
    if (var_3 == -1) {
      var_6 = 2;
      goto LAB_0015fa58;
    }
  }
  inlen = 0;
  var_8 = 0;
  var_5 = function_1::tests[0].K;
  while( true ) {
    taglen = 0x10;
    var_6 = var_4(var_3,var_5,0x10,var_5 + 0x10,inlen,T,&taglen);
    if (var_6 != 0) break;
    var_6 = var_7(T,taglen,var_5 + 0x32,0x10,"XCBC",var_8);
    if (var_6 != 0) {
LAB_0015fa50:
      var_6 = 5;
      break;
    }
    var_6 = 0;
    if (var_8 + 1 == 5) break;
    taglen = 0x10;
    var_6 = var_4(var_3,var_5 + 0x48,0x10,var_5 + 0x58,(long)*(int *)(var_5 + 0x44),T,&taglen);
    if (var_6 != 0) break;
    var_6 = var_7(T,taglen,var_5 + 0x7a,0x10,"XCBC",var_8 + 1);
    if (var_6 != 0) goto LAB_0015fa50;
    var_8 = var_8 + 2;
    inlen = (type_2)*(int *)(var_5 + 0x8c);
    var_5 = var_5 + 0x90;
  }
LAB_0015fa58:
  if (var_9 == *(long *)(var_1 + 0x28)) {
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_10();
}


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

undefined8 MASKED(void)

{
  int iVar1;
  int iVar2;
  undefined8 uVar3;
  undefined *puVar4;
  long lVar5;
  int iVar6;
  long in_FS_OFFSET;
  undefined8 local_60;
  undefined1 local_58 [24];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  iVar1 = find_cipher(&DAT_0018d061);
  if (iVar1 == -1) {
    iVar1 = find_cipher("rijndael");
    if (iVar1 == -1) {
      uVar3 = 2;
      goto LAB_0015fa58;
    }
  }
  lVar5 = 0;
  iVar6 = 0;
  puVar4 = &DAT_001bd9c4;
  while( true ) {
    local_60 = 0x10;
    uVar3 = xcbc_memory(iVar1,puVar4,0x10,puVar4 + 0x10,lVar5,local_58,&local_60);
    if ((int)uVar3 != 0) break;
    uVar3 = compare_testvector(local_58,local_60,puVar4 + 0x32,0x10,&DAT_001bd9b5,iVar6);
    if ((int)uVar3 != 0) {
LAB_0015fa50:
      uVar3 = 5;
      break;
    }
    if (iVar6 + 1 == 5) break;
    local_60 = 0x10;
    uVar3 = xcbc_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),
                        local_58);
    if ((int)uVar3 != 0) break;
    iVar2 = compare_testvector(local_58,local_60,puVar4 + 0x7a,0x10,&DAT_001bd9b5,iVar6 + 1);
    if (iVar2 != 0) goto LAB_0015fa50;
    iVar6 = iVar6 + 2;
    lVar5 = (long)*(int *)(puVar4 + 0x8c);
    puVar4 = puVar4 + 0x90;
  }
LAB_0015fa58:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

