
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

void berkeley_sum(bfd *abfd,sec_ptr sec,void *ignore)

{
  uint uVar1;
  bfd_size_type bVar2;
  
  uVar1 = sec->flags;
  if ((uVar1 & 1) != 0) {
    bVar2 = sec->size;
    if ((uVar1 & 0x18) != 0) {
      textsize = textsize + bVar2;
      return;
    }
    if ((uVar1 & 0x100) != 0) {
      datasize = datasize + bVar2;
      return;
    }
    bsssize = bsssize + bVar2;
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void FUN_000119b0(undefined4 param_1,int param_2)

{
  uint uVar1;
  int iVar2;
  
  uVar1 = *(uint *)(param_2 + 0x14);
  if ((uVar1 & 1) != 0) {
    iVar2 = *(int *)(param_2 + 0x24);
    if ((uVar1 & 0x18) != 0) {
      DAT_00019200 = DAT_00019200 + iVar2;
      return;
    }
    if ((uVar1 & 0x100) != 0) {
      DAT_00019204 = DAT_00019204 + iVar2;
      return;
    }
    DAT_00019208 = DAT_00019208 + iVar2;
  }
  return;
}


CALL 0x000123a1
ADD ECX,0x764b
MOV EDX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EDX + 0x14]
TEST AL,0x1
JZ 0x000119e3
MOV EDX,dword ptr [EDX + 0x24]
TEST AL,0x18
JZ 0x000119d8
ADD dword ptr [ECX + 0x200],EDX
RET
TEST AH,0x1
JNZ 0x000119e8
ADD dword ptr [ECX + 0x208],EDX
RET
ADD dword ptr [ECX + 0x204],EDX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid FUN_000119b0(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *(uint *)(param_2 + 0x14);\n  if ((uVar1 & 1) != 0) {\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000119b0(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *(uint *)(param_2 + 0x14);\n  if ((uVar1 & 1) != 0) {\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000119b0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *(uint *)(param_2 + 0x14);\n  if ((uVar1 & 1) != 0) {\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(param_2 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x14)" identifier = (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 1) != 0) {\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }" { (expression_statement "iVar2 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x24)" identifier = (pointer_expression "*(int *)(param_2 + 0x24)" * (cast_expression "(int *)(param_2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }" if (parenthesized_expression "((uVar1 & 0x18) != 0)" ( (binary_expression "(uVar1 & 0x18) != 0" (parenthesized_expression "(uVar1 & 0x18)" ( (binary_expression "uVar1 & 0x18" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }" { (expression_statement "DAT_00019200 = DAT_00019200 + iVar2;" (assignment_expression "DAT_00019200 = DAT_00019200 + iVar2" identifier = (binary_expression "DAT_00019200 + iVar2" identifier + identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }" if (parenthesized_expression "((uVar1 & 0x100) != 0)" ( (binary_expression "(uVar1 & 0x100) != 0" (parenthesized_expression "(uVar1 & 0x100)" ( (binary_expression "uVar1 & 0x100" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }" { (expression_statement "DAT_00019204 = DAT_00019204 + iVar2;" (assignment_expression "DAT_00019204 = DAT_00019204 + iVar2" identifier = (binary_expression "DAT_00019204 + iVar2" identifier + identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "DAT_00019208 = DAT_00019208 + iVar2;" (assignment_expression "DAT_00019208 = DAT_00019208 + iVar2" identifier = (binary_expression "DAT_00019208 + iVar2" identifier + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* WARNING: Unknown calling convention */\n\nvoid berkeley_sum(bfd *abfd,sec_ptr sec,void *ignore)\n\n{\n  uint uVar1;\n  bfd_size_type bVar2;\n  \n  uVar1 = sec->flags;\n  if ((uVar1 & 1) != 0) {\n    bVar2 = sec->size;\n    if ((uVar1 & 0x18) != 0) {\n      textsize = textsize + bVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      datasize = datasize + bVar2;\n      return;\n    }\n    bsssize = bsssize + bVar2;\n  }\n  return;\n}\n\n" comment comment (function_definition "void berkeley_sum(bfd *abfd,sec_ptr sec,void *ignore)\n\n{\n  uint uVar1;\n  bfd_size_type bVar2;\n  \n  uVar1 = sec->flags;\n  if ((uVar1 & 1) != 0) {\n    bVar2 = sec->size;\n    if ((uVar1 & 0x18) != 0) {\n      textsize = textsize + bVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      datasize = datasize + bVar2;\n      return;\n    }\n    bsssize = bsssize + bVar2;\n  }\n  return;\n}" primitive_type (function_declarator "berkeley_sum(bfd *abfd,sec_ptr sec,void *ignore)" identifier (parameter_list "(bfd *abfd,sec_ptr sec,void *ignore)" ( (parameter_declaration "bfd *abfd" type_identifier (pointer_declarator "*abfd" * identifier)) , (parameter_declaration "sec_ptr sec" type_identifier identifier) , (parameter_declaration "void *ignore" primitive_type (pointer_declarator "*ignore" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  bfd_size_type bVar2;\n  \n  uVar1 = sec->flags;\n  if ((uVar1 & 1) != 0) {\n    bVar2 = sec->size;\n    if ((uVar1 & 0x18) != 0) {\n      textsize = textsize + bVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      datasize = datasize + bVar2;\n      return;\n    }\n    bsssize = bsssize + bVar2;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "bfd_size_type bVar2;" type_identifier identifier ;) (expression_statement "uVar1 = sec->flags;" (assignment_expression "uVar1 = sec->flags" identifier = (field_expression "sec->flags" identifier -> field_identifier)) ;) (if_statement "if ((uVar1 & 1) != 0) {\n    bVar2 = sec->size;\n    if ((uVar1 & 0x18) != 0) {\n      textsize = textsize + bVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      datasize = datasize + bVar2;\n      return;\n    }\n    bsssize = bsssize + bVar2;\n  }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    bVar2 = sec->size;\n    if ((uVar1 & 0x18) != 0) {\n      textsize = textsize + bVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      datasize = datasize + bVar2;\n      return;\n    }\n    bsssize = bsssize + bVar2;\n  }" { (expression_statement "bVar2 = sec->size;" (assignment_expression "bVar2 = sec->size" identifier = (field_expression "sec->size" identifier -> field_identifier)) ;) (if_statement "if ((uVar1 & 0x18) != 0) {\n      textsize = textsize + bVar2;\n      return;\n    }" if (parenthesized_expression "((uVar1 & 0x18) != 0)" ( (binary_expression "(uVar1 & 0x18) != 0" (parenthesized_expression "(uVar1 & 0x18)" ( (binary_expression "uVar1 & 0x18" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      textsize = textsize + bVar2;\n      return;\n    }" { (expression_statement "textsize = textsize + bVar2;" (assignment_expression "textsize = textsize + bVar2" identifier = (binary_expression "textsize + bVar2" identifier + identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if ((uVar1 & 0x100) != 0) {\n      datasize = datasize + bVar2;\n      return;\n    }" if (parenthesized_expression "((uVar1 & 0x100) != 0)" ( (binary_expression "(uVar1 & 0x100) != 0" (parenthesized_expression "(uVar1 & 0x100)" ( (binary_expression "uVar1 & 0x100" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      datasize = datasize + bVar2;\n      return;\n    }" { (expression_statement "datasize = datasize + bVar2;" (assignment_expression "datasize = datasize + bVar2" identifier = (binary_expression "datasize + bVar2" identifier + identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "bsssize = bsssize + bVar2;" (assignment_expression "bsssize = bsssize + bVar2" identifier = (binary_expression "bsssize + bVar2" identifier + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000119b0(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *(uint *)(param_2 + 0x14);\n  if ((uVar1 & 1) != 0) {\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_000119b0(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *(uint *)(param_2 + 0x14);\n  if ((uVar1 & 1) != 0) {\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000119b0(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *(uint *)(param_2 + 0x14);\n  if ((uVar1 & 1) != 0) {\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = *(uint *)(param_2 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x14)" identifier = (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 1) != 0) {\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }" if (parenthesized_expression "((uVar1 & 1) != 0)" ( (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" ( (binary_expression "uVar1 & 1" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }" { (expression_statement "iVar2 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x24)" identifier = (pointer_expression "*(int *)(param_2 + 0x24)" * (cast_expression "(int *)(param_2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }" if (parenthesized_expression "((uVar1 & 0x18) != 0)" ( (binary_expression "(uVar1 & 0x18) != 0" (parenthesized_expression "(uVar1 & 0x18)" ( (binary_expression "uVar1 & 0x18" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }" { (expression_statement "DAT_00019200 = DAT_00019200 + iVar2;" (assignment_expression "DAT_00019200 = DAT_00019200 + iVar2" identifier = (binary_expression "DAT_00019200 + iVar2" identifier + identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }" if (parenthesized_expression "((uVar1 & 0x100) != 0)" ( (binary_expression "(uVar1 & 0x100) != 0" (parenthesized_expression "(uVar1 & 0x100)" ( (binary_expression "uVar1 & 0x100" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }" { (expression_statement "DAT_00019204 = DAT_00019204 + iVar2;" (assignment_expression "DAT_00019204 = DAT_00019204 + iVar2" identifier = (binary_expression "DAT_00019204 + iVar2" identifier + identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "DAT_00019208 = DAT_00019208 + iVar2;" (assignment_expression "DAT_00019208 = DAT_00019208 + iVar2" identifier = (binary_expression "DAT_00019208 + iVar2" identifier + identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (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 (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (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 (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000119b0(undefined4 param_1,int param_2)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *(uint *)(param_2 + 0x14);\n  if ((uVar1 & 1) != 0) {\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000119b0(undefined4 param_1,int param_2)" (identifier "FUN_000119b0") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *(uint *)(param_2 + 0x14);\n  if ((uVar1 & 1) != 0) {\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "uVar1 = *(uint *)(param_2 + 0x14);" (assignment_expression "uVar1 = *(uint *)(param_2 + 0x14)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(param_2 + 0x14)" (* "*") (cast_expression "(uint *)(param_2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((uVar1 & 1) != 0) {\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }" (if "if") (parenthesized_expression "((uVar1 & 1) != 0)" (( "(") (binary_expression "(uVar1 & 1) != 0" (parenthesized_expression "(uVar1 & 1)" (( "(") (binary_expression "uVar1 & 1" (identifier "uVar1") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(param_2 + 0x24);\n    if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }\n    if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }\n    DAT_00019208 = DAT_00019208 + iVar2;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(param_2 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x24)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_2 + 0x24)" (* "*") (cast_expression "(int *)(param_2 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if ((uVar1 & 0x18) != 0) {\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }" (if "if") (parenthesized_expression "((uVar1 & 0x18) != 0)" (( "(") (binary_expression "(uVar1 & 0x18) != 0" (parenthesized_expression "(uVar1 & 0x18)" (( "(") (binary_expression "uVar1 & 0x18" (identifier "uVar1") (& "&") (number_literal "0x18")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_00019200 = DAT_00019200 + iVar2;\n      return;\n    }" ({ "{") (expression_statement "DAT_00019200 = DAT_00019200 + iVar2;" (assignment_expression "DAT_00019200 = DAT_00019200 + iVar2" (identifier "DAT_00019200") (= "=") (binary_expression "DAT_00019200 + iVar2" (identifier "DAT_00019200") (+ "+") (identifier "iVar2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((uVar1 & 0x100) != 0) {\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }" (if "if") (parenthesized_expression "((uVar1 & 0x100) != 0)" (( "(") (binary_expression "(uVar1 & 0x100) != 0" (parenthesized_expression "(uVar1 & 0x100)" (( "(") (binary_expression "uVar1 & 0x100" (identifier "uVar1") (& "&") (number_literal "0x100")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      DAT_00019204 = DAT_00019204 + iVar2;\n      return;\n    }" ({ "{") (expression_statement "DAT_00019204 = DAT_00019204 + iVar2;" (assignment_expression "DAT_00019204 = DAT_00019204 + iVar2" (identifier "DAT_00019204") (= "=") (binary_expression "DAT_00019204 + iVar2" (identifier "DAT_00019204") (+ "+") (identifier "iVar2"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "DAT_00019208 = DAT_00019208 + iVar2;" (assignment_expression "DAT_00019208 = DAT_00019208 + iVar2" (identifier "DAT_00019208") (= "=") (binary_expression "DAT_00019208 + iVar2" (identifier "DAT_00019208") (+ "+") (identifier "iVar2"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* WARNING: Unknown calling convention */

void function_1(type_1 *abfd,type_2 sec,void *ignore)

{
  type_3 var_1;
  type_4 var_3;
  
  var_1 = sec->flags;
  if ((var_1 & 1) != 0) {
    var_3 = sec->size;
    if ((var_1 & 0x18) != 0) {
      var_2 = var_2 + var_3;
      return;
    }
    if ((var_1 & 0x100) != 0) {
      var_4 = var_4 + var_3;
      return;
    }
    var_5 = var_5 + var_3;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (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))))))) (if_statement condition: (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: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (return_statement))) (if_statement condition: (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: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void MASKED(undefined4 param_1,int param_2)

{
  uint uVar1;
  int iVar2;
  
  uVar1 = *(uint *)(param_2 + 0x14);
  if ((uVar1 & 1) != 0) {
    iVar2 = *(int *)(param_2 + 0x24);
    if ((uVar1 & 0x18) != 0) {
      DAT_00019200 = DAT_00019200 + iVar2;
      return;
    }
    if ((uVar1 & 0x100) != 0) {
      DAT_00019204 = DAT_00019204 + iVar2;
      return;
    }
    DAT_00019208 = DAT_00019208 + iVar2;
  }
  return;
}

