
/* WARNING: Unknown calling convention */

int pmac_test(void)

{
  long lVar1;
  int cipher;
  int iVar2;
  uchar *key;
  int which;
  long in_FS_OFFSET;
  ulong len;
  uchar outtag [128];
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  cipher = find_cipher("aes");
  if (cipher == -1) {
    cipher = find_cipher("rijndael");
    if (cipher == -1) {
      iVar2 = 2;
      goto LAB_0015d795;
    }
  }
  len = 0x80;
  iVar2 = pmac_memory(cipher,pmac_test::tests[0].key,0x10,pmac_test::tests[0].msg,0,outtag,&len);
  if (iVar2 == 0) {
    iVar2 = compare_testvector(outtag,len,pmac_test::tests[0].tag,0x10,"PMAC",0);
    if (iVar2 == 0) {
      which = 1;
      key = pmac_test::tests[1].key;
      iVar2 = pmac_test::tests[1].msglen;
      while( true ) {
        len = 0x80;
        iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len);
        if (iVar2 != 0) break;
        iVar2 = compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which);
        if (iVar2 != 0) goto LAB_0015d790;
        iVar2 = 0;
        if (which + 1 == 6) break;
        len = 0x80;
        iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len
                           );
        if (iVar2 != 0) break;
        iVar2 = compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1);
        if (iVar2 != 0) goto LAB_0015d790;
        which = which + 2;
        iVar2 = *(int *)(key + 0x8c);
        key = key + 0x90;
      }
    }
    else {
LAB_0015d790:
      iVar2 = 5;
    }
  }
LAB_0015d795:
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined8 pmac_test(void)

{
  int iVar1;
  int iVar2;
  undefined8 uVar3;
  undefined *puVar4;
  int iVar5;
  long in_FS_OFFSET;
  undefined8 local_d0;
  undefined1 local_c8 [136];
  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_0015d795;
    }
  }
  local_d0 = 0x80;
  uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);
  if ((int)uVar3 == 0) {
    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);
    if (iVar2 == 0) {
      iVar5 = 1;
      puVar4 = &DAT_001bd6cc;
      iVar2 = DAT_001bd6c8;
      while( true ) {
        local_d0 = 0x80;
        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);
        if ((int)uVar3 != 0) break;
        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);
        if ((int)uVar3 != 0) goto LAB_0015d790;
        if (iVar5 + 1 == 6) break;
        local_d0 = 0x80;
        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),
                            local_c8);
        if ((int)uVar3 != 0) break;
        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);
        if (iVar2 != 0) goto LAB_0015d790;
        iVar5 = iVar5 + 2;
        iVar2 = *(int *)(puVar4 + 0x8c);
        puVar4 = puVar4 + 0x90;
      }
    }
    else {
LAB_0015d790:
      uVar3 = 5;
    }
  }
LAB_0015d795:
  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,0xb8
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0xa8],RAX
XOR EAX,EAX
CALL 0x00114ed0
MOV R13D,EAX
CMP EAX,-0x1
JZ 0x0015d7c0
LEA RBP,[RSP + 0x20]
LEA R14,[RSP + 0x18]
XOR R8D,R8D
MOV EDI,R13D
MOV qword ptr [RSP + 0x18],0x80
SUB RSP,0x8
MOV R9,RBP
MOV EDX,0x10
PUSH R14
LEA RCX,[0x1bd694]
LEA R15,[0x1bd665]
LEA RSI,[RCX + -0x10]
CALL 0x00113120
POP R8
POP R9
TEST EAX,EAX
JNZ 0x0015d795
MOV RSI,qword ptr [RSP + 0x18]
XOR R9D,R9D
MOV R8,R15
MOV ECX,0x10
LEA RDX,[0x1bd6b6]
MOV RDI,RBP
CALL 0x001143c0
TEST EAX,EAX
JNZ 0x0015d790
LEA RBX,[0x1bd6cc]
MOV R12D,0x1
MOVSXD R8,dword ptr [RBX + -0x4]
SUB RSP,0x8
MOV RSI,RBX
MOV EDI,R13D
MOV R9,RBP
MOV qword ptr [RSP + 0x20],0x80
LEA RCX,[RBX + 0x10]
MOV EDX,0x10
PUSH R14
CALL 0x00113120
POP RSI
POP RDI
TEST EAX,EAX
JNZ 0x0015d795
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 0x0015d790
LEA R10D,[R12 + 0x1]
LEA RSI,[RBX + 0x48]
CMP R10D,0x6
MOV dword ptr [RSP + 0xc],R10D
JZ 0x0015d795
SUB RSP,0x8
MOVSXD R8,dword ptr [RSI + -0x4]
LEA RCX,[RBX + 0x58]
MOV R9,RBP
MOV qword ptr [RSP + 0x20],0x80
MOV EDX,0x10
MOV EDI,R13D
PUSH R14
CALL 0x00113120
POP RDX
POP RCX
TEST EAX,EAX
MOV ECX,dword ptr [RSP + 0xc]
JNZ 0x0015d795
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 0x0015d790
ADD RBX,0x90
ADD R12D,0x2
MOVSXD R8,dword ptr [RBX + -0x4]
JMP 0x0015d6be
MOV EAX,0x5
MOV RDI,qword ptr [RSP + 0xa8]
XOR RDI,qword ptr FS:[0x28]
JNZ 0x0015d7df
ADD RSP,0xb8
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 0x0015d63c
MOV EAX,0x2
JMP 0x0015d795
CALL 0x00113880
(translation_unit "undefined8 pmac_test(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  int iVar5;\n  long in_FS_OFFSET;\n  undefined8 local_d0;\n  undefined1 local_c8 [136];\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_0015d795;\n    }\n  }\n  local_d0 = 0x80;\n  uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);\n  if ((int)uVar3 == 0) {\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\n  }\nLAB_0015d795:\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 pmac_test(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  int iVar5;\n  long in_FS_OFFSET;\n  undefined8 local_d0;\n  undefined1 local_c8 [136];\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_0015d795;\n    }\n  }\n  local_d0 = 0x80;\n  uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);\n  if ((int)uVar3 == 0) {\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\n  }\nLAB_0015d795:\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 "pmac_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  int iVar5;\n  long in_FS_OFFSET;\n  undefined8 local_d0;\n  undefined1 local_c8 [136];\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_0015d795;\n    }\n  }\n  local_d0 = 0x80;\n  uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);\n  if ((int)uVar3 == 0) {\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\n  }\nLAB_0015d795:\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 "int iVar5;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_d0;" type_identifier identifier ;) (declaration "undefined1 local_c8 [136];" type_identifier (array_declarator "local_c8 [136]" 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_0015d795;\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_0015d795;\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_0015d795;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 2;\n      goto LAB_0015d795;\n    }" { (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_0015d795;" goto statement_identifier ;) })) })) (expression_statement "local_d0 = 0x80;" (assignment_expression "local_d0 = 0x80" identifier = number_literal) ;) (expression_statement "uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);" (assignment_expression "uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0)" identifier = (call_expression "pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0)" identifier (argument_list "(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0)" ( identifier , (pointer_expression "&DAT_001bd684" & identifier) , number_literal , (pointer_expression "&DAT_001bd694" & identifier) , number_literal , identifier , (pointer_expression "&local_d0" & identifier) )))) ;) (if_statement "if ((int)uVar3 == 0) {\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\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 "{\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\n  }" { (expression_statement "iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);" (assignment_expression "iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0)" identifier = (call_expression "compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0)" identifier (argument_list "(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0)" ( identifier , identifier , (pointer_expression "&DAT_001bd6b6" & identifier) , number_literal , (pointer_expression "&DAT_001bd665" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "puVar4 = &DAT_001bd6cc;" (assignment_expression "puVar4 = &DAT_001bd6cc" identifier = (pointer_expression "&DAT_001bd6cc" & identifier)) ;) (expression_statement "iVar2 = DAT_001bd6c8;" (assignment_expression "iVar2 = DAT_001bd6c8" identifier = identifier) ;) (while_statement "while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }" { (expression_statement "local_d0 = 0x80;" (assignment_expression "local_d0 = 0x80" identifier = number_literal) ;) (expression_statement "uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);" (assignment_expression "uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0)" identifier = (call_expression "pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0)" identifier (argument_list "(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0)" ( identifier , identifier , number_literal , (binary_expression "puVar4 + 0x10" identifier + number_literal) , (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , identifier , (pointer_expression "&local_d0" & 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_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);" (assignment_expression "uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5)" identifier = (call_expression "compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5)" identifier (argument_list "(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5)" ( identifier , identifier , (binary_expression "puVar4 + 0x32" identifier + number_literal) , number_literal , (pointer_expression "&DAT_001bd665" & identifier) , identifier )))) ;) (if_statement "if ((int)uVar3 != 0) goto LAB_0015d790;" if (parenthesized_expression "((int)uVar3 != 0)" ( (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (goto_statement "goto LAB_0015d790;" goto statement_identifier ;)) (if_statement "if (iVar5 + 1 == 6) break;" if (parenthesized_expression "(iVar5 + 1 == 6)" ( (binary_expression "iVar5 + 1 == 6" (binary_expression "iVar5 + 1" identifier + number_literal) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "local_d0 = 0x80;" (assignment_expression "local_d0 = 0x80" identifier = number_literal) ;) (expression_statement "uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);" (assignment_expression "uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8)" identifier = (call_expression "pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8)" identifier (argument_list "(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8)" ( 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_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);" (assignment_expression "iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1)" identifier = (call_expression "compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1)" identifier (argument_list "(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1)" ( identifier , identifier , (binary_expression "puVar4 + 0x7a" identifier + number_literal) , number_literal , (pointer_expression "&DAT_001bd665" & identifier) , (binary_expression "iVar5 + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_0015d790;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0015d790;" goto statement_identifier ;)) (expression_statement "iVar5 = iVar5 + 2;" (assignment_expression "iVar5 = iVar5 + 2" identifier = (binary_expression "iVar5 + 2" identifier + number_literal)) ;) (expression_statement "iVar2 = *(int *)(puVar4 + 0x8c);" (assignment_expression "iVar2 = *(int *)(puVar4 + 0x8c)" identifier = (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)) ;) })) }) (else_clause "else {\nLAB_0015d790:\n      uVar3 = 5;\n    }" else (compound_statement "{\nLAB_0015d790:\n      uVar3 = 5;\n    }" { (labeled_statement "LAB_0015d790:\n      uVar3 = 5;" statement_identifier : (expression_statement "uVar3 = 5;" (assignment_expression "uVar3 = 5" identifier = number_literal) ;)) }))) })) (labeled_statement "LAB_0015d795:\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 pmac_test(void)\n\n{\n  long lVar1;\n  int cipher;\n  int iVar2;\n  uchar *key;\n  int which;\n  long in_FS_OFFSET;\n  ulong len;\n  uchar outtag [128];\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_0015d795;\n    }\n  }\n  len = 0x80;\n  iVar2 = pmac_memory(cipher,pmac_test::tests[0].key,0x10,pmac_test::tests[0].msg,0,outtag,&len);\n  if (iVar2 == 0) {\n    iVar2 = compare_testvector(outtag,len,pmac_test::tests[0].tag,0x10,"PMAC",0);\n    if (iVar2 == 0) {\n      which = 1;\n      key = pmac_test::tests[1].key;\n      iVar2 = pmac_test::tests[1].msglen;\n      while( true ) {\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len);\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar2 = 0;\n        if (which + 1 == 6) break;\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           );\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        which = which + 2;\n        iVar2 = *(int *)(key + 0x8c);\n        key = key + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      iVar2 = 5;\n    }\n  }\nLAB_0015d795:\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 pmac_test(void)\n\n{\n  long lVar1;\n  int cipher;\n  int iVar2;\n  uchar *key;\n  int which;\n  long in_FS_OFFSET;\n  ulong len;\n  uchar outtag [128];\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_0015d795;\n    }\n  }\n  len = 0x80;\n  iVar2 = pmac_memory(cipher,pmac_test::tests[0].key,0x10,pmac_test::tests[0].msg,0,outtag,&len);\n  if (iVar2 == 0) {\n    iVar2 = compare_testvector(outtag,len,pmac_test::tests[0].tag,0x10,"PMAC",0);\n    if (iVar2 == 0) {\n      which = 1;\n      key = pmac_test::tests[1].key;\n      iVar2 = pmac_test::tests[1].msglen;\n      while( true ) {\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len);\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar2 = 0;\n        if (which + 1 == 6) break;\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           );\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        which = which + 2;\n        iVar2 = *(int *)(key + 0x8c);\n        key = key + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      iVar2 = 5;\n    }\n  }\nLAB_0015d795:\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 "pmac_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  int which;\n  long in_FS_OFFSET;\n  ulong len;\n  uchar outtag [128];\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_0015d795;\n    }\n  }\n  len = 0x80;\n  iVar2 = pmac_memory(cipher,pmac_test::tests[0].key,0x10,pmac_test::tests[0].msg,0,outtag,&len);\n  if (iVar2 == 0) {\n    iVar2 = compare_testvector(outtag,len,pmac_test::tests[0].tag,0x10,"PMAC",0);\n    if (iVar2 == 0) {\n      which = 1;\n      key = pmac_test::tests[1].key;\n      iVar2 = pmac_test::tests[1].msglen;\n      while( true ) {\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len);\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar2 = 0;\n        if (which + 1 == 6) break;\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           );\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        which = which + 2;\n        iVar2 = *(int *)(key + 0x8c);\n        key = key + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      iVar2 = 5;\n    }\n  }\nLAB_0015d795:\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 "int which;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong len;" type_identifier identifier ;) (declaration "uchar outtag [128];" type_identifier (array_declarator "outtag [128]" 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_0015d795;\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_0015d795;\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_0015d795;\n    }" if (parenthesized_expression "(cipher == -1)" ( (binary_expression "cipher == -1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = 2;\n      goto LAB_0015d795;\n    }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_0015d795;" goto statement_identifier ;) })) })) (expression_statement "len = 0x80;" (assignment_expression "len = 0x80" identifier = number_literal) ;) (expression_statement "iVar2 = pmac_memory(cipher,pmac_test::tests[0].key,0x10,pmac_test::tests[0].msg,0,outtag,&len);" (assignment_expression "iVar2 = pmac_memory(cipher,pmac_test::tests[0].key,0x10,pmac_test::tests[0].msg,0,outtag,&len)" identifier = (call_expression "pmac_memory(cipher,pmac_test::tests[0].key,0x10,pmac_test::tests[0].msg,0,outtag,&len)" identifier (argument_list "(cipher,pmac_test::tests[0].key,0x10,pmac_test::tests[0].msg,0,outtag,&len)" ( identifier , (field_expression "pmac_test::tests[0].key" (subscript_expression "pmac_test::tests[0]" identifier (ERROR "::tests" : : identifier) [ number_literal ]) . field_identifier) , number_literal , (field_expression "pmac_test::tests[0].msg" (subscript_expression "pmac_test::tests[0]" identifier (ERROR "::tests" : : identifier) [ number_literal ]) . field_identifier) , number_literal , identifier , (pointer_expression "&len" & identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = compare_testvector(outtag,len,pmac_test::tests[0].tag,0x10,"PMAC",0);\n    if (iVar2 == 0) {\n      which = 1;\n      key = pmac_test::tests[1].key;\n      iVar2 = pmac_test::tests[1].msglen;\n      while( true ) {\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len);\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar2 = 0;\n        if (which + 1 == 6) break;\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           );\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        which = which + 2;\n        iVar2 = *(int *)(key + 0x8c);\n        key = key + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      iVar2 = 5;\n    }\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = compare_testvector(outtag,len,pmac_test::tests[0].tag,0x10,"PMAC",0);\n    if (iVar2 == 0) {\n      which = 1;\n      key = pmac_test::tests[1].key;\n      iVar2 = pmac_test::tests[1].msglen;\n      while( true ) {\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len);\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar2 = 0;\n        if (which + 1 == 6) break;\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           );\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        which = which + 2;\n        iVar2 = *(int *)(key + 0x8c);\n        key = key + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      iVar2 = 5;\n    }\n  }" { (expression_statement "iVar2 = compare_testvector(outtag,len,pmac_test::tests[0].tag,0x10,"PMAC",0);" (assignment_expression "iVar2 = compare_testvector(outtag,len,pmac_test::tests[0].tag,0x10,"PMAC",0)" identifier = (call_expression "compare_testvector(outtag,len,pmac_test::tests[0].tag,0x10,"PMAC",0)" identifier (argument_list "(outtag,len,pmac_test::tests[0].tag,0x10,"PMAC",0)" ( identifier , identifier , (field_expression "pmac_test::tests[0].tag" (subscript_expression "pmac_test::tests[0]" identifier (ERROR "::tests" : : identifier) [ number_literal ]) . field_identifier) , number_literal , (string_literal ""PMAC"" " string_content ") , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      which = 1;\n      key = pmac_test::tests[1].key;\n      iVar2 = pmac_test::tests[1].msglen;\n      while( true ) {\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len);\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar2 = 0;\n        if (which + 1 == 6) break;\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           );\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        which = which + 2;\n        iVar2 = *(int *)(key + 0x8c);\n        key = key + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      iVar2 = 5;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      which = 1;\n      key = pmac_test::tests[1].key;\n      iVar2 = pmac_test::tests[1].msglen;\n      while( true ) {\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len);\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar2 = 0;\n        if (which + 1 == 6) break;\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           );\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        which = which + 2;\n        iVar2 = *(int *)(key + 0x8c);\n        key = key + 0x90;\n      }\n    }" { (expression_statement "which = 1;" (assignment_expression "which = 1" identifier = number_literal) ;) (expression_statement "key = pmac_test::tests[1].key;" (field_expression "key = pmac_test::tests[1].key" (subscript_expression "key = pmac_test::tests[1]" (assignment_expression "key = pmac_test" identifier = identifier) (ERROR "::tests" : : identifier) [ number_literal ]) . field_identifier) ;) (expression_statement "iVar2 = pmac_test::tests[1].msglen;" (field_expression "iVar2 = pmac_test::tests[1].msglen" (subscript_expression "iVar2 = pmac_test::tests[1]" (assignment_expression "iVar2 = pmac_test" identifier = identifier) (ERROR "::tests" : : identifier) [ number_literal ]) . field_identifier) ;) (while_statement "while( true ) {\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len);\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar2 = 0;\n        if (which + 1 == 6) break;\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           );\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        which = which + 2;\n        iVar2 = *(int *)(key + 0x8c);\n        key = key + 0x90;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len);\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar2 = 0;\n        if (which + 1 == 6) break;\n        len = 0x80;\n        iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           );\n        if (iVar2 != 0) break;\n        iVar2 = compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        which = which + 2;\n        iVar2 = *(int *)(key + 0x8c);\n        key = key + 0x90;\n      }" { (expression_statement "len = 0x80;" (assignment_expression "len = 0x80" identifier = number_literal) ;) (expression_statement "iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len);" (assignment_expression "iVar2 = pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len)" identifier = (call_expression "pmac_memory(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len)" identifier (argument_list "(cipher,key,0x10,key + 0x10,(long)iVar2,outtag,&len)" ( identifier , identifier , number_literal , (binary_expression "key + 0x10" identifier + number_literal) , (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , identifier , (pointer_expression "&len" & 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(outtag,len,key + 0x32,0x10,"PMAC",which);" (assignment_expression "iVar2 = compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which)" identifier = (call_expression "compare_testvector(outtag,len,key + 0x32,0x10,"PMAC",which)" identifier (argument_list "(outtag,len,key + 0x32,0x10,"PMAC",which)" ( identifier , identifier , (binary_expression "key + 0x32" identifier + number_literal) , number_literal , (string_literal ""PMAC"" " string_content ") , identifier )))) ;) (if_statement "if (iVar2 != 0) goto LAB_0015d790;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0015d790;" goto statement_identifier ;)) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (which + 1 == 6) break;" if (parenthesized_expression "(which + 1 == 6)" ( (binary_expression "which + 1 == 6" (binary_expression "which + 1" identifier + number_literal) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "len = 0x80;" (assignment_expression "len = 0x80" identifier = number_literal) ;) (expression_statement "iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           );" (assignment_expression "iVar2 = pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           )" identifier = (call_expression "pmac_memory(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           )" identifier (argument_list "(cipher,key + 0x48,0x10,key + 0x58,(long)*(int *)(key + 0x44),outtag,&len\n                           )" ( 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 "&len" & 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(outtag,len,key + 0x7a,0x10,"PMAC",which + 1);" (assignment_expression "iVar2 = compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1)" identifier = (call_expression "compare_testvector(outtag,len,key + 0x7a,0x10,"PMAC",which + 1)" identifier (argument_list "(outtag,len,key + 0x7a,0x10,"PMAC",which + 1)" ( identifier , identifier , (binary_expression "key + 0x7a" identifier + number_literal) , number_literal , (string_literal ""PMAC"" " string_content ") , (binary_expression "which + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_0015d790;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0015d790;" goto statement_identifier ;)) (expression_statement "which = which + 2;" (assignment_expression "which = which + 2" identifier = (binary_expression "which + 2" identifier + number_literal)) ;) (expression_statement "iVar2 = *(int *)(key + 0x8c);" (assignment_expression "iVar2 = *(int *)(key + 0x8c)" identifier = (pointer_expression "*(int *)(key + 0x8c)" * (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)) ;) })) }) (else_clause "else {\nLAB_0015d790:\n      iVar2 = 5;\n    }" else (compound_statement "{\nLAB_0015d790:\n      iVar2 = 5;\n    }" { (labeled_statement "LAB_0015d790:\n      iVar2 = 5;" statement_identifier : (expression_statement "iVar2 = 5;" (assignment_expression "iVar2 = 5" identifier = number_literal) ;)) }))) })) (labeled_statement "LAB_0015d795:\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 pmac_test(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  int iVar5;\n  long in_FS_OFFSET;\n  undefined8 local_d0;\n  undefined1 local_c8 [136];\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_0015d795;\n    }\n  }\n  local_d0 = 0x80;\n  uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);\n  if ((int)uVar3 == 0) {\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\n  }\nLAB_0015d795:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined8 pmac_test(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  int iVar5;\n  long in_FS_OFFSET;\n  undefined8 local_d0;\n  undefined1 local_c8 [136];\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_0015d795;\n    }\n  }\n  local_d0 = 0x80;\n  uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);\n  if ((int)uVar3 == 0) {\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\n  }\nLAB_0015d795:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "pmac_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  int iVar5;\n  long in_FS_OFFSET;\n  undefined8 local_d0;\n  undefined1 local_c8 [136];\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_0015d795;\n    }\n  }\n  local_d0 = 0x80;\n  uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);\n  if ((int)uVar3 == 0) {\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\n  }\nLAB_0015d795:\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 "int iVar5;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_d0;" type_identifier identifier ;) (declaration "undefined1 local_c8 [136];" type_identifier (array_declarator "local_c8 [136]" 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_0015d795;\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_0015d795;\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_0015d795;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 2;\n      goto LAB_0015d795;\n    }" { (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_0015d795;" goto statement_identifier ;) })) })) (expression_statement "local_d0 = 0x80;" (assignment_expression "local_d0 = 0x80" identifier = number_literal) ;) (expression_statement "uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);" (assignment_expression "uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0)" identifier = (call_expression "pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0)" identifier (argument_list "(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0)" ( identifier , (pointer_expression "&DAT_001bd684" & identifier) , number_literal , (pointer_expression "&DAT_001bd694" & identifier) , number_literal , identifier , (pointer_expression "&local_d0" & identifier) )))) ;) (if_statement "if ((int)uVar3 == 0) {\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\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 "{\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\n  }" { (expression_statement "iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);" (assignment_expression "iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0)" identifier = (call_expression "compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0)" identifier (argument_list "(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0)" ( identifier , identifier , (pointer_expression "&DAT_001bd6b6" & identifier) , number_literal , (pointer_expression "&DAT_001bd665" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) (expression_statement "puVar4 = &DAT_001bd6cc;" (assignment_expression "puVar4 = &DAT_001bd6cc" identifier = (pointer_expression "&DAT_001bd6cc" & identifier)) ;) (expression_statement "iVar2 = DAT_001bd6c8;" (assignment_expression "iVar2 = DAT_001bd6c8" identifier = identifier) ;) (while_statement "while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }" { (expression_statement "local_d0 = 0x80;" (assignment_expression "local_d0 = 0x80" identifier = number_literal) ;) (expression_statement "uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);" (assignment_expression "uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0)" identifier = (call_expression "pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0)" identifier (argument_list "(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0)" ( identifier , identifier , number_literal , (binary_expression "puVar4 + 0x10" identifier + number_literal) , (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , identifier , (pointer_expression "&local_d0" & 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_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);" (assignment_expression "uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5)" identifier = (call_expression "compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5)" identifier (argument_list "(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5)" ( identifier , identifier , (binary_expression "puVar4 + 0x32" identifier + number_literal) , number_literal , (pointer_expression "&DAT_001bd665" & identifier) , identifier )))) ;) (if_statement "if ((int)uVar3 != 0) goto LAB_0015d790;" if (parenthesized_expression "((int)uVar3 != 0)" ( (binary_expression "(int)uVar3 != 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) != number_literal) )) (goto_statement "goto LAB_0015d790;" goto statement_identifier ;)) (if_statement "if (iVar5 + 1 == 6) break;" if (parenthesized_expression "(iVar5 + 1 == 6)" ( (binary_expression "iVar5 + 1 == 6" (binary_expression "iVar5 + 1" identifier + number_literal) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "local_d0 = 0x80;" (assignment_expression "local_d0 = 0x80" identifier = number_literal) ;) (expression_statement "uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);" (assignment_expression "uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8)" identifier = (call_expression "pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8)" identifier (argument_list "(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8)" ( 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_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);" (assignment_expression "iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1)" identifier = (call_expression "compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1)" identifier (argument_list "(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1)" ( identifier , identifier , (binary_expression "puVar4 + 0x7a" identifier + number_literal) , number_literal , (pointer_expression "&DAT_001bd665" & identifier) , (binary_expression "iVar5 + 1" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) goto LAB_0015d790;" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0015d790;" goto statement_identifier ;)) (expression_statement "iVar5 = iVar5 + 2;" (assignment_expression "iVar5 = iVar5 + 2" identifier = (binary_expression "iVar5 + 2" identifier + number_literal)) ;) (expression_statement "iVar2 = *(int *)(puVar4 + 0x8c);" (assignment_expression "iVar2 = *(int *)(puVar4 + 0x8c)" identifier = (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)) ;) })) }) (else_clause "else {\nLAB_0015d790:\n      uVar3 = 5;\n    }" else (compound_statement "{\nLAB_0015d790:\n      uVar3 = 5;\n    }" { (labeled_statement "LAB_0015d790:\n      uVar3 = 5;" statement_identifier : (expression_statement "uVar3 = 5;" (assignment_expression "uVar3 = 5" identifier = number_literal) ;)) }))) })) (labeled_statement "LAB_0015d795:\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 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 = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT , (pointer_expression & IDENT) , LIT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = 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) , (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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) )) (goto_statement goto statement_identifier ;)) (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 = (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)) ;) })) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_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 pmac_test(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined8 uVar3;\n  undefined *puVar4;\n  int iVar5;\n  long in_FS_OFFSET;\n  undefined8 local_d0;\n  undefined1 local_c8 [136];\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_0015d795;\n    }\n  }\n  local_d0 = 0x80;\n  uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);\n  if ((int)uVar3 == 0) {\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\n  }\nLAB_0015d795:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined8") (function_declarator "pmac_test(void)" (identifier "pmac_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  int iVar5;\n  long in_FS_OFFSET;\n  undefined8 local_d0;\n  undefined1 local_c8 [136];\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_0015d795;\n    }\n  }\n  local_d0 = 0x80;\n  uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);\n  if ((int)uVar3 == 0) {\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\n  }\nLAB_0015d795:\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 "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 local_d0;" (type_identifier "undefined8") (identifier "local_d0") (; ";")) (declaration "undefined1 local_c8 [136];" (type_identifier "undefined1") (array_declarator "local_c8 [136]" (identifier "local_c8") ([ "[") (number_literal "136") (] "]")) (; ";")) (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_0015d795;\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_0015d795;\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_0015d795;\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar3 = 2;\n      goto LAB_0015d795;\n    }" ({ "{") (expression_statement "uVar3 = 2;" (assignment_expression "uVar3 = 2" (identifier "uVar3") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_0015d795;" (goto "goto") (statement_identifier "LAB_0015d795") (; ";")) (} "}"))) (} "}"))) (expression_statement "local_d0 = 0x80;" (assignment_expression "local_d0 = 0x80" (identifier "local_d0") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);" (assignment_expression "uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0)" (identifier "uVar3") (= "=") (call_expression "pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0)" (identifier "pmac_memory") (argument_list "(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0)" (( "(") (identifier "iVar1") (, ",") (pointer_expression "&DAT_001bd684" (& "&") (identifier "DAT_001bd684")) (, ",") (number_literal "0x10") (, ",") (pointer_expression "&DAT_001bd694" (& "&") (identifier "DAT_001bd694")) (, ",") (number_literal "0") (, ",") (identifier "local_c8") (, ",") (pointer_expression "&local_d0" (& "&") (identifier "local_d0")) () ")")))) (; ";")) (if_statement "if ((int)uVar3 == 0) {\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\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 "{\n    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);\n    if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }\n  }" ({ "{") (expression_statement "iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);" (assignment_expression "iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0)" (identifier "iVar2") (= "=") (call_expression "compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0)" (identifier "compare_testvector") (argument_list "(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0)" (( "(") (identifier "local_c8") (, ",") (identifier "local_d0") (, ",") (pointer_expression "&DAT_001bd6b6" (& "&") (identifier "DAT_001bd6b6")) (, ",") (number_literal "0x10") (, ",") (pointer_expression "&DAT_001bd665" (& "&") (identifier "DAT_001bd665")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }\n    else {\nLAB_0015d790:\n      uVar3 = 5;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar5 = 1;\n      puVar4 = &DAT_001bd6cc;\n      iVar2 = DAT_001bd6c8;\n      while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }\n    }" ({ "{") (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar4 = &DAT_001bd6cc;" (assignment_expression "puVar4 = &DAT_001bd6cc" (identifier "puVar4") (= "=") (pointer_expression "&DAT_001bd6cc" (& "&") (identifier "DAT_001bd6cc"))) (; ";")) (expression_statement "iVar2 = DAT_001bd6c8;" (assignment_expression "iVar2 = DAT_001bd6c8" (identifier "iVar2") (= "=") (identifier "DAT_001bd6c8")) (; ";")) (while_statement "while( true ) {\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);\n        if ((int)uVar3 != 0) break;\n        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);\n        if ((int)uVar3 != 0) goto LAB_0015d790;\n        if (iVar5 + 1 == 6) break;\n        local_d0 = 0x80;\n        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);\n        if ((int)uVar3 != 0) break;\n        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);\n        if (iVar2 != 0) goto LAB_0015d790;\n        iVar5 = iVar5 + 2;\n        iVar2 = *(int *)(puVar4 + 0x8c);\n        puVar4 = puVar4 + 0x90;\n      }" ({ "{") (expression_statement "local_d0 = 0x80;" (assignment_expression "local_d0 = 0x80" (identifier "local_d0") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);" (assignment_expression "uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0)" (identifier "uVar3") (= "=") (call_expression "pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0)" (identifier "pmac_memory") (argument_list "(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0)" (( "(") (identifier "iVar1") (, ",") (identifier "puVar4") (, ",") (number_literal "0x10") (, ",") (binary_expression "puVar4 + 0x10" (identifier "puVar4") (+ "+") (number_literal "0x10")) (, ",") (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (, ",") (identifier "local_c8") (, ",") (pointer_expression "&local_d0" (& "&") (identifier "local_d0")) () ")")))) (; ";")) (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_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);" (assignment_expression "uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5)" (identifier "uVar3") (= "=") (call_expression "compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5)" (identifier "compare_testvector") (argument_list "(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5)" (( "(") (identifier "local_c8") (, ",") (identifier "local_d0") (, ",") (binary_expression "puVar4 + 0x32" (identifier "puVar4") (+ "+") (number_literal "0x32")) (, ",") (number_literal "0x10") (, ",") (pointer_expression "&DAT_001bd665" (& "&") (identifier "DAT_001bd665")) (, ",") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if ((int)uVar3 != 0) goto LAB_0015d790;" (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")) () ")")) (goto_statement "goto LAB_0015d790;" (goto "goto") (statement_identifier "LAB_0015d790") (; ";"))) (if_statement "if (iVar5 + 1 == 6) break;" (if "if") (parenthesized_expression "(iVar5 + 1 == 6)" (( "(") (binary_expression "iVar5 + 1 == 6" (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1")) (== "==") (number_literal "6")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "local_d0 = 0x80;" (assignment_expression "local_d0 = 0x80" (identifier "local_d0") (= "=") (number_literal "0x80")) (; ";")) (expression_statement "uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8);" (assignment_expression "uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8)" (identifier "uVar3") (= "=") (call_expression "pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8)" (identifier "pmac_memory") (argument_list "(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),\n                            local_c8)" (( "(") (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_c8") () ")")))) (; ";")) (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_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);" (assignment_expression "iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1)" (identifier "iVar2") (= "=") (call_expression "compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1)" (identifier "compare_testvector") (argument_list "(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1)" (( "(") (identifier "local_c8") (, ",") (identifier "local_d0") (, ",") (binary_expression "puVar4 + 0x7a" (identifier "puVar4") (+ "+") (number_literal "0x7a")) (, ",") (number_literal "0x10") (, ",") (pointer_expression "&DAT_001bd665" (& "&") (identifier "DAT_001bd665")) (, ",") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) goto LAB_0015d790;" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0015d790;" (goto "goto") (statement_identifier "LAB_0015d790") (; ";"))) (expression_statement "iVar5 = iVar5 + 2;" (assignment_expression "iVar5 = iVar5 + 2" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 2" (identifier "iVar5") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar2 = *(int *)(puVar4 + 0x8c);" (assignment_expression "iVar2 = *(int *)(puVar4 + 0x8c)" (identifier "iVar2") (= "=") (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"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\nLAB_0015d790:\n      uVar3 = 5;\n    }" (else "else") (compound_statement "{\nLAB_0015d790:\n      uVar3 = 5;\n    }" ({ "{") (labeled_statement "LAB_0015d790:\n      uVar3 = 5;" (statement_identifier "LAB_0015d790") (: ":") (expression_statement "uVar3 = 5;" (assignment_expression "uVar3 = 5" (identifier "uVar3") (= "=") (number_literal "5")) (; ";"))) (} "}")))) (} "}"))) (labeled_statement "LAB_0015d795:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" (statement_identifier "LAB_0015d795") (: ":") (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_5;
  type_1 *var_7;
  int var_8;
  long var_1;
  type_2 len;
  type_1 outtag [128];
  
  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_5 = 2;
      goto LAB_0015d795;
    }
  }
  len = 0x80;
  var_5 = var_4(var_3,function_1::tests[0].var_7,0x10,function_1::tests[0].msg,0,outtag,&len);
  if (var_5 == 0) {
    var_5 = var_6(outtag,len,function_1::tests[0].tag,0x10,"PMAC",0);
    if (var_5 == 0) {
      var_8 = 1;
      var_7 = function_1::tests[1].var_7;
      var_5 = function_1::tests[1].msglen;
      while( true ) {
        len = 0x80;
        var_5 = var_4(var_3,var_7,0x10,var_7 + 0x10,(long)var_5,outtag,&len);
        if (var_5 != 0) break;
        var_5 = var_6(outtag,len,var_7 + 0x32,0x10,"PMAC",var_8);
        if (var_5 != 0) goto LAB_0015d790;
        var_5 = 0;
        if (var_8 + 1 == 6) break;
        len = 0x80;
        var_5 = var_4(var_3,var_7 + 0x48,0x10,var_7 + 0x58,(long)*(int *)(var_7 + 0x44),outtag,&len
                           );
        if (var_5 != 0) break;
        var_5 = var_6(outtag,len,var_7 + 0x7a,0x10,"PMAC",var_8 + 1);
        if (var_5 != 0) goto LAB_0015d790;
        var_8 = var_8 + 2;
        var_5 = *(int *)(var_7 + 0x8c);
        var_7 = var_7 + 0x90;
      }
    }
    else {
LAB_0015d790:
      var_5 = 5;
    }
  }
LAB_0015d795:
  if (var_9 == *(long *)(var_1 + 0x28)) {
    return var_5;
  }
                    /* 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: (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal) (pointer_expression argument: (identifier)) (number_literal) (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: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier)) (number_literal) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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)) (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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: (goto_statement label: (statement_identifier))) (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: (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))))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_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;
  int iVar5;
  long in_FS_OFFSET;
  undefined8 local_d0;
  undefined1 local_c8 [136];
  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_0015d795;
    }
  }
  local_d0 = 0x80;
  uVar3 = pmac_memory(iVar1,&DAT_001bd684,0x10,&DAT_001bd694,0,local_c8,&local_d0);
  if ((int)uVar3 == 0) {
    iVar2 = compare_testvector(local_c8,local_d0,&DAT_001bd6b6,0x10,&DAT_001bd665,0);
    if (iVar2 == 0) {
      iVar5 = 1;
      puVar4 = &DAT_001bd6cc;
      iVar2 = DAT_001bd6c8;
      while( true ) {
        local_d0 = 0x80;
        uVar3 = pmac_memory(iVar1,puVar4,0x10,puVar4 + 0x10,(long)iVar2,local_c8,&local_d0);
        if ((int)uVar3 != 0) break;
        uVar3 = compare_testvector(local_c8,local_d0,puVar4 + 0x32,0x10,&DAT_001bd665,iVar5);
        if ((int)uVar3 != 0) goto LAB_0015d790;
        if (iVar5 + 1 == 6) break;
        local_d0 = 0x80;
        uVar3 = pmac_memory(iVar1,puVar4 + 0x48,0x10,puVar4 + 0x58,(long)*(int *)(puVar4 + 0x44),
                            local_c8);
        if ((int)uVar3 != 0) break;
        iVar2 = compare_testvector(local_c8,local_d0,puVar4 + 0x7a,0x10,&DAT_001bd665,iVar5 + 1);
        if (iVar2 != 0) goto LAB_0015d790;
        iVar5 = iVar5 + 2;
        iVar2 = *(int *)(puVar4 + 0x8c);
        puVar4 = puVar4 + 0x90;
      }
    }
    else {
LAB_0015d790:
      uVar3 = 5;
    }
  }
LAB_0015d795:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

