
int eax_encrypt(eax_state *eax,uchar *pt,uchar *ct,ulong length)

{
  int iVar1;
  
  if (eax == (eax_state *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);
  }
  if (pt != (uchar *)0x0) {
    if (ct != (uchar *)0x0) {
      iVar1 = ctr_encrypt(pt,ct,length,&eax->ctr);
      if (iVar1 == 0) {
        iVar1 = omac_process(&eax->ctomac,ct,length);
      }
      return iVar1;
    }
                    /* WARNING: Subroutine does not return */
    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);
}



void eax_encrypt(long param_1,long param_2,long param_3,undefined8 param_4)

{
  int iVar1;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);
  }
  if (param_2 != 0) {
    if (param_3 != 0) {
      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);
      if (iVar1 == 0) {
        omac_process(param_1 + 0x24e8,param_3,param_4);
      }
      return;
    }
                    /* WARNING: Subroutine does not return */
    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,RDI
TEST RDI,RDI
JZ 0x00136fec
MOV RDI,RSI
MOV RBP,RDX
MOV R12,RCX
TEST RSI,RSI
JZ 0x00137004
TEST RDX,RDX
JZ 0x0013701c
LEA RCX,[RBX + 0x80]
MOV RDX,R12
MOV RSI,RBP
CALL 0x00114c70
TEST EAX,EAX
JZ 0x00137034
POP RBX
POP RBP
POP R12
RET
MOV EDX,0x1f
LEA RSI,[0x1adee4]
LEA RDI,[0x1ade60]
CALL 0x00114260
MOV EDX,0x20
LEA RSI,[0x1adee4]
LEA RDI,[0x190033]
CALL 0x00114260
MOV EDX,0x21
LEA RSI,[0x1adee4]
LEA RDI,[0x19003e]
CALL 0x00114260
LEA RDI,[RBX + 0x24e8]
MOV RDX,R12
MOV RSI,RBP
CALL 0x00114910
JMP 0x00136fe7
(translation_unit "void eax_encrypt(long param_1,long param_2,long param_3,undefined8 param_4)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }\n  if (param_2 != 0) {\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);\n}\n\n" (function_definition "void eax_encrypt(long param_1,long param_2,long param_3,undefined8 param_4)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }\n  if (param_2 != 0) {\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);\n}" primitive_type (function_declarator "eax_encrypt(long param_1,long param_2,long param_3,undefined8 param_4)" identifier (parameter_list "(long param_1,long param_2,long param_3,undefined8 param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }\n  if (param_2 != 0) {\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }" { comment (expression_statement "crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);" (call_expression "crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f)" identifier (argument_list "("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f)" ( (string_literal ""eax != NULL"" " string_content ") , (string_literal ""src/encauth/eax/eax_encrypt.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_2 != 0) {\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }" { (if_statement "if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }" { (expression_statement "iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);" (assignment_expression "iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80)" identifier = (call_expression "ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80)" identifier (argument_list "(param_2,param_3,param_4,param_1 + 0x80)" ( identifier , identifier , identifier , (binary_expression "param_1 + 0x80" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }" { (expression_statement "omac_process(param_1 + 0x24e8,param_3,param_4);" (call_expression "omac_process(param_1 + 0x24e8,param_3,param_4)" identifier (argument_list "(param_1 + 0x24e8,param_3,param_4)" ( (binary_expression "param_1 + 0x24e8" identifier + number_literal) , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })) comment (expression_statement "crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);" (call_expression "crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21)" identifier (argument_list "("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21)" ( (string_literal ""ct != NULL"" " string_content ") , (string_literal ""src/encauth/eax/eax_encrypt.c"" " string_content ") , number_literal ))) ;) })) comment (expression_statement "crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);" (call_expression "crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20)" identifier (argument_list "("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20)" ( (string_literal ""pt != NULL"" " string_content ") , (string_literal ""src/encauth/eax/eax_encrypt.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "int eax_encrypt(eax_state *eax,uchar *pt,uchar *ct,ulong length)\n\n{\n  int iVar1;\n  \n  if (eax == (eax_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }\n  if (pt != (uchar *)0x0) {\n    if (ct != (uchar *)0x0) {\n      iVar1 = ctr_encrypt(pt,ct,length,&eax->ctr);\n      if (iVar1 == 0) {\n        iVar1 = omac_process(&eax->ctomac,ct,length);\n      }\n      return iVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);\n}\n\n" (function_definition "int eax_encrypt(eax_state *eax,uchar *pt,uchar *ct,ulong length)\n\n{\n  int iVar1;\n  \n  if (eax == (eax_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }\n  if (pt != (uchar *)0x0) {\n    if (ct != (uchar *)0x0) {\n      iVar1 = ctr_encrypt(pt,ct,length,&eax->ctr);\n      if (iVar1 == 0) {\n        iVar1 = omac_process(&eax->ctomac,ct,length);\n      }\n      return iVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);\n}" primitive_type (function_declarator "eax_encrypt(eax_state *eax,uchar *pt,uchar *ct,ulong length)" identifier (parameter_list "(eax_state *eax,uchar *pt,uchar *ct,ulong length)" ( (parameter_declaration "eax_state *eax" type_identifier (pointer_declarator "*eax" * identifier)) , (parameter_declaration "uchar *pt" type_identifier (pointer_declarator "*pt" * identifier)) , (parameter_declaration "uchar *ct" type_identifier (pointer_declarator "*ct" * identifier)) , (parameter_declaration "ulong length" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (eax == (eax_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }\n  if (pt != (uchar *)0x0) {\n    if (ct != (uchar *)0x0) {\n      iVar1 = ctr_encrypt(pt,ct,length,&eax->ctr);\n      if (iVar1 == 0) {\n        iVar1 = omac_process(&eax->ctomac,ct,length);\n      }\n      return iVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (eax == (eax_state *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }" if (parenthesized_expression "(eax == (eax_state *)0x0)" ( (binary_expression "eax == (eax_state *)0x0" identifier == (cast_expression "(eax_state *)0x0" ( (type_descriptor "eax_state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }" { comment (expression_statement "crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);" (call_expression "crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f)" identifier (argument_list "("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f)" ( (string_literal ""eax != NULL"" " string_content ") , (string_literal ""src/encauth/eax/eax_encrypt.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (pt != (uchar *)0x0) {\n    if (ct != (uchar *)0x0) {\n      iVar1 = ctr_encrypt(pt,ct,length,&eax->ctr);\n      if (iVar1 == 0) {\n        iVar1 = omac_process(&eax->ctomac,ct,length);\n      }\n      return iVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }" if (parenthesized_expression "(pt != (uchar *)0x0)" ( (binary_expression "pt != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (ct != (uchar *)0x0) {\n      iVar1 = ctr_encrypt(pt,ct,length,&eax->ctr);\n      if (iVar1 == 0) {\n        iVar1 = omac_process(&eax->ctomac,ct,length);\n      }\n      return iVar1;\n    }\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }" { (if_statement "if (ct != (uchar *)0x0) {\n      iVar1 = ctr_encrypt(pt,ct,length,&eax->ctr);\n      if (iVar1 == 0) {\n        iVar1 = omac_process(&eax->ctomac,ct,length);\n      }\n      return iVar1;\n    }" if (parenthesized_expression "(ct != (uchar *)0x0)" ( (binary_expression "ct != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar1 = ctr_encrypt(pt,ct,length,&eax->ctr);\n      if (iVar1 == 0) {\n        iVar1 = omac_process(&eax->ctomac,ct,length);\n      }\n      return iVar1;\n    }" { (expression_statement "iVar1 = ctr_encrypt(pt,ct,length,&eax->ctr);" (assignment_expression "iVar1 = ctr_encrypt(pt,ct,length,&eax->ctr)" identifier = (call_expression "ctr_encrypt(pt,ct,length,&eax->ctr)" identifier (argument_list "(pt,ct,length,&eax->ctr)" ( identifier , identifier , identifier , (pointer_expression "&eax->ctr" & (field_expression "eax->ctr" identifier -> field_identifier)) )))) ;) (if_statement "if (iVar1 == 0) {\n        iVar1 = omac_process(&eax->ctomac,ct,length);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar1 = omac_process(&eax->ctomac,ct,length);\n      }" { (expression_statement "iVar1 = omac_process(&eax->ctomac,ct,length);" (assignment_expression "iVar1 = omac_process(&eax->ctomac,ct,length)" identifier = (call_expression "omac_process(&eax->ctomac,ct,length)" identifier (argument_list "(&eax->ctomac,ct,length)" ( (pointer_expression "&eax->ctomac" & (field_expression "eax->ctomac" identifier -> field_identifier)) , identifier , identifier )))) ;) })) (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);" (call_expression "crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21)" identifier (argument_list "("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21)" ( (string_literal ""ct != NULL"" " string_content ") , (string_literal ""src/encauth/eax/eax_encrypt.c"" " string_content ") , number_literal ))) ;) })) comment (expression_statement "crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);" (call_expression "crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20)" identifier (argument_list "("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20)" ( (string_literal ""pt != NULL"" " string_content ") , (string_literal ""src/encauth/eax/eax_encrypt.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "void eax_encrypt(long param_1,long param_2,long param_3,undefined8 param_4)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    \n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }\n  if (param_2 != 0) {\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    \n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }\n                    \n  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);\n}\n\n" (function_definition "void eax_encrypt(long param_1,long param_2,long param_3,undefined8 param_4)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    \n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }\n  if (param_2 != 0) {\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    \n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }\n                    \n  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);\n}" primitive_type (function_declarator "eax_encrypt(long param_1,long param_2,long param_3,undefined8 param_4)" identifier (parameter_list "(long param_1,long param_2,long param_3,undefined8 param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    \n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }\n  if (param_2 != 0) {\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    \n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }\n                    \n  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }" { (expression_statement "crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);" (call_expression "crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f)" identifier (argument_list "("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f)" ( (string_literal ""eax != NULL"" " string_content ") , (string_literal ""src/encauth/eax/eax_encrypt.c"" " string_content ") , number_literal ))) ;) })) (if_statement "if (param_2 != 0) {\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    \n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    \n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }" { (if_statement "if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }" { (expression_statement "iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);" (assignment_expression "iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80)" identifier = (call_expression "ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80)" identifier (argument_list "(param_2,param_3,param_4,param_1 + 0x80)" ( identifier , identifier , identifier , (binary_expression "param_1 + 0x80" identifier + number_literal) )))) ;) (if_statement "if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }" { (expression_statement "omac_process(param_1 + 0x24e8,param_3,param_4);" (call_expression "omac_process(param_1 + 0x24e8,param_3,param_4)" identifier (argument_list "(param_1 + 0x24e8,param_3,param_4)" ( (binary_expression "param_1 + 0x24e8" identifier + number_literal) , identifier , identifier ))) ;) })) (return_statement "return;" return ;) })) (expression_statement "crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);" (call_expression "crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21)" identifier (argument_list "("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21)" ( (string_literal ""ct != NULL"" " string_content ") , (string_literal ""src/encauth/eax/eax_encrypt.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);" (call_expression "crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20)" identifier (argument_list "("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20)" ( (string_literal ""pt != NULL"" " string_content ") , (string_literal ""src/encauth/eax/eax_encrypt.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) })) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })))
(function_definition "void eax_encrypt(long param_1,long param_2,long param_3,undefined8 param_4)\n\n{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    \n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }\n  if (param_2 != 0) {\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    \n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }\n                    \n  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);\n}" (primitive_type "void") (function_declarator "eax_encrypt(long param_1,long param_2,long param_3,undefined8 param_4)" (identifier "eax_encrypt") (parameter_list "(long param_1,long param_2,long param_3,undefined8 param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == 0) {\n                    \n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }\n  if (param_2 != 0) {\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    \n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }\n                    \n  crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);\n  }" ({ "{") (expression_statement "crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);" (call_expression "crypt_argchk("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f)" (identifier "crypt_argchk") (argument_list "("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f)" (( "(") (string_literal ""eax != NULL"" (" """) (string_content "eax != NULL") (" """)) (, ",") (string_literal ""src/encauth/eax/eax_encrypt.c"" (" """) (string_content "src/encauth/eax/eax_encrypt.c") (" """)) (, ",") (number_literal "0x1f") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 != 0) {\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    \n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }\n                    \n    crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);\n  }" ({ "{") (if_statement "if (param_3 != 0) {\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);\n      if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }\n      return;\n    }" ({ "{") (expression_statement "iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);" (assignment_expression "iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80)" (identifier "iVar1") (= "=") (call_expression "ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80)" (identifier "ctr_encrypt") (argument_list "(param_2,param_3,param_4,param_1 + 0x80)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        omac_process(param_1 + 0x24e8,param_3,param_4);\n      }" ({ "{") (expression_statement "omac_process(param_1 + 0x24e8,param_3,param_4);" (call_expression "omac_process(param_1 + 0x24e8,param_3,param_4)" (identifier "omac_process") (argument_list "(param_1 + 0x24e8,param_3,param_4)" (( "(") (binary_expression "param_1 + 0x24e8" (identifier "param_1") (+ "+") (number_literal "0x24e8")) (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);" (call_expression "crypt_argchk("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21)" (identifier "crypt_argchk") (argument_list "("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21)" (( "(") (string_literal ""ct != NULL"" (" """) (string_content "ct != NULL") (" """)) (, ",") (string_literal ""src/encauth/eax/eax_encrypt.c"" (" """) (string_content "src/encauth/eax/eax_encrypt.c") (" """)) (, ",") (number_literal "0x21") () ")"))) (; ";")) (} "}"))) (expression_statement "crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);" (call_expression "crypt_argchk("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20)" (identifier "crypt_argchk") (argument_list "("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20)" (( "(") (string_literal ""pt != NULL"" (" """) (string_content "pt != NULL") (" """)) (, ",") (string_literal ""src/encauth/eax/eax_encrypt.c"" (" """) (string_content "src/encauth/eax/eax_encrypt.c") (" """)) (, ",") (number_literal "0x20") () ")"))) (; ";")) (} "}")))

int function_1(type_1 *var_1,type_2 *var_3,type_2 *var_4,type_3 length)

{
  int var_6;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("eax != NULL","src/encauth/eax/eax_encrypt.c",0x1f);
  }
  if (var_3 != (type_2 *)0x0) {
    if (var_4 != (type_2 *)0x0) {
      var_6 = var_5(var_3,var_4,length,&var_1->ctr);
      if (var_6 == 0) {
        var_6 = var_7(&var_1->ctomac,var_4,length);
      }
      return var_6;
    }
                    /* WARNING: Subroutine does not return */
    var_2("ct != NULL","src/encauth/eax/eax_encrypt.c",0x21);
  }
                    /* WARNING: Subroutine does not return */
  var_2("pt != NULL","src/encauth/eax/eax_encrypt.c",0x20);
}


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

void MASKED(long param_1,long param_2,long param_3,undefined8 param_4)

{
  int iVar1;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("eax != NULL","src/encauth/eax/MASKED.c",0x1f);
  }
  if (param_2 != 0) {
    if (param_3 != 0) {
      iVar1 = ctr_encrypt(param_2,param_3,param_4,param_1 + 0x80);
      if (iVar1 == 0) {
        omac_process(param_1 + 0x24e8,param_3,param_4);
      }
      return;
    }
                    /* WARNING: Subroutine does not return */
    crypt_argchk("ct != NULL","src/encauth/eax/MASKED.c",0x21);
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("pt != NULL","src/encauth/eax/MASKED.c",0x20);
}

