
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void write_output_sections(Layout * this, Output_file * of) */

void __thiscall gold::Layout::write_output_sections(Layout *this,Output_file *of)

{
  Output_section *pOVar1;
  pointer ppOVar2;
  
  ppOVar2 = (this->section_list_).
            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.
            _M_impl._M_start;
  if (ppOVar2 !=
      (this->section_list_).
      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.
      _M_finish) {
    do {
      pOVar1 = *ppOVar2;
      if ((pOVar1->field_0xc8 & 0x10) == 0) {
        (*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);
      }
      ppOVar2 = ppOVar2 + 1;
    } while ((this->section_list_).
             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.
             _M_impl._M_finish != ppOVar2);
  }
  return;
}



void FUN_0037d340(long param_1,undefined8 param_2)

{
  long *plVar1;
  long *plVar2;
  
  plVar2 = *(long **)(param_1 + 0x248);
  if (plVar2 != *(long **)(param_1 + 0x250)) {
    do {
      plVar1 = (long *)*plVar2;
      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {
        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);
      }
      plVar2 = plVar2 + 1;
    } while (*(long **)(param_1 + 0x250) != plVar2);
  }
  return;
}


PUSH R12
PUSH RBP
PUSH RBX
MOV RBX,qword ptr [RDI + 0x248]
CMP RBX,qword ptr [RDI + 0x250]
JZ 0x0037d382
MOV R12,RSI
MOV RBP,RDI
NOP word ptr [RAX + RAX*0x1]
MOV RDI,qword ptr [RBX]
TEST byte ptr [RDI + 0xc8],0x10
JNZ 0x0037d375
MOV RAX,qword ptr [RDI]
MOV RSI,R12
CALL qword ptr [RAX + 0x10]
ADD RBX,0x8
CMP qword ptr [RBP + 0x250],RBX
JNZ 0x0037d360
POP RBX
POP RBP
POP R12
RET
(translation_unit "void FUN_0037d340(long param_1,undefined8 param_2)\n\n{\n  long *plVar1;\n  long *plVar2;\n  \n  plVar2 = *(long **)(param_1 + 0x248);\n  if (plVar2 != *(long **)(param_1 + 0x250)) {\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0037d340(long param_1,undefined8 param_2)\n\n{\n  long *plVar1;\n  long *plVar2;\n  \n  plVar2 = *(long **)(param_1 + 0x248);\n  if (plVar2 != *(long **)(param_1 + 0x250)) {\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0037d340(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  \n  plVar2 = *(long **)(param_1 + 0x248);\n  if (plVar2 != *(long **)(param_1 + 0x250)) {\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (expression_statement "plVar2 = *(long **)(param_1 + 0x248);" (assignment_expression "plVar2 = *(long **)(param_1 + 0x248)" identifier = (pointer_expression "*(long **)(param_1 + 0x248)" * (cast_expression "(long **)(param_1 + 0x248)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) ))))) ;) (if_statement "if (plVar2 != *(long **)(param_1 + 0x250)) {\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }" if (parenthesized_expression "(plVar2 != *(long **)(param_1 + 0x250))" ( (binary_expression "plVar2 != *(long **)(param_1 + 0x250)" identifier != (pointer_expression "*(long **)(param_1 + 0x250)" * (cast_expression "(long **)(param_1 + 0x250)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x250)" ( (binary_expression "param_1 + 0x250" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }" { (do_statement "do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);" do (compound_statement "{\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    }" { (expression_statement "plVar1 = (long *)*plVar2;" (assignment_expression "plVar1 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) (if_statement "if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }" if (parenthesized_expression "((*(byte *)(plVar1 + 0x19) & 0x10) == 0)" ( (binary_expression "(*(byte *)(plVar1 + 0x19) & 0x10) == 0" (parenthesized_expression "(*(byte *)(plVar1 + 0x19) & 0x10)" ( (binary_expression "*(byte *)(plVar1 + 0x19) & 0x10" (pointer_expression "*(byte *)(plVar1 + 0x19)" * (cast_expression "(byte *)(plVar1 + 0x19)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar1 + 0x19)" ( (binary_expression "plVar1 + 0x19" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }" { (expression_statement "(**(code **)(*plVar1 + 0x10))(plVar1,param_2);" (call_expression "(**(code **)(*plVar1 + 0x10))(plVar1,param_2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x10))" ( (pointer_expression "**(code **)(*plVar1 + 0x10)" * (pointer_expression "*(code **)(*plVar1 + 0x10)" * (cast_expression "(code **)(*plVar1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x10)" ( (binary_expression "*plVar1 + 0x10" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_2)" ( identifier , identifier ))) ;) })) (expression_statement "plVar2 = plVar2 + 1;" (assignment_expression "plVar2 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(long **)(param_1 + 0x250) != plVar2)" ( (binary_expression "*(long **)(param_1 + 0x250) != plVar2" (pointer_expression "*(long **)(param_1 + 0x250)" * (cast_expression "(long **)(param_1 + 0x250)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x250)" ( (binary_expression "param_1 + 0x250" identifier + number_literal) )))) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void write_output_sections(Layout * this, Output_file * of) */\n\nvoid __thiscall gold::Layout::write_output_sections(Layout *this,Output_file *of)\n\n{\n  Output_section *pOVar1;\n  pointer ppOVar2;\n  \n  ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;\n  if (ppOVar2 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      pOVar1 = *ppOVar2;\n      if ((pOVar1->field_0xc8 & 0x10) == 0) {\n        (*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);\n      }\n      ppOVar2 = ppOVar2 + 1;\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar2);\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall gold::Layout::write_output_sections(Layout *this,Output_file *of)\n\n{\n  Output_section *pOVar1;\n  pointer ppOVar2;\n  \n  ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;\n  if (ppOVar2 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      pOVar1 = *ppOVar2;\n      if ((pOVar1->field_0xc8 & 0x10) == 0) {\n        (*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);\n      }\n      ppOVar2 = ppOVar2 + 1;\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar2);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "write_output_sections(Layout *this,Output_file *of)" identifier (parameter_list "(Layout *this,Output_file *of)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Output_file *of" type_identifier (pointer_declarator "*of" * identifier)) ))) (compound_statement "{\n  Output_section *pOVar1;\n  pointer ppOVar2;\n  \n  ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;\n  if (ppOVar2 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      pOVar1 = *ppOVar2;\n      if ((pOVar1->field_0xc8 & 0x10) == 0) {\n        (*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);\n      }\n      ppOVar2 = ppOVar2 + 1;\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar2);\n  }\n  return;\n}" { (declaration "Output_section *pOVar1;" type_identifier (pointer_declarator "*pOVar1" * identifier) ;) (declaration "pointer ppOVar2;" type_identifier identifier ;) (expression_statement "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start;" (field_expression "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl._M_start" (field_expression "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n            _M_impl" (binary_expression "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold::Output_section*,_std" (assignment_expression "ppOVar2 = (this->section_list_).\n            super__Vector_base<gold" identifier = (binary_expression "(this->section_list_).\n            super__Vector_base<gold" (field_expression "(this->section_list_).\n            super__Vector_base" (parenthesized_expression "(this->section_list_)" ( (field_expression "this->section_list_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) ;) (if_statement "if (ppOVar2 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish) {\n    do {\n      pOVar1 = *ppOVar2;\n      if ((pOVar1->field_0xc8 & 0x10) == 0) {\n        (*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);\n      }\n      ppOVar2 = ppOVar2 + 1;\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar2);\n  }" if (parenthesized_expression "(ppOVar2 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish)" ( (field_expression "ppOVar2 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl.\n      _M_finish" (field_expression "ppOVar2 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>._M_impl" (binary_expression "ppOVar2 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "ppOVar2 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "ppOVar2 !=\n      (this->section_list_).\n      super__Vector_base<gold::Output_section*,_std" (binary_expression "ppOVar2 !=\n      (this->section_list_).\n      super__Vector_base<gold" identifier != (binary_expression "(this->section_list_).\n      super__Vector_base<gold" (field_expression "(this->section_list_).\n      super__Vector_base" (parenthesized_expression "(this->section_list_)" ( (field_expression "this->section_list_" identifier -> field_identifier) )) . field_identifier) < identifier)) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) )) (compound_statement "{\n    do {\n      pOVar1 = *ppOVar2;\n      if ((pOVar1->field_0xc8 & 0x10) == 0) {\n        (*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);\n      }\n      ppOVar2 = ppOVar2 + 1;\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar2);\n  }" { (do_statement "do {\n      pOVar1 = *ppOVar2;\n      if ((pOVar1->field_0xc8 & 0x10) == 0) {\n        (*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);\n      }\n      ppOVar2 = ppOVar2 + 1;\n    } while ((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar2);" do (compound_statement "{\n      pOVar1 = *ppOVar2;\n      if ((pOVar1->field_0xc8 & 0x10) == 0) {\n        (*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);\n      }\n      ppOVar2 = ppOVar2 + 1;\n    }" { (expression_statement "pOVar1 = *ppOVar2;" (assignment_expression "pOVar1 = *ppOVar2" identifier = (pointer_expression "*ppOVar2" * identifier)) ;) (if_statement "if ((pOVar1->field_0xc8 & 0x10) == 0) {\n        (*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);\n      }" if (parenthesized_expression "((pOVar1->field_0xc8 & 0x10) == 0)" ( (binary_expression "(pOVar1->field_0xc8 & 0x10) == 0" (parenthesized_expression "(pOVar1->field_0xc8 & 0x10)" ( (binary_expression "pOVar1->field_0xc8 & 0x10" (field_expression "pOVar1->field_0xc8" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n        (*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);\n      }" { (expression_statement "(*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);" (call_expression "(*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of)" (parenthesized_expression "(*(pOVar1->super_Output_data)._vptr_Output_data[2])" ( (pointer_expression "*(pOVar1->super_Output_data)._vptr_Output_data[2]" * (subscript_expression "(pOVar1->super_Output_data)._vptr_Output_data[2]" (field_expression "(pOVar1->super_Output_data)._vptr_Output_data" (parenthesized_expression "(pOVar1->super_Output_data)" ( (field_expression "pOVar1->super_Output_data" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) )) (argument_list "(pOVar1,of)" ( identifier , identifier ))) ;) })) (expression_statement "ppOVar2 = ppOVar2 + 1;" (assignment_expression "ppOVar2 = ppOVar2 + 1" identifier = (binary_expression "ppOVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar2)" ( (binary_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish != ppOVar2" (field_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl._M_finish" (field_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_>.\n             _M_impl" (binary_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold::Output_section*>_" (binary_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std::allocator<gold" (binary_expression "(this->section_list_).\n             super__Vector_base<gold::Output_section*,_std" (binary_expression "(this->section_list_).\n             super__Vector_base<gold" (field_expression "(this->section_list_).\n             super__Vector_base" (parenthesized_expression "(this->section_list_)" ( (field_expression "this->section_list_" identifier -> field_identifier) )) . field_identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_section" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0037d340(long param_1,undefined8 param_2)\n\n{\n  long *plVar1;\n  long *plVar2;\n  \n  plVar2 = *(long **)(param_1 + 0x248);\n  if (plVar2 != *(long **)(param_1 + 0x250)) {\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_0037d340(long param_1,undefined8 param_2)\n\n{\n  long *plVar1;\n  long *plVar2;\n  \n  plVar2 = *(long **)(param_1 + 0x248);\n  if (plVar2 != *(long **)(param_1 + 0x250)) {\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0037d340(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  \n  plVar2 = *(long **)(param_1 + 0x248);\n  if (plVar2 != *(long **)(param_1 + 0x250)) {\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (expression_statement "plVar2 = *(long **)(param_1 + 0x248);" (assignment_expression "plVar2 = *(long **)(param_1 + 0x248)" identifier = (pointer_expression "*(long **)(param_1 + 0x248)" * (cast_expression "(long **)(param_1 + 0x248)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x248)" ( (binary_expression "param_1 + 0x248" identifier + number_literal) ))))) ;) (if_statement "if (plVar2 != *(long **)(param_1 + 0x250)) {\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }" if (parenthesized_expression "(plVar2 != *(long **)(param_1 + 0x250))" ( (binary_expression "plVar2 != *(long **)(param_1 + 0x250)" identifier != (pointer_expression "*(long **)(param_1 + 0x250)" * (cast_expression "(long **)(param_1 + 0x250)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x250)" ( (binary_expression "param_1 + 0x250" identifier + number_literal) ))))) )) (compound_statement "{\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }" { (do_statement "do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);" do (compound_statement "{\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    }" { (expression_statement "plVar1 = (long *)*plVar2;" (assignment_expression "plVar1 = (long *)*plVar2" identifier = (cast_expression "(long *)*plVar2" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (pointer_expression "*plVar2" * identifier))) ;) (if_statement "if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }" if (parenthesized_expression "((*(byte *)(plVar1 + 0x19) & 0x10) == 0)" ( (binary_expression "(*(byte *)(plVar1 + 0x19) & 0x10) == 0" (parenthesized_expression "(*(byte *)(plVar1 + 0x19) & 0x10)" ( (binary_expression "*(byte *)(plVar1 + 0x19) & 0x10" (pointer_expression "*(byte *)(plVar1 + 0x19)" * (cast_expression "(byte *)(plVar1 + 0x19)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar1 + 0x19)" ( (binary_expression "plVar1 + 0x19" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }" { (expression_statement "(**(code **)(*plVar1 + 0x10))(plVar1,param_2);" (call_expression "(**(code **)(*plVar1 + 0x10))(plVar1,param_2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x10))" ( (pointer_expression "**(code **)(*plVar1 + 0x10)" * (pointer_expression "*(code **)(*plVar1 + 0x10)" * (cast_expression "(code **)(*plVar1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar1 + 0x10)" ( (binary_expression "*plVar1 + 0x10" (pointer_expression "*plVar1" * identifier) + number_literal) ))))) )) (argument_list "(plVar1,param_2)" ( identifier , identifier ))) ;) })) (expression_statement "plVar2 = plVar2 + 1;" (assignment_expression "plVar2 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(*(long **)(param_1 + 0x250) != plVar2)" ( (binary_expression "*(long **)(param_1 + 0x250) != plVar2" (pointer_expression "*(long **)(param_1 + 0x250)" * (cast_expression "(long **)(param_1 + 0x250)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x250)" ( (binary_expression "param_1 + 0x250" identifier + number_literal) )))) != identifier) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (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 , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0037d340(long param_1,undefined8 param_2)\n\n{\n  long *plVar1;\n  long *plVar2;\n  \n  plVar2 = *(long **)(param_1 + 0x248);\n  if (plVar2 != *(long **)(param_1 + 0x250)) {\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0037d340(long param_1,undefined8 param_2)" (identifier "FUN_0037d340") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  \n  plVar2 = *(long **)(param_1 + 0x248);\n  if (plVar2 != *(long **)(param_1 + 0x250)) {\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (expression_statement "plVar2 = *(long **)(param_1 + 0x248);" (assignment_expression "plVar2 = *(long **)(param_1 + 0x248)" (identifier "plVar2") (= "=") (pointer_expression "*(long **)(param_1 + 0x248)" (* "*") (cast_expression "(long **)(param_1 + 0x248)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x248)" (( "(") (binary_expression "param_1 + 0x248" (identifier "param_1") (+ "+") (number_literal "0x248")) () ")"))))) (; ";")) (if_statement "if (plVar2 != *(long **)(param_1 + 0x250)) {\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }" (if "if") (parenthesized_expression "(plVar2 != *(long **)(param_1 + 0x250))" (( "(") (binary_expression "plVar2 != *(long **)(param_1 + 0x250)" (identifier "plVar2") (!= "!=") (pointer_expression "*(long **)(param_1 + 0x250)" (* "*") (cast_expression "(long **)(param_1 + 0x250)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x250)" (( "(") (binary_expression "param_1 + 0x250" (identifier "param_1") (+ "+") (number_literal "0x250")) () ")"))))) () ")")) (compound_statement "{\n    do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);\n  }" ({ "{") (do_statement "do {\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    } while (*(long **)(param_1 + 0x250) != plVar2);" (do "do") (compound_statement "{\n      plVar1 = (long *)*plVar2;\n      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }\n      plVar2 = plVar2 + 1;\n    }" ({ "{") (expression_statement "plVar1 = (long *)*plVar2;" (assignment_expression "plVar1 = (long *)*plVar2" (identifier "plVar1") (= "=") (cast_expression "(long *)*plVar2" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*plVar2" (* "*") (identifier "plVar2")))) (; ";")) (if_statement "if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }" (if "if") (parenthesized_expression "((*(byte *)(plVar1 + 0x19) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)(plVar1 + 0x19) & 0x10) == 0" (parenthesized_expression "(*(byte *)(plVar1 + 0x19) & 0x10)" (( "(") (binary_expression "*(byte *)(plVar1 + 0x19) & 0x10" (pointer_expression "*(byte *)(plVar1 + 0x19)" (* "*") (cast_expression "(byte *)(plVar1 + 0x19)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar1 + 0x19)" (( "(") (binary_expression "plVar1 + 0x19" (identifier "plVar1") (+ "+") (number_literal "0x19")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);\n      }" ({ "{") (expression_statement "(**(code **)(*plVar1 + 0x10))(plVar1,param_2);" (call_expression "(**(code **)(*plVar1 + 0x10))(plVar1,param_2)" (parenthesized_expression "(**(code **)(*plVar1 + 0x10))" (( "(") (pointer_expression "**(code **)(*plVar1 + 0x10)" (* "*") (pointer_expression "*(code **)(*plVar1 + 0x10)" (* "*") (cast_expression "(code **)(*plVar1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar1 + 0x10)" (( "(") (binary_expression "*plVar1 + 0x10" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(plVar1,param_2)" (( "(") (identifier "plVar1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "plVar2 = plVar2 + 1;" (assignment_expression "plVar2 = plVar2 + 1" (identifier "plVar2") (= "=") (binary_expression "plVar2 + 1" (identifier "plVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(long **)(param_1 + 0x250) != plVar2)" (( "(") (binary_expression "*(long **)(param_1 + 0x250) != plVar2" (pointer_expression "*(long **)(param_1 + 0x250)" (* "*") (cast_expression "(long **)(param_1 + 0x250)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x250)" (( "(") (binary_expression "param_1 + 0x250" (identifier "param_1") (+ "+") (number_literal "0x250")) () ")")))) (!= "!=") (identifier "plVar2")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void write_output_sections(Layout * this, Output_file * of) */

void __thiscall var_1::type_1::function_1(type_1 *this,type_2 *of)

{
  type_3 *pOVar1;
  type_4 var_4;
  
  var_4 = (this->section_list_).
            super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_3>.
            _M_impl._M_start;
  if (var_4 !=
      (this->section_list_).
      super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_3>._M_impl.
      _M_finish) {
    do {
      pOVar1 = *var_4;
      if ((pOVar1->field_0xc8 & 0x10) == 0) {
        (*(pOVar1->super_Output_data)._vptr_Output_data[2])(pOVar1,of);
      }
      var_4 = var_4 + 1;
    } while ((this->section_list_).
             super__Vector_base<var_1::type_3*,var_2::allocator<var_1::type_3*>var_3>.
             _M_impl._M_finish != var_4);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (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) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (return_statement))))

void MASKED(long param_1,undefined8 param_2)

{
  long *plVar1;
  long *plVar2;
  
  plVar2 = *(long **)(param_1 + 0x248);
  if (plVar2 != *(long **)(param_1 + 0x250)) {
    do {
      plVar1 = (long *)*plVar2;
      if ((*(byte *)(plVar1 + 0x19) & 0x10) == 0) {
        (**(code **)(*plVar1 + 0x10))(plVar1,param_2);
      }
      plVar2 = plVar2 + 1;
    } while (*(long **)(param_1 + 0x250) != plVar2);
  }
  return;
}

