
/* DWARF original prototype: uint output_section_count_list(Output_segment * this, Output_data_list
   * pdl) */

uint __thiscall
gold::Output_segment::output_section_count_list(Output_segment *this,Output_data_list *pdl)

{
  int iVar1;
  pointer ppOVar2;
  uint uVar3;
  
  uVar3 = 0;
  ppOVar2 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).
            _M_impl._M_start;
  if (ppOVar2 !=
      (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)._M_impl.
      _M_finish) {
    do {
      iVar1 = (*(*ppOVar2)->_vptr_Output_data[6])(*ppOVar2);
      uVar3 = (uVar3 + 1) - (uint)((char)iVar1 == '\0');
      ppOVar2 = ppOVar2 + 1;
    } while ((pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).
             _M_impl._M_finish != ppOVar2);
  }
  return uVar3;
}



int FUN_000f13f0(undefined4 param_1,int *param_2)

{
  char cVar1;
  undefined4 *puVar2;
  int iVar3;
  
  iVar3 = 0;
  puVar2 = (undefined4 *)*param_2;
  if (puVar2 != (undefined4 *)param_2[1]) {
    do {
      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);
      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');
      puVar2 = puVar2 + 1;
    } while ((undefined4 *)param_2[1] != puVar2);
  }
  return iVar3;
}


PUSH EDI
XOR EDI,EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x14]
MOV EBX,dword ptr [ESI]
CMP EBX,dword ptr [ESI + 0x4]
JZ 0x000f141b
MOV EAX,dword ptr [EBX]
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EAX
CALL dword ptr [EDX + 0x18]
ADD ESP,0x10
CMP AL,0x1
SBB EDI,-0x1
ADD EBX,0x4
CMP dword ptr [ESI + 0x4],EBX
JNZ 0x000f1400
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
(translation_unit "int FUN_000f13f0(undefined4 param_1,int *param_2)\n\n{\n  char cVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar3 = 0;\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_000f13f0(undefined4 param_1,int *param_2)\n\n{\n  char cVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar3 = 0;\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000f13f0(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 (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar3 = 0;\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return iVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)*param_2;" (assignment_expression "puVar2 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)param_2[1])" ( (binary_expression "puVar2 != (undefined4 *)param_2[1]" identifier != (cast_expression "(undefined4 *)param_2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" { (do_statement "do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);" do (compound_statement "{\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);" (assignment_expression "cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2)" identifier = (call_expression "(**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2)" (parenthesized_expression "(**(code **)(*(int *)*puVar2 + 0x18))" ( (pointer_expression "**(code **)(*(int *)*puVar2 + 0x18)" * (pointer_expression "*(code **)(*(int *)*puVar2 + 0x18)" * (cast_expression "(code **)(*(int *)*puVar2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*puVar2 + 0x18)" ( (binary_expression "*(int *)*puVar2 + 0x18" (pointer_expression "*(int *)*puVar2" * (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) + number_literal) ))))) )) (argument_list "((int *)*puVar2)" ( (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier)) )))) ;) (expression_statement "iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');" (assignment_expression "iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0')" identifier = (binary_expression "(iVar3 + 1) - (uint)(cVar1 == '\0')" (parenthesized_expression "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )) - (call_expression "(uint)(cVar1 == '\0')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))))) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((undefined4 *)param_2[1] != puVar2)" ( (binary_expression "(undefined4 *)param_2[1] != puVar2" (cast_expression "(undefined4 *)param_2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) != identifier) )) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: uint output_section_count_list(Output_segment * this, Output_data_list\n   * pdl) */\n\nuint __thiscall\ngold::Output_segment::output_section_count_list(Output_segment *this,Output_data_list *pdl)\n\n{\n  int iVar1;\n  pointer ppOVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  ppOVar2 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start;\n  if (ppOVar2 !=\n      (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)._M_impl.\n      _M_finish) {\n    do {\n      iVar1 = (*(*ppOVar2)->_vptr_Output_data[6])(*ppOVar2);\n      uVar3 = (uVar3 + 1) - (uint)((char)iVar1 == '\0');\n      ppOVar2 = ppOVar2 + 1;\n    } while ((pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n             _M_impl._M_finish != ppOVar2);\n  }\n  return uVar3;\n}\n\n" comment (function_definition "uint __thiscall\ngold::Output_segment::output_section_count_list(Output_segment *this,Output_data_list *pdl)\n\n{\n  int iVar1;\n  pointer ppOVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  ppOVar2 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start;\n  if (ppOVar2 !=\n      (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)._M_impl.\n      _M_finish) {\n    do {\n      iVar1 = (*(*ppOVar2)->_vptr_Output_data[6])(*ppOVar2);\n      uVar3 = (uVar3 + 1) - (uint)((char)iVar1 == '\0');\n      ppOVar2 = ppOVar2 + 1;\n    } while ((pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n             _M_impl._M_finish != ppOVar2);\n  }\n  return uVar3;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_segment::" identifier : : identifier : :) (function_declarator "output_section_count_list(Output_segment *this,Output_data_list *pdl)" identifier (parameter_list "(Output_segment *this,Output_data_list *pdl)" ( (parameter_declaration "Output_segment *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Output_data_list *pdl" type_identifier (pointer_declarator "*pdl" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  pointer ppOVar2;\n  uint uVar3;\n  \n  uVar3 = 0;\n  ppOVar2 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start;\n  if (ppOVar2 !=\n      (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)._M_impl.\n      _M_finish) {\n    do {\n      iVar1 = (*(*ppOVar2)->_vptr_Output_data[6])(*ppOVar2);\n      uVar3 = (uVar3 + 1) - (uint)((char)iVar1 == '\0');\n      ppOVar2 = ppOVar2 + 1;\n    } while ((pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n             _M_impl._M_finish != ppOVar2);\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "pointer ppOVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "ppOVar2 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start;" (assignment_expression "ppOVar2 = (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start" identifier = (field_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl._M_start" (field_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n            _M_impl" (parenthesized_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)" ( (ERROR "pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::" (comma_expression "pdl->super__Vector_base<gold::Output_data*,_std" (binary_expression "pdl->super__Vector_base<gold::Output_data*" (binary_expression "pdl->super__Vector_base<gold" (field_expression "pdl->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Output_data" : : identifier) * identifier) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (binary_expression "Output_data*>_>" (binary_expression "Output_data*>_" identifier * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (ppOVar2 !=\n      (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)._M_impl.\n      _M_finish) {\n    do {\n      iVar1 = (*(*ppOVar2)->_vptr_Output_data[6])(*ppOVar2);\n      uVar3 = (uVar3 + 1) - (uint)((char)iVar1 == '\0');\n      ppOVar2 = ppOVar2 + 1;\n    } while ((pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n             _M_impl._M_finish != ppOVar2);\n  }" if (parenthesized_expression "(ppOVar2 !=\n      (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)._M_impl.\n      _M_finish)" ( (binary_expression "ppOVar2 !=\n      (pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)._M_impl.\n      _M_finish" identifier != (field_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)._M_impl.\n      _M_finish" (field_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)._M_impl" (parenthesized_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)" ( (binary_expression "pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>" (binary_expression "pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_" (binary_expression "pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold" (binary_expression "pdl->super__Vector_base<gold::Output_data*,_std" (binary_expression "pdl->super__Vector_base<gold" (field_expression "pdl->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Output_data" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_data" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier)) )) (compound_statement "{\n    do {\n      iVar1 = (*(*ppOVar2)->_vptr_Output_data[6])(*ppOVar2);\n      uVar3 = (uVar3 + 1) - (uint)((char)iVar1 == '\0');\n      ppOVar2 = ppOVar2 + 1;\n    } while ((pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n             _M_impl._M_finish != ppOVar2);\n  }" { (do_statement "do {\n      iVar1 = (*(*ppOVar2)->_vptr_Output_data[6])(*ppOVar2);\n      uVar3 = (uVar3 + 1) - (uint)((char)iVar1 == '\0');\n      ppOVar2 = ppOVar2 + 1;\n    } while ((pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n             _M_impl._M_finish != ppOVar2);" do (compound_statement "{\n      iVar1 = (*(*ppOVar2)->_vptr_Output_data[6])(*ppOVar2);\n      uVar3 = (uVar3 + 1) - (uint)((char)iVar1 == '\0');\n      ppOVar2 = ppOVar2 + 1;\n    }" { (expression_statement "iVar1 = (*(*ppOVar2)->_vptr_Output_data[6])(*ppOVar2);" (assignment_expression "iVar1 = (*(*ppOVar2)->_vptr_Output_data[6])(*ppOVar2)" identifier = (call_expression "(*(*ppOVar2)->_vptr_Output_data[6])(*ppOVar2)" (parenthesized_expression "(*(*ppOVar2)->_vptr_Output_data[6])" ( (pointer_expression "*(*ppOVar2)->_vptr_Output_data[6]" * (subscript_expression "(*ppOVar2)->_vptr_Output_data[6]" (field_expression "(*ppOVar2)->_vptr_Output_data" (parenthesized_expression "(*ppOVar2)" ( (pointer_expression "*ppOVar2" * identifier) )) -> field_identifier) [ number_literal ])) )) (argument_list "(*ppOVar2)" ( (pointer_expression "*ppOVar2" * identifier) )))) ;) (expression_statement "uVar3 = (uVar3 + 1) - (uint)((char)iVar1 == '\0');" (assignment_expression "uVar3 = (uVar3 + 1) - (uint)((char)iVar1 == '\0')" identifier = (binary_expression "(uVar3 + 1) - (uint)((char)iVar1 == '\0')" (parenthesized_expression "(uVar3 + 1)" ( (binary_expression "uVar3 + 1" identifier + number_literal) )) - (call_expression "(uint)((char)iVar1 == '\0')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((char)iVar1 == '\0')" ( (binary_expression "(char)iVar1 == '\0'" (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) ))))) ;) (expression_statement "ppOVar2 = ppOVar2 + 1;" (assignment_expression "ppOVar2 = ppOVar2 + 1" identifier = (binary_expression "ppOVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n             _M_impl._M_finish != ppOVar2)" ( (binary_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n             _M_impl._M_finish != ppOVar2" (field_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n             _M_impl._M_finish" (field_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>).\n             _M_impl" (parenthesized_expression "(pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>)" ( (binary_expression "pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_>" (binary_expression "pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold::Output_data*>_" (binary_expression "pdl->super__Vector_base<gold::Output_data*,_std::allocator<gold" (binary_expression "pdl->super__Vector_base<gold::Output_data*,_std" (binary_expression "pdl->super__Vector_base<gold" (field_expression "pdl->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "::Output_data" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_data" : : identifier) * (ERROR ">" >) identifier) > identifier) )) . field_identifier) . field_identifier) != identifier) )) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "int FUN_000f13f0(undefined4 param_1,int *param_2)\n\n{\n  char cVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar3 = 0;\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_000f13f0(undefined4 param_1,int *param_2)\n\n{\n  char cVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar3 = 0;\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_000f13f0(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 (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar3 = 0;\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return iVar3;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)*param_2;" (assignment_expression "puVar2 = (undefined4 *)*param_2" identifier = (cast_expression "(undefined4 *)*param_2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)param_2[1])" ( (binary_expression "puVar2 != (undefined4 *)param_2[1]" identifier != (cast_expression "(undefined4 *)param_2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" { (do_statement "do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);" do (compound_statement "{\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    }" { (expression_statement "cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);" (assignment_expression "cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2)" identifier = (call_expression "(**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2)" (parenthesized_expression "(**(code **)(*(int *)*puVar2 + 0x18))" ( (pointer_expression "**(code **)(*(int *)*puVar2 + 0x18)" * (pointer_expression "*(code **)(*(int *)*puVar2 + 0x18)" * (cast_expression "(code **)(*(int *)*puVar2 + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)*puVar2 + 0x18)" ( (binary_expression "*(int *)*puVar2 + 0x18" (pointer_expression "*(int *)*puVar2" * (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) + number_literal) ))))) )) (argument_list "((int *)*puVar2)" ( (cast_expression "(int *)*puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier)) )))) ;) (expression_statement "iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');" (assignment_expression "iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0')" identifier = (binary_expression "(iVar3 + 1) - (uint)(cVar1 == '\0')" (parenthesized_expression "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )) - (call_expression "(uint)(cVar1 == '\0')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) ))))) ;) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" identifier = (binary_expression "puVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((undefined4 *)param_2[1] != puVar2)" ( (binary_expression "(undefined4 *)param_2[1] != puVar2" (cast_expression "(undefined4 *)param_2[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) != identifier) )) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (do_statement do (compound_statement { (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) + LIT) ))))) )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) != IDENT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_000f13f0(undefined4 param_1,int *param_2)\n\n{\n  char cVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar3 = 0;\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_000f13f0(undefined4 param_1,int *param_2)" (identifier "FUN_000f13f0") (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") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  \n  iVar3 = 0;\n  puVar2 = (undefined4 *)*param_2;\n  if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }\n  return iVar3;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = (undefined4 *)*param_2;" (assignment_expression "puVar2 = (undefined4 *)*param_2" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*param_2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (puVar2 != (undefined4 *)param_2[1]) {\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)param_2[1])" (( "(") (binary_expression "puVar2 != (undefined4 *)param_2[1]" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)param_2[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n    do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);\n  }" ({ "{") (do_statement "do {\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    } while ((undefined4 *)param_2[1] != puVar2);" (do "do") (compound_statement "{\n      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);\n      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');\n      puVar2 = puVar2 + 1;\n    }" ({ "{") (expression_statement "cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);" (assignment_expression "cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2)" (identifier "cVar1") (= "=") (call_expression "(**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2)" (parenthesized_expression "(**(code **)(*(int *)*puVar2 + 0x18))" (( "(") (pointer_expression "**(code **)(*(int *)*puVar2 + 0x18)" (* "*") (pointer_expression "*(code **)(*(int *)*puVar2 + 0x18)" (* "*") (cast_expression "(code **)(*(int *)*puVar2 + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)*puVar2 + 0x18)" (( "(") (binary_expression "*(int *)*puVar2 + 0x18" (pointer_expression "*(int *)*puVar2" (* "*") (cast_expression "(int *)*puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "((int *)*puVar2)" (( "(") (cast_expression "(int *)*puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) () ")")))) (; ";")) (expression_statement "iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');" (assignment_expression "iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0')" (identifier "iVar3") (= "=") (binary_expression "(iVar3 + 1) - (uint)(cVar1 == '\0')" (parenthesized_expression "(iVar3 + 1)" (( "(") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) () ")")) (- "-") (call_expression "(uint)(cVar1 == '\0')" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))))) (; ";")) (expression_statement "puVar2 = puVar2 + 1;" (assignment_expression "puVar2 = puVar2 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((undefined4 *)param_2[1] != puVar2)" (( "(") (binary_expression "(undefined4 *)param_2[1] != puVar2" (cast_expression "(undefined4 *)param_2[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (!= "!=") (identifier "puVar2")) () ")")) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

/* DWARF original prototype: uint output_section_count_list(Output_segment * this, Output_data_list
   * pdl) */

type_1 __thiscall
var_5::type_2::function_1(type_2 *this,type_3 *pdl)

{
  int iVar1;
  type_4 var_4;
  type_1 var_7;
  
  var_7 = 0;
  var_4 = (pdl->super__Vector_base<var_5::var_1*var_3,var_6::allocator<var_5::var_1*>var_2>var_3).
            _M_impl._M_start;
  if (var_4 !=
      (pdl->super__Vector_base<var_5::var_1*,var_6::allocator<var_5::var_1*>var_2>var_3)._M_impl.
      _M_finish) {
    do {
      iVar1 = (*(*var_4)->_vptr_Output_data[6])(*var_4);
      var_7 = (var_7 + 1) - (type_1)((char)iVar1 == '\0');
      var_4 = var_4 + 1;
    } while ((pdl->super__Vector_base<var_5::var_1*,var_6::allocator<var_5::var_1*>var_2>var_3).
             _M_impl._M_finish != var_4);
  }
  return var_7;
}


(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: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (do_statement body: (compound_statement (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (number_literal))))))) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier)))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,int *param_2)

{
  char cVar1;
  undefined4 *puVar2;
  int iVar3;
  
  iVar3 = 0;
  puVar2 = (undefined4 *)*param_2;
  if (puVar2 != (undefined4 *)param_2[1]) {
    do {
      cVar1 = (**(code **)(*(int *)*puVar2 + 0x18))((int *)*puVar2);
      iVar3 = (iVar3 + 1) - (uint)(cVar1 == '\0');
      puVar2 = puVar2 + 1;
    } while ((undefined4 *)param_2[1] != puVar2);
  }
  return iVar3;
}

