
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: Section_constraint check_constraint(Output_section_definition * this,
   Output_section_definition * * posd) */

Section_constraint __thiscall
gold::Output_section_definition::check_constraint
          (Output_section_definition *this,Output_section_definition **posd)

{
  Section_constraint SVar1;
  char *format;
  
  SVar1 = this->constraint_;
  if (SVar1 == CONSTRAINT_ONLY_IF_RO) {
    if ((this->output_section_ == (Output_section *)0x0) ||
       ((this->output_section_->flags_ & 1) == 0)) {
      return CONSTRAINT_NONE;
    }
  }
  else {
    if (SVar1 == CONSTRAINT_NONE) {
      return CONSTRAINT_NONE;
    }
    if (SVar1 != CONSTRAINT_ONLY_IF_RW) {
      if (SVar1 != CONSTRAINT_SPECIAL) {
                    /* WARNING: Subroutine does not return */
        do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");
      }
      if (this->output_section_ == (Output_section *)0x0) {
        return CONSTRAINT_NONE;
      }
      format = (char *)gettext("SPECIAL constraints are not implemented");
      gold_error(format);
      return CONSTRAINT_NONE;
    }
    if (this->output_section_ == (Output_section *)0x0) {
      return CONSTRAINT_NONE;
    }
    if ((this->output_section_->flags_ & 1) != 0) {
      return CONSTRAINT_NONE;
    }
  }
  *posd = this;
  return SVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_00106000(int param_1,int *param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = *(int *)(param_1 + 0x2c);
  if (iVar1 == 1) {
    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))
    {
      return 0;
    }
  }
  else {
    if (iVar1 == 0) {
      return 0;
    }
    if (iVar1 != 2) {
      if (iVar1 != 3) {
                    /* WARNING: Subroutine does not return */
        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);
      }
      if (*(int *)(param_1 + 0x44) == 0) {
        return 0;
      }
      uVar2 = gettext("SPECIAL constraints are not implemented");
      FUN_0005ad00(uVar2);
      return 0;
    }
    if (*(int *)(param_1 + 0x44) == 0) {
      return 0;
    }
    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {
      return 0;
    }
  }
  *param_2 = param_1;
  return iVar1;
}


PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x1fbff9
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [EAX + 0x2c]
CMP ESI,0x1
JZ 0x00106070
TEST ESI,ESI
JZ 0x0010604d
CMP ESI,0x2
JZ 0x00106058
CMP ESI,0x3
JNZ 0x00106085
MOV EDX,dword ptr [EAX + 0x44]
XOR ESI,ESI
TEST EDX,EDX
JZ 0x0010604d
SUB ESP,0xc
LEA EAX,[EBX + 0xfff2c270]
PUSH EAX
CALL 0x000263b0
MOV dword ptr [ESP],EAX
CALL 0x0005ad00
ADD ESP,0x10
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
MOV EDX,dword ptr [EAX + 0x44]
TEST EDX,EDX
JZ 0x00106065
TEST byte ptr [EDX + 0x54],0x1
JZ 0x0010607d
XOR ESI,ESI
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
MOV EDX,dword ptr [EAX + 0x44]
TEST EDX,EDX
JZ 0x00106065
TEST byte ptr [EDX + 0x54],0x1
JZ 0x00106065
MOV ECX,dword ptr [ESP + 0x14]
MOV dword ptr [ECX],EAX
JMP 0x0010604d
PUSH EAX
LEA EAX,[EBX + 0xfff2c970]
PUSH EAX
LEA EAX,[EBX + 0xfff2c01b]
PUSH 0xac1
PUSH EAX
CALL 0x0005f0b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00106000(int param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar1 == 1) {\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }\n  *param_2 = param_1;\n  return iVar1;\n}\n\n" comment (function_definition "int FUN_00106000(int param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar1 == 1) {\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }\n  *param_2 = param_1;\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00106000(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar1 == 1) {\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }\n  *param_2 = param_1;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x2c)" identifier = (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 1) {\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }" { (if_statement "if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0)" ( (binary_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1)" ( (binary_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1" (pointer_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54)" * (cast_expression "(byte *)(*(int *)(param_1 + 0x44) + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x44) + 0x54)" ( (binary_expression "*(int *)(param_1 + 0x44) + 0x54" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }" { (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 2)" ( (binary_expression "iVar1 != 2" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 != 3) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }" { (if_statement "if (iVar1 != 3) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }" if (parenthesized_expression "(iVar1 != 3)" ( (binary_expression "iVar1 != 3" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }" { comment (expression_statement "FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);" (call_expression "FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1)" identifier (argument_list "("../../gold/script-sections.cc",0xac1,"check_constraint",param_1)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""check_constraint"" " string_content ") , identifier ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = gettext("SPECIAL constraints are not implemented");" (assignment_expression "uVar2 = gettext("SPECIAL constraints are not implemented")" identifier = (call_expression "gettext("SPECIAL constraints are not implemented")" identifier (argument_list "("SPECIAL constraints are not implemented")" ( (string_literal ""SPECIAL constraints are not implemented"" " string_content ") )))) ;) (expression_statement "FUN_0005ad00(uVar2);" (call_expression "FUN_0005ad00(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }" if (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0)" ( (binary_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1)" ( (binary_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1" (pointer_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54)" * (cast_expression "(byte *)(*(int *)(param_1 + 0x44) + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x44) + 0x54)" ( (binary_expression "*(int *)(param_1 + 0x44) + 0x54" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: Section_constraint check_constraint(Output_section_definition * this,\n   Output_section_definition * * posd) */\n\nSection_constraint __thiscall\ngold::Output_section_definition::check_constraint\n          (Output_section_definition *this,Output_section_definition **posd)\n\n{\n  Section_constraint SVar1;\n  char *format;\n  \n  SVar1 = this->constraint_;\n  if (SVar1 == CONSTRAINT_ONLY_IF_RO) {\n    if ((this->output_section_ == (Output_section *)0x0) ||\n       ((this->output_section_->flags_ & 1) == 0)) {\n      return CONSTRAINT_NONE;\n    }\n  }\n  else {\n    if (SVar1 == CONSTRAINT_NONE) {\n      return CONSTRAINT_NONE;\n    }\n    if (SVar1 != CONSTRAINT_ONLY_IF_RW) {\n      if (SVar1 != CONSTRAINT_SPECIAL) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");\n      }\n      if (this->output_section_ == (Output_section *)0x0) {\n        return CONSTRAINT_NONE;\n      }\n      format = (char *)gettext("SPECIAL constraints are not implemented");\n      gold_error(format);\n      return CONSTRAINT_NONE;\n    }\n    if (this->output_section_ == (Output_section *)0x0) {\n      return CONSTRAINT_NONE;\n    }\n    if ((this->output_section_->flags_ & 1) != 0) {\n      return CONSTRAINT_NONE;\n    }\n  }\n  *posd = this;\n  return SVar1;\n}\n\n" comment comment (function_definition "Section_constraint __thiscall\ngold::Output_section_definition::check_constraint\n          (Output_section_definition *this,Output_section_definition **posd)\n\n{\n  Section_constraint SVar1;\n  char *format;\n  \n  SVar1 = this->constraint_;\n  if (SVar1 == CONSTRAINT_ONLY_IF_RO) {\n    if ((this->output_section_ == (Output_section *)0x0) ||\n       ((this->output_section_->flags_ & 1) == 0)) {\n      return CONSTRAINT_NONE;\n    }\n  }\n  else {\n    if (SVar1 == CONSTRAINT_NONE) {\n      return CONSTRAINT_NONE;\n    }\n    if (SVar1 != CONSTRAINT_ONLY_IF_RW) {\n      if (SVar1 != CONSTRAINT_SPECIAL) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");\n      }\n      if (this->output_section_ == (Output_section *)0x0) {\n        return CONSTRAINT_NONE;\n      }\n      format = (char *)gettext("SPECIAL constraints are not implemented");\n      gold_error(format);\n      return CONSTRAINT_NONE;\n    }\n    if (this->output_section_ == (Output_section *)0x0) {\n      return CONSTRAINT_NONE;\n    }\n    if ((this->output_section_->flags_ & 1) != 0) {\n      return CONSTRAINT_NONE;\n    }\n  }\n  *posd = this;\n  return SVar1;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_section_definition::" identifier : : identifier : :) (function_declarator "check_constraint\n          (Output_section_definition *this,Output_section_definition **posd)" identifier (parameter_list "(Output_section_definition *this,Output_section_definition **posd)" ( (parameter_declaration "Output_section_definition *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Output_section_definition **posd" type_identifier (pointer_declarator "**posd" * (pointer_declarator "*posd" * identifier))) ))) (compound_statement "{\n  Section_constraint SVar1;\n  char *format;\n  \n  SVar1 = this->constraint_;\n  if (SVar1 == CONSTRAINT_ONLY_IF_RO) {\n    if ((this->output_section_ == (Output_section *)0x0) ||\n       ((this->output_section_->flags_ & 1) == 0)) {\n      return CONSTRAINT_NONE;\n    }\n  }\n  else {\n    if (SVar1 == CONSTRAINT_NONE) {\n      return CONSTRAINT_NONE;\n    }\n    if (SVar1 != CONSTRAINT_ONLY_IF_RW) {\n      if (SVar1 != CONSTRAINT_SPECIAL) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");\n      }\n      if (this->output_section_ == (Output_section *)0x0) {\n        return CONSTRAINT_NONE;\n      }\n      format = (char *)gettext("SPECIAL constraints are not implemented");\n      gold_error(format);\n      return CONSTRAINT_NONE;\n    }\n    if (this->output_section_ == (Output_section *)0x0) {\n      return CONSTRAINT_NONE;\n    }\n    if ((this->output_section_->flags_ & 1) != 0) {\n      return CONSTRAINT_NONE;\n    }\n  }\n  *posd = this;\n  return SVar1;\n}" { (declaration "Section_constraint SVar1;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (expression_statement "SVar1 = this->constraint_;" (assignment_expression "SVar1 = this->constraint_" identifier = (field_expression "this->constraint_" identifier -> field_identifier)) ;) (if_statement "if (SVar1 == CONSTRAINT_ONLY_IF_RO) {\n    if ((this->output_section_ == (Output_section *)0x0) ||\n       ((this->output_section_->flags_ & 1) == 0)) {\n      return CONSTRAINT_NONE;\n    }\n  }\n  else {\n    if (SVar1 == CONSTRAINT_NONE) {\n      return CONSTRAINT_NONE;\n    }\n    if (SVar1 != CONSTRAINT_ONLY_IF_RW) {\n      if (SVar1 != CONSTRAINT_SPECIAL) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");\n      }\n      if (this->output_section_ == (Output_section *)0x0) {\n        return CONSTRAINT_NONE;\n      }\n      format = (char *)gettext("SPECIAL constraints are not implemented");\n      gold_error(format);\n      return CONSTRAINT_NONE;\n    }\n    if (this->output_section_ == (Output_section *)0x0) {\n      return CONSTRAINT_NONE;\n    }\n    if ((this->output_section_->flags_ & 1) != 0) {\n      return CONSTRAINT_NONE;\n    }\n  }" if (parenthesized_expression "(SVar1 == CONSTRAINT_ONLY_IF_RO)" ( (binary_expression "SVar1 == CONSTRAINT_ONLY_IF_RO" identifier == identifier) )) (compound_statement "{\n    if ((this->output_section_ == (Output_section *)0x0) ||\n       ((this->output_section_->flags_ & 1) == 0)) {\n      return CONSTRAINT_NONE;\n    }\n  }" { (if_statement "if ((this->output_section_ == (Output_section *)0x0) ||\n       ((this->output_section_->flags_ & 1) == 0)) {\n      return CONSTRAINT_NONE;\n    }" if (parenthesized_expression "((this->output_section_ == (Output_section *)0x0) ||\n       ((this->output_section_->flags_ & 1) == 0))" ( (binary_expression "(this->output_section_ == (Output_section *)0x0) ||\n       ((this->output_section_->flags_ & 1) == 0)" (parenthesized_expression "(this->output_section_ == (Output_section *)0x0)" ( (binary_expression "this->output_section_ == (Output_section *)0x0" (field_expression "this->output_section_" identifier -> field_identifier) == (cast_expression "(Output_section *)0x0" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "((this->output_section_->flags_ & 1) == 0)" ( (binary_expression "(this->output_section_->flags_ & 1) == 0" (parenthesized_expression "(this->output_section_->flags_ & 1)" ( (binary_expression "this->output_section_->flags_ & 1" (field_expression "this->output_section_->flags_" (field_expression "this->output_section_" identifier -> field_identifier) -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      return CONSTRAINT_NONE;\n    }" { (return_statement "return CONSTRAINT_NONE;" return identifier ;) })) }) (else_clause "else {\n    if (SVar1 == CONSTRAINT_NONE) {\n      return CONSTRAINT_NONE;\n    }\n    if (SVar1 != CONSTRAINT_ONLY_IF_RW) {\n      if (SVar1 != CONSTRAINT_SPECIAL) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");\n      }\n      if (this->output_section_ == (Output_section *)0x0) {\n        return CONSTRAINT_NONE;\n      }\n      format = (char *)gettext("SPECIAL constraints are not implemented");\n      gold_error(format);\n      return CONSTRAINT_NONE;\n    }\n    if (this->output_section_ == (Output_section *)0x0) {\n      return CONSTRAINT_NONE;\n    }\n    if ((this->output_section_->flags_ & 1) != 0) {\n      return CONSTRAINT_NONE;\n    }\n  }" else (compound_statement "{\n    if (SVar1 == CONSTRAINT_NONE) {\n      return CONSTRAINT_NONE;\n    }\n    if (SVar1 != CONSTRAINT_ONLY_IF_RW) {\n      if (SVar1 != CONSTRAINT_SPECIAL) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");\n      }\n      if (this->output_section_ == (Output_section *)0x0) {\n        return CONSTRAINT_NONE;\n      }\n      format = (char *)gettext("SPECIAL constraints are not implemented");\n      gold_error(format);\n      return CONSTRAINT_NONE;\n    }\n    if (this->output_section_ == (Output_section *)0x0) {\n      return CONSTRAINT_NONE;\n    }\n    if ((this->output_section_->flags_ & 1) != 0) {\n      return CONSTRAINT_NONE;\n    }\n  }" { (if_statement "if (SVar1 == CONSTRAINT_NONE) {\n      return CONSTRAINT_NONE;\n    }" if (parenthesized_expression "(SVar1 == CONSTRAINT_NONE)" ( (binary_expression "SVar1 == CONSTRAINT_NONE" identifier == identifier) )) (compound_statement "{\n      return CONSTRAINT_NONE;\n    }" { (return_statement "return CONSTRAINT_NONE;" return identifier ;) })) (if_statement "if (SVar1 != CONSTRAINT_ONLY_IF_RW) {\n      if (SVar1 != CONSTRAINT_SPECIAL) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");\n      }\n      if (this->output_section_ == (Output_section *)0x0) {\n        return CONSTRAINT_NONE;\n      }\n      format = (char *)gettext("SPECIAL constraints are not implemented");\n      gold_error(format);\n      return CONSTRAINT_NONE;\n    }" if (parenthesized_expression "(SVar1 != CONSTRAINT_ONLY_IF_RW)" ( (binary_expression "SVar1 != CONSTRAINT_ONLY_IF_RW" identifier != identifier) )) (compound_statement "{\n      if (SVar1 != CONSTRAINT_SPECIAL) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");\n      }\n      if (this->output_section_ == (Output_section *)0x0) {\n        return CONSTRAINT_NONE;\n      }\n      format = (char *)gettext("SPECIAL constraints are not implemented");\n      gold_error(format);\n      return CONSTRAINT_NONE;\n    }" { (if_statement "if (SVar1 != CONSTRAINT_SPECIAL) {\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");\n      }" if (parenthesized_expression "(SVar1 != CONSTRAINT_SPECIAL)" ( (binary_expression "SVar1 != CONSTRAINT_SPECIAL" identifier != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");\n      }" { comment (expression_statement "do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint");" (call_expression "do_gold_unreachable("../../gold/script-sections.cc",0xac1,"check_constraint")" identifier (argument_list "("../../gold/script-sections.cc",0xac1,"check_constraint")" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""check_constraint"" " string_content ") ))) ;) })) (if_statement "if (this->output_section_ == (Output_section *)0x0) {\n        return CONSTRAINT_NONE;\n      }" if (parenthesized_expression "(this->output_section_ == (Output_section *)0x0)" ( (binary_expression "this->output_section_ == (Output_section *)0x0" (field_expression "this->output_section_" identifier -> field_identifier) == (cast_expression "(Output_section *)0x0" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return CONSTRAINT_NONE;\n      }" { (return_statement "return CONSTRAINT_NONE;" return identifier ;) })) (expression_statement "format = (char *)gettext("SPECIAL constraints are not implemented");" (assignment_expression "format = (char *)gettext("SPECIAL constraints are not implemented")" identifier = (cast_expression "(char *)gettext("SPECIAL constraints are not implemented")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("SPECIAL constraints are not implemented")" identifier (argument_list "("SPECIAL constraints are not implemented")" ( (string_literal ""SPECIAL constraints are not implemented"" " string_content ") ))))) ;) (expression_statement "gold_error(format);" (call_expression "gold_error(format)" identifier (argument_list "(format)" ( identifier ))) ;) (return_statement "return CONSTRAINT_NONE;" return identifier ;) })) (if_statement "if (this->output_section_ == (Output_section *)0x0) {\n      return CONSTRAINT_NONE;\n    }" if (parenthesized_expression "(this->output_section_ == (Output_section *)0x0)" ( (binary_expression "this->output_section_ == (Output_section *)0x0" (field_expression "this->output_section_" identifier -> field_identifier) == (cast_expression "(Output_section *)0x0" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return CONSTRAINT_NONE;\n    }" { (return_statement "return CONSTRAINT_NONE;" return identifier ;) })) (if_statement "if ((this->output_section_->flags_ & 1) != 0) {\n      return CONSTRAINT_NONE;\n    }" if (parenthesized_expression "((this->output_section_->flags_ & 1) != 0)" ( (binary_expression "(this->output_section_->flags_ & 1) != 0" (parenthesized_expression "(this->output_section_->flags_ & 1)" ( (binary_expression "this->output_section_->flags_ & 1" (field_expression "this->output_section_->flags_" (field_expression "this->output_section_" identifier -> field_identifier) -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      return CONSTRAINT_NONE;\n    }" { (return_statement "return CONSTRAINT_NONE;" return identifier ;) })) }))) (expression_statement "*posd = this;" (assignment_expression "*posd = this" (pointer_expression "*posd" * identifier) = identifier) ;) (return_statement "return SVar1;" return identifier ;) })))
(translation_unit "int FUN_00106000(int param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar1 == 1) {\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }\n  *param_2 = param_1;\n  return iVar1;\n}\n\n" (function_definition "int FUN_00106000(int param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar1 == 1) {\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }\n  *param_2 = param_1;\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00106000(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar1 == 1) {\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }\n  *param_2 = param_1;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x2c)" identifier = (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 1) {\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }" { (if_statement "if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0)" ( (binary_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1)" ( (binary_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1" (pointer_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54)" * (cast_expression "(byte *)(*(int *)(param_1 + 0x44) + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x44) + 0x54)" ( (binary_expression "*(int *)(param_1 + 0x44) + 0x54" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }" else (compound_statement "{\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }" { (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }" if (parenthesized_expression "(iVar1 != 2)" ( (binary_expression "iVar1 != 2" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }" { (if_statement "if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }" if (parenthesized_expression "(iVar1 != 3)" ( (binary_expression "iVar1 != 3" identifier != number_literal) )) (compound_statement "{\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }" { (expression_statement "FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);" (call_expression "FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1)" identifier (argument_list "("../../gold/script-sections.cc",0xac1,"check_constraint",param_1)" ( (string_literal ""../../gold/script-sections.cc"" " string_content ") , number_literal , (string_literal ""check_constraint"" " string_content ") , identifier ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = gettext("SPECIAL constraints are not implemented");" (assignment_expression "uVar2 = gettext("SPECIAL constraints are not implemented")" identifier = (call_expression "gettext("SPECIAL constraints are not implemented")" identifier (argument_list "("SPECIAL constraints are not implemented")" ( (string_literal ""SPECIAL constraints are not implemented"" " string_content ") )))) ;) (expression_statement "FUN_0005ad00(uVar2);" (call_expression "FUN_0005ad00(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" ( (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }" if (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0)" ( (binary_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1)" ( (binary_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1" (pointer_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54)" * (cast_expression "(byte *)(*(int *)(param_1 + 0x44) + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x44) + 0x54)" ( (binary_expression "*(int *)(param_1 + 0x44) + 0x54" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }))) (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" * identifier) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) == LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (return_statement return LIT ;) })) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_00106000(int param_1,int *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar1 == 1) {\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }\n  *param_2 = param_1;\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00106000(int param_1,int *param_2)" (identifier "FUN_00106000") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x2c);\n  if (iVar1 == 1) {\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }\n  *param_2 = param_1;\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x2c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x2c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (if_statement "if (iVar1 == 1) {\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }\n  else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 1)" (( "(") (binary_expression "iVar1 == 1" (identifier "iVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))\n    {\n      return 0;\n    }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))" (( "(") (binary_expression "(*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1)" (( "(") (binary_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1" (pointer_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54)" (* "*") (cast_expression "(byte *)(*(int *)(param_1 + 0x44) + 0x54)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x44) + 0x54)" (( "(") (binary_expression "*(int *)(param_1 + 0x44) + 0x54" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (+ "+") (number_literal "0x54")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }" (else "else") (compound_statement "{\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }\n    if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }\n    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (iVar1 != 2) {\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 != 2)" (( "(") (binary_expression "iVar1 != 2" (identifier "iVar1") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n      if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }\n      if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }\n      uVar2 = gettext("SPECIAL constraints are not implemented");\n      FUN_0005ad00(uVar2);\n      return 0;\n    }" ({ "{") (if_statement "if (iVar1 != 3) {\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }" (if "if") (parenthesized_expression "(iVar1 != 3)" (( "(") (binary_expression "iVar1 != 3" (identifier "iVar1") (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\n                    \n        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);\n      }" ({ "{") (expression_statement "FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);" (call_expression "FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/script-sections.cc",0xac1,"check_constraint",param_1)" (( "(") (string_literal ""../../gold/script-sections.cc"" (" """) (string_content "../../gold/script-sections.cc") (" """)) (, ",") (number_literal "0xac1") (, ",") (string_literal ""check_constraint"" (" """) (string_content "check_constraint") (" """)) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar2 = gettext("SPECIAL constraints are not implemented");" (assignment_expression "uVar2 = gettext("SPECIAL constraints are not implemented")" (identifier "uVar2") (= "=") (call_expression "gettext("SPECIAL constraints are not implemented")" (identifier "gettext") (argument_list "("SPECIAL constraints are not implemented")" (( "(") (string_literal ""SPECIAL constraints are not implemented"" (" """) (string_content "SPECIAL constraints are not implemented") (" """)) () ")")))) (; ";")) (expression_statement "FUN_0005ad00(uVar2);" (call_expression "FUN_0005ad00(uVar2)" (identifier "FUN_0005ad00") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x44) == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x44) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x44) == 0" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1)" (( "(") (binary_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1" (pointer_expression "*(byte *)(*(int *)(param_1 + 0x44) + 0x54)" (* "*") (cast_expression "(byte *)(*(int *)(param_1 + 0x44) + 0x54)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x44) + 0x54)" (( "(") (binary_expression "*(int *)(param_1 + 0x44) + 0x54" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (+ "+") (number_literal "0x54")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")))) (expression_statement "*param_2 = param_1;" (assignment_expression "*param_2 = param_1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "param_1")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: Section_constraint check_constraint(Output_section_definition * this,
   Output_section_definition * * posd) */

type_1 __thiscall
gold::type_2::function_1
          (type_2 *this,type_2 **posd)

{
  type_1 var_1;
  char *format;
  
  var_1 = this->constraint_;
  if (var_1 == var_2) {
    if ((this->output_section_ == (type_3 *)0x0) ||
       ((this->output_section_->flags_ & 1) == 0)) {
      return var_3;
    }
  }
  else {
    if (var_1 == var_3) {
      return var_3;
    }
    if (var_1 != var_4) {
      if (var_1 != var_5) {
                    /* WARNING: Subroutine does not return */
        var_6("../../gold/script-sections.cc",0xac1,"check_constraint");
      }
      if (this->output_section_ == (type_3 *)0x0) {
        return var_3;
      }
      format = (char *)var_7("SPECIAL constraints are not implemented");
      var_8(format);
      return var_3;
    }
    if (this->output_section_ == (type_3 *)0x0) {
      return var_3;
    }
    if ((this->output_section_->flags_ & 1) != 0) {
      return var_3;
    }
  }
  *posd = this;
  return var_1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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 (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (number_literal))) 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: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) 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: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(int param_1,int *param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = *(int *)(param_1 + 0x2c);
  if (iVar1 == 1) {
    if ((*(int *)(param_1 + 0x44) == 0) || ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) == 0))
    {
      return 0;
    }
  }
  else {
    if (iVar1 == 0) {
      return 0;
    }
    if (iVar1 != 2) {
      if (iVar1 != 3) {
                    /* WARNING: Subroutine does not return */
        FUN_0005f0b0("../../gold/script-sections.cc",0xac1,"check_constraint",param_1);
      }
      if (*(int *)(param_1 + 0x44) == 0) {
        return 0;
      }
      uVar2 = gettext("SPECIAL constraints are not implemented");
      FUN_0005ad00(uVar2);
      return 0;
    }
    if (*(int *)(param_1 + 0x44) == 0) {
      return 0;
    }
    if ((*(byte *)(*(int *)(param_1 + 0x44) + 0x54) & 1) != 0) {
      return 0;
    }
  }
  *param_2 = param_1;
  return iVar1;
}

