
/* 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 set_final_data_size(Output_data_plt_i386 * this) */

void __thiscall
anon_unknown.dwarf_217836::Output_data_plt_i386::set_final_data_size(Output_data_plt_i386 *this)

{
  byte bVar1;
  uint uVar2;
  uint uVar3;
  int iVar4;
  
  uVar2 = this->irelative_count_;
  uVar3 = this->count_;
  iVar4 = (**(code **)(this->plt_eh_frame_cie_size + 100))(this);
  bVar1 = this->field_0x1c;
  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {
    *(uint *)&this->field_0xc = iVar4 * (uVar2 + uVar3 + 1);
    *(undefined4 *)&this->field_0x10 = 0;
    this->field_0x1c = bVar1 | 2;
    return;
  }
                    /* WARNING: Subroutine does not return */
  gold::do_gold_unreachable("../../gold/output.h",0x218,"set_data_size");
}



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

void FUN_00049780(int *param_1)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar2 = param_1[0x11];
  iVar3 = param_1[0x10];
  iVar4 = (**(code **)(*param_1 + 100))(param_1);
  bVar1 = *(byte *)(param_1 + 7);
  iVar4 = iVar4 * (iVar2 + iVar3 + 1);
  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {
    param_1[3] = iVar4;
    param_1[4] = 0;
    *(byte *)(param_1 + 7) = bVar1 | 2;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EDI,dword ptr [ESP + 0x10]
CALL 0x00035680
ADD EBX,0x2f5874
MOV EAX,dword ptr [EDI]
MOV ESI,dword ptr [EDI + 0x44]
SUB ESP,0xc
ADD ESI,dword ptr [EDI + 0x40]
PUSH EDI
ADD ESI,0x1
CALL dword ptr [EAX + 0x64]
MOVZX ECX,byte ptr [EDI + 0x1c]
IMUL EAX,ESI
ADD ESP,0x10
TEST CL,0x2
JNZ 0x000497ca
TEST CL,0x8
JNZ 0x000497ca
XOR EDX,EDX
OR ECX,0x2
MOV dword ptr [EDI + 0xc],EAX
MOV dword ptr [EDI + 0x10],EDX
MOV byte ptr [EDI + 0x1c],CL
POP EBX
POP ESI
POP EDI
RET
PUSH EAX
LEA EAX,[EBX + 0xfff0e7d0]
PUSH EAX
LEA EAX,[EBX + 0xfff0c35d]
PUSH 0x218
PUSH EAX
CALL 0x0008b620
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00049780(int *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = param_1[0x11];\n  iVar3 = param_1[0x10];\n  iVar4 = (**(code **)(*param_1 + 100))(param_1);\n  bVar1 = *(byte *)(param_1 + 7);\n  iVar4 = iVar4 * (iVar2 + iVar3 + 1);\n  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);\n}\n\n" comment (function_definition "void FUN_00049780(int *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = param_1[0x11];\n  iVar3 = param_1[0x10];\n  iVar4 = (**(code **)(*param_1 + 100))(param_1);\n  bVar1 = *(byte *)(param_1 + 7);\n  iVar4 = iVar4 * (iVar2 + iVar3 + 1);\n  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);\n}" primitive_type (function_declarator "FUN_00049780(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = param_1[0x11];\n  iVar3 = param_1[0x10];\n  iVar4 = (**(code **)(*param_1 + 100))(param_1);\n  bVar1 = *(byte *)(param_1 + 7);\n  iVar4 = iVar4 * (iVar2 + iVar3 + 1);\n  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar2 = param_1[0x11];" (assignment_expression "iVar2 = param_1[0x11]" identifier = (subscript_expression "param_1[0x11]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = param_1[0x10];" (assignment_expression "iVar3 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = (**(code **)(*param_1 + 100))(param_1);" (assignment_expression "iVar4 = (**(code **)(*param_1 + 100))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 100))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 100))" ( (pointer_expression "**(code **)(*param_1 + 100)" * (pointer_expression "*(code **)(*param_1 + 100)" * (cast_expression "(code **)(*param_1 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 100)" ( (binary_expression "*param_1 + 100" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 7);" (assignment_expression "bVar1 = *(byte *)(param_1 + 7)" identifier = (pointer_expression "*(byte *)(param_1 + 7)" * (cast_expression "(byte *)(param_1 + 7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = iVar4 * (iVar2 + iVar3 + 1);" (assignment_expression "iVar4 = iVar4 * (iVar2 + iVar3 + 1)" identifier = (binary_expression "iVar4 * (iVar2 + iVar3 + 1)" identifier * (parenthesized_expression "(iVar2 + iVar3 + 1)" ( (binary_expression "iVar2 + iVar3 + 1" (binary_expression "iVar2 + iVar3" identifier + identifier) + number_literal) )))) ;) (if_statement "if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }" if (parenthesized_expression "(((bVar1 & 2) == 0) && ((bVar1 & 8) == 0))" ( (binary_expression "((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)" (parenthesized_expression "((bVar1 & 2) == 0)" ( (binary_expression "(bVar1 & 2) == 0" (parenthesized_expression "(bVar1 & 2)" ( (binary_expression "bVar1 & 2" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "((bVar1 & 8) == 0)" ( (binary_expression "(bVar1 & 8) == 0" (parenthesized_expression "(bVar1 & 8)" ( (binary_expression "bVar1 & 8" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }" { (expression_statement "param_1[3] = iVar4;" (assignment_expression "param_1[3] = iVar4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(byte *)(param_1 + 7) = bVar1 | 2;" (assignment_expression "*(byte *)(param_1 + 7) = bVar1 | 2" (pointer_expression "*(byte *)(param_1 + 7)" * (cast_expression "(byte *)(param_1 + 7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) = (binary_expression "bVar1 | 2" identifier | number_literal)) ;) (return_statement "return;" return ;) })) comment (expression_statement "FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);" (call_expression "FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4)" identifier (argument_list "("../../gold/output.h",0x218,"set_data_size",iVar4)" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""set_data_size"" " string_content ") , identifier ))) ;) })))
(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 set_final_data_size(Output_data_plt_i386 * this) */\n\nvoid __thiscall\nanon_unknown.dwarf_217836::Output_data_plt_i386::set_final_data_size(Output_data_plt_i386 *this)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar2 = this->irelative_count_;\n  uVar3 = this->count_;\n  iVar4 = (**(code **)(this->plt_eh_frame_cie_size + 100))(this);\n  bVar1 = this->field_0x1c;\n  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    *(uint *)&this->field_0xc = iVar4 * (uVar2 + uVar3 + 1);\n    *(undefined4 *)&this->field_0x10 = 0;\n    this->field_0x1c = bVar1 | 2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  gold::do_gold_unreachable("../../gold/output.h",0x218,"set_data_size");\n}\n\n" comment comment comment (function_definition "void __thiscall\nanon_unknown.dwarf_217836::Output_data_plt_i386::set_final_data_size(Output_data_plt_i386 *this)\n\n{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar2 = this->irelative_count_;\n  uVar3 = this->count_;\n  iVar4 = (**(code **)(this->plt_eh_frame_cie_size + 100))(this);\n  bVar1 = this->field_0x1c;\n  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    *(uint *)&this->field_0xc = iVar4 * (uVar2 + uVar3 + 1);\n    *(undefined4 *)&this->field_0x10 = 0;\n    this->field_0x1c = bVar1 | 2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  gold::do_gold_unreachable("../../gold/output.h",0x218,"set_data_size");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_217836::Output_data_plt_i386::" identifier . identifier : : identifier : :) (function_declarator "set_final_data_size(Output_data_plt_i386 *this)" identifier (parameter_list "(Output_data_plt_i386 *this)" ( (parameter_declaration "Output_data_plt_i386 *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  uint uVar2;\n  uint uVar3;\n  int iVar4;\n  \n  uVar2 = this->irelative_count_;\n  uVar3 = this->count_;\n  iVar4 = (**(code **)(this->plt_eh_frame_cie_size + 100))(this);\n  bVar1 = this->field_0x1c;\n  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    *(uint *)&this->field_0xc = iVar4 * (uVar2 + uVar3 + 1);\n    *(undefined4 *)&this->field_0x10 = 0;\n    this->field_0x1c = bVar1 | 2;\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  gold::do_gold_unreachable("../../gold/output.h",0x218,"set_data_size");\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "uVar2 = this->irelative_count_;" (assignment_expression "uVar2 = this->irelative_count_" identifier = (field_expression "this->irelative_count_" identifier -> field_identifier)) ;) (expression_statement "uVar3 = this->count_;" (assignment_expression "uVar3 = this->count_" identifier = (field_expression "this->count_" identifier -> field_identifier)) ;) (expression_statement "iVar4 = (**(code **)(this->plt_eh_frame_cie_size + 100))(this);" (assignment_expression "iVar4 = (**(code **)(this->plt_eh_frame_cie_size + 100))(this)" identifier = (call_expression "(**(code **)(this->plt_eh_frame_cie_size + 100))(this)" (parenthesized_expression "(**(code **)(this->plt_eh_frame_cie_size + 100))" ( (pointer_expression "**(code **)(this->plt_eh_frame_cie_size + 100)" * (pointer_expression "*(code **)(this->plt_eh_frame_cie_size + 100)" * (cast_expression "(code **)(this->plt_eh_frame_cie_size + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this->plt_eh_frame_cie_size + 100)" ( (binary_expression "this->plt_eh_frame_cie_size + 100" (field_expression "this->plt_eh_frame_cie_size" identifier -> field_identifier) + number_literal) ))))) )) (argument_list "(this)" ( identifier )))) ;) (expression_statement "bVar1 = this->field_0x1c;" (assignment_expression "bVar1 = this->field_0x1c" identifier = (field_expression "this->field_0x1c" identifier -> field_identifier)) ;) (if_statement "if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    *(uint *)&this->field_0xc = iVar4 * (uVar2 + uVar3 + 1);\n    *(undefined4 *)&this->field_0x10 = 0;\n    this->field_0x1c = bVar1 | 2;\n    return;\n  }" if (parenthesized_expression "(((bVar1 & 2) == 0) && ((bVar1 & 8) == 0))" ( (binary_expression "((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)" (parenthesized_expression "((bVar1 & 2) == 0)" ( (binary_expression "(bVar1 & 2) == 0" (parenthesized_expression "(bVar1 & 2)" ( (binary_expression "bVar1 & 2" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "((bVar1 & 8) == 0)" ( (binary_expression "(bVar1 & 8) == 0" (parenthesized_expression "(bVar1 & 8)" ( (binary_expression "bVar1 & 8" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    *(uint *)&this->field_0xc = iVar4 * (uVar2 + uVar3 + 1);\n    *(undefined4 *)&this->field_0x10 = 0;\n    this->field_0x1c = bVar1 | 2;\n    return;\n  }" { (expression_statement "*(uint *)&this->field_0xc = iVar4 * (uVar2 + uVar3 + 1);" (assignment_expression "*(uint *)&this->field_0xc = iVar4 * (uVar2 + uVar3 + 1)" (pointer_expression "*(uint *)&this->field_0xc" * (cast_expression "(uint *)&this->field_0xc" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->field_0xc" & (field_expression "this->field_0xc" identifier -> field_identifier)))) = (binary_expression "iVar4 * (uVar2 + uVar3 + 1)" identifier * (parenthesized_expression "(uVar2 + uVar3 + 1)" ( (binary_expression "uVar2 + uVar3 + 1" (binary_expression "uVar2 + uVar3" identifier + identifier) + number_literal) )))) ;) (expression_statement "*(undefined4 *)&this->field_0x10 = 0;" (assignment_expression "*(undefined4 *)&this->field_0x10 = 0" (pointer_expression "*(undefined4 *)&this->field_0x10" * (cast_expression "(undefined4 *)&this->field_0x10" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->field_0x10" & (field_expression "this->field_0x10" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "this->field_0x1c = bVar1 | 2;" (assignment_expression "this->field_0x1c = bVar1 | 2" (field_expression "this->field_0x1c" identifier -> field_identifier) = (binary_expression "bVar1 | 2" identifier | number_literal)) ;) (return_statement "return;" return ;) })) comment (labeled_statement "gold::do_gold_unreachable("../../gold/output.h",0x218,"set_data_size");" statement_identifier : (ERROR ":" :) (expression_statement "do_gold_unreachable("../../gold/output.h",0x218,"set_data_size");" (call_expression "do_gold_unreachable("../../gold/output.h",0x218,"set_data_size")" identifier (argument_list "("../../gold/output.h",0x218,"set_data_size")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""set_data_size"" " string_content ") ))) ;)) })))
(translation_unit "void FUN_00049780(int *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = param_1[0x11];\n  iVar3 = param_1[0x10];\n  iVar4 = (**(code **)(*param_1 + 100))(param_1);\n  bVar1 = *(byte *)(param_1 + 7);\n  iVar4 = iVar4 * (iVar2 + iVar3 + 1);\n  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }\n                    \n  FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);\n}\n\n" (function_definition "void FUN_00049780(int *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = param_1[0x11];\n  iVar3 = param_1[0x10];\n  iVar4 = (**(code **)(*param_1 + 100))(param_1);\n  bVar1 = *(byte *)(param_1 + 7);\n  iVar4 = iVar4 * (iVar2 + iVar3 + 1);\n  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }\n                    \n  FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);\n}" primitive_type (function_declarator "FUN_00049780(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = param_1[0x11];\n  iVar3 = param_1[0x10];\n  iVar4 = (**(code **)(*param_1 + 100))(param_1);\n  bVar1 = *(byte *)(param_1 + 7);\n  iVar4 = iVar4 * (iVar2 + iVar3 + 1);\n  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }\n                    \n  FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar2 = param_1[0x11];" (assignment_expression "iVar2 = param_1[0x11]" identifier = (subscript_expression "param_1[0x11]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = param_1[0x10];" (assignment_expression "iVar3 = param_1[0x10]" identifier = (subscript_expression "param_1[0x10]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = (**(code **)(*param_1 + 100))(param_1);" (assignment_expression "iVar4 = (**(code **)(*param_1 + 100))(param_1)" identifier = (call_expression "(**(code **)(*param_1 + 100))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 100))" ( (pointer_expression "**(code **)(*param_1 + 100)" * (pointer_expression "*(code **)(*param_1 + 100)" * (cast_expression "(code **)(*param_1 + 100)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 100)" ( (binary_expression "*param_1 + 100" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "bVar1 = *(byte *)(param_1 + 7);" (assignment_expression "bVar1 = *(byte *)(param_1 + 7)" identifier = (pointer_expression "*(byte *)(param_1 + 7)" * (cast_expression "(byte *)(param_1 + 7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = iVar4 * (iVar2 + iVar3 + 1);" (assignment_expression "iVar4 = iVar4 * (iVar2 + iVar3 + 1)" identifier = (binary_expression "iVar4 * (iVar2 + iVar3 + 1)" identifier * (parenthesized_expression "(iVar2 + iVar3 + 1)" ( (binary_expression "iVar2 + iVar3 + 1" (binary_expression "iVar2 + iVar3" identifier + identifier) + number_literal) )))) ;) (if_statement "if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }" if (parenthesized_expression "(((bVar1 & 2) == 0) && ((bVar1 & 8) == 0))" ( (binary_expression "((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)" (parenthesized_expression "((bVar1 & 2) == 0)" ( (binary_expression "(bVar1 & 2) == 0" (parenthesized_expression "(bVar1 & 2)" ( (binary_expression "bVar1 & 2" identifier & number_literal) )) == number_literal) )) && (parenthesized_expression "((bVar1 & 8) == 0)" ( (binary_expression "(bVar1 & 8) == 0" (parenthesized_expression "(bVar1 & 8)" ( (binary_expression "bVar1 & 8" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }" { (expression_statement "param_1[3] = iVar4;" (assignment_expression "param_1[3] = iVar4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(byte *)(param_1 + 7) = bVar1 | 2;" (assignment_expression "*(byte *)(param_1 + 7) = bVar1 | 2" (pointer_expression "*(byte *)(param_1 + 7)" * (cast_expression "(byte *)(param_1 + 7)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 7)" ( (binary_expression "param_1 + 7" identifier + number_literal) )))) = (binary_expression "bVar1 | 2" identifier | number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);" (call_expression "FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4)" identifier (argument_list "("../../gold/output.h",0x218,"set_data_size",iVar4)" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""set_data_size"" " string_content ") , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (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 IDENT = (binary_expression IDENT * (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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)) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })))
(function_definition "void FUN_00049780(int *param_1)\n\n{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = param_1[0x11];\n  iVar3 = param_1[0x10];\n  iVar4 = (**(code **)(*param_1 + 100))(param_1);\n  bVar1 = *(byte *)(param_1 + 7);\n  iVar4 = iVar4 * (iVar2 + iVar3 + 1);\n  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }\n                    \n  FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);\n}" (primitive_type "void") (function_declarator "FUN_00049780(int *param_1)" (identifier "FUN_00049780") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  byte bVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  \n  iVar2 = param_1[0x11];\n  iVar3 = param_1[0x10];\n  iVar4 = (**(code **)(*param_1 + 100))(param_1);\n  bVar1 = *(byte *)(param_1 + 7);\n  iVar4 = iVar4 * (iVar2 + iVar3 + 1);\n  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }\n                    \n  FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);\n}" ({ "{") (declaration "byte bVar1;" (type_identifier "byte") (identifier "bVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar2 = param_1[0x11];" (assignment_expression "iVar2 = param_1[0x11]" (identifier "iVar2") (= "=") (subscript_expression "param_1[0x11]" (identifier "param_1") ([ "[") (number_literal "0x11") (] "]"))) (; ";")) (expression_statement "iVar3 = param_1[0x10];" (assignment_expression "iVar3 = param_1[0x10]" (identifier "iVar3") (= "=") (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]"))) (; ";")) (expression_statement "iVar4 = (**(code **)(*param_1 + 100))(param_1);" (assignment_expression "iVar4 = (**(code **)(*param_1 + 100))(param_1)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(*param_1 + 100))(param_1)" (parenthesized_expression "(**(code **)(*param_1 + 100))" (( "(") (pointer_expression "**(code **)(*param_1 + 100)" (* "*") (pointer_expression "*(code **)(*param_1 + 100)" (* "*") (cast_expression "(code **)(*param_1 + 100)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 100)" (( "(") (binary_expression "*param_1 + 100" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "100")) () ")"))))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "bVar1 = *(byte *)(param_1 + 7);" (assignment_expression "bVar1 = *(byte *)(param_1 + 7)" (identifier "bVar1") (= "=") (pointer_expression "*(byte *)(param_1 + 7)" (* "*") (cast_expression "(byte *)(param_1 + 7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")"))))) (; ";")) (expression_statement "iVar4 = iVar4 * (iVar2 + iVar3 + 1);" (assignment_expression "iVar4 = iVar4 * (iVar2 + iVar3 + 1)" (identifier "iVar4") (= "=") (binary_expression "iVar4 * (iVar2 + iVar3 + 1)" (identifier "iVar4") (* "*") (parenthesized_expression "(iVar2 + iVar3 + 1)" (( "(") (binary_expression "iVar2 + iVar3 + 1" (binary_expression "iVar2 + iVar3" (identifier "iVar2") (+ "+") (identifier "iVar3")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }" (if "if") (parenthesized_expression "(((bVar1 & 2) == 0) && ((bVar1 & 8) == 0))" (( "(") (binary_expression "((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)" (parenthesized_expression "((bVar1 & 2) == 0)" (( "(") (binary_expression "(bVar1 & 2) == 0" (parenthesized_expression "(bVar1 & 2)" (( "(") (binary_expression "bVar1 & 2" (identifier "bVar1") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((bVar1 & 8) == 0)" (( "(") (binary_expression "(bVar1 & 8) == 0" (parenthesized_expression "(bVar1 & 8)" (( "(") (binary_expression "bVar1 & 8" (identifier "bVar1") (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    param_1[3] = iVar4;\n    param_1[4] = 0;\n    *(byte *)(param_1 + 7) = bVar1 | 2;\n    return;\n  }" ({ "{") (expression_statement "param_1[3] = iVar4;" (assignment_expression "param_1[3] = iVar4" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(byte *)(param_1 + 7) = bVar1 | 2;" (assignment_expression "*(byte *)(param_1 + 7) = bVar1 | 2" (pointer_expression "*(byte *)(param_1 + 7)" (* "*") (cast_expression "(byte *)(param_1 + 7)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 7)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) () ")")))) (= "=") (binary_expression "bVar1 | 2" (identifier "bVar1") (| "|") (number_literal "2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);" (call_expression "FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4)" (identifier "FUN_0008b620") (argument_list "("../../gold/output.h",0x218,"set_data_size",iVar4)" (( "(") (string_literal ""../../gold/output.h"" (" """) (string_content "../../gold/output.h") (" """)) (, ",") (number_literal "0x218") (, ",") (string_literal ""set_data_size"" (" """) (string_content "set_data_size") (" """)) (, ",") (identifier "iVar4") () ")"))) (; ";")) (} "}")))

/* 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 set_final_data_size(Output_data_plt_i386 * this) */

void __thiscall
anon_unknown.dwarf_217836::type_1::function_1(type_1 *this)

{
  type_2 var_1;
  type_3 var_3;
  type_3 var_4;
  int var_2;
  
  var_3 = this->irelative_count_;
  var_4 = this->count_;
  var_2 = (**(type_4 **)(this->plt_eh_frame_cie_size + 100))(this);
  var_1 = this->field_0x1c;
  if (((var_1 & 2) == 0) && ((var_1 & 8) == 0)) {
    *(type_3 *)&this->field_0xc = var_2 * (var_3 + var_4 + 1);
    *(type_5 *)&this->field_0x10 = 0;
    this->field_0x1c = var_1 | 2;
    return;
  }
                    /* WARNING: Subroutine does not return */
  gold::var_5("../../gold/output.h",0x218,"set_data_size");
}


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

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

void MASKED(int *param_1)

{
  byte bVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  
  iVar2 = param_1[0x11];
  iVar3 = param_1[0x10];
  iVar4 = (**(code **)(*param_1 + 100))(param_1);
  bVar1 = *(byte *)(param_1 + 7);
  iVar4 = iVar4 * (iVar2 + iVar3 + 1);
  if (((bVar1 & 2) == 0) && ((bVar1 & 8) == 0)) {
    param_1[3] = iVar4;
    param_1[4] = 0;
    *(byte *)(param_1 + 7) = bVar1 | 2;
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0008b620("../../gold/output.h",0x218,"set_data_size",iVar4);
}

