
uint __regparm3 get_reloc_type(Filedata *filedata,bfd_vma reloc_info)

{
  uint in_EDX;
  
  if ((*(short *)&filedata->file_name == 8) || (*(short *)&filedata->file_name == 0x2b)) {
    in_EDX = in_EDX & 0xff;
  }
  return in_EDX;
}



uint __regparm3 FUN_00021e40(short *param_1,uint param_2)

{
  if ((*param_1 == 8) || (*param_1 == 0x2b)) {
    param_2 = param_2 & 0xff;
  }
  return param_2;
}


MOVZX ECX,word ptr [EAX]
MOV EAX,EDX
CMP CX,0x8
JZ 0x00021e51
CMP CX,0x2b
JNZ 0x00021e54
MOVZX EAX,DL
RET
(translation_unit "uint __regparm3 FUN_00021e40(short *param_1,uint param_2)\n\n{\n  if ((*param_1 == 8) || (*param_1 == 0x2b)) {\n    param_2 = param_2 & 0xff;\n  }\n  return param_2;\n}\n\n" (function_definition "uint __regparm3 FUN_00021e40(short *param_1,uint param_2)\n\n{\n  if ((*param_1 == 8) || (*param_1 == 0x2b)) {\n    param_2 = param_2 & 0xff;\n  }\n  return param_2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00021e40(short *param_1,uint param_2)" identifier (parameter_list "(short *param_1,uint param_2)" ( (parameter_declaration "short *param_1" (sized_type_specifier "short" short) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((*param_1 == 8) || (*param_1 == 0x2b)) {\n    param_2 = param_2 & 0xff;\n  }\n  return param_2;\n}" { (if_statement "if ((*param_1 == 8) || (*param_1 == 0x2b)) {\n    param_2 = param_2 & 0xff;\n  }" if (parenthesized_expression "((*param_1 == 8) || (*param_1 == 0x2b))" ( (binary_expression "(*param_1 == 8) || (*param_1 == 0x2b)" (parenthesized_expression "(*param_1 == 8)" ( (binary_expression "*param_1 == 8" (pointer_expression "*param_1" * identifier) == number_literal) )) || (parenthesized_expression "(*param_1 == 0x2b)" ( (binary_expression "*param_1 == 0x2b" (pointer_expression "*param_1" * identifier) == number_literal) ))) )) (compound_statement "{\n    param_2 = param_2 & 0xff;\n  }" { (expression_statement "param_2 = param_2 & 0xff;" (assignment_expression "param_2 = param_2 & 0xff" identifier = (binary_expression "param_2 & 0xff" identifier & number_literal)) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "uint __regparm3 get_reloc_type(Filedata *filedata,bfd_vma reloc_info)\n\n{\n  uint in_EDX;\n  \n  if ((*(short *)&filedata->file_name == 8) || (*(short *)&filedata->file_name == 0x2b)) {\n    in_EDX = in_EDX & 0xff;\n  }\n  return in_EDX;\n}\n\n" (function_definition "uint __regparm3 get_reloc_type(Filedata *filedata,bfd_vma reloc_info)\n\n{\n  uint in_EDX;\n  \n  if ((*(short *)&filedata->file_name == 8) || (*(short *)&filedata->file_name == 0x2b)) {\n    in_EDX = in_EDX & 0xff;\n  }\n  return in_EDX;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "get_reloc_type(Filedata *filedata,bfd_vma reloc_info)" identifier (parameter_list "(Filedata *filedata,bfd_vma reloc_info)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) , (parameter_declaration "bfd_vma reloc_info" type_identifier identifier) ))) (compound_statement "{\n  uint in_EDX;\n  \n  if ((*(short *)&filedata->file_name == 8) || (*(short *)&filedata->file_name == 0x2b)) {\n    in_EDX = in_EDX & 0xff;\n  }\n  return in_EDX;\n}" { (declaration "uint in_EDX;" type_identifier identifier ;) (if_statement "if ((*(short *)&filedata->file_name == 8) || (*(short *)&filedata->file_name == 0x2b)) {\n    in_EDX = in_EDX & 0xff;\n  }" if (parenthesized_expression "((*(short *)&filedata->file_name == 8) || (*(short *)&filedata->file_name == 0x2b))" ( (binary_expression "(*(short *)&filedata->file_name == 8) || (*(short *)&filedata->file_name == 0x2b)" (parenthesized_expression "(*(short *)&filedata->file_name == 8)" ( (binary_expression "*(short *)&filedata->file_name == 8" (pointer_expression "*(short *)&filedata->file_name" * (cast_expression "(short *)&filedata->file_name" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&filedata->file_name" & (field_expression "filedata->file_name" identifier -> field_identifier)))) == number_literal) )) || (parenthesized_expression "(*(short *)&filedata->file_name == 0x2b)" ( (binary_expression "*(short *)&filedata->file_name == 0x2b" (pointer_expression "*(short *)&filedata->file_name" * (cast_expression "(short *)&filedata->file_name" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (pointer_expression "&filedata->file_name" & (field_expression "filedata->file_name" identifier -> field_identifier)))) == number_literal) ))) )) (compound_statement "{\n    in_EDX = in_EDX & 0xff;\n  }" { (expression_statement "in_EDX = in_EDX & 0xff;" (assignment_expression "in_EDX = in_EDX & 0xff" identifier = (binary_expression "in_EDX & 0xff" identifier & number_literal)) ;) })) (return_statement "return in_EDX;" return identifier ;) })))
(translation_unit "uint __regparm3 FUN_00021e40(short *param_1,uint param_2)\n\n{\n  if ((*param_1 == 8) || (*param_1 == 0x2b)) {\n    param_2 = param_2 & 0xff;\n  }\n  return param_2;\n}\n\n" (function_definition "uint __regparm3 FUN_00021e40(short *param_1,uint param_2)\n\n{\n  if ((*param_1 == 8) || (*param_1 == 0x2b)) {\n    param_2 = param_2 & 0xff;\n  }\n  return param_2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00021e40(short *param_1,uint param_2)" identifier (parameter_list "(short *param_1,uint param_2)" ( (parameter_declaration "short *param_1" (sized_type_specifier "short" short) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((*param_1 == 8) || (*param_1 == 0x2b)) {\n    param_2 = param_2 & 0xff;\n  }\n  return param_2;\n}" { (if_statement "if ((*param_1 == 8) || (*param_1 == 0x2b)) {\n    param_2 = param_2 & 0xff;\n  }" if (parenthesized_expression "((*param_1 == 8) || (*param_1 == 0x2b))" ( (binary_expression "(*param_1 == 8) || (*param_1 == 0x2b)" (parenthesized_expression "(*param_1 == 8)" ( (binary_expression "*param_1 == 8" (pointer_expression "*param_1" * identifier) == number_literal) )) || (parenthesized_expression "(*param_1 == 0x2b)" ( (binary_expression "*param_1 == 0x2b" (pointer_expression "*param_1" * identifier) == number_literal) ))) )) (compound_statement "{\n    param_2 = param_2 & 0xff;\n  }" { (expression_statement "param_2 = param_2 & 0xff;" (assignment_expression "param_2 = param_2 & 0xff" identifier = (binary_expression "param_2 & 0xff" identifier & number_literal)) ;) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier short) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint __regparm3 FUN_00021e40(short *param_1,uint param_2)\n\n{\n  if ((*param_1 == 8) || (*param_1 == 0x2b)) {\n    param_2 = param_2 & 0xff;\n  }\n  return param_2;\n}" (type_identifier "uint") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00021e40(short *param_1,uint param_2)" (identifier "FUN_00021e40") (parameter_list "(short *param_1,uint param_2)" (( "(") (parameter_declaration "short *param_1" (sized_type_specifier "short" (short "short")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  if ((*param_1 == 8) || (*param_1 == 0x2b)) {\n    param_2 = param_2 & 0xff;\n  }\n  return param_2;\n}" ({ "{") (if_statement "if ((*param_1 == 8) || (*param_1 == 0x2b)) {\n    param_2 = param_2 & 0xff;\n  }" (if "if") (parenthesized_expression "((*param_1 == 8) || (*param_1 == 0x2b))" (( "(") (binary_expression "(*param_1 == 8) || (*param_1 == 0x2b)" (parenthesized_expression "(*param_1 == 8)" (( "(") (binary_expression "*param_1 == 8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "8")) () ")")) (|| "||") (parenthesized_expression "(*param_1 == 0x2b)" (( "(") (binary_expression "*param_1 == 0x2b" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0x2b")) () ")"))) () ")")) (compound_statement "{\n    param_2 = param_2 & 0xff;\n  }" ({ "{") (expression_statement "param_2 = param_2 & 0xff;" (assignment_expression "param_2 = param_2 & 0xff" (identifier "param_2") (= "=") (binary_expression "param_2 & 0xff" (identifier "param_2") (& "&") (number_literal "0xff"))) (; ";")) (} "}"))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

type_1 __regparm3 function_1(type_2 *filedata,type_3 reloc_info)

{
  type_1 var_1;
  
  if ((*(short *)&filedata->file_name == 8) || (*(short *)&filedata->file_name == 0x2b)) {
    var_1 = var_1 & 0xff;
  }
  return var_1;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

uint __regparm3 MASKED(short *param_1,uint param_2)

{
  if ((*param_1 == 8) || (*param_1 == 0x2b)) {
    param_2 = param_2 & 0xff;
  }
  return param_2;
}

