
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void parse_pop_state(General_options * this, char * param_1, char *
   param_2, Command_line * param_3) */

void __thiscall
gold::General_options::parse_pop_state
          (General_options *this,char *param_2,char *param_3,Command_line *param_4)

{
  pointer ppPVar1;
  Position_dependent_options *posdep;
  char *format;
  
  ppPVar1 = (this->options_stack_).
            super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>
            ._M_impl._M_finish;
  if ((this->options_stack_).
      super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>
      ._M_impl._M_start != ppPVar1) {
    posdep = ppPVar1[-1];
    (this->options_stack_).
    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>
    ._M_impl._M_finish = ppPVar1 + -1;
    copy_from_posdep_options(this,posdep);
    operator_delete(posdep,0x10);
    return;
  }
  format = (char *)gettext("unbalanced --push-state/--pop-state");
  gold_error(format);
  return;
}



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

void FUN_000dd8f0(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = *(int *)(param_1 + 0x5a80);
  if (*(int *)(param_1 + 0x5a7c) != iVar1) {
    uVar2 = *(undefined4 *)(iVar1 + -4);
    *(int *)(param_1 + 0x5a80) = iVar1 + -4;
    FUN_000dd860(param_1,uVar2);
    FUN_001e6d90(uVar2,0x10);
    return;
  }
  uVar2 = gettext("unbalanced --push-state/--pop-state");
  FUN_000654b0(uVar2);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x2b1709
SUB ESP,0x4
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EDX + 0x5a80]
CMP dword ptr [EDX + 0x5a7c],EAX
JZ 0x000dd940
MOV ESI,dword ptr [EAX + -0x4]
SUB ESP,0x8
SUB EAX,0x4
MOV dword ptr [EDX + 0x5a80],EAX
PUSH ESI
PUSH EDX
CALL 0x000dd860
POP EAX
POP EDX
PUSH 0x10
PUSH ESI
CALL 0x001e6d90
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
SUB ESP,0xc
LEA EAX,[EBX + 0xffeffea8]
PUSH EAX
CALL 0x000293b0
MOV dword ptr [ESP],EAX
CALL 0x000654b0
ADD ESP,0x10
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000dd8f0(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5a80);\n  if (*(int *)(param_1 + 0x5a7c) != iVar1) {\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }\n  uVar2 = gettext("unbalanced --push-state/--pop-state");\n  FUN_000654b0(uVar2);\n  return;\n}\n\n" comment (function_definition "void FUN_000dd8f0(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5a80);\n  if (*(int *)(param_1 + 0x5a7c) != iVar1) {\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }\n  uVar2 = gettext("unbalanced --push-state/--pop-state");\n  FUN_000654b0(uVar2);\n  return;\n}" primitive_type (function_declarator "FUN_000dd8f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5a80);\n  if (*(int *)(param_1 + 0x5a7c) != iVar1) {\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }\n  uVar2 = gettext("unbalanced --push-state/--pop-state");\n  FUN_000654b0(uVar2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5a80);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5a80)" identifier = (pointer_expression "*(int *)(param_1 + 0x5a80)" * (cast_expression "(int *)(param_1 + 0x5a80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5a80)" ( (binary_expression "param_1 + 0x5a80" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x5a7c) != iVar1) {\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x5a7c) != iVar1)" ( (binary_expression "*(int *)(param_1 + 0x5a7c) != iVar1" (pointer_expression "*(int *)(param_1 + 0x5a7c)" * (cast_expression "(int *)(param_1 + 0x5a7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5a7c)" ( (binary_expression "param_1 + 0x5a7c" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }" { (expression_statement "uVar2 = *(undefined4 *)(iVar1 + -4);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + -4)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + -4)" * (cast_expression "(undefined4 *)(iVar1 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x5a80) = iVar1 + -4;" (assignment_expression "*(int *)(param_1 + 0x5a80) = iVar1 + -4" (pointer_expression "*(int *)(param_1 + 0x5a80)" * (cast_expression "(int *)(param_1 + 0x5a80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5a80)" ( (binary_expression "param_1 + 0x5a80" identifier + number_literal) )))) = (binary_expression "iVar1 + -4" identifier + number_literal)) ;) (expression_statement "FUN_000dd860(param_1,uVar2);" (call_expression "FUN_000dd860(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier ))) ;) (expression_statement "FUN_001e6d90(uVar2,0x10);" (call_expression "FUN_001e6d90(uVar2,0x10)" identifier (argument_list "(uVar2,0x10)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = gettext("unbalanced --push-state/--pop-state");" (assignment_expression "uVar2 = gettext("unbalanced --push-state/--pop-state")" identifier = (call_expression "gettext("unbalanced --push-state/--pop-state")" identifier (argument_list "("unbalanced --push-state/--pop-state")" ( (string_literal ""unbalanced --push-state/--pop-state"" " string_content ") )))) ;) (expression_statement "FUN_000654b0(uVar2);" (call_expression "FUN_000654b0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void parse_pop_state(General_options * this, char * param_1, char *\n   param_2, Command_line * param_3) */\n\nvoid __thiscall\ngold::General_options::parse_pop_state\n          (General_options *this,char *param_2,char *param_3,Command_line *param_4)\n\n{\n  pointer ppPVar1;\n  Position_dependent_options *posdep;\n  char *format;\n  \n  ppPVar1 = (this->options_stack_).\n            super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n            ._M_impl._M_finish;\n  if ((this->options_stack_).\n      super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n      ._M_impl._M_start != ppPVar1) {\n    posdep = ppPVar1[-1];\n    (this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n    ._M_impl._M_finish = ppPVar1 + -1;\n    copy_from_posdep_options(this,posdep);\n    operator_delete(posdep,0x10);\n    return;\n  }\n  format = (char *)gettext("unbalanced --push-state/--pop-state");\n  gold_error(format);\n  return;\n}\n\n" comment comment comment (function_definition "void __thiscall\ngold::General_options::parse_pop_state\n          (General_options *this,char *param_2,char *param_3,Command_line *param_4)\n\n{\n  pointer ppPVar1;\n  Position_dependent_options *posdep;\n  char *format;\n  \n  ppPVar1 = (this->options_stack_).\n            super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n            ._M_impl._M_finish;\n  if ((this->options_stack_).\n      super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n      ._M_impl._M_start != ppPVar1) {\n    posdep = ppPVar1[-1];\n    (this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n    ._M_impl._M_finish = ppPVar1 + -1;\n    copy_from_posdep_options(this,posdep);\n    operator_delete(posdep,0x10);\n    return;\n  }\n  format = (char *)gettext("unbalanced --push-state/--pop-state");\n  gold_error(format);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::General_options::" identifier : : identifier : :) (function_declarator "parse_pop_state\n          (General_options *this,char *param_2,char *param_3,Command_line *param_4)" identifier (parameter_list "(General_options *this,char *param_2,char *param_3,Command_line *param_4)" ( (parameter_declaration "General_options *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "Command_line *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  pointer ppPVar1;\n  Position_dependent_options *posdep;\n  char *format;\n  \n  ppPVar1 = (this->options_stack_).\n            super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n            ._M_impl._M_finish;\n  if ((this->options_stack_).\n      super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n      ._M_impl._M_start != ppPVar1) {\n    posdep = ppPVar1[-1];\n    (this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n    ._M_impl._M_finish = ppPVar1 + -1;\n    copy_from_posdep_options(this,posdep);\n    operator_delete(posdep,0x10);\n    return;\n  }\n  format = (char *)gettext("unbalanced --push-state/--pop-state");\n  gold_error(format);\n  return;\n}" { (declaration "pointer ppPVar1;" type_identifier identifier ;) (declaration "Position_dependent_options *posdep;" type_identifier (pointer_declarator "*posdep" * identifier) ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (expression_statement "ppPVar1 = (this->options_stack_).\n            super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n            ._M_impl._M_finish;" (field_expression "ppPVar1 = (this->options_stack_).\n            super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n            ._M_impl._M_finish" (field_expression "ppPVar1 = (this->options_stack_).\n            super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n            ._M_impl" (binary_expression "ppPVar1 = (this->options_stack_).\n            super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_" (binary_expression "ppPVar1 = (this->options_stack_).\n            super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold" (binary_expression "ppPVar1 = (this->options_stack_).\n            super__Vector_base<gold::Position_dependent_options*,_std" (assignment_expression "ppPVar1 = (this->options_stack_).\n            super__Vector_base<gold" identifier = (binary_expression "(this->options_stack_).\n            super__Vector_base<gold" (field_expression "(this->options_stack_).\n            super__Vector_base" (parenthesized_expression "(this->options_stack_)" ( (field_expression "this->options_stack_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Position_dependent_options" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Position_dependent_options" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if ((this->options_stack_).\n      super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n      ._M_impl._M_start != ppPVar1) {\n    posdep = ppPVar1[-1];\n    (this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n    ._M_impl._M_finish = ppPVar1 + -1;\n    copy_from_posdep_options(this,posdep);\n    operator_delete(posdep,0x10);\n    return;\n  }" if (parenthesized_expression "((this->options_stack_).\n      super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n      ._M_impl._M_start != ppPVar1)" ( (binary_expression "(this->options_stack_).\n      super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n      ._M_impl._M_start != ppPVar1" (field_expression "(this->options_stack_).\n      super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n      ._M_impl._M_start" (field_expression "(this->options_stack_).\n      super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n      ._M_impl" (binary_expression "(this->options_stack_).\n      super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_" (binary_expression "(this->options_stack_).\n      super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold" (binary_expression "(this->options_stack_).\n      super__Vector_base<gold::Position_dependent_options*,_std" (binary_expression "(this->options_stack_).\n      super__Vector_base<gold" (field_expression "(this->options_stack_).\n      super__Vector_base" (parenthesized_expression "(this->options_stack_)" ( (field_expression "this->options_stack_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Position_dependent_options" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Position_dependent_options" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) != identifier) )) (compound_statement "{\n    posdep = ppPVar1[-1];\n    (this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n    ._M_impl._M_finish = ppPVar1 + -1;\n    copy_from_posdep_options(this,posdep);\n    operator_delete(posdep,0x10);\n    return;\n  }" { (expression_statement "posdep = ppPVar1[-1];" (assignment_expression "posdep = ppPVar1[-1]" identifier = (subscript_expression "ppPVar1[-1]" identifier [ number_literal ])) ;) (expression_statement "(this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n    ._M_impl._M_finish = ppPVar1 + -1;" (assignment_expression "(this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n    ._M_impl._M_finish = ppPVar1 + -1" (field_expression "(this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n    ._M_impl._M_finish" (field_expression "(this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_>\n    ._M_impl" (binary_expression "(this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold::Position_dependent_options*>_" (binary_expression "(this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std::allocator<gold" (binary_expression "(this->options_stack_).\n    super__Vector_base<gold::Position_dependent_options*,_std" (binary_expression "(this->options_stack_).\n    super__Vector_base<gold" (field_expression "(this->options_stack_).\n    super__Vector_base" (parenthesized_expression "(this->options_stack_)" ( (field_expression "this->options_stack_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Position_dependent_options" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Position_dependent_options" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) = (binary_expression "ppPVar1 + -1" identifier + number_literal)) ;) (expression_statement "copy_from_posdep_options(this,posdep);" (call_expression "copy_from_posdep_options(this,posdep)" identifier (argument_list "(this,posdep)" ( identifier , identifier ))) ;) (expression_statement "operator_delete(posdep,0x10);" (call_expression "operator_delete(posdep,0x10)" identifier (argument_list "(posdep,0x10)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "format = (char *)gettext("unbalanced --push-state/--pop-state");" (assignment_expression "format = (char *)gettext("unbalanced --push-state/--pop-state")" identifier = (cast_expression "(char *)gettext("unbalanced --push-state/--pop-state")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("unbalanced --push-state/--pop-state")" identifier (argument_list "("unbalanced --push-state/--pop-state")" ( (string_literal ""unbalanced --push-state/--pop-state"" " string_content ") ))))) ;) (expression_statement "gold_error(format);" (call_expression "gold_error(format)" identifier (argument_list "(format)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000dd8f0(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5a80);\n  if (*(int *)(param_1 + 0x5a7c) != iVar1) {\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }\n  uVar2 = gettext("unbalanced --push-state/--pop-state");\n  FUN_000654b0(uVar2);\n  return;\n}\n\n" (function_definition "void FUN_000dd8f0(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5a80);\n  if (*(int *)(param_1 + 0x5a7c) != iVar1) {\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }\n  uVar2 = gettext("unbalanced --push-state/--pop-state");\n  FUN_000654b0(uVar2);\n  return;\n}" primitive_type (function_declarator "FUN_000dd8f0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5a80);\n  if (*(int *)(param_1 + 0x5a7c) != iVar1) {\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }\n  uVar2 = gettext("unbalanced --push-state/--pop-state");\n  FUN_000654b0(uVar2);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x5a80);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5a80)" identifier = (pointer_expression "*(int *)(param_1 + 0x5a80)" * (cast_expression "(int *)(param_1 + 0x5a80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5a80)" ( (binary_expression "param_1 + 0x5a80" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(param_1 + 0x5a7c) != iVar1) {\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x5a7c) != iVar1)" ( (binary_expression "*(int *)(param_1 + 0x5a7c) != iVar1" (pointer_expression "*(int *)(param_1 + 0x5a7c)" * (cast_expression "(int *)(param_1 + 0x5a7c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5a7c)" ( (binary_expression "param_1 + 0x5a7c" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }" { (expression_statement "uVar2 = *(undefined4 *)(iVar1 + -4);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + -4)" identifier = (pointer_expression "*(undefined4 *)(iVar1 + -4)" * (cast_expression "(undefined4 *)(iVar1 + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + -4)" ( (binary_expression "iVar1 + -4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x5a80) = iVar1 + -4;" (assignment_expression "*(int *)(param_1 + 0x5a80) = iVar1 + -4" (pointer_expression "*(int *)(param_1 + 0x5a80)" * (cast_expression "(int *)(param_1 + 0x5a80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5a80)" ( (binary_expression "param_1 + 0x5a80" identifier + number_literal) )))) = (binary_expression "iVar1 + -4" identifier + number_literal)) ;) (expression_statement "FUN_000dd860(param_1,uVar2);" (call_expression "FUN_000dd860(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier ))) ;) (expression_statement "FUN_001e6d90(uVar2,0x10);" (call_expression "FUN_001e6d90(uVar2,0x10)" identifier (argument_list "(uVar2,0x10)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar2 = gettext("unbalanced --push-state/--pop-state");" (assignment_expression "uVar2 = gettext("unbalanced --push-state/--pop-state")" identifier = (call_expression "gettext("unbalanced --push-state/--pop-state")" identifier (argument_list "("unbalanced --push-state/--pop-state")" ( (string_literal ""unbalanced --push-state/--pop-state"" " string_content ") )))) ;) (expression_statement "FUN_000654b0(uVar2);" (call_expression "FUN_000654b0(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (return_statement return ;) })) (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 ;) })))
(function_definition "void FUN_000dd8f0(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5a80);\n  if (*(int *)(param_1 + 0x5a7c) != iVar1) {\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }\n  uVar2 = gettext("unbalanced --push-state/--pop-state");\n  FUN_000654b0(uVar2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000dd8f0(int param_1)" (identifier "FUN_000dd8f0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = *(int *)(param_1 + 0x5a80);\n  if (*(int *)(param_1 + 0x5a7c) != iVar1) {\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }\n  uVar2 = gettext("unbalanced --push-state/--pop-state");\n  FUN_000654b0(uVar2);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x5a80);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x5a80)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x5a80)" (* "*") (cast_expression "(int *)(param_1 + 0x5a80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5a80)" (( "(") (binary_expression "param_1 + 0x5a80" (identifier "param_1") (+ "+") (number_literal "0x5a80")) () ")"))))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x5a7c) != iVar1) {\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x5a7c) != iVar1)" (( "(") (binary_expression "*(int *)(param_1 + 0x5a7c) != iVar1" (pointer_expression "*(int *)(param_1 + 0x5a7c)" (* "*") (cast_expression "(int *)(param_1 + 0x5a7c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5a7c)" (( "(") (binary_expression "param_1 + 0x5a7c" (identifier "param_1") (+ "+") (number_literal "0x5a7c")) () ")")))) (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n    uVar2 = *(undefined4 *)(iVar1 + -4);\n    *(int *)(param_1 + 0x5a80) = iVar1 + -4;\n    FUN_000dd860(param_1,uVar2);\n    FUN_001e6d90(uVar2,0x10);\n    return;\n  }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(iVar1 + -4);" (assignment_expression "uVar2 = *(undefined4 *)(iVar1 + -4)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(iVar1 + -4)" (* "*") (cast_expression "(undefined4 *)(iVar1 + -4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + -4)" (( "(") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x5a80) = iVar1 + -4;" (assignment_expression "*(int *)(param_1 + 0x5a80) = iVar1 + -4" (pointer_expression "*(int *)(param_1 + 0x5a80)" (* "*") (cast_expression "(int *)(param_1 + 0x5a80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5a80)" (( "(") (binary_expression "param_1 + 0x5a80" (identifier "param_1") (+ "+") (number_literal "0x5a80")) () ")")))) (= "=") (binary_expression "iVar1 + -4" (identifier "iVar1") (+ "+") (number_literal "-4"))) (; ";")) (expression_statement "FUN_000dd860(param_1,uVar2);" (call_expression "FUN_000dd860(param_1,uVar2)" (identifier "FUN_000dd860") (argument_list "(param_1,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "FUN_001e6d90(uVar2,0x10);" (call_expression "FUN_001e6d90(uVar2,0x10)" (identifier "FUN_001e6d90") (argument_list "(uVar2,0x10)" (( "(") (identifier "uVar2") (, ",") (number_literal "0x10") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar2 = gettext("unbalanced --push-state/--pop-state");" (assignment_expression "uVar2 = gettext("unbalanced --push-state/--pop-state")" (identifier "uVar2") (= "=") (call_expression "gettext("unbalanced --push-state/--pop-state")" (identifier "gettext") (argument_list "("unbalanced --push-state/--pop-state")" (( "(") (string_literal ""unbalanced --push-state/--pop-state"" (" """) (string_content "unbalanced --push-state/--pop-state") (" """)) () ")")))) (; ";")) (expression_statement "FUN_000654b0(uVar2);" (call_expression "FUN_000654b0(uVar2)" (identifier "FUN_000654b0") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void parse_pop_state(General_options * this, char * param_1, char *
   param_2, Command_line * param_3) */

void __thiscall
var_1::type_1::function_1
          (type_1 *this,char *param_2,char *param_3,type_2 *param_4)

{
  type_3 var_4;
  type_4 *posdep;
  char *format;
  
  var_4 = (this->options_stack_).
            super__Vector_base<var_1::type_4*,var_2::allocator<var_1::type_4*>var_3>
            ._M_impl._M_finish;
  if ((this->options_stack_).
      super__Vector_base<var_1::type_4*,var_2::allocator<var_1::type_4*>var_3>
      ._M_impl._M_start != var_4) {
    posdep = var_4[-1];
    (this->options_stack_).
    super__Vector_base<var_1::type_4*,var_2::allocator<var_1::type_4*>var_3>
    ._M_impl._M_finish = var_4 + -1;
    var_5(this,posdep);
    var_6(posdep,0x10);
    return;
  }
  format = (char *)var_7("unbalanced --push-state/--pop-state");
  var_8(format);
  return;
}


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

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

void MASKED(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = *(int *)(param_1 + 0x5a80);
  if (*(int *)(param_1 + 0x5a7c) != iVar1) {
    uVar2 = *(undefined4 *)(iVar1 + -4);
    *(int *)(param_1 + 0x5a80) = iVar1 + -4;
    FUN_000dd860(param_1,uVar2);
    FUN_001e6d90(uVar2,0x10);
    return;
  }
  uVar2 = gettext("unbalanced --push-state/--pop-state");
  FUN_000654b0(uVar2);
  return;
}

