
int rijndael_keysize(int *keysize)

{
  int iVar1;
  int iVar2;
  
  if (keysize == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);
  }
  iVar1 = *keysize;
  iVar2 = 3;
  if (0xf < iVar1) {
    if (iVar1 < 0x18) {
      *keysize = 0x10;
      return 0;
    }
    if (iVar1 < 0x20) {
      *keysize = 0x18;
      return 0;
    }
    *keysize = 0x20;
    iVar2 = 0;
  }
  return iVar2;
}



undefined8 rijndael_keysize(int *param_1)

{
  int iVar1;
  undefined8 uVar2;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);
  }
  iVar1 = *param_1;
  uVar2 = 3;
  if (0xf < iVar1) {
    if (iVar1 < 0x18) {
      *param_1 = 0x10;
      return 0;
    }
    if (iVar1 < 0x20) {
      *param_1 = 0x18;
      return 0;
    }
    *param_1 = 0x20;
    uVar2 = 0;
  }
  return uVar2;
}


TEST RDI,RDI
JZ 0x00115851
MOV EDX,dword ptr [RDI]
MOV EAX,0x3
CMP EDX,0xf
JLE 0x00115840
CMP EDX,0x17
JLE 0x00115848
CMP EDX,0x1f
JG 0x00115838
MOV dword ptr [RDI],0x18
XOR EAX,EAX
RET
MOV dword ptr [RDI],0x20
XOR EAX,EAX
RET
MOV dword ptr [RDI],0x10
XOR EAX,EAX
RET
PUSH RAX
MOV EDX,0x2d2
LEA RSI,[0x19c000]
LEA RDI,[0x19c039]
CALL 0x00114270
(translation_unit "undefined8 rijndael_keysize(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }\n  iVar1 = *param_1;\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8 rijndael_keysize(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }\n  iVar1 = *param_1;\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "rijndael_keysize(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }\n  iVar1 = *param_1;\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }" { comment (expression_statement "crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);" (call_expression "crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2)" identifier (argument_list "("keysize != NULL","src/ciphers/aes/aes.c",0x2d2)" ( (string_literal ""keysize != NULL"" " string_content ") , (string_literal ""src/ciphers/aes/aes.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar2 = 3;" (assignment_expression "uVar2 = 3" identifier = number_literal) ;) (if_statement "if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }" if (parenthesized_expression "(0xf < iVar1)" ( (binary_expression "0xf < iVar1" number_literal < identifier) )) (compound_statement "{\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }" { (if_statement "if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 < 0x18)" ( (binary_expression "iVar1 < 0x18" identifier < number_literal) )) (compound_statement "{\n      *param_1 = 0x10;\n      return 0;\n    }" { (expression_statement "*param_1 = 0x10;" (assignment_expression "*param_1 = 0x10" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 < 0x20)" ( (binary_expression "iVar1 < 0x20" identifier < number_literal) )) (compound_statement "{\n      *param_1 = 0x18;\n      return 0;\n    }" { (expression_statement "*param_1 = 0x18;" (assignment_expression "*param_1 = 0x18" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_1 = 0x20;" (assignment_expression "*param_1 = 0x20" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int rijndael_keysize(int *keysize)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (keysize == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }\n  iVar1 = *keysize;\n  iVar2 = 3;\n  if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *keysize = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *keysize = 0x18;\n      return 0;\n    }\n    *keysize = 0x20;\n    iVar2 = 0;\n  }\n  return iVar2;\n}\n\n" (function_definition "int rijndael_keysize(int *keysize)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  if (keysize == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }\n  iVar1 = *keysize;\n  iVar2 = 3;\n  if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *keysize = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *keysize = 0x18;\n      return 0;\n    }\n    *keysize = 0x20;\n    iVar2 = 0;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "rijndael_keysize(int *keysize)" identifier (parameter_list "(int *keysize)" ( (parameter_declaration "int *keysize" primitive_type (pointer_declarator "*keysize" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  if (keysize == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }\n  iVar1 = *keysize;\n  iVar2 = 3;\n  if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *keysize = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *keysize = 0x18;\n      return 0;\n    }\n    *keysize = 0x20;\n    iVar2 = 0;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (keysize == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }" if (parenthesized_expression "(keysize == (int *)0x0)" ( (binary_expression "keysize == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }" { comment (expression_statement "crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);" (call_expression "crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2)" identifier (argument_list "("keysize != NULL","src/ciphers/aes/aes.c",0x2d2)" ( (string_literal ""keysize != NULL"" " string_content ") , (string_literal ""src/ciphers/aes/aes.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar1 = *keysize;" (assignment_expression "iVar1 = *keysize" identifier = (pointer_expression "*keysize" * identifier)) ;) (expression_statement "iVar2 = 3;" (assignment_expression "iVar2 = 3" identifier = number_literal) ;) (if_statement "if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *keysize = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *keysize = 0x18;\n      return 0;\n    }\n    *keysize = 0x20;\n    iVar2 = 0;\n  }" if (parenthesized_expression "(0xf < iVar1)" ( (binary_expression "0xf < iVar1" number_literal < identifier) )) (compound_statement "{\n    if (iVar1 < 0x18) {\n      *keysize = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *keysize = 0x18;\n      return 0;\n    }\n    *keysize = 0x20;\n    iVar2 = 0;\n  }" { (if_statement "if (iVar1 < 0x18) {\n      *keysize = 0x10;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 < 0x18)" ( (binary_expression "iVar1 < 0x18" identifier < number_literal) )) (compound_statement "{\n      *keysize = 0x10;\n      return 0;\n    }" { (expression_statement "*keysize = 0x10;" (assignment_expression "*keysize = 0x10" (pointer_expression "*keysize" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar1 < 0x20) {\n      *keysize = 0x18;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 < 0x20)" ( (binary_expression "iVar1 < 0x20" identifier < number_literal) )) (compound_statement "{\n      *keysize = 0x18;\n      return 0;\n    }" { (expression_statement "*keysize = 0x18;" (assignment_expression "*keysize = 0x18" (pointer_expression "*keysize" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*keysize = 0x20;" (assignment_expression "*keysize = 0x20" (pointer_expression "*keysize" * identifier) = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined8 rijndael_keysize(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }\n  iVar1 = *param_1;\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8 rijndael_keysize(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }\n  iVar1 = *param_1;\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "rijndael_keysize(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }\n  iVar1 = *param_1;\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }" { (expression_statement "crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);" (call_expression "crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2)" identifier (argument_list "("keysize != NULL","src/ciphers/aes/aes.c",0x2d2)" ( (string_literal ""keysize != NULL"" " string_content ") , (string_literal ""src/ciphers/aes/aes.c"" " string_content ") , number_literal ))) ;) })) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "uVar2 = 3;" (assignment_expression "uVar2 = 3" identifier = number_literal) ;) (if_statement "if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }" if (parenthesized_expression "(0xf < iVar1)" ( (binary_expression "0xf < iVar1" number_literal < identifier) )) (compound_statement "{\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }" { (if_statement "if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 < 0x18)" ( (binary_expression "iVar1 < 0x18" identifier < number_literal) )) (compound_statement "{\n      *param_1 = 0x10;\n      return 0;\n    }" { (expression_statement "*param_1 = 0x10;" (assignment_expression "*param_1 = 0x10" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }" if (parenthesized_expression "(iVar1 < 0x20)" ( (binary_expression "iVar1 < 0x20" identifier < number_literal) )) (compound_statement "{\n      *param_1 = 0x18;\n      return 0;\n    }" { (expression_statement "*param_1 = 0x18;" (assignment_expression "*param_1 = 0x18" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*param_1 = 0x20;" (assignment_expression "*param_1 = 0x20" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) })) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined8 rijndael_keysize(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }\n  iVar1 = *param_1;\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" (type_identifier "undefined8") (function_declarator "rijndael_keysize(int *param_1)" (identifier "rijndael_keysize") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }\n  iVar1 = *param_1;\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);\n  }" ({ "{") (expression_statement "crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);" (call_expression "crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2)" (identifier "crypt_argchk") (argument_list "("keysize != NULL","src/ciphers/aes/aes.c",0x2d2)" (( "(") (string_literal ""keysize != NULL"" (" """) (string_content "keysize != NULL") (" """)) (, ",") (string_literal ""src/ciphers/aes/aes.c"" (" """) (string_content "src/ciphers/aes/aes.c") (" """)) (, ",") (number_literal "0x2d2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "uVar2 = 3;" (assignment_expression "uVar2 = 3" (identifier "uVar2") (= "=") (number_literal "3")) (; ";")) (if_statement "if (0xf < iVar1) {\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }" (if "if") (parenthesized_expression "(0xf < iVar1)" (( "(") (binary_expression "0xf < iVar1" (number_literal "0xf") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }\n    if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }\n    *param_1 = 0x20;\n    uVar2 = 0;\n  }" ({ "{") (if_statement "if (iVar1 < 0x18) {\n      *param_1 = 0x10;\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 < 0x18)" (( "(") (binary_expression "iVar1 < 0x18" (identifier "iVar1") (< "<") (number_literal "0x18")) () ")")) (compound_statement "{\n      *param_1 = 0x10;\n      return 0;\n    }" ({ "{") (expression_statement "*param_1 = 0x10;" (assignment_expression "*param_1 = 0x10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0x10")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (iVar1 < 0x20) {\n      *param_1 = 0x18;\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 < 0x20)" (( "(") (binary_expression "iVar1 < 0x20" (identifier "iVar1") (< "<") (number_literal "0x20")) () ")")) (compound_statement "{\n      *param_1 = 0x18;\n      return 0;\n    }" ({ "{") (expression_statement "*param_1 = 0x18;" (assignment_expression "*param_1 = 0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0x18")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*param_1 = 0x20;" (assignment_expression "*param_1 = 0x20" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0x20")) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

int function_1(int *var_1)

{
  int var_3;
  int iVar2;
  
  if (var_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);
  }
  var_3 = *var_1;
  iVar2 = 3;
  if (0xf < var_3) {
    if (var_3 < 0x18) {
      *var_1 = 0x10;
      return 0;
    }
    if (var_3 < 0x20) {
      *var_1 = 0x18;
      return 0;
    }
    *var_1 = 0x20;
    iVar2 = 0;
  }
  return iVar2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))))

undefined8 MASKED(int *param_1)

{
  int iVar1;
  undefined8 uVar2;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    crypt_argchk("keysize != NULL","src/ciphers/aes/aes.c",0x2d2);
  }
  iVar1 = *param_1;
  uVar2 = 3;
  if (0xf < iVar1) {
    if (iVar1 < 0x18) {
      *param_1 = 0x10;
      return 0;
    }
    if (iVar1 < 0x20) {
      *param_1 = 0x18;
      return 0;
    }
    *param_1 = 0x20;
    uVar2 = 0;
  }
  return uVar2;
}

