
int hue_to_rgb(int n1,int n2,int hue)

{
  bool bVar1;
  int iVar2;
  
  if (hue < 0) {
    hue = hue + 100;
  }
  else {
    bVar1 = hue < 0x10;
    if (hue < 0x65) goto LAB_002ac1a8;
    hue = hue + -100;
  }
  bVar1 = hue < 0x10;
LAB_002ac1a8:
  if (bVar1) {
    iVar2 = (n2 - n1) * hue;
  }
  else {
    if (hue < 0x32) {
      return n2;
    }
    if (0x41 < hue) {
      return n1;
    }
    iVar2 = (n2 - n1) * (0x42 - hue);
  }
  if (-1 < iVar2 + 8) {
    return (iVar2 + 8 >> 4) + n1;
  }
  return (iVar2 + 0x17 >> 4) + n1;
}



int FUN_002ac190(int param_1,int param_2,int param_3)

{
  bool bVar1;
  
  if (param_3 < 0) {
    param_3 = param_3 + 100;
  }
  else {
    bVar1 = param_3 < 0x10;
    if (param_3 < 0x65) goto LAB_002ac1a8;
    param_3 = param_3 + -100;
  }
  bVar1 = param_3 < 0x10;
LAB_002ac1a8:
  if (bVar1) {
    param_3 = (param_2 - param_1) * param_3;
  }
  else {
    if (param_3 < 0x32) {
      return param_2;
    }
    if (0x41 < param_3) {
      return param_1;
    }
    param_3 = (param_2 - param_1) * (0x42 - param_3);
  }
  if (-1 < param_3 + 8) {
    return (param_3 + 8 >> 4) + param_1;
  }
  return (param_3 + 0x17 >> 4) + param_1;
}


bltz a2,0x002ac214
_slti v0,a2,0x65
bne v0,zero,0x002ac1a8
_slti v0,a2,0x10
addiu a2,a2,-0x64
slti v0,a2,0x10
bne v0,zero,0x002ac1f0
_slti v0,a2,0x32
bne v0,zero,0x002ac1e8
_nop
slti v0,a2,0x42
beq v0,zero,0x002ac21c
_subu a1,a1,a0
li v0,0x42
subu a2,v0,a2
mul a1,a1,a2
addiu v1,a1,0x8
bltz v1,0x002ac204
_sra v1,v1,0x4
addu v0,v1,a0
jr ra
_nop
jr ra
_or v0,a1,zero
subu a1,a1,a0
mul a1,a1,a2
addiu v1,a1,0x8
bgez v1,0x002ac1dc
_sra v1,v1,0x4
addiu v1,a1,0x17
sra v1,v1,0x4
jr ra
_addu v0,v1,a0
b 0x002ac1a4
_addiu a2,a2,0x64
jr ra
_or v0,a0,zero
(translation_unit "int FUN_002ac190(int param_1,int param_2,int param_3)\n\n{\n  bool bVar1;\n  \n  if (param_3 < 0) {\n    param_3 = param_3 + 100;\n  }\n  else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }\n  bVar1 = param_3 < 0x10;\nLAB_002ac1a8:\n  if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }\n  if (-1 < param_3 + 8) {\n    return (param_3 + 8 >> 4) + param_1;\n  }\n  return (param_3 + 0x17 >> 4) + param_1;\n}\n\n" (function_definition "int FUN_002ac190(int param_1,int param_2,int param_3)\n\n{\n  bool bVar1;\n  \n  if (param_3 < 0) {\n    param_3 = param_3 + 100;\n  }\n  else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }\n  bVar1 = param_3 < 0x10;\nLAB_002ac1a8:\n  if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }\n  if (-1 < param_3 + 8) {\n    return (param_3 + 8 >> 4) + param_1;\n  }\n  return (param_3 + 0x17 >> 4) + param_1;\n}" primitive_type (function_declarator "FUN_002ac190(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  \n  if (param_3 < 0) {\n    param_3 = param_3 + 100;\n  }\n  else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }\n  bVar1 = param_3 < 0x10;\nLAB_002ac1a8:\n  if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }\n  if (-1 < param_3 + 8) {\n    return (param_3 + 8 >> 4) + param_1;\n  }\n  return (param_3 + 0x17 >> 4) + param_1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (if_statement "if (param_3 < 0) {\n    param_3 = param_3 + 100;\n  }\n  else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n    param_3 = param_3 + 100;\n  }" { (expression_statement "param_3 = param_3 + 100;" (assignment_expression "param_3 = param_3 + 100" identifier = (binary_expression "param_3 + 100" identifier + number_literal)) ;) }) (else_clause "else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }" else (compound_statement "{\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }" { (expression_statement "bVar1 = param_3 < 0x10;" (assignment_expression "bVar1 = param_3 < 0x10" identifier = (binary_expression "param_3 < 0x10" identifier < number_literal)) ;) (if_statement "if (param_3 < 0x65) goto LAB_002ac1a8;" if (parenthesized_expression "(param_3 < 0x65)" ( (binary_expression "param_3 < 0x65" identifier < number_literal) )) (goto_statement "goto LAB_002ac1a8;" goto statement_identifier ;)) (expression_statement "param_3 = param_3 + -100;" (assignment_expression "param_3 = param_3 + -100" identifier = (binary_expression "param_3 + -100" identifier + number_literal)) ;) }))) (expression_statement "bVar1 = param_3 < 0x10;" (assignment_expression "bVar1 = param_3 < 0x10" identifier = (binary_expression "param_3 < 0x10" identifier < number_literal)) ;) (labeled_statement "LAB_002ac1a8:\n  if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" statement_identifier : (if_statement "if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    param_3 = (param_2 - param_1) * param_3;\n  }" { (expression_statement "param_3 = (param_2 - param_1) * param_3;" (assignment_expression "param_3 = (param_2 - param_1) * param_3" identifier = (binary_expression "(param_2 - param_1) * param_3" (parenthesized_expression "(param_2 - param_1)" ( (binary_expression "param_2 - param_1" identifier - identifier) )) * identifier)) ;) }) (else_clause "else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" else (compound_statement "{\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" { (if_statement "if (param_3 < 0x32) {\n      return param_2;\n    }" if (parenthesized_expression "(param_3 < 0x32)" ( (binary_expression "param_3 < 0x32" identifier < number_literal) )) (compound_statement "{\n      return param_2;\n    }" { (return_statement "return param_2;" return identifier ;) })) (if_statement "if (0x41 < param_3) {\n      return param_1;\n    }" if (parenthesized_expression "(0x41 < param_3)" ( (binary_expression "0x41 < param_3" number_literal < identifier) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_3 = (param_2 - param_1) * (0x42 - param_3);" (assignment_expression "param_3 = (param_2 - param_1) * (0x42 - param_3)" identifier = (binary_expression "(param_2 - param_1) * (0x42 - param_3)" (parenthesized_expression "(param_2 - param_1)" ( (binary_expression "param_2 - param_1" identifier - identifier) )) * (parenthesized_expression "(0x42 - param_3)" ( (binary_expression "0x42 - param_3" number_literal - identifier) )))) ;) })))) (if_statement "if (-1 < param_3 + 8) {\n    return (param_3 + 8 >> 4) + param_1;\n  }" if (parenthesized_expression "(-1 < param_3 + 8)" ( (binary_expression "-1 < param_3 + 8" number_literal < (binary_expression "param_3 + 8" identifier + number_literal)) )) (compound_statement "{\n    return (param_3 + 8 >> 4) + param_1;\n  }" { (return_statement "return (param_3 + 8 >> 4) + param_1;" return (binary_expression "(param_3 + 8 >> 4) + param_1" (parenthesized_expression "(param_3 + 8 >> 4)" ( (binary_expression "param_3 + 8 >> 4" (binary_expression "param_3 + 8" identifier + number_literal) >> number_literal) )) + identifier) ;) })) (return_statement "return (param_3 + 0x17 >> 4) + param_1;" return (binary_expression "(param_3 + 0x17 >> 4) + param_1" (parenthesized_expression "(param_3 + 0x17 >> 4)" ( (binary_expression "param_3 + 0x17 >> 4" (binary_expression "param_3 + 0x17" identifier + number_literal) >> number_literal) )) + identifier) ;) })))
(translation_unit "int hue_to_rgb(int n1,int n2,int hue)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if (hue < 0) {\n    hue = hue + 100;\n  }\n  else {\n    bVar1 = hue < 0x10;\n    if (hue < 0x65) goto LAB_002ac1a8;\n    hue = hue + -100;\n  }\n  bVar1 = hue < 0x10;\nLAB_002ac1a8:\n  if (bVar1) {\n    iVar2 = (n2 - n1) * hue;\n  }\n  else {\n    if (hue < 0x32) {\n      return n2;\n    }\n    if (0x41 < hue) {\n      return n1;\n    }\n    iVar2 = (n2 - n1) * (0x42 - hue);\n  }\n  if (-1 < iVar2 + 8) {\n    return (iVar2 + 8 >> 4) + n1;\n  }\n  return (iVar2 + 0x17 >> 4) + n1;\n}\n\n" (function_definition "int hue_to_rgb(int n1,int n2,int hue)\n\n{\n  bool bVar1;\n  int iVar2;\n  \n  if (hue < 0) {\n    hue = hue + 100;\n  }\n  else {\n    bVar1 = hue < 0x10;\n    if (hue < 0x65) goto LAB_002ac1a8;\n    hue = hue + -100;\n  }\n  bVar1 = hue < 0x10;\nLAB_002ac1a8:\n  if (bVar1) {\n    iVar2 = (n2 - n1) * hue;\n  }\n  else {\n    if (hue < 0x32) {\n      return n2;\n    }\n    if (0x41 < hue) {\n      return n1;\n    }\n    iVar2 = (n2 - n1) * (0x42 - hue);\n  }\n  if (-1 < iVar2 + 8) {\n    return (iVar2 + 8 >> 4) + n1;\n  }\n  return (iVar2 + 0x17 >> 4) + n1;\n}" primitive_type (function_declarator "hue_to_rgb(int n1,int n2,int hue)" identifier (parameter_list "(int n1,int n2,int hue)" ( (parameter_declaration "int n1" primitive_type identifier) , (parameter_declaration "int n2" primitive_type identifier) , (parameter_declaration "int hue" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  int iVar2;\n  \n  if (hue < 0) {\n    hue = hue + 100;\n  }\n  else {\n    bVar1 = hue < 0x10;\n    if (hue < 0x65) goto LAB_002ac1a8;\n    hue = hue + -100;\n  }\n  bVar1 = hue < 0x10;\nLAB_002ac1a8:\n  if (bVar1) {\n    iVar2 = (n2 - n1) * hue;\n  }\n  else {\n    if (hue < 0x32) {\n      return n2;\n    }\n    if (0x41 < hue) {\n      return n1;\n    }\n    iVar2 = (n2 - n1) * (0x42 - hue);\n  }\n  if (-1 < iVar2 + 8) {\n    return (iVar2 + 8 >> 4) + n1;\n  }\n  return (iVar2 + 0x17 >> 4) + n1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (if_statement "if (hue < 0) {\n    hue = hue + 100;\n  }\n  else {\n    bVar1 = hue < 0x10;\n    if (hue < 0x65) goto LAB_002ac1a8;\n    hue = hue + -100;\n  }" if (parenthesized_expression "(hue < 0)" ( (binary_expression "hue < 0" identifier < number_literal) )) (compound_statement "{\n    hue = hue + 100;\n  }" { (expression_statement "hue = hue + 100;" (assignment_expression "hue = hue + 100" identifier = (binary_expression "hue + 100" identifier + number_literal)) ;) }) (else_clause "else {\n    bVar1 = hue < 0x10;\n    if (hue < 0x65) goto LAB_002ac1a8;\n    hue = hue + -100;\n  }" else (compound_statement "{\n    bVar1 = hue < 0x10;\n    if (hue < 0x65) goto LAB_002ac1a8;\n    hue = hue + -100;\n  }" { (expression_statement "bVar1 = hue < 0x10;" (assignment_expression "bVar1 = hue < 0x10" identifier = (binary_expression "hue < 0x10" identifier < number_literal)) ;) (if_statement "if (hue < 0x65) goto LAB_002ac1a8;" if (parenthesized_expression "(hue < 0x65)" ( (binary_expression "hue < 0x65" identifier < number_literal) )) (goto_statement "goto LAB_002ac1a8;" goto statement_identifier ;)) (expression_statement "hue = hue + -100;" (assignment_expression "hue = hue + -100" identifier = (binary_expression "hue + -100" identifier + number_literal)) ;) }))) (expression_statement "bVar1 = hue < 0x10;" (assignment_expression "bVar1 = hue < 0x10" identifier = (binary_expression "hue < 0x10" identifier < number_literal)) ;) (labeled_statement "LAB_002ac1a8:\n  if (bVar1) {\n    iVar2 = (n2 - n1) * hue;\n  }\n  else {\n    if (hue < 0x32) {\n      return n2;\n    }\n    if (0x41 < hue) {\n      return n1;\n    }\n    iVar2 = (n2 - n1) * (0x42 - hue);\n  }" statement_identifier : (if_statement "if (bVar1) {\n    iVar2 = (n2 - n1) * hue;\n  }\n  else {\n    if (hue < 0x32) {\n      return n2;\n    }\n    if (0x41 < hue) {\n      return n1;\n    }\n    iVar2 = (n2 - n1) * (0x42 - hue);\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    iVar2 = (n2 - n1) * hue;\n  }" { (expression_statement "iVar2 = (n2 - n1) * hue;" (assignment_expression "iVar2 = (n2 - n1) * hue" identifier = (binary_expression "(n2 - n1) * hue" (parenthesized_expression "(n2 - n1)" ( (binary_expression "n2 - n1" identifier - identifier) )) * identifier)) ;) }) (else_clause "else {\n    if (hue < 0x32) {\n      return n2;\n    }\n    if (0x41 < hue) {\n      return n1;\n    }\n    iVar2 = (n2 - n1) * (0x42 - hue);\n  }" else (compound_statement "{\n    if (hue < 0x32) {\n      return n2;\n    }\n    if (0x41 < hue) {\n      return n1;\n    }\n    iVar2 = (n2 - n1) * (0x42 - hue);\n  }" { (if_statement "if (hue < 0x32) {\n      return n2;\n    }" if (parenthesized_expression "(hue < 0x32)" ( (binary_expression "hue < 0x32" identifier < number_literal) )) (compound_statement "{\n      return n2;\n    }" { (return_statement "return n2;" return identifier ;) })) (if_statement "if (0x41 < hue) {\n      return n1;\n    }" if (parenthesized_expression "(0x41 < hue)" ( (binary_expression "0x41 < hue" number_literal < identifier) )) (compound_statement "{\n      return n1;\n    }" { (return_statement "return n1;" return identifier ;) })) (expression_statement "iVar2 = (n2 - n1) * (0x42 - hue);" (assignment_expression "iVar2 = (n2 - n1) * (0x42 - hue)" identifier = (binary_expression "(n2 - n1) * (0x42 - hue)" (parenthesized_expression "(n2 - n1)" ( (binary_expression "n2 - n1" identifier - identifier) )) * (parenthesized_expression "(0x42 - hue)" ( (binary_expression "0x42 - hue" number_literal - identifier) )))) ;) })))) (if_statement "if (-1 < iVar2 + 8) {\n    return (iVar2 + 8 >> 4) + n1;\n  }" if (parenthesized_expression "(-1 < iVar2 + 8)" ( (binary_expression "-1 < iVar2 + 8" number_literal < (binary_expression "iVar2 + 8" identifier + number_literal)) )) (compound_statement "{\n    return (iVar2 + 8 >> 4) + n1;\n  }" { (return_statement "return (iVar2 + 8 >> 4) + n1;" return (binary_expression "(iVar2 + 8 >> 4) + n1" (parenthesized_expression "(iVar2 + 8 >> 4)" ( (binary_expression "iVar2 + 8 >> 4" (binary_expression "iVar2 + 8" identifier + number_literal) >> number_literal) )) + identifier) ;) })) (return_statement "return (iVar2 + 0x17 >> 4) + n1;" return (binary_expression "(iVar2 + 0x17 >> 4) + n1" (parenthesized_expression "(iVar2 + 0x17 >> 4)" ( (binary_expression "iVar2 + 0x17 >> 4" (binary_expression "iVar2 + 0x17" identifier + number_literal) >> number_literal) )) + identifier) ;) })))
(translation_unit "int FUN_002ac190(int param_1,int param_2,int param_3)\n\n{\n  bool bVar1;\n  \n  if (param_3 < 0) {\n    param_3 = param_3 + 100;\n  }\n  else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }\n  bVar1 = param_3 < 0x10;\nLAB_002ac1a8:\n  if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }\n  if (-1 < param_3 + 8) {\n    return (param_3 + 8 >> 4) + param_1;\n  }\n  return (param_3 + 0x17 >> 4) + param_1;\n}\n\n" (function_definition "int FUN_002ac190(int param_1,int param_2,int param_3)\n\n{\n  bool bVar1;\n  \n  if (param_3 < 0) {\n    param_3 = param_3 + 100;\n  }\n  else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }\n  bVar1 = param_3 < 0x10;\nLAB_002ac1a8:\n  if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }\n  if (-1 < param_3 + 8) {\n    return (param_3 + 8 >> 4) + param_1;\n  }\n  return (param_3 + 0x17 >> 4) + param_1;\n}" primitive_type (function_declarator "FUN_002ac190(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  \n  if (param_3 < 0) {\n    param_3 = param_3 + 100;\n  }\n  else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }\n  bVar1 = param_3 < 0x10;\nLAB_002ac1a8:\n  if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }\n  if (-1 < param_3 + 8) {\n    return (param_3 + 8 >> 4) + param_1;\n  }\n  return (param_3 + 0x17 >> 4) + param_1;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (if_statement "if (param_3 < 0) {\n    param_3 = param_3 + 100;\n  }\n  else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }" if (parenthesized_expression "(param_3 < 0)" ( (binary_expression "param_3 < 0" identifier < number_literal) )) (compound_statement "{\n    param_3 = param_3 + 100;\n  }" { (expression_statement "param_3 = param_3 + 100;" (assignment_expression "param_3 = param_3 + 100" identifier = (binary_expression "param_3 + 100" identifier + number_literal)) ;) }) (else_clause "else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }" else (compound_statement "{\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }" { (expression_statement "bVar1 = param_3 < 0x10;" (assignment_expression "bVar1 = param_3 < 0x10" identifier = (binary_expression "param_3 < 0x10" identifier < number_literal)) ;) (if_statement "if (param_3 < 0x65) goto LAB_002ac1a8;" if (parenthesized_expression "(param_3 < 0x65)" ( (binary_expression "param_3 < 0x65" identifier < number_literal) )) (goto_statement "goto LAB_002ac1a8;" goto statement_identifier ;)) (expression_statement "param_3 = param_3 + -100;" (assignment_expression "param_3 = param_3 + -100" identifier = (binary_expression "param_3 + -100" identifier + number_literal)) ;) }))) (expression_statement "bVar1 = param_3 < 0x10;" (assignment_expression "bVar1 = param_3 < 0x10" identifier = (binary_expression "param_3 < 0x10" identifier < number_literal)) ;) (labeled_statement "LAB_002ac1a8:\n  if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" statement_identifier : (if_statement "if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" if (parenthesized_expression "(bVar1)" ( identifier )) (compound_statement "{\n    param_3 = (param_2 - param_1) * param_3;\n  }" { (expression_statement "param_3 = (param_2 - param_1) * param_3;" (assignment_expression "param_3 = (param_2 - param_1) * param_3" identifier = (binary_expression "(param_2 - param_1) * param_3" (parenthesized_expression "(param_2 - param_1)" ( (binary_expression "param_2 - param_1" identifier - identifier) )) * identifier)) ;) }) (else_clause "else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" else (compound_statement "{\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" { (if_statement "if (param_3 < 0x32) {\n      return param_2;\n    }" if (parenthesized_expression "(param_3 < 0x32)" ( (binary_expression "param_3 < 0x32" identifier < number_literal) )) (compound_statement "{\n      return param_2;\n    }" { (return_statement "return param_2;" return identifier ;) })) (if_statement "if (0x41 < param_3) {\n      return param_1;\n    }" if (parenthesized_expression "(0x41 < param_3)" ( (binary_expression "0x41 < param_3" number_literal < identifier) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "param_3 = (param_2 - param_1) * (0x42 - param_3);" (assignment_expression "param_3 = (param_2 - param_1) * (0x42 - param_3)" identifier = (binary_expression "(param_2 - param_1) * (0x42 - param_3)" (parenthesized_expression "(param_2 - param_1)" ( (binary_expression "param_2 - param_1" identifier - identifier) )) * (parenthesized_expression "(0x42 - param_3)" ( (binary_expression "0x42 - param_3" number_literal - identifier) )))) ;) })))) (if_statement "if (-1 < param_3 + 8) {\n    return (param_3 + 8 >> 4) + param_1;\n  }" if (parenthesized_expression "(-1 < param_3 + 8)" ( (binary_expression "-1 < param_3 + 8" number_literal < (binary_expression "param_3 + 8" identifier + number_literal)) )) (compound_statement "{\n    return (param_3 + 8 >> 4) + param_1;\n  }" { (return_statement "return (param_3 + 8 >> 4) + param_1;" return (binary_expression "(param_3 + 8 >> 4) + param_1" (parenthesized_expression "(param_3 + 8 >> 4)" ( (binary_expression "param_3 + 8 >> 4" (binary_expression "param_3 + 8" identifier + number_literal) >> number_literal) )) + identifier) ;) })) (return_statement "return (param_3 + 0x17 >> 4) + param_1;" return (binary_expression "(param_3 + 0x17 >> 4) + param_1" (parenthesized_expression "(param_3 + 0x17 >> 4)" ( (binary_expression "param_3 + 0x17 >> 4" (binary_expression "param_3 + 0x17" identifier + number_literal) >> number_literal) )) + identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT < LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT < LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * IDENT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * (parenthesized_expression ( (binary_expression LIT - IDENT) )))) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (compound_statement { (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) >> LIT) )) + IDENT) ;) })) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) >> LIT) )) + IDENT) ;) })))
(function_definition "int FUN_002ac190(int param_1,int param_2,int param_3)\n\n{\n  bool bVar1;\n  \n  if (param_3 < 0) {\n    param_3 = param_3 + 100;\n  }\n  else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }\n  bVar1 = param_3 < 0x10;\nLAB_002ac1a8:\n  if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }\n  if (-1 < param_3 + 8) {\n    return (param_3 + 8 >> 4) + param_1;\n  }\n  return (param_3 + 0x17 >> 4) + param_1;\n}" (primitive_type "int") (function_declarator "FUN_002ac190(int param_1,int param_2,int param_3)" (identifier "FUN_002ac190") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  bool bVar1;\n  \n  if (param_3 < 0) {\n    param_3 = param_3 + 100;\n  }\n  else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }\n  bVar1 = param_3 < 0x10;\nLAB_002ac1a8:\n  if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }\n  if (-1 < param_3 + 8) {\n    return (param_3 + 8 >> 4) + param_1;\n  }\n  return (param_3 + 0x17 >> 4) + param_1;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (if_statement "if (param_3 < 0) {\n    param_3 = param_3 + 100;\n  }\n  else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }" (if "if") (parenthesized_expression "(param_3 < 0)" (( "(") (binary_expression "param_3 < 0" (identifier "param_3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    param_3 = param_3 + 100;\n  }" ({ "{") (expression_statement "param_3 = param_3 + 100;" (assignment_expression "param_3 = param_3 + 100" (identifier "param_3") (= "=") (binary_expression "param_3 + 100" (identifier "param_3") (+ "+") (number_literal "100"))) (; ";")) (} "}")) (else_clause "else {\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }" (else "else") (compound_statement "{\n    bVar1 = param_3 < 0x10;\n    if (param_3 < 0x65) goto LAB_002ac1a8;\n    param_3 = param_3 + -100;\n  }" ({ "{") (expression_statement "bVar1 = param_3 < 0x10;" (assignment_expression "bVar1 = param_3 < 0x10" (identifier "bVar1") (= "=") (binary_expression "param_3 < 0x10" (identifier "param_3") (< "<") (number_literal "0x10"))) (; ";")) (if_statement "if (param_3 < 0x65) goto LAB_002ac1a8;" (if "if") (parenthesized_expression "(param_3 < 0x65)" (( "(") (binary_expression "param_3 < 0x65" (identifier "param_3") (< "<") (number_literal "0x65")) () ")")) (goto_statement "goto LAB_002ac1a8;" (goto "goto") (statement_identifier "LAB_002ac1a8") (; ";"))) (expression_statement "param_3 = param_3 + -100;" (assignment_expression "param_3 = param_3 + -100" (identifier "param_3") (= "=") (binary_expression "param_3 + -100" (identifier "param_3") (+ "+") (number_literal "-100"))) (; ";")) (} "}")))) (expression_statement "bVar1 = param_3 < 0x10;" (assignment_expression "bVar1 = param_3 < 0x10" (identifier "bVar1") (= "=") (binary_expression "param_3 < 0x10" (identifier "param_3") (< "<") (number_literal "0x10"))) (; ";")) (labeled_statement "LAB_002ac1a8:\n  if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" (statement_identifier "LAB_002ac1a8") (: ":") (if_statement "if (bVar1) {\n    param_3 = (param_2 - param_1) * param_3;\n  }\n  else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" (if "if") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (compound_statement "{\n    param_3 = (param_2 - param_1) * param_3;\n  }" ({ "{") (expression_statement "param_3 = (param_2 - param_1) * param_3;" (assignment_expression "param_3 = (param_2 - param_1) * param_3" (identifier "param_3") (= "=") (binary_expression "(param_2 - param_1) * param_3" (parenthesized_expression "(param_2 - param_1)" (( "(") (binary_expression "param_2 - param_1" (identifier "param_2") (- "-") (identifier "param_1")) () ")")) (* "*") (identifier "param_3"))) (; ";")) (} "}")) (else_clause "else {\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" (else "else") (compound_statement "{\n    if (param_3 < 0x32) {\n      return param_2;\n    }\n    if (0x41 < param_3) {\n      return param_1;\n    }\n    param_3 = (param_2 - param_1) * (0x42 - param_3);\n  }" ({ "{") (if_statement "if (param_3 < 0x32) {\n      return param_2;\n    }" (if "if") (parenthesized_expression "(param_3 < 0x32)" (( "(") (binary_expression "param_3 < 0x32" (identifier "param_3") (< "<") (number_literal "0x32")) () ")")) (compound_statement "{\n      return param_2;\n    }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (if_statement "if (0x41 < param_3) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(0x41 < param_3)" (( "(") (binary_expression "0x41 < param_3" (number_literal "0x41") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "param_3 = (param_2 - param_1) * (0x42 - param_3);" (assignment_expression "param_3 = (param_2 - param_1) * (0x42 - param_3)" (identifier "param_3") (= "=") (binary_expression "(param_2 - param_1) * (0x42 - param_3)" (parenthesized_expression "(param_2 - param_1)" (( "(") (binary_expression "param_2 - param_1" (identifier "param_2") (- "-") (identifier "param_1")) () ")")) (* "*") (parenthesized_expression "(0x42 - param_3)" (( "(") (binary_expression "0x42 - param_3" (number_literal "0x42") (- "-") (identifier "param_3")) () ")")))) (; ";")) (} "}"))))) (if_statement "if (-1 < param_3 + 8) {\n    return (param_3 + 8 >> 4) + param_1;\n  }" (if "if") (parenthesized_expression "(-1 < param_3 + 8)" (( "(") (binary_expression "-1 < param_3 + 8" (number_literal "-1") (< "<") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8"))) () ")")) (compound_statement "{\n    return (param_3 + 8 >> 4) + param_1;\n  }" ({ "{") (return_statement "return (param_3 + 8 >> 4) + param_1;" (return "return") (binary_expression "(param_3 + 8 >> 4) + param_1" (parenthesized_expression "(param_3 + 8 >> 4)" (( "(") (binary_expression "param_3 + 8 >> 4" (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) (>> ">>") (number_literal "4")) () ")")) (+ "+") (identifier "param_1")) (; ";")) (} "}"))) (return_statement "return (param_3 + 0x17 >> 4) + param_1;" (return "return") (binary_expression "(param_3 + 0x17 >> 4) + param_1" (parenthesized_expression "(param_3 + 0x17 >> 4)" (( "(") (binary_expression "param_3 + 0x17 >> 4" (binary_expression "param_3 + 0x17" (identifier "param_3") (+ "+") (number_literal "0x17")) (>> ">>") (number_literal "4")) () ")")) (+ "+") (identifier "param_1")) (; ";")) (} "}")))

int function_1(int var_3,int var_2,int var_1)

{
  bool bVar1;
  int var_4;
  
  if (var_1 < 0) {
    var_1 = var_1 + 100;
  }
  else {
    bVar1 = var_1 < 0x10;
    if (var_1 < 0x65) goto LAB_002ac1a8;
    var_1 = var_1 + -100;
  }
  bVar1 = var_1 < 0x10;
LAB_002ac1a8:
  if (bVar1) {
    var_4 = (var_2 - var_3) * var_1;
  }
  else {
    if (var_1 < 0x32) {
      return var_2;
    }
    if (0x41 < var_1) {
      return var_3;
    }
    var_4 = (var_2 - var_3) * (0x42 - var_1);
  }
  if (-1 < var_4 + 8) {
    return (var_4 + 8 >> 4) + var_3;
  }
  return (var_4 + 0x17 >> 4) + var_3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) 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 (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (identifier))))) (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (identifier))))))

int MASKED(int param_1,int param_2,int param_3)

{
  bool bVar1;
  
  if (param_3 < 0) {
    param_3 = param_3 + 100;
  }
  else {
    bVar1 = param_3 < 0x10;
    if (param_3 < 0x65) goto LAB_002ac1a8;
    param_3 = param_3 + -100;
  }
  bVar1 = param_3 < 0x10;
LAB_002ac1a8:
  if (bVar1) {
    param_3 = (param_2 - param_1) * param_3;
  }
  else {
    if (param_3 < 0x32) {
      return param_2;
    }
    if (0x41 < param_3) {
      return param_1;
    }
    param_3 = (param_2 - param_1) * (0x42 - param_3);
  }
  if (-1 < param_3 + 8) {
    return (param_3 + 8 >> 4) + param_1;
  }
  return (param_3 + 0x17 >> 4) + param_1;
}

