
int rc6_keysize(int *keysize)

{
  int iVar1;
  
  if (keysize != (int *)0x0) {
    iVar1 = 3;
    if ((7 < *keysize) && (iVar1 = 0, 0x80 < *keysize)) {
      *keysize = 0x80;
    }
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);
}



undefined8 rc6_keysize(int *param_1)

{
  undefined8 uVar1;
  
  if (param_1 != (int *)0x0) {
    uVar1 = 3;
    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {
      *param_1 = 0x80;
    }
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);
}


TEST RDI,RDI
JZ 0x001252f2
MOV EDX,dword ptr [RDI]
MOV EAX,0x3
CMP EDX,0x7
JLE 0x001252f1
XOR EAX,EAX
CMP EDX,0x80
JLE 0x001252f1
MOV dword ptr [RDI],0x80
RET
PUSH RAX
MOV EDX,0x13c
LEA RSI,[0x1a85a8]
LEA RDI,[0x18d039]
CALL 0x00114270
(translation_unit "undefined8 rc6_keysize(int *param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 != (int *)0x0) {\n    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);\n}\n\n" (function_definition "undefined8 rc6_keysize(int *param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 != (int *)0x0) {\n    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);\n}" type_identifier (function_declarator "rc6_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  undefined8 uVar1;\n  \n  if (param_1 != (int *)0x0) {\n    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != (int *)0x0) {\n    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\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    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\n  }" { (expression_statement "uVar1 = 3;" (assignment_expression "uVar1 = 3" identifier = number_literal) ;) (if_statement "if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }" if (parenthesized_expression "((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1))" ( (binary_expression "(7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)" (parenthesized_expression "(7 < *param_1)" ( (binary_expression "7 < *param_1" number_literal < (pointer_expression "*param_1" * identifier)) )) && (parenthesized_expression "(uVar1 = 0, 0x80 < *param_1)" ( (comma_expression "uVar1 = 0, 0x80 < *param_1" (assignment_expression "uVar1 = 0" identifier = number_literal) , (binary_expression "0x80 < *param_1" number_literal < (pointer_expression "*param_1" * identifier))) ))) )) (compound_statement "{\n      *param_1 = 0x80;\n    }" { (expression_statement "*param_1 = 0x80;" (assignment_expression "*param_1 = 0x80" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })) comment (expression_statement "crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);" (call_expression "crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c)" identifier (argument_list "("keysize != NULL","src/ciphers/rc6.c",0x13c)" ( (string_literal ""keysize != NULL"" " string_content ") , (string_literal ""src/ciphers/rc6.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "int rc6_keysize(int *keysize)\n\n{\n  int iVar1;\n  \n  if (keysize != (int *)0x0) {\n    iVar1 = 3;\n    if ((7 < *keysize) && (iVar1 = 0, 0x80 < *keysize)) {\n      *keysize = 0x80;\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);\n}\n\n" (function_definition "int rc6_keysize(int *keysize)\n\n{\n  int iVar1;\n  \n  if (keysize != (int *)0x0) {\n    iVar1 = 3;\n    if ((7 < *keysize) && (iVar1 = 0, 0x80 < *keysize)) {\n      *keysize = 0x80;\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);\n}" primitive_type (function_declarator "rc6_keysize(int *keysize)" identifier (parameter_list "(int *keysize)" ( (parameter_declaration "int *keysize" primitive_type (pointer_declarator "*keysize" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (keysize != (int *)0x0) {\n    iVar1 = 3;\n    if ((7 < *keysize) && (iVar1 = 0, 0x80 < *keysize)) {\n      *keysize = 0x80;\n    }\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (keysize != (int *)0x0) {\n    iVar1 = 3;\n    if ((7 < *keysize) && (iVar1 = 0, 0x80 < *keysize)) {\n      *keysize = 0x80;\n    }\n    return iVar1;\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    iVar1 = 3;\n    if ((7 < *keysize) && (iVar1 = 0, 0x80 < *keysize)) {\n      *keysize = 0x80;\n    }\n    return iVar1;\n  }" { (expression_statement "iVar1 = 3;" (assignment_expression "iVar1 = 3" identifier = number_literal) ;) (if_statement "if ((7 < *keysize) && (iVar1 = 0, 0x80 < *keysize)) {\n      *keysize = 0x80;\n    }" if (parenthesized_expression "((7 < *keysize) && (iVar1 = 0, 0x80 < *keysize))" ( (binary_expression "(7 < *keysize) && (iVar1 = 0, 0x80 < *keysize)" (parenthesized_expression "(7 < *keysize)" ( (binary_expression "7 < *keysize" number_literal < (pointer_expression "*keysize" * identifier)) )) && (parenthesized_expression "(iVar1 = 0, 0x80 < *keysize)" ( (comma_expression "iVar1 = 0, 0x80 < *keysize" (assignment_expression "iVar1 = 0" identifier = number_literal) , (binary_expression "0x80 < *keysize" number_literal < (pointer_expression "*keysize" * identifier))) ))) )) (compound_statement "{\n      *keysize = 0x80;\n    }" { (expression_statement "*keysize = 0x80;" (assignment_expression "*keysize = 0x80" (pointer_expression "*keysize" * identifier) = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);" (call_expression "crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c)" identifier (argument_list "("keysize != NULL","src/ciphers/rc6.c",0x13c)" ( (string_literal ""keysize != NULL"" " string_content ") , (string_literal ""src/ciphers/rc6.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit "undefined8 rc6_keysize(int *param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 != (int *)0x0) {\n    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\n  }\n                    \n  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);\n}\n\n" (function_definition "undefined8 rc6_keysize(int *param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 != (int *)0x0) {\n    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\n  }\n                    \n  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);\n}" type_identifier (function_declarator "rc6_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  undefined8 uVar1;\n  \n  if (param_1 != (int *)0x0) {\n    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\n  }\n                    \n  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != (int *)0x0) {\n    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\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    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\n  }" { (expression_statement "uVar1 = 3;" (assignment_expression "uVar1 = 3" identifier = number_literal) ;) (if_statement "if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }" if (parenthesized_expression "((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1))" ( (binary_expression "(7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)" (parenthesized_expression "(7 < *param_1)" ( (binary_expression "7 < *param_1" number_literal < (pointer_expression "*param_1" * identifier)) )) && (parenthesized_expression "(uVar1 = 0, 0x80 < *param_1)" ( (comma_expression "uVar1 = 0, 0x80 < *param_1" (assignment_expression "uVar1 = 0" identifier = number_literal) , (binary_expression "0x80 < *param_1" number_literal < (pointer_expression "*param_1" * identifier))) ))) )) (compound_statement "{\n      *param_1 = 0x80;\n    }" { (expression_statement "*param_1 = 0x80;" (assignment_expression "*param_1 = 0x80" (pointer_expression "*param_1" * identifier) = number_literal) ;) })) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);" (call_expression "crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c)" identifier (argument_list "("keysize != NULL","src/ciphers/rc6.c",0x13c)" ( (string_literal ""keysize != NULL"" " string_content ") , (string_literal ""src/ciphers/rc6.c"" " string_content ") , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression LIT < (pointer_expression * IDENT))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT ))) ;) })))
(function_definition "undefined8 rc6_keysize(int *param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (param_1 != (int *)0x0) {\n    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\n  }\n                    \n  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);\n}" (type_identifier "undefined8") (function_declarator "rc6_keysize(int *param_1)" (identifier "rc6_keysize") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (param_1 != (int *)0x0) {\n    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\n  }\n                    \n  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (if_statement "if (param_1 != (int *)0x0) {\n    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\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    uVar1 = 3;\n    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = 3;" (assignment_expression "uVar1 = 3" (identifier "uVar1") (= "=") (number_literal "3")) (; ";")) (if_statement "if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {\n      *param_1 = 0x80;\n    }" (if "if") (parenthesized_expression "((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1))" (( "(") (binary_expression "(7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)" (parenthesized_expression "(7 < *param_1)" (( "(") (binary_expression "7 < *param_1" (number_literal "7") (< "<") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) (&& "&&") (parenthesized_expression "(uVar1 = 0, 0x80 < *param_1)" (( "(") (comma_expression "uVar1 = 0, 0x80 < *param_1" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (, ",") (binary_expression "0x80 < *param_1" (number_literal "0x80") (< "<") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) () ")"))) () ")")) (compound_statement "{\n      *param_1 = 0x80;\n    }" ({ "{") (expression_statement "*param_1 = 0x80;" (assignment_expression "*param_1 = 0x80" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0x80")) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);" (call_expression "crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c)" (identifier "crypt_argchk") (argument_list "("keysize != NULL","src/ciphers/rc6.c",0x13c)" (( "(") (string_literal ""keysize != NULL"" (" """) (string_content "keysize != NULL") (" """)) (, ",") (string_literal ""src/ciphers/rc6.c"" (" """) (string_content "src/ciphers/rc6.c") (" """)) (, ",") (number_literal "0x13c") () ")"))) (; ";")) (} "}")))

int function_1(int *var_1)

{
  int iVar1;
  
  if (var_1 != (int *)0x0) {
    iVar1 = 3;
    if ((7 < *var_1) && (iVar1 = 0, 0x80 < *var_1)) {
      *var_1 = 0x80;
    }
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_2("keysize != NULL","src/ciphers/rc6.c",0x13c);
}


(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: (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 (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (pointer_expression argument: (identifier)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (number_literal) right: (pointer_expression argument: (identifier))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal)))))))

undefined8 MASKED(int *param_1)

{
  undefined8 uVar1;
  
  if (param_1 != (int *)0x0) {
    uVar1 = 3;
    if ((7 < *param_1) && (uVar1 = 0, 0x80 < *param_1)) {
      *param_1 = 0x80;
    }
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  crypt_argchk("keysize != NULL","src/ciphers/rc6.c",0x13c);
}

