
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

bfd_vma exp_get_vma(etree_type *tree,bfd_vma def,char *name)

{
  char *fmt;
  
  if (tree != (etree_type *)0x0) {
    expld.section = (asection *)(PTR__bfd_std_section_0008bfd4 + 0x150);
    expld.rel_from_abs = 0;
    expld.dot = 0;
    expld.dotp = (bfd_vma *)0x0;
    exp_fold_tree_1(tree);
    if (expld.result.valid_p != 0) {
      return expld.result.value;
    }
    if ((name != (char *)0x0) && (expld.phase != lang_mark_phase_enum)) {
      fmt = (char *)dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);
      einfo(fmt,tree,name);
    }
  }
  return def;
}



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

undefined4 FUN_0002fb40(int param_1,undefined4 param_2,int param_3)

{
  undefined4 uVar1;
  
  if (param_1 != 0) {
    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;
    DAT_0008cd88 = 0;
    DAT_0008cda4 = 0;
    DAT_0008cda8 = 0;
    FUN_0002da50();
    if (DAT_0008cda0 != 0) {
      return DAT_0008cd94;
    }
    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {
      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);
      FUN_00031700(uVar1,param_1,param_3);
    }
  }
  return param_2;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00015a20
ADD EBX,0x5c4b4
TEST EDI,EDI
JZ 0x0002fb9a
MOV EAX,dword ptr [EBX + 0xffffffd4]
LEA ESI,[EBX + 0xd80]
ADD EAX,0x150
MOV dword ptr [ESI + 0x8],0x0
MOV dword ptr [ESI + 0x2c],EAX
MOV EAX,EDI
MOV dword ptr [ESI + 0x24],0x0
MOV dword ptr [ESI + 0x28],0x0
CALL 0x0002da50
MOV EDX,dword ptr [ESI + 0x20]
TEST EDX,EDX
JNZ 0x0002fba8
MOV EAX,dword ptr [ESP + 0x18]
TEST EAX,EAX
JZ 0x0002fb9a
CMP dword ptr [ESI],0x1
JNZ 0x0002fbb0
MOV EAX,dword ptr [ESP + 0x14]
POP EBX
POP ESI
POP EDI
RET
MOV EAX,dword ptr [ESI + 0x14]
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffc21f8]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000142e0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x1c]
PUSH EDI
PUSH EAX
CALL 0x00031700
ADD ESP,0x10
JMP 0x0002fb9a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0002fb40(int param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }\n  return param_2;\n}\n\n" comment (function_definition "undefined4 FUN_0002fb40(int param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }\n  return param_2;\n}" type_identifier (function_declarator "FUN_0002fb40(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }\n  return param_2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }" { (expression_statement "DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;" (assignment_expression "DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150" identifier = (binary_expression "PTR__bfd_std_section_0008bfd4 + 0x150" identifier + number_literal)) ;) (expression_statement "DAT_0008cd88 = 0;" (assignment_expression "DAT_0008cd88 = 0" identifier = number_literal) ;) (expression_statement "DAT_0008cda4 = 0;" (assignment_expression "DAT_0008cda4 = 0" identifier = number_literal) ;) (expression_statement "DAT_0008cda8 = 0;" (assignment_expression "DAT_0008cda8 = 0" identifier = number_literal) ;) (expression_statement "FUN_0002da50();" (call_expression "FUN_0002da50()" identifier (argument_list "()" ( ))) ;) (if_statement "if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }" if (parenthesized_expression "(DAT_0008cda0 != 0)" ( (binary_expression "DAT_0008cda0 != 0" identifier != number_literal) )) (compound_statement "{\n      return DAT_0008cd94;\n    }" { (return_statement "return DAT_0008cd94;" return identifier ;) })) (if_statement "if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }" if (parenthesized_expression "((param_3 != 0) && (DAT_0008cd80 != 1))" ( (binary_expression "(param_3 != 0) && (DAT_0008cd80 != 1)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(DAT_0008cd80 != 1)" ( (binary_expression "DAT_0008cd80 != 1" identifier != number_literal) ))) )) (compound_statement "{\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }" { (expression_statement "uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);" (assignment_expression "uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5)" identifier = (call_expression "dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5)" identifier (argument_list "(0,"%F%P:%pS: nonconstant expression for %s\n",5)" ( number_literal , (string_literal ""%F%P:%pS: nonconstant expression for %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00031700(uVar1,param_1,param_3);" (call_expression "FUN_00031700(uVar1,param_1,param_3)" identifier (argument_list "(uVar1,param_1,param_3)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_vma exp_get_vma(etree_type *tree,bfd_vma def,char *name)\n\n{\n  char *fmt;\n  \n  if (tree != (etree_type *)0x0) {\n    expld.section = (asection *)(PTR__bfd_std_section_0008bfd4 + 0x150);\n    expld.rel_from_abs = 0;\n    expld.dot = 0;\n    expld.dotp = (bfd_vma *)0x0;\n    exp_fold_tree_1(tree);\n    if (expld.result.valid_p != 0) {\n      return expld.result.value;\n    }\n    if ((name != (char *)0x0) && (expld.phase != lang_mark_phase_enum)) {\n      fmt = (char *)dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      einfo(fmt,tree,name);\n    }\n  }\n  return def;\n}\n\n" comment comment (function_definition "bfd_vma exp_get_vma(etree_type *tree,bfd_vma def,char *name)\n\n{\n  char *fmt;\n  \n  if (tree != (etree_type *)0x0) {\n    expld.section = (asection *)(PTR__bfd_std_section_0008bfd4 + 0x150);\n    expld.rel_from_abs = 0;\n    expld.dot = 0;\n    expld.dotp = (bfd_vma *)0x0;\n    exp_fold_tree_1(tree);\n    if (expld.result.valid_p != 0) {\n      return expld.result.value;\n    }\n    if ((name != (char *)0x0) && (expld.phase != lang_mark_phase_enum)) {\n      fmt = (char *)dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      einfo(fmt,tree,name);\n    }\n  }\n  return def;\n}" type_identifier (function_declarator "exp_get_vma(etree_type *tree,bfd_vma def,char *name)" identifier (parameter_list "(etree_type *tree,bfd_vma def,char *name)" ( (parameter_declaration "etree_type *tree" type_identifier (pointer_declarator "*tree" * identifier)) , (parameter_declaration "bfd_vma def" type_identifier identifier) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  char *fmt;\n  \n  if (tree != (etree_type *)0x0) {\n    expld.section = (asection *)(PTR__bfd_std_section_0008bfd4 + 0x150);\n    expld.rel_from_abs = 0;\n    expld.dot = 0;\n    expld.dotp = (bfd_vma *)0x0;\n    exp_fold_tree_1(tree);\n    if (expld.result.valid_p != 0) {\n      return expld.result.value;\n    }\n    if ((name != (char *)0x0) && (expld.phase != lang_mark_phase_enum)) {\n      fmt = (char *)dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      einfo(fmt,tree,name);\n    }\n  }\n  return def;\n}" { (declaration "char *fmt;" primitive_type (pointer_declarator "*fmt" * identifier) ;) (if_statement "if (tree != (etree_type *)0x0) {\n    expld.section = (asection *)(PTR__bfd_std_section_0008bfd4 + 0x150);\n    expld.rel_from_abs = 0;\n    expld.dot = 0;\n    expld.dotp = (bfd_vma *)0x0;\n    exp_fold_tree_1(tree);\n    if (expld.result.valid_p != 0) {\n      return expld.result.value;\n    }\n    if ((name != (char *)0x0) && (expld.phase != lang_mark_phase_enum)) {\n      fmt = (char *)dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      einfo(fmt,tree,name);\n    }\n  }" if (parenthesized_expression "(tree != (etree_type *)0x0)" ( (binary_expression "tree != (etree_type *)0x0" identifier != (cast_expression "(etree_type *)0x0" ( (type_descriptor "etree_type *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    expld.section = (asection *)(PTR__bfd_std_section_0008bfd4 + 0x150);\n    expld.rel_from_abs = 0;\n    expld.dot = 0;\n    expld.dotp = (bfd_vma *)0x0;\n    exp_fold_tree_1(tree);\n    if (expld.result.valid_p != 0) {\n      return expld.result.value;\n    }\n    if ((name != (char *)0x0) && (expld.phase != lang_mark_phase_enum)) {\n      fmt = (char *)dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      einfo(fmt,tree,name);\n    }\n  }" { (expression_statement "expld.section = (asection *)(PTR__bfd_std_section_0008bfd4 + 0x150);" (assignment_expression "expld.section = (asection *)(PTR__bfd_std_section_0008bfd4 + 0x150)" (field_expression "expld.section" identifier . field_identifier) = (cast_expression "(asection *)(PTR__bfd_std_section_0008bfd4 + 0x150)" ( (type_descriptor "asection *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR__bfd_std_section_0008bfd4 + 0x150)" ( (binary_expression "PTR__bfd_std_section_0008bfd4 + 0x150" identifier + number_literal) )))) ;) (expression_statement "expld.rel_from_abs = 0;" (assignment_expression "expld.rel_from_abs = 0" (field_expression "expld.rel_from_abs" identifier . field_identifier) = number_literal) ;) (expression_statement "expld.dot = 0;" (assignment_expression "expld.dot = 0" (field_expression "expld.dot" identifier . field_identifier) = number_literal) ;) (expression_statement "expld.dotp = (bfd_vma *)0x0;" (assignment_expression "expld.dotp = (bfd_vma *)0x0" (field_expression "expld.dotp" identifier . field_identifier) = (cast_expression "(bfd_vma *)0x0" ( (type_descriptor "bfd_vma *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "exp_fold_tree_1(tree);" (call_expression "exp_fold_tree_1(tree)" identifier (argument_list "(tree)" ( identifier ))) ;) (if_statement "if (expld.result.valid_p != 0) {\n      return expld.result.value;\n    }" if (parenthesized_expression "(expld.result.valid_p != 0)" ( (binary_expression "expld.result.valid_p != 0" (field_expression "expld.result.valid_p" (field_expression "expld.result" identifier . field_identifier) . field_identifier) != number_literal) )) (compound_statement "{\n      return expld.result.value;\n    }" { (return_statement "return expld.result.value;" return (field_expression "expld.result.value" (field_expression "expld.result" identifier . field_identifier) . field_identifier) ;) })) (if_statement "if ((name != (char *)0x0) && (expld.phase != lang_mark_phase_enum)) {\n      fmt = (char *)dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      einfo(fmt,tree,name);\n    }" if (parenthesized_expression "((name != (char *)0x0) && (expld.phase != lang_mark_phase_enum))" ( (binary_expression "(name != (char *)0x0) && (expld.phase != lang_mark_phase_enum)" (parenthesized_expression "(name != (char *)0x0)" ( (binary_expression "name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(expld.phase != lang_mark_phase_enum)" ( (binary_expression "expld.phase != lang_mark_phase_enum" (field_expression "expld.phase" identifier . field_identifier) != identifier) ))) )) (compound_statement "{\n      fmt = (char *)dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      einfo(fmt,tree,name);\n    }" { (expression_statement "fmt = (char *)dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);" (assignment_expression "fmt = (char *)dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5)" identifier = (cast_expression "(char *)dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5)" identifier (argument_list "(0,"%F%P:%pS: nonconstant expression for %s\n",5)" ( number_literal , (string_literal ""%F%P:%pS: nonconstant expression for %s\n"" " string_content escape_sequence ") , number_literal ))))) ;) (expression_statement "einfo(fmt,tree,name);" (call_expression "einfo(fmt,tree,name)" identifier (argument_list "(fmt,tree,name)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return def;" return identifier ;) })))
(translation_unit "undefined4 FUN_0002fb40(int param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }\n  return param_2;\n}\n\n" (function_definition "undefined4 FUN_0002fb40(int param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }\n  return param_2;\n}" type_identifier (function_declarator "FUN_0002fb40(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }\n  return param_2;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }" { (expression_statement "DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;" (assignment_expression "DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150" identifier = (binary_expression "PTR__bfd_std_section_0008bfd4 + 0x150" identifier + number_literal)) ;) (expression_statement "DAT_0008cd88 = 0;" (assignment_expression "DAT_0008cd88 = 0" identifier = number_literal) ;) (expression_statement "DAT_0008cda4 = 0;" (assignment_expression "DAT_0008cda4 = 0" identifier = number_literal) ;) (expression_statement "DAT_0008cda8 = 0;" (assignment_expression "DAT_0008cda8 = 0" identifier = number_literal) ;) (expression_statement "FUN_0002da50();" (call_expression "FUN_0002da50()" identifier (argument_list "()" ( ))) ;) (if_statement "if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }" if (parenthesized_expression "(DAT_0008cda0 != 0)" ( (binary_expression "DAT_0008cda0 != 0" identifier != number_literal) )) (compound_statement "{\n      return DAT_0008cd94;\n    }" { (return_statement "return DAT_0008cd94;" return identifier ;) })) (if_statement "if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }" if (parenthesized_expression "((param_3 != 0) && (DAT_0008cd80 != 1))" ( (binary_expression "(param_3 != 0) && (DAT_0008cd80 != 1)" (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) && (parenthesized_expression "(DAT_0008cd80 != 1)" ( (binary_expression "DAT_0008cd80 != 1" identifier != number_literal) ))) )) (compound_statement "{\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }" { (expression_statement "uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);" (assignment_expression "uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5)" identifier = (call_expression "dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5)" identifier (argument_list "(0,"%F%P:%pS: nonconstant expression for %s\n",5)" ( number_literal , (string_literal ""%F%P:%pS: nonconstant expression for %s\n"" " string_content escape_sequence ") , number_literal )))) ;) (expression_statement "FUN_00031700(uVar1,param_1,param_3);" (call_expression "FUN_00031700(uVar1,param_1,param_3)" identifier (argument_list "(uVar1,param_1,param_3)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content escape_sequence ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0002fb40(int param_1,undefined4 param_2,int param_3)\n\n{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }\n  return param_2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0002fb40(int param_1,undefined4 param_2,int param_3)" (identifier "FUN_0002fb40") (parameter_list "(int param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (param_1 != 0) {\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }\n  return param_2;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (param_1 != 0) {\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;\n    DAT_0008cd88 = 0;\n    DAT_0008cda4 = 0;\n    DAT_0008cda8 = 0;\n    FUN_0002da50();\n    if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }\n    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }\n  }" ({ "{") (expression_statement "DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;" (assignment_expression "DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150" (identifier "DAT_0008cdac") (= "=") (binary_expression "PTR__bfd_std_section_0008bfd4 + 0x150" (identifier "PTR__bfd_std_section_0008bfd4") (+ "+") (number_literal "0x150"))) (; ";")) (expression_statement "DAT_0008cd88 = 0;" (assignment_expression "DAT_0008cd88 = 0" (identifier "DAT_0008cd88") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_0008cda4 = 0;" (assignment_expression "DAT_0008cda4 = 0" (identifier "DAT_0008cda4") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_0008cda8 = 0;" (assignment_expression "DAT_0008cda8 = 0" (identifier "DAT_0008cda8") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0002da50();" (call_expression "FUN_0002da50()" (identifier "FUN_0002da50") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (DAT_0008cda0 != 0) {\n      return DAT_0008cd94;\n    }" (if "if") (parenthesized_expression "(DAT_0008cda0 != 0)" (( "(") (binary_expression "DAT_0008cda0 != 0" (identifier "DAT_0008cda0") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return DAT_0008cd94;\n    }" ({ "{") (return_statement "return DAT_0008cd94;" (return "return") (identifier "DAT_0008cd94") (; ";")) (} "}"))) (if_statement "if ((param_3 != 0) && (DAT_0008cd80 != 1)) {\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }" (if "if") (parenthesized_expression "((param_3 != 0) && (DAT_0008cd80 != 1))" (( "(") (binary_expression "(param_3 != 0) && (DAT_0008cd80 != 1)" (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(DAT_0008cd80 != 1)" (( "(") (binary_expression "DAT_0008cd80 != 1" (identifier "DAT_0008cd80") (!= "!=") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);\n      FUN_00031700(uVar1,param_1,param_3);\n    }" ({ "{") (expression_statement "uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);" (assignment_expression "uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5)" (identifier "uVar1") (= "=") (call_expression "dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5)" (identifier "dcgettext") (argument_list "(0,"%F%P:%pS: nonconstant expression for %s\n",5)" (( "(") (number_literal "0") (, ",") (string_literal ""%F%P:%pS: nonconstant expression for %s\n"" (" """) (string_content "%F%P:%pS: nonconstant expression for %s") (escape_sequence "\n") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00031700(uVar1,param_1,param_3);" (call_expression "FUN_00031700(uVar1,param_1,param_3)" (identifier "FUN_00031700") (argument_list "(uVar1,param_1,param_3)" (( "(") (identifier "uVar1") (, ",") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 function_1(type_2 *var_1,type_1 def,char *var_4)

{
  char *fmt;
  
  if (var_1 != (type_2 *)0x0) {
    expld.section = (type_3 *)(var_2 + 0x150);
    expld.rel_from_abs = 0;
    expld.dot = 0;
    expld.dotp = (type_1 *)0x0;
    var_3(var_1);
    if (expld.result.valid_p != 0) {
      return expld.result.value;
    }
    if ((var_4 != (char *)0x0) && (expld.phase != var_5)) {
      fmt = (char *)var_6(0,"%F%P:%pS: nonconstant expression for %s\n",5);
      var_7(fmt,var_1,var_4);
    }
  }
  return def;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content) (escape_sequence)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))))) (return_statement (identifier)))))

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

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

{
  undefined4 uVar1;
  
  if (param_1 != 0) {
    DAT_0008cdac = PTR__bfd_std_section_0008bfd4 + 0x150;
    DAT_0008cd88 = 0;
    DAT_0008cda4 = 0;
    DAT_0008cda8 = 0;
    FUN_0002da50();
    if (DAT_0008cda0 != 0) {
      return DAT_0008cd94;
    }
    if ((param_3 != 0) && (DAT_0008cd80 != 1)) {
      uVar1 = dcgettext(0,"%F%P:%pS: nonconstant expression for %s\n",5);
      FUN_00031700(uVar1,param_1,param_3);
    }
  }
  return param_2;
}

