
/* WARNING: Unknown calling convention */

int camellia_keysize(int *keysize)

{
  int iVar1;
  int iVar2;
  
  iVar1 = *keysize;
  if (0x1f < iVar1) {
    *keysize = 0x20;
    return 0;
  }
  if (0x17 < iVar1) {
    *keysize = 0x18;
    return 0;
  }
  iVar2 = 3;
  if (0xf < iVar1) {
    *keysize = 0x10;
    iVar2 = 0;
  }
  return iVar2;
}



undefined8 camellia_keysize(int *param_1)

{
  int iVar1;
  undefined8 uVar2;
  
  iVar1 = *param_1;
  if (0x1f < iVar1) {
    *param_1 = 0x20;
    return 0;
  }
  if (0x17 < iVar1) {
    *param_1 = 0x18;
    return 0;
  }
  uVar2 = 3;
  if (0xf < iVar1) {
    *param_1 = 0x10;
    uVar2 = 0;
  }
  return uVar2;
}


MOV EDX,dword ptr [RDI]
CMP EDX,0x1f
JLE 0x00119700
MOV dword ptr [RDI],0x20
XOR EAX,EAX
RET
CMP EDX,0x17
JLE 0x00119710
MOV dword ptr [RDI],0x18
XOR EAX,EAX
RET
MOV EAX,0x3
CMP EDX,0xf
JLE 0x00119722
MOV dword ptr [RDI],0x10
XOR EAX,EAX
RET
(translation_unit "undefined8 camellia_keysize(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = *param_1;\n  if (0x1f < iVar1) {\n    *param_1 = 0x20;\n    return 0;\n  }\n  if (0x17 < iVar1) {\n    *param_1 = 0x18;\n    return 0;\n  }\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8 camellia_keysize(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = *param_1;\n  if (0x1f < iVar1) {\n    *param_1 = 0x20;\n    return 0;\n  }\n  if (0x17 < iVar1) {\n    *param_1 = 0x18;\n    return 0;\n  }\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "camellia_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  iVar1 = *param_1;\n  if (0x1f < iVar1) {\n    *param_1 = 0x20;\n    return 0;\n  }\n  if (0x17 < iVar1) {\n    *param_1 = 0x18;\n    return 0;\n  }\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (0x1f < iVar1) {\n    *param_1 = 0x20;\n    return 0;\n  }" if (parenthesized_expression "(0x1f < iVar1)" ( (binary_expression "0x1f < iVar1" number_literal < identifier) )) (compound_statement "{\n    *param_1 = 0x20;\n    return 0;\n  }" { (expression_statement "*param_1 = 0x20;" (assignment_expression "*param_1 = 0x20" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (0x17 < iVar1) {\n    *param_1 = 0x18;\n    return 0;\n  }" if (parenthesized_expression "(0x17 < iVar1)" ( (binary_expression "0x17 < iVar1" number_literal < identifier) )) (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 "uVar2 = 3;" (assignment_expression "uVar2 = 3" identifier = number_literal) ;) (if_statement "if (0xf < iVar1) {\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }" if (parenthesized_expression "(0xf < iVar1)" ( (binary_expression "0xf < iVar1" number_literal < identifier) )) (compound_statement "{\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }" { (expression_statement "*param_1 = 0x10;" (assignment_expression "*param_1 = 0x10" (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 "/* WARNING: Unknown calling convention */\n\nint camellia_keysize(int *keysize)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *keysize;\n  if (0x1f < iVar1) {\n    *keysize = 0x20;\n    return 0;\n  }\n  if (0x17 < iVar1) {\n    *keysize = 0x18;\n    return 0;\n  }\n  iVar2 = 3;\n  if (0xf < iVar1) {\n    *keysize = 0x10;\n    iVar2 = 0;\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int camellia_keysize(int *keysize)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = *keysize;\n  if (0x1f < iVar1) {\n    *keysize = 0x20;\n    return 0;\n  }\n  if (0x17 < iVar1) {\n    *keysize = 0x18;\n    return 0;\n  }\n  iVar2 = 3;\n  if (0xf < iVar1) {\n    *keysize = 0x10;\n    iVar2 = 0;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "camellia_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  iVar1 = *keysize;\n  if (0x1f < iVar1) {\n    *keysize = 0x20;\n    return 0;\n  }\n  if (0x17 < iVar1) {\n    *keysize = 0x18;\n    return 0;\n  }\n  iVar2 = 3;\n  if (0xf < iVar1) {\n    *keysize = 0x10;\n    iVar2 = 0;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = *keysize;" (assignment_expression "iVar1 = *keysize" identifier = (pointer_expression "*keysize" * identifier)) ;) (if_statement "if (0x1f < iVar1) {\n    *keysize = 0x20;\n    return 0;\n  }" if (parenthesized_expression "(0x1f < iVar1)" ( (binary_expression "0x1f < iVar1" number_literal < identifier) )) (compound_statement "{\n    *keysize = 0x20;\n    return 0;\n  }" { (expression_statement "*keysize = 0x20;" (assignment_expression "*keysize = 0x20" (pointer_expression "*keysize" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (0x17 < iVar1) {\n    *keysize = 0x18;\n    return 0;\n  }" if (parenthesized_expression "(0x17 < iVar1)" ( (binary_expression "0x17 < iVar1" number_literal < identifier) )) (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 "iVar2 = 3;" (assignment_expression "iVar2 = 3" identifier = number_literal) ;) (if_statement "if (0xf < iVar1) {\n    *keysize = 0x10;\n    iVar2 = 0;\n  }" if (parenthesized_expression "(0xf < iVar1)" ( (binary_expression "0xf < iVar1" number_literal < identifier) )) (compound_statement "{\n    *keysize = 0x10;\n    iVar2 = 0;\n  }" { (expression_statement "*keysize = 0x10;" (assignment_expression "*keysize = 0x10" (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 camellia_keysize(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = *param_1;\n  if (0x1f < iVar1) {\n    *param_1 = 0x20;\n    return 0;\n  }\n  if (0x17 < iVar1) {\n    *param_1 = 0x18;\n    return 0;\n  }\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8 camellia_keysize(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = *param_1;\n  if (0x1f < iVar1) {\n    *param_1 = 0x20;\n    return 0;\n  }\n  if (0x17 < iVar1) {\n    *param_1 = 0x18;\n    return 0;\n  }\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "camellia_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  iVar1 = *param_1;\n  if (0x1f < iVar1) {\n    *param_1 = 0x20;\n    return 0;\n  }\n  if (0x17 < iVar1) {\n    *param_1 = 0x18;\n    return 0;\n  }\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (0x1f < iVar1) {\n    *param_1 = 0x20;\n    return 0;\n  }" if (parenthesized_expression "(0x1f < iVar1)" ( (binary_expression "0x1f < iVar1" number_literal < identifier) )) (compound_statement "{\n    *param_1 = 0x20;\n    return 0;\n  }" { (expression_statement "*param_1 = 0x20;" (assignment_expression "*param_1 = 0x20" (pointer_expression "*param_1" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (0x17 < iVar1) {\n    *param_1 = 0x18;\n    return 0;\n  }" if (parenthesized_expression "(0x17 < iVar1)" ( (binary_expression "0x17 < iVar1" number_literal < identifier) )) (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 "uVar2 = 3;" (assignment_expression "uVar2 = 3" identifier = number_literal) ;) (if_statement "if (0xf < iVar1) {\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }" if (parenthesized_expression "(0xf < iVar1)" ( (binary_expression "0xf < iVar1" number_literal < identifier) )) (compound_statement "{\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }" { (expression_statement "*param_1 = 0x10;" (assignment_expression "*param_1 = 0x10" (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 ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined8 camellia_keysize(int *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  \n  iVar1 = *param_1;\n  if (0x1f < iVar1) {\n    *param_1 = 0x20;\n    return 0;\n  }\n  if (0x17 < iVar1) {\n    *param_1 = 0x18;\n    return 0;\n  }\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" (type_identifier "undefined8") (function_declarator "camellia_keysize(int *param_1)" (identifier "camellia_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  iVar1 = *param_1;\n  if (0x1f < iVar1) {\n    *param_1 = 0x20;\n    return 0;\n  }\n  if (0x17 < iVar1) {\n    *param_1 = 0x18;\n    return 0;\n  }\n  uVar2 = 3;\n  if (0xf < iVar1) {\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (0x1f < iVar1) {\n    *param_1 = 0x20;\n    return 0;\n  }" (if "if") (parenthesized_expression "(0x1f < iVar1)" (( "(") (binary_expression "0x1f < iVar1" (number_literal "0x1f") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    *param_1 = 0x20;\n    return 0;\n  }" ({ "{") (expression_statement "*param_1 = 0x20;" (assignment_expression "*param_1 = 0x20" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0x20")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (0x17 < iVar1) {\n    *param_1 = 0x18;\n    return 0;\n  }" (if "if") (parenthesized_expression "(0x17 < iVar1)" (( "(") (binary_expression "0x17 < iVar1" (number_literal "0x17") (< "<") (identifier "iVar1")) () ")")) (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 "uVar2 = 3;" (assignment_expression "uVar2 = 3" (identifier "uVar2") (= "=") (number_literal "3")) (; ";")) (if_statement "if (0xf < iVar1) {\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }" (if "if") (parenthesized_expression "(0xf < iVar1)" (( "(") (binary_expression "0xf < iVar1" (number_literal "0xf") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    *param_1 = 0x10;\n    uVar2 = 0;\n  }" ({ "{") (expression_statement "*param_1 = 0x10;" (assignment_expression "*param_1 = 0x10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0x10")) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(int *keysize)

{
  int var_1;
  int iVar2;
  
  var_1 = *keysize;
  if (0x1f < var_1) {
    *keysize = 0x20;
    return 0;
  }
  if (0x17 < var_1) {
    *keysize = 0x18;
    return 0;
  }
  iVar2 = 3;
  if (0xf < var_1) {
    *keysize = 0x10;
    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)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) 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: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (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;
  
  iVar1 = *param_1;
  if (0x1f < iVar1) {
    *param_1 = 0x20;
    return 0;
  }
  if (0x17 < iVar1) {
    *param_1 = 0x18;
    return 0;
  }
  uVar2 = 3;
  if (0xf < iVar1) {
    *param_1 = 0x10;
    uVar2 = 0;
  }
  return uVar2;
}

