
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

bfd_boolean obj_elf_seen_attribute(int vendor,uint tag)

{
  recorded_attribute_info *prVar1;
  
  prVar1 = recorded_attributes;
  if (recorded_attributes == (recorded_attribute_info *)0x0) {
    return 0;
  }
  while ((prVar1->vendor != vendor || (prVar1->base != tag >> 5))) {
    prVar1 = prVar1->next;
    if (prVar1 == (recorded_attribute_info *)0x0) {
      return 0;
    }
  }
  return (uint)((prVar1->mask & 1 << ((byte)tag & 0x1f)) != 0);
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

bool FUN_00058060(int param_1,uint param_2)

{
  int *piVar1;
  
  piVar1 = DAT_0008964c;
  if (DAT_0008964c == (int *)0x0) {
    return false;
  }
  while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {
    piVar1 = (int *)*piVar1;
    if (piVar1 == (int *)0x0) {
      return false;
    }
  }
  return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;
}


CALL 0x00017d1a
ADD EAX,0x27f9b
PUSH EBX
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x8]
MOV EBX,ECX
SHR EBX,0x5
MOV EAX,dword ptr [EAX + 0x964c]
TEST EAX,EAX
JNZ 0x0005808e
JMP 0x000580aa
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x000580a8
CMP dword ptr [EAX + 0x4],EDX
JNZ 0x00058088
CMP dword ptr [EAX + 0x8],EBX
JNZ 0x00058088
MOV EDX,0x1
SHL EDX,CL
TEST dword ptr [EAX + 0xc],EDX
SETNZ AL
MOVZX EAX,AL
POP EBX
RET
XOR EAX,EAX
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nbool FUN_00058060(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  \n  piVar1 = DAT_0008964c;\n  if (DAT_0008964c == (int *)0x0) {\n    return false;\n  }\n  while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }\n  return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;\n}\n\n" comment (function_definition "bool FUN_00058060(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  \n  piVar1 = DAT_0008964c;\n  if (DAT_0008964c == (int *)0x0) {\n    return false;\n  }\n  while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }\n  return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;\n}" primitive_type (function_declarator "FUN_00058060(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = DAT_0008964c;\n  if (DAT_0008964c == (int *)0x0) {\n    return false;\n  }\n  while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }\n  return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = DAT_0008964c;" (assignment_expression "piVar1 = DAT_0008964c" identifier = identifier) ;) (if_statement "if (DAT_0008964c == (int *)0x0) {\n    return false;\n  }" if (parenthesized_expression "(DAT_0008964c == (int *)0x0)" ( (binary_expression "DAT_0008964c == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (while_statement "while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }" while (parenthesized_expression "((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5)))" ( (parenthesized_expression "(piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))" ( (binary_expression "piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5)" (binary_expression "piVar1[1] != param_1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) != identifier) || (parenthesized_expression "(piVar1[2] != param_2 >> 5)" ( (binary_expression "piVar1[2] != param_2 >> 5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != (binary_expression "param_2 >> 5" identifier >> number_literal)) ))) )) )) (compound_statement "{\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }" { (expression_statement "piVar1 = (int *)*piVar1;" (assignment_expression "piVar1 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n      return false;\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) })) (return_statement "return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;" return (binary_expression "(piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0" (parenthesized_expression "(piVar1[3] & 1 << ((byte)param_2 & 0x1f))" ( (binary_expression "piVar1[3] & 1 << ((byte)param_2 & 0x1f)" (subscript_expression "piVar1[3]" identifier [ number_literal ]) & (binary_expression "1 << ((byte)param_2 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_2 & 0x1f)" ( (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) )) != number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nbfd_boolean obj_elf_seen_attribute(int vendor,uint tag)\n\n{\n  recorded_attribute_info *prVar1;\n  \n  prVar1 = recorded_attributes;\n  if (recorded_attributes == (recorded_attribute_info *)0x0) {\n    return 0;\n  }\n  while ((prVar1->vendor != vendor || (prVar1->base != tag >> 5))) {\n    prVar1 = prVar1->next;\n    if (prVar1 == (recorded_attribute_info *)0x0) {\n      return 0;\n    }\n  }\n  return (uint)((prVar1->mask & 1 << ((byte)tag & 0x1f)) != 0);\n}\n\n" comment (function_definition "bfd_boolean obj_elf_seen_attribute(int vendor,uint tag)\n\n{\n  recorded_attribute_info *prVar1;\n  \n  prVar1 = recorded_attributes;\n  if (recorded_attributes == (recorded_attribute_info *)0x0) {\n    return 0;\n  }\n  while ((prVar1->vendor != vendor || (prVar1->base != tag >> 5))) {\n    prVar1 = prVar1->next;\n    if (prVar1 == (recorded_attribute_info *)0x0) {\n      return 0;\n    }\n  }\n  return (uint)((prVar1->mask & 1 << ((byte)tag & 0x1f)) != 0);\n}" type_identifier (function_declarator "obj_elf_seen_attribute(int vendor,uint tag)" identifier (parameter_list "(int vendor,uint tag)" ( (parameter_declaration "int vendor" primitive_type identifier) , (parameter_declaration "uint tag" type_identifier identifier) ))) (compound_statement "{\n  recorded_attribute_info *prVar1;\n  \n  prVar1 = recorded_attributes;\n  if (recorded_attributes == (recorded_attribute_info *)0x0) {\n    return 0;\n  }\n  while ((prVar1->vendor != vendor || (prVar1->base != tag >> 5))) {\n    prVar1 = prVar1->next;\n    if (prVar1 == (recorded_attribute_info *)0x0) {\n      return 0;\n    }\n  }\n  return (uint)((prVar1->mask & 1 << ((byte)tag & 0x1f)) != 0);\n}" { (declaration "recorded_attribute_info *prVar1;" type_identifier (pointer_declarator "*prVar1" * identifier) ;) (expression_statement "prVar1 = recorded_attributes;" (assignment_expression "prVar1 = recorded_attributes" identifier = identifier) ;) (if_statement "if (recorded_attributes == (recorded_attribute_info *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(recorded_attributes == (recorded_attribute_info *)0x0)" ( (binary_expression "recorded_attributes == (recorded_attribute_info *)0x0" identifier == (cast_expression "(recorded_attribute_info *)0x0" ( (type_descriptor "recorded_attribute_info *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (while_statement "while ((prVar1->vendor != vendor || (prVar1->base != tag >> 5))) {\n    prVar1 = prVar1->next;\n    if (prVar1 == (recorded_attribute_info *)0x0) {\n      return 0;\n    }\n  }" while (parenthesized_expression "((prVar1->vendor != vendor || (prVar1->base != tag >> 5)))" ( (parenthesized_expression "(prVar1->vendor != vendor || (prVar1->base != tag >> 5))" ( (binary_expression "prVar1->vendor != vendor || (prVar1->base != tag >> 5)" (binary_expression "prVar1->vendor != vendor" (field_expression "prVar1->vendor" identifier -> field_identifier) != identifier) || (parenthesized_expression "(prVar1->base != tag >> 5)" ( (binary_expression "prVar1->base != tag >> 5" (field_expression "prVar1->base" identifier -> field_identifier) != (binary_expression "tag >> 5" identifier >> number_literal)) ))) )) )) (compound_statement "{\n    prVar1 = prVar1->next;\n    if (prVar1 == (recorded_attribute_info *)0x0) {\n      return 0;\n    }\n  }" { (expression_statement "prVar1 = prVar1->next;" (assignment_expression "prVar1 = prVar1->next" identifier = (field_expression "prVar1->next" identifier -> field_identifier)) ;) (if_statement "if (prVar1 == (recorded_attribute_info *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(prVar1 == (recorded_attribute_info *)0x0)" ( (binary_expression "prVar1 == (recorded_attribute_info *)0x0" identifier == (cast_expression "(recorded_attribute_info *)0x0" ( (type_descriptor "recorded_attribute_info *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (return_statement "return (uint)((prVar1->mask & 1 << ((byte)tag & 0x1f)) != 0);" return (call_expression "(uint)((prVar1->mask & 1 << ((byte)tag & 0x1f)) != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((prVar1->mask & 1 << ((byte)tag & 0x1f)) != 0)" ( (binary_expression "(prVar1->mask & 1 << ((byte)tag & 0x1f)) != 0" (parenthesized_expression "(prVar1->mask & 1 << ((byte)tag & 0x1f))" ( (binary_expression "prVar1->mask & 1 << ((byte)tag & 0x1f)" (field_expression "prVar1->mask" identifier -> field_identifier) & (binary_expression "1 << ((byte)tag & 0x1f)" number_literal << (parenthesized_expression "((byte)tag & 0x1f)" ( (binary_expression "(byte)tag & 0x1f" (cast_expression "(byte)tag" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) )) != number_literal) ))) ;) })))
(translation_unit "bool FUN_00058060(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  \n  piVar1 = DAT_0008964c;\n  if (DAT_0008964c == (int *)0x0) {\n    return false;\n  }\n  while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }\n  return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;\n}\n\n" (function_definition "bool FUN_00058060(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  \n  piVar1 = DAT_0008964c;\n  if (DAT_0008964c == (int *)0x0) {\n    return false;\n  }\n  while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }\n  return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;\n}" primitive_type (function_declarator "FUN_00058060(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = DAT_0008964c;\n  if (DAT_0008964c == (int *)0x0) {\n    return false;\n  }\n  while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }\n  return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = DAT_0008964c;" (assignment_expression "piVar1 = DAT_0008964c" identifier = identifier) ;) (if_statement "if (DAT_0008964c == (int *)0x0) {\n    return false;\n  }" if (parenthesized_expression "(DAT_0008964c == (int *)0x0)" ( (binary_expression "DAT_0008964c == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (while_statement "while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }" while (parenthesized_expression "((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5)))" ( (parenthesized_expression "(piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))" ( (binary_expression "piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5)" (binary_expression "piVar1[1] != param_1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) != identifier) || (parenthesized_expression "(piVar1[2] != param_2 >> 5)" ( (binary_expression "piVar1[2] != param_2 >> 5" (subscript_expression "piVar1[2]" identifier [ number_literal ]) != (binary_expression "param_2 >> 5" identifier >> number_literal)) ))) )) )) (compound_statement "{\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }" { (expression_statement "piVar1 = (int *)*piVar1;" (assignment_expression "piVar1 = (int *)*piVar1" identifier = (cast_expression "(int *)*piVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar1" * identifier))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n      return false;\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) })) (return_statement "return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;" return (binary_expression "(piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0" (parenthesized_expression "(piVar1[3] & 1 << ((byte)param_2 & 0x1f))" ( (binary_expression "piVar1[3] & 1 << ((byte)param_2 & 0x1f)" (subscript_expression "piVar1[3]" identifier [ number_literal ]) & (binary_expression "1 << ((byte)param_2 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_2 & 0x1f)" ( (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) )) != number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return BOOL ;) })) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) != IDENT) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (binary_expression IDENT >> LIT)) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return BOOL ;) })) })) (return_statement return (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )))) )) != LIT) ;) })))
(function_definition "bool FUN_00058060(int param_1,uint param_2)\n\n{\n  int *piVar1;\n  \n  piVar1 = DAT_0008964c;\n  if (DAT_0008964c == (int *)0x0) {\n    return false;\n  }\n  while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }\n  return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;\n}" (primitive_type "bool") (function_declarator "FUN_00058060(int param_1,uint param_2)" (identifier "FUN_00058060") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = DAT_0008964c;\n  if (DAT_0008964c == (int *)0x0) {\n    return false;\n  }\n  while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }\n  return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (expression_statement "piVar1 = DAT_0008964c;" (assignment_expression "piVar1 = DAT_0008964c" (identifier "piVar1") (= "=") (identifier "DAT_0008964c")) (; ";")) (if_statement "if (DAT_0008964c == (int *)0x0) {\n    return false;\n  }" (if "if") (parenthesized_expression "(DAT_0008964c == (int *)0x0)" (( "(") (binary_expression "DAT_0008964c == (int *)0x0" (identifier "DAT_0008964c") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return false;\n  }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (while_statement "while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }" (while "while") (parenthesized_expression "((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5)))" (( "(") (parenthesized_expression "(piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))" (( "(") (binary_expression "piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5)" (binary_expression "piVar1[1] != param_1" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (!= "!=") (identifier "param_1")) (|| "||") (parenthesized_expression "(piVar1[2] != param_2 >> 5)" (( "(") (binary_expression "piVar1[2] != param_2 >> 5" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (!= "!=") (binary_expression "param_2 >> 5" (identifier "param_2") (>> ">>") (number_literal "5"))) () ")"))) () ")")) () ")")) (compound_statement "{\n    piVar1 = (int *)*piVar1;\n    if (piVar1 == (int *)0x0) {\n      return false;\n    }\n  }" ({ "{") (expression_statement "piVar1 = (int *)*piVar1;" (assignment_expression "piVar1 = (int *)*piVar1" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n      return false;\n    }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return false;\n    }" ({ "{") (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}"))) (} "}"))) (return_statement "return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;" (return "return") (binary_expression "(piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0" (parenthesized_expression "(piVar1[3] & 1 << ((byte)param_2 & 0x1f))" (( "(") (binary_expression "piVar1[3] & 1 << ((byte)param_2 & 0x1f)" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (& "&") (binary_expression "1 << ((byte)param_2 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)param_2 & 0x1f)" (( "(") (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_2")) (& "&") (number_literal "0x1f")) () ")")))) () ")")) (!= "!=") (number_literal "0")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

type_1 function_1(int var_2,type_2 var_3)

{
  type_3 *var_4;
  
  var_4 = var_1;
  if (var_1 == (type_3 *)0x0) {
    return 0;
  }
  while ((var_4->var_2 != var_2 || (var_4->base != var_3 >> 5))) {
    var_4 = var_4->next;
    if (var_4 == (type_3 *)0x0) {
      return 0;
    }
  }
  return (type_2)((var_4->mask & 1 << ((type_4)var_3 & 0x1f)) != 0);
}


(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: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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 (return_statement (false)))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (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 (return_statement (false)))))) (return_statement (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) right: (number_literal))))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

bool MASKED(int param_1,uint param_2)

{
  int *piVar1;
  
  piVar1 = DAT_0008964c;
  if (DAT_0008964c == (int *)0x0) {
    return false;
  }
  while ((piVar1[1] != param_1 || (piVar1[2] != param_2 >> 5))) {
    piVar1 = (int *)*piVar1;
    if (piVar1 == (int *)0x0) {
      return false;
    }
  }
  return (piVar1[3] & 1 << ((byte)param_2 & 0x1f)) != 0;
}

