
int symbol_equated_reloc_p(symbolS *s)

{
  segT paVar1;
  bfd_section *pbVar2;
  
  if (((uint)s->sy_flags & 1) != 0) {
    if ((segT)s->bsym != reg_section) {
      return 0;
    }
    s = (s->sy_value).X_op_symbol;
  }
  if ((s->sy_value).field_0x18 != '\x03') {
    return 0;
  }
  if ((((uint)s->sy_flags & 4) != 0) && ((s->sy_value).X_op_symbol != (symbolS *)0x0)) {
    return 1;
  }
  paVar1 = (segT)s->bsym;
  if (((uint)s->sy_flags & 1) == 0) {
    pbVar2 = *(bfd_section **)&paVar1->flags;
    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {
      return 1;
    }
  }
  else {
    if (reg_section != paVar1) {
      return (int)(paVar1 == (segT)(_bfd_std_section + 0x118));
    }
    pbVar2 = ((s->sy_value).X_op_symbol)->bsym->section;
    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {
      return 1;
    }
  }
  return pbVar2->flags >> 0xc & 1;
}



uint FUN_0012a900(byte *param_1)

{
  long lVar1;
  
  if ((*param_1 & 1) != 0) {
    if (*(long *)(param_1 + 8) != DAT_001748f8) {
      return 0;
    }
    param_1 = *(byte **)(param_1 + 0x18);
  }
  if (param_1[0x28] != 3) {
    return 0;
  }
  if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {
    return 1;
  }
  lVar1 = *(long *)(param_1 + 8);
  if ((*param_1 & 1) == 0) {
    lVar1 = *(long *)(lVar1 + 0x20);
    if (lVar1 == 0x16b9b8) {
      return 1;
    }
  }
  else {
    if (DAT_001748f8 != lVar1) {
      return (uint)(lVar1 == 0x16b9b8);
    }
    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);
    if (lVar1 == 0x16b9b8) {
      return 1;
    }
  }
  return *(uint *)(lVar1 + 0x20) >> 0xc & 1;
}


TEST byte ptr [RDI],0x1
JZ 0x0012a91c
XOR EAX,EAX
MOV RSI,qword ptr [0x001748f8]
CMP qword ptr [RDI + 0x8],RSI
JZ 0x0012a918
RET
MOV RDI,qword ptr [RDI + 0x18]
XOR EAX,EAX
CMP byte ptr [RDI + 0x28],0x3
JNZ 0x0012a914
MOVZX EDX,byte ptr [RDI]
TEST DL,0x4
JNZ 0x0012a950
AND EDX,0x1
MOV RAX,qword ptr [RDI + 0x8]
JZ 0x0012a960
CMP qword ptr [0x001748f8],RAX
JZ 0x0012a980
LEA RDX,[0x16b9b8]
CMP RAX,RDX
SETZ AL
MOVZX EAX,AL
RET
CMP qword ptr [RDI + 0x18],0x0
MOV EAX,0x1
JZ 0x0012a92c
RET
MOV RDX,qword ptr [RAX + 0x20]
LEA RCX,[0x16b9b8]
MOV EAX,0x1
CMP RDX,RCX
JZ 0x0012a914
MOV EAX,dword ptr [RDX + 0x20]
SHR EAX,0xc
AND EAX,0x1
RET
MOV RAX,qword ptr [RDI + 0x18]
LEA RCX,[0x16b9b8]
MOV RAX,qword ptr [RAX + 0x8]
MOV RDX,qword ptr [RAX + 0x20]
MOV EAX,0x1
CMP RDX,RCX
JNZ 0x0012a975
RET
(translation_unit "uint FUN_0012a900(byte *param_1)\n\n{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }\n  if (param_1[0x28] != 3) {\n    return 0;\n  }\n  if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {\n    return 1;\n  }\n  lVar1 = *(long *)(param_1 + 8);\n  if ((*param_1 & 1) == 0) {\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  return *(uint *)(lVar1 + 0x20) >> 0xc & 1;\n}\n\n" (function_definition "uint FUN_0012a900(byte *param_1)\n\n{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }\n  if (param_1[0x28] != 3) {\n    return 0;\n  }\n  if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {\n    return 1;\n  }\n  lVar1 = *(long *)(param_1 + 8);\n  if ((*param_1 & 1) == 0) {\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  return *(uint *)(lVar1 + 0x20) >> 0xc & 1;\n}" type_identifier (function_declarator "FUN_0012a900(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }\n  if (param_1[0x28] != 3) {\n    return 0;\n  }\n  if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {\n    return 1;\n  }\n  lVar1 = *(long *)(param_1 + 8);\n  if ((*param_1 & 1) == 0) {\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  return *(uint *)(lVar1 + 0x20) >> 0xc & 1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }" { (if_statement "if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }" if (parenthesized_expression "(*(long *)(param_1 + 8) != DAT_001748f8)" ( (binary_expression "*(long *)(param_1 + 8) != DAT_001748f8" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0x18);" (assignment_expression "param_1 = *(byte **)(param_1 + 0x18)" identifier = (pointer_expression "*(byte **)(param_1 + 0x18)" * (cast_expression "(byte **)(param_1 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) })) (if_statement "if (param_1[0x28] != 3) {\n    return 0;\n  }" if (parenthesized_expression "(param_1[0x28] != 3)" ( (binary_expression "param_1[0x28] != 3" (subscript_expression "param_1[0x28]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {\n    return 1;\n  }" if (parenthesized_expression "(((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0))" ( (binary_expression "((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)" (parenthesized_expression "((*param_1 & 4) != 0)" ( (binary_expression "(*param_1 & 4) != 0" (parenthesized_expression "(*param_1 & 4)" ( (binary_expression "*param_1 & 4" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) && (parenthesized_expression "(*(long *)(param_1 + 0x18) != 0)" ( (binary_expression "*(long *)(param_1 + 0x18) != 0" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "lVar1 = *(long *)(param_1 + 8);" (assignment_expression "lVar1 = *(long *)(param_1 + 8)" identifier = (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((*param_1 & 1) == 0) {\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" if (parenthesized_expression "((*param_1 & 1) == 0)" ( (binary_expression "(*param_1 & 1) == 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" { (expression_statement "lVar1 = *(long *)(lVar1 + 0x20);" (assignment_expression "lVar1 = *(long *)(lVar1 + 0x20)" identifier = (pointer_expression "*(long *)(lVar1 + 0x20)" * (cast_expression "(long *)(lVar1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (lVar1 == 0x16b9b8) {\n      return 1;\n    }" if (parenthesized_expression "(lVar1 == 0x16b9b8)" ( (binary_expression "lVar1 == 0x16b9b8" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" else (compound_statement "{\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" { (if_statement "if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }" if (parenthesized_expression "(DAT_001748f8 != lVar1)" ( (binary_expression "DAT_001748f8 != lVar1" identifier != identifier) )) (compound_statement "{\n      return (uint)(lVar1 == 0x16b9b8);\n    }" { (return_statement "return (uint)(lVar1 == 0x16b9b8);" return (call_expression "(uint)(lVar1 == 0x16b9b8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(lVar1 == 0x16b9b8)" ( (binary_expression "lVar1 == 0x16b9b8" identifier == number_literal) ))) ;) })) (expression_statement "lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);" (assignment_expression "lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" identifier = (pointer_expression "*(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" * (cast_expression "(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" ( (binary_expression "*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20" (pointer_expression "*(long *)(*(long *)(param_1 + 0x18) + 8)" * (cast_expression "(long *)(*(long *)(param_1 + 0x18) + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x18) + 8)" ( (binary_expression "*(long *)(param_1 + 0x18) + 8" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (lVar1 == 0x16b9b8) {\n      return 1;\n    }" if (parenthesized_expression "(lVar1 == 0x16b9b8)" ( (binary_expression "lVar1 == 0x16b9b8" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return *(uint *)(lVar1 + 0x20) >> 0xc & 1;" return (binary_expression "*(uint *)(lVar1 + 0x20) >> 0xc & 1" (binary_expression "*(uint *)(lVar1 + 0x20) >> 0xc" (pointer_expression "*(uint *)(lVar1 + 0x20)" * (cast_expression "(uint *)(lVar1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) >> number_literal) & number_literal) ;) })))
(translation_unit "int symbol_equated_reloc_p(symbolS *s)\n\n{\n  segT paVar1;\n  bfd_section *pbVar2;\n  \n  if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      return 0;\n    }\n    s = (s->sy_value).X_op_symbol;\n  }\n  if ((s->sy_value).field_0x18 != '\x03') {\n    return 0;\n  }\n  if ((((uint)s->sy_flags & 4) != 0) && ((s->sy_value).X_op_symbol != (symbolS *)0x0)) {\n    return 1;\n  }\n  paVar1 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) == 0) {\n    pbVar2 = *(bfd_section **)&paVar1->flags;\n    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }\n  }\n  else {\n    if (reg_section != paVar1) {\n      return (int)(paVar1 == (segT)(_bfd_std_section + 0x118));\n    }\n    pbVar2 = ((s->sy_value).X_op_symbol)->bsym->section;\n    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }\n  }\n  return pbVar2->flags >> 0xc & 1;\n}\n\n" (function_definition "int symbol_equated_reloc_p(symbolS *s)\n\n{\n  segT paVar1;\n  bfd_section *pbVar2;\n  \n  if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      return 0;\n    }\n    s = (s->sy_value).X_op_symbol;\n  }\n  if ((s->sy_value).field_0x18 != '\x03') {\n    return 0;\n  }\n  if ((((uint)s->sy_flags & 4) != 0) && ((s->sy_value).X_op_symbol != (symbolS *)0x0)) {\n    return 1;\n  }\n  paVar1 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) == 0) {\n    pbVar2 = *(bfd_section **)&paVar1->flags;\n    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }\n  }\n  else {\n    if (reg_section != paVar1) {\n      return (int)(paVar1 == (segT)(_bfd_std_section + 0x118));\n    }\n    pbVar2 = ((s->sy_value).X_op_symbol)->bsym->section;\n    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }\n  }\n  return pbVar2->flags >> 0xc & 1;\n}" primitive_type (function_declarator "symbol_equated_reloc_p(symbolS *s)" identifier (parameter_list "(symbolS *s)" ( (parameter_declaration "symbolS *s" type_identifier (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  segT paVar1;\n  bfd_section *pbVar2;\n  \n  if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      return 0;\n    }\n    s = (s->sy_value).X_op_symbol;\n  }\n  if ((s->sy_value).field_0x18 != '\x03') {\n    return 0;\n  }\n  if ((((uint)s->sy_flags & 4) != 0) && ((s->sy_value).X_op_symbol != (symbolS *)0x0)) {\n    return 1;\n  }\n  paVar1 = (segT)s->bsym;\n  if (((uint)s->sy_flags & 1) == 0) {\n    pbVar2 = *(bfd_section **)&paVar1->flags;\n    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }\n  }\n  else {\n    if (reg_section != paVar1) {\n      return (int)(paVar1 == (segT)(_bfd_std_section + 0x118));\n    }\n    pbVar2 = ((s->sy_value).X_op_symbol)->bsym->section;\n    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }\n  }\n  return pbVar2->flags >> 0xc & 1;\n}" { (declaration "segT paVar1;" type_identifier identifier ;) (declaration "bfd_section *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (if_statement "if (((uint)s->sy_flags & 1) != 0) {\n    if ((segT)s->bsym != reg_section) {\n      return 0;\n    }\n    s = (s->sy_value).X_op_symbol;\n  }" if (parenthesized_expression "(((uint)s->sy_flags & 1) != 0)" ( (binary_expression "((uint)s->sy_flags & 1) != 0" (parenthesized_expression "((uint)s->sy_flags & 1)" ( (binary_expression "(uint)s->sy_flags & 1" (cast_expression "(uint)s->sy_flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "s->sy_flags" identifier -> field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n    if ((segT)s->bsym != reg_section) {\n      return 0;\n    }\n    s = (s->sy_value).X_op_symbol;\n  }" { (if_statement "if ((segT)s->bsym != reg_section) {\n      return 0;\n    }" if (parenthesized_expression "((segT)s->bsym != reg_section)" ( (binary_expression "(segT)s->bsym != reg_section" (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier)) != identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "s = (s->sy_value).X_op_symbol;" (assignment_expression "s = (s->sy_value).X_op_symbol" identifier = (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier)) ;) })) (if_statement "if ((s->sy_value).field_0x18 != '\x03') {\n    return 0;\n  }" if (parenthesized_expression "((s->sy_value).field_0x18 != '\x03')" ( (binary_expression "(s->sy_value).field_0x18 != '\x03'" (field_expression "(s->sy_value).field_0x18" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) != (char_literal "'\x03'" ' escape_sequence ')) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((((uint)s->sy_flags & 4) != 0) && ((s->sy_value).X_op_symbol != (symbolS *)0x0)) {\n    return 1;\n  }" if (parenthesized_expression "((((uint)s->sy_flags & 4) != 0) && ((s->sy_value).X_op_symbol != (symbolS *)0x0))" ( (binary_expression "(((uint)s->sy_flags & 4) != 0) && ((s->sy_value).X_op_symbol != (symbolS *)0x0)" (parenthesized_expression "(((uint)s->sy_flags & 4) != 0)" ( (binary_expression "((uint)s->sy_flags & 4) != 0" (parenthesized_expression "((uint)s->sy_flags & 4)" ( (binary_expression "(uint)s->sy_flags & 4" (cast_expression "(uint)s->sy_flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "s->sy_flags" identifier -> field_identifier)) & number_literal) )) != number_literal) )) && (parenthesized_expression "((s->sy_value).X_op_symbol != (symbolS *)0x0)" ( (binary_expression "(s->sy_value).X_op_symbol != (symbolS *)0x0" (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) != (cast_expression "(symbolS *)0x0" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "paVar1 = (segT)s->bsym;" (assignment_expression "paVar1 = (segT)s->bsym" identifier = (cast_expression "(segT)s->bsym" ( (type_descriptor "segT" type_identifier) ) (field_expression "s->bsym" identifier -> field_identifier))) ;) (if_statement "if (((uint)s->sy_flags & 1) == 0) {\n    pbVar2 = *(bfd_section **)&paVar1->flags;\n    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }\n  }\n  else {\n    if (reg_section != paVar1) {\n      return (int)(paVar1 == (segT)(_bfd_std_section + 0x118));\n    }\n    pbVar2 = ((s->sy_value).X_op_symbol)->bsym->section;\n    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }\n  }" if (parenthesized_expression "(((uint)s->sy_flags & 1) == 0)" ( (binary_expression "((uint)s->sy_flags & 1) == 0" (parenthesized_expression "((uint)s->sy_flags & 1)" ( (binary_expression "(uint)s->sy_flags & 1" (cast_expression "(uint)s->sy_flags" ( (type_descriptor "uint" type_identifier) ) (field_expression "s->sy_flags" identifier -> field_identifier)) & number_literal) )) == number_literal) )) (compound_statement "{\n    pbVar2 = *(bfd_section **)&paVar1->flags;\n    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }\n  }" { (expression_statement "pbVar2 = *(bfd_section **)&paVar1->flags;" (assignment_expression "pbVar2 = *(bfd_section **)&paVar1->flags" identifier = (pointer_expression "*(bfd_section **)&paVar1->flags" * (cast_expression "(bfd_section **)&paVar1->flags" ( (type_descriptor "bfd_section **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&paVar1->flags" & (field_expression "paVar1->flags" identifier -> field_identifier))))) ;) (if_statement "if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }" if (parenthesized_expression "(pbVar2 == (bfd_section *)(_bfd_std_section + 0x118))" ( (binary_expression "pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)" identifier == (cast_expression "(bfd_section *)(_bfd_std_section + 0x118)" ( (type_descriptor "bfd_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_bfd_std_section + 0x118)" ( (binary_expression "_bfd_std_section + 0x118" identifier + number_literal) )))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    if (reg_section != paVar1) {\n      return (int)(paVar1 == (segT)(_bfd_std_section + 0x118));\n    }\n    pbVar2 = ((s->sy_value).X_op_symbol)->bsym->section;\n    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }\n  }" else (compound_statement "{\n    if (reg_section != paVar1) {\n      return (int)(paVar1 == (segT)(_bfd_std_section + 0x118));\n    }\n    pbVar2 = ((s->sy_value).X_op_symbol)->bsym->section;\n    if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }\n  }" { (if_statement "if (reg_section != paVar1) {\n      return (int)(paVar1 == (segT)(_bfd_std_section + 0x118));\n    }" if (parenthesized_expression "(reg_section != paVar1)" ( (binary_expression "reg_section != paVar1" identifier != identifier) )) (compound_statement "{\n      return (int)(paVar1 == (segT)(_bfd_std_section + 0x118));\n    }" { (return_statement "return (int)(paVar1 == (segT)(_bfd_std_section + 0x118));" return (cast_expression "(int)(paVar1 == (segT)(_bfd_std_section + 0x118))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(paVar1 == (segT)(_bfd_std_section + 0x118))" ( (binary_expression "paVar1 == (segT)(_bfd_std_section + 0x118)" identifier == (call_expression "(segT)(_bfd_std_section + 0x118)" (parenthesized_expression "(segT)" ( identifier )) (argument_list "(_bfd_std_section + 0x118)" ( (binary_expression "_bfd_std_section + 0x118" identifier + number_literal) )))) ))) ;) })) (expression_statement "pbVar2 = ((s->sy_value).X_op_symbol)->bsym->section;" (assignment_expression "pbVar2 = ((s->sy_value).X_op_symbol)->bsym->section" identifier = (field_expression "((s->sy_value).X_op_symbol)->bsym->section" (field_expression "((s->sy_value).X_op_symbol)->bsym" (parenthesized_expression "((s->sy_value).X_op_symbol)" ( (field_expression "(s->sy_value).X_op_symbol" (parenthesized_expression "(s->sy_value)" ( (field_expression "s->sy_value" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier) -> field_identifier)) ;) (if_statement "if (pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)) {\n      return 1;\n    }" if (parenthesized_expression "(pbVar2 == (bfd_section *)(_bfd_std_section + 0x118))" ( (binary_expression "pbVar2 == (bfd_section *)(_bfd_std_section + 0x118)" identifier == (cast_expression "(bfd_section *)(_bfd_std_section + 0x118)" ( (type_descriptor "bfd_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(_bfd_std_section + 0x118)" ( (binary_expression "_bfd_std_section + 0x118" identifier + number_literal) )))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return pbVar2->flags >> 0xc & 1;" return (binary_expression "pbVar2->flags >> 0xc & 1" (binary_expression "pbVar2->flags >> 0xc" (field_expression "pbVar2->flags" identifier -> field_identifier) >> number_literal) & number_literal) ;) })))
(translation_unit "uint FUN_0012a900(byte *param_1)\n\n{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }\n  if (param_1[0x28] != 3) {\n    return 0;\n  }\n  if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {\n    return 1;\n  }\n  lVar1 = *(long *)(param_1 + 8);\n  if ((*param_1 & 1) == 0) {\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  return *(uint *)(lVar1 + 0x20) >> 0xc & 1;\n}\n\n" (function_definition "uint FUN_0012a900(byte *param_1)\n\n{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }\n  if (param_1[0x28] != 3) {\n    return 0;\n  }\n  if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {\n    return 1;\n  }\n  lVar1 = *(long *)(param_1 + 8);\n  if ((*param_1 & 1) == 0) {\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  return *(uint *)(lVar1 + 0x20) >> 0xc & 1;\n}" type_identifier (function_declarator "FUN_0012a900(byte *param_1)" identifier (parameter_list "(byte *param_1)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }\n  if (param_1[0x28] != 3) {\n    return 0;\n  }\n  if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {\n    return 1;\n  }\n  lVar1 = *(long *)(param_1 + 8);\n  if ((*param_1 & 1) == 0) {\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  return *(uint *)(lVar1 + 0x20) >> 0xc & 1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }" if (parenthesized_expression "((*param_1 & 1) != 0)" ( (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }" { (if_statement "if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }" if (parenthesized_expression "(*(long *)(param_1 + 8) != DAT_001748f8)" ( (binary_expression "*(long *)(param_1 + 8) != DAT_001748f8" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "param_1 = *(byte **)(param_1 + 0x18);" (assignment_expression "param_1 = *(byte **)(param_1 + 0x18)" identifier = (pointer_expression "*(byte **)(param_1 + 0x18)" * (cast_expression "(byte **)(param_1 + 0x18)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) })) (if_statement "if (param_1[0x28] != 3) {\n    return 0;\n  }" if (parenthesized_expression "(param_1[0x28] != 3)" ( (binary_expression "param_1[0x28] != 3" (subscript_expression "param_1[0x28]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {\n    return 1;\n  }" if (parenthesized_expression "(((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0))" ( (binary_expression "((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)" (parenthesized_expression "((*param_1 & 4) != 0)" ( (binary_expression "(*param_1 & 4) != 0" (parenthesized_expression "(*param_1 & 4)" ( (binary_expression "*param_1 & 4" (pointer_expression "*param_1" * identifier) & number_literal) )) != number_literal) )) && (parenthesized_expression "(*(long *)(param_1 + 0x18) != 0)" ( (binary_expression "*(long *)(param_1 + 0x18) != 0" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "lVar1 = *(long *)(param_1 + 8);" (assignment_expression "lVar1 = *(long *)(param_1 + 8)" identifier = (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (if_statement "if ((*param_1 & 1) == 0) {\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" if (parenthesized_expression "((*param_1 & 1) == 0)" ( (binary_expression "(*param_1 & 1) == 0" (parenthesized_expression "(*param_1 & 1)" ( (binary_expression "*param_1 & 1" (pointer_expression "*param_1" * identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" { (expression_statement "lVar1 = *(long *)(lVar1 + 0x20);" (assignment_expression "lVar1 = *(long *)(lVar1 + 0x20)" identifier = (pointer_expression "*(long *)(lVar1 + 0x20)" * (cast_expression "(long *)(lVar1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (lVar1 == 0x16b9b8) {\n      return 1;\n    }" if (parenthesized_expression "(lVar1 == 0x16b9b8)" ( (binary_expression "lVar1 == 0x16b9b8" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" else (compound_statement "{\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" { (if_statement "if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }" if (parenthesized_expression "(DAT_001748f8 != lVar1)" ( (binary_expression "DAT_001748f8 != lVar1" identifier != identifier) )) (compound_statement "{\n      return (uint)(lVar1 == 0x16b9b8);\n    }" { (return_statement "return (uint)(lVar1 == 0x16b9b8);" return (call_expression "(uint)(lVar1 == 0x16b9b8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(lVar1 == 0x16b9b8)" ( (binary_expression "lVar1 == 0x16b9b8" identifier == number_literal) ))) ;) })) (expression_statement "lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);" (assignment_expression "lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" identifier = (pointer_expression "*(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" * (cast_expression "(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" ( (binary_expression "*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20" (pointer_expression "*(long *)(*(long *)(param_1 + 0x18) + 8)" * (cast_expression "(long *)(*(long *)(param_1 + 0x18) + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x18) + 8)" ( (binary_expression "*(long *)(param_1 + 0x18) + 8" (pointer_expression "*(long *)(param_1 + 0x18)" * (cast_expression "(long *)(param_1 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) + number_literal) )))) + number_literal) ))))) ;) (if_statement "if (lVar1 == 0x16b9b8) {\n      return 1;\n    }" if (parenthesized_expression "(lVar1 == 0x16b9b8)" ( (binary_expression "lVar1 == 0x16b9b8" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return *(uint *)(lVar1 + 0x20) >> 0xc & 1;" return (binary_expression "*(uint *)(lVar1 + 0x20) >> 0xc & 1" (binary_expression "*(uint *)(lVar1 + 0x20) >> 0xc" (pointer_expression "*(uint *)(lVar1 + 0x20)" * (cast_expression "(uint *)(lVar1 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) >> number_literal) & number_literal) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (return_statement return (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) }))) (return_statement return (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT) & LIT) ;) })))
(function_definition "uint FUN_0012a900(byte *param_1)\n\n{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }\n  if (param_1[0x28] != 3) {\n    return 0;\n  }\n  if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {\n    return 1;\n  }\n  lVar1 = *(long *)(param_1 + 8);\n  if ((*param_1 & 1) == 0) {\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  return *(uint *)(lVar1 + 0x20) >> 0xc & 1;\n}" (type_identifier "uint") (function_declarator "FUN_0012a900(byte *param_1)" (identifier "FUN_0012a900") (parameter_list "(byte *param_1)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }\n  if (param_1[0x28] != 3) {\n    return 0;\n  }\n  if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {\n    return 1;\n  }\n  lVar1 = *(long *)(param_1 + 8);\n  if ((*param_1 & 1) == 0) {\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  return *(uint *)(lVar1 + 0x20) >> 0xc & 1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (if_statement "if ((*param_1 & 1) != 0) {\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }" (if "if") (parenthesized_expression "((*param_1 & 1) != 0)" (( "(") (binary_expression "(*param_1 & 1) != 0" (parenthesized_expression "(*param_1 & 1)" (( "(") (binary_expression "*param_1 & 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }\n    param_1 = *(byte **)(param_1 + 0x18);\n  }" ({ "{") (if_statement "if (*(long *)(param_1 + 8) != DAT_001748f8) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 8) != DAT_001748f8)" (( "(") (binary_expression "*(long *)(param_1 + 8) != DAT_001748f8" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (identifier "DAT_001748f8")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "param_1 = *(byte **)(param_1 + 0x18);" (assignment_expression "param_1 = *(byte **)(param_1 + 0x18)" (identifier "param_1") (= "=") (pointer_expression "*(byte **)(param_1 + 0x18)" (* "*") (cast_expression "(byte **)(param_1 + 0x18)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (param_1[0x28] != 3) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1[0x28] != 3)" (( "(") (binary_expression "param_1[0x28] != 3" (subscript_expression "param_1[0x28]" (identifier "param_1") ([ "[") (number_literal "0x28") (] "]")) (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0))" (( "(") (binary_expression "((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)" (parenthesized_expression "((*param_1 & 4) != 0)" (( "(") (binary_expression "(*param_1 & 4) != 0" (parenthesized_expression "(*param_1 & 4)" (( "(") (binary_expression "*param_1 & 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(long *)(param_1 + 0x18) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x18) != 0" (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "lVar1 = *(long *)(param_1 + 8);" (assignment_expression "lVar1 = *(long *)(param_1 + 8)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if ((*param_1 & 1) == 0) {\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }\n  else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "((*param_1 & 1) == 0)" (( "(") (binary_expression "(*param_1 & 1) == 0" (parenthesized_expression "(*param_1 & 1)" (( "(") (binary_expression "*param_1 & 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    lVar1 = *(long *)(lVar1 + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" ({ "{") (expression_statement "lVar1 = *(long *)(lVar1 + 0x20);" (assignment_expression "lVar1 = *(long *)(lVar1 + 0x20)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(lVar1 + 0x20)" (* "*") (cast_expression "(long *)(lVar1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if (lVar1 == 0x16b9b8) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(lVar1 == 0x16b9b8)" (( "(") (binary_expression "lVar1 == 0x16b9b8" (identifier "lVar1") (== "==") (number_literal "0x16b9b8")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" (else "else") (compound_statement "{\n    if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }\n    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);\n    if (lVar1 == 0x16b9b8) {\n      return 1;\n    }\n  }" ({ "{") (if_statement "if (DAT_001748f8 != lVar1) {\n      return (uint)(lVar1 == 0x16b9b8);\n    }" (if "if") (parenthesized_expression "(DAT_001748f8 != lVar1)" (( "(") (binary_expression "DAT_001748f8 != lVar1" (identifier "DAT_001748f8") (!= "!=") (identifier "lVar1")) () ")")) (compound_statement "{\n      return (uint)(lVar1 == 0x16b9b8);\n    }" ({ "{") (return_statement "return (uint)(lVar1 == 0x16b9b8);" (return "return") (call_expression "(uint)(lVar1 == 0x16b9b8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(lVar1 == 0x16b9b8)" (( "(") (binary_expression "lVar1 == 0x16b9b8" (identifier "lVar1") (== "==") (number_literal "0x16b9b8")) () ")"))) (; ";")) (} "}"))) (expression_statement "lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);" (assignment_expression "lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" (* "*") (cast_expression "(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20)" (( "(") (binary_expression "*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20" (pointer_expression "*(long *)(*(long *)(param_1 + 0x18) + 8)" (* "*") (cast_expression "(long *)(*(long *)(param_1 + 0x18) + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x18) + 8)" (( "(") (binary_expression "*(long *)(param_1 + 0x18) + 8" (pointer_expression "*(long *)(param_1 + 0x18)" (* "*") (cast_expression "(long *)(param_1 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if (lVar1 == 0x16b9b8) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(lVar1 == 0x16b9b8)" (( "(") (binary_expression "lVar1 == 0x16b9b8" (identifier "lVar1") (== "==") (number_literal "0x16b9b8")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")))) (return_statement "return *(uint *)(lVar1 + 0x20) >> 0xc & 1;" (return "return") (binary_expression "*(uint *)(lVar1 + 0x20) >> 0xc & 1" (binary_expression "*(uint *)(lVar1 + 0x20) >> 0xc" (pointer_expression "*(uint *)(lVar1 + 0x20)" (* "*") (cast_expression "(uint *)(lVar1 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")")))) (>> ">>") (number_literal "0xc")) (& "&") (number_literal "1")) (; ";")) (} "}")))

int function_1(type_1 *s)

{
  type_2 var_4;
  type_3 *var_2;
  
  if (((type_4)s->sy_flags & 1) != 0) {
    if ((type_2)s->bsym != var_1) {
      return 0;
    }
    s = (s->sy_value).X_op_symbol;
  }
  if ((s->sy_value).field_0x18 != '\x03') {
    return 0;
  }
  if ((((type_4)s->sy_flags & 4) != 0) && ((s->sy_value).X_op_symbol != (type_1 *)0x0)) {
    return 1;
  }
  var_4 = (type_2)s->bsym;
  if (((type_4)s->sy_flags & 1) == 0) {
    var_2 = *(type_3 **)&var_4->flags;
    if (var_2 == (type_3 *)(var_3 + 0x118)) {
      return 1;
    }
  }
  else {
    if (var_1 != var_4) {
      return (int)(var_4 == (type_2)(var_3 + 0x118));
    }
    var_2 = ((s->sy_value).X_op_symbol)->bsym->section;
    if (var_2 == (type_3 *)(var_3 + 0x118)) {
      return 1;
    }
  }
  return var_2->flags >> 0xc & 1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))))) (return_statement (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (number_literal))))))

uint MASKED(byte *param_1)

{
  long lVar1;
  
  if ((*param_1 & 1) != 0) {
    if (*(long *)(param_1 + 8) != DAT_001748f8) {
      return 0;
    }
    param_1 = *(byte **)(param_1 + 0x18);
  }
  if (param_1[0x28] != 3) {
    return 0;
  }
  if (((*param_1 & 4) != 0) && (*(long *)(param_1 + 0x18) != 0)) {
    return 1;
  }
  lVar1 = *(long *)(param_1 + 8);
  if ((*param_1 & 1) == 0) {
    lVar1 = *(long *)(lVar1 + 0x20);
    if (lVar1 == 0x16b9b8) {
      return 1;
    }
  }
  else {
    if (DAT_001748f8 != lVar1) {
      return (uint)(lVar1 == 0x16b9b8);
    }
    lVar1 = *(long *)(*(long *)(*(long *)(param_1 + 0x18) + 8) + 0x20);
    if (lVar1 == 0x16b9b8) {
      return 1;
    }
  }
  return *(uint *)(lVar1 + 0x20) >> 0xc & 1;
}

