
/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: bool get_kept_comdat_section(Sized_relobj_file<32,_true> * this, uint
   shndx, bool * is_comdat, uint * symndx, uint64_t * sh_size, Kept_section * * kept_section) */

bool __thiscall
gold::Sized_relobj_file<32,_true>::get_kept_comdat_section
          (Sized_relobj_file<32,_true> *this,uint shndx,bool *is_comdat,uint *symndx,
          uint64_t *sh_size,Kept_section **kept_section)

{
  _Base_ptr *pp_Var1;
  _Rb_tree_header *p_Var2;
  _Base_ptr p_Var3;
  _Base_ptr p_Var4;
  _Base_ptr p_Var5;
  
  p_Var3 = (this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;
  p_Var2 = &(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header;
  p_Var4 = &p_Var2->_M_header;
  if (p_Var3 == (_Base_ptr)0x0) {
    return false;
  }
  do {
    while (p_Var5 = p_Var3, shndx <= p_Var5[1]._M_color) {
      p_Var3 = p_Var5->_M_left;
      p_Var4 = p_Var5;
      if (p_Var5->_M_left == (_Base_ptr)0x0) goto LAB_001d56ba;
    }
    pp_Var1 = &p_Var5->_M_right;
    p_Var3 = *pp_Var1;
    p_Var5 = p_Var4;
  } while (*pp_Var1 != (_Base_ptr)0x0);
LAB_001d56ba:
  if ((p_Var2 != (_Rb_tree_header *)p_Var5) && (p_Var5[1]._M_color <= shndx)) {
    *is_comdat = *(bool *)((long)&p_Var5[1]._M_right + 4);
    *symndx = *(uint *)&p_Var5[1]._M_right;
    *sh_size = (uint64_t)p_Var5[1]._M_parent;
    *kept_section = (Kept_section *)p_Var5[1]._M_left;
    return true;
  }
  return false;
}



undefined8
FUN_001d5680(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,
            undefined8 *param_6)

{
  long *plVar1;
  long lVar2;
  long lVar3;
  long lVar4;
  
  lVar2 = *(long *)(param_1 + 0x1c0);
  lVar3 = param_1 + 0x1b8;
  if (*(long *)(param_1 + 0x1c0) == 0) {
    return 0;
  }
  do {
    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {
      lVar2 = *(long *)(lVar4 + 0x10);
      lVar3 = lVar4;
      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;
    }
    plVar1 = (long *)(lVar4 + 0x18);
    lVar2 = *plVar1;
    lVar4 = lVar3;
  } while (*plVar1 != 0);
LAB_001d56ba:
  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {
    *param_3 = *(undefined1 *)(lVar4 + 0x3c);
    *param_4 = *(undefined4 *)(lVar4 + 0x38);
    *param_5 = *(undefined8 *)(lVar4 + 0x28);
    *param_6 = *(undefined8 *)(lVar4 + 0x30);
    return 1;
  }
  return 0;
}


MOV RAX,qword ptr [RDI + 0x1c0]
LEA R10,[RDI + 0x1b8]
TEST RAX,RAX
JZ 0x001d56f0
MOV RDI,R10
JMP 0x001d56ac
MOV RDI,RAX
MOV RAX,qword ptr [RAX + 0x10]
TEST RAX,RAX
JZ 0x001d56ba
CMP dword ptr [RAX + 0x20],ESI
JNC 0x001d56a0
MOV RAX,qword ptr [RAX + 0x18]
TEST RAX,RAX
JNZ 0x001d56ac
XOR EAX,EAX
CMP R10,RDI
JZ 0x001d56c6
CMP dword ptr [RDI + 0x20],ESI
JBE 0x001d56d0
RET
MOVZX EAX,byte ptr [RDI + 0x3c]
MOV byte ptr [RDX],AL
MOV EAX,dword ptr [RDI + 0x38]
MOV dword ptr [RCX],EAX
MOV RAX,qword ptr [RDI + 0x28]
MOV qword ptr [R8],RAX
MOV RAX,qword ptr [RDI + 0x30]
MOV qword ptr [R9],RAX
MOV EAX,0x1
RET
XOR EAX,EAX
RET
(translation_unit "undefined8\nFUN_001d5680(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,\n            undefined8 *param_6)\n\n{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar2 = *(long *)(param_1 + 0x1c0);\n  lVar3 = param_1 + 0x1b8;\n  if (*(long *)(param_1 + 0x1c0) == 0) {\n    return 0;\n  }\n  do {\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  } while (*plVar1 != 0);\nLAB_001d56ba:\n  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8\nFUN_001d5680(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,\n            undefined8 *param_6)\n\n{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar2 = *(long *)(param_1 + 0x1c0);\n  lVar3 = param_1 + 0x1b8;\n  if (*(long *)(param_1 + 0x1c0) == 0) {\n    return 0;\n  }\n  do {\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  } while (*plVar1 != 0);\nLAB_001d56ba:\n  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001d5680(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,\n            undefined8 *param_6)" identifier (parameter_list "(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,\n            undefined8 *param_6)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined8 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined8 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar2 = *(long *)(param_1 + 0x1c0);\n  lVar3 = param_1 + 0x1b8;\n  if (*(long *)(param_1 + 0x1c0) == 0) {\n    return 0;\n  }\n  do {\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  } while (*plVar1 != 0);\nLAB_001d56ba:\n  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }\n  return 0;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = *(long *)(param_1 + 0x1c0);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x1c0)" identifier = (pointer_expression "*(long *)(param_1 + 0x1c0)" * (cast_expression "(long *)(param_1 + 0x1c0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c0)" ( (binary_expression "param_1 + 0x1c0" identifier + number_literal) ))))) ;) (expression_statement "lVar3 = param_1 + 0x1b8;" (assignment_expression "lVar3 = param_1 + 0x1b8" identifier = (binary_expression "param_1 + 0x1b8" identifier + number_literal)) ;) (if_statement "if (*(long *)(param_1 + 0x1c0) == 0) {\n    return 0;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x1c0) == 0)" ( (binary_expression "*(long *)(param_1 + 0x1c0) == 0" (pointer_expression "*(long *)(param_1 + 0x1c0)" * (cast_expression "(long *)(param_1 + 0x1c0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c0)" ( (binary_expression "param_1 + 0x1c0" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  } while (*plVar1 != 0);" do (compound_statement "{\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  }" { (while_statement "while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }" while (parenthesized_expression "(lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20))" ( (comma_expression "lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)" (assignment_expression "lVar4 = lVar2" identifier = identifier) , (binary_expression "param_2 <= *(uint *)(lVar4 + 0x20)" identifier <= (pointer_expression "*(uint *)(lVar4 + 0x20)" * (cast_expression "(uint *)(lVar4 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))))) )) (compound_statement "{\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }" { (expression_statement "lVar2 = *(long *)(lVar4 + 0x10);" (assignment_expression "lVar2 = *(long *)(lVar4 + 0x10)" identifier = (pointer_expression "*(long *)(lVar4 + 0x10)" * (cast_expression "(long *)(lVar4 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x10)" ( (binary_expression "lVar4 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "lVar3 = lVar4;" (assignment_expression "lVar3 = lVar4" identifier = identifier) ;) (if_statement "if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;" if (parenthesized_expression "(*(long *)(lVar4 + 0x10) == 0)" ( (binary_expression "*(long *)(lVar4 + 0x10) == 0" (pointer_expression "*(long *)(lVar4 + 0x10)" * (cast_expression "(long *)(lVar4 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x10)" ( (binary_expression "lVar4 + 0x10" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_001d56ba;" goto statement_identifier ;)) })) (expression_statement "plVar1 = (long *)(lVar4 + 0x18);" (assignment_expression "plVar1 = (long *)(lVar4 + 0x18)" identifier = (cast_expression "(long *)(lVar4 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) ;) (expression_statement "lVar2 = *plVar1;" (assignment_expression "lVar2 = *plVar1" identifier = (pointer_expression "*plVar1" * identifier)) ;) (expression_statement "lVar4 = lVar3;" (assignment_expression "lVar4 = lVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*plVar1 != 0)" ( (binary_expression "*plVar1 != 0" (pointer_expression "*plVar1" * identifier) != number_literal) )) ;) (labeled_statement "LAB_001d56ba:\n  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }" statement_identifier : (if_statement "if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }" if (parenthesized_expression "((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2))" ( (binary_expression "(param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)" (parenthesized_expression "(param_1 + 0x1b8 != lVar4)" ( (binary_expression "param_1 + 0x1b8 != lVar4" (binary_expression "param_1 + 0x1b8" identifier + number_literal) != identifier) )) && (parenthesized_expression "(*(uint *)(lVar4 + 0x20) <= param_2)" ( (binary_expression "*(uint *)(lVar4 + 0x20) <= param_2" (pointer_expression "*(uint *)(lVar4 + 0x20)" * (cast_expression "(uint *)(lVar4 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }" { (expression_statement "*param_3 = *(undefined1 *)(lVar4 + 0x3c);" (assignment_expression "*param_3 = *(undefined1 *)(lVar4 + 0x3c)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined1 *)(lVar4 + 0x3c)" * (cast_expression "(undefined1 *)(lVar4 + 0x3c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x3c)" ( (binary_expression "lVar4 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "*param_4 = *(undefined4 *)(lVar4 + 0x38);" (assignment_expression "*param_4 = *(undefined4 *)(lVar4 + 0x38)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)(lVar4 + 0x38)" * (cast_expression "(undefined4 *)(lVar4 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x38)" ( (binary_expression "lVar4 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "*param_5 = *(undefined8 *)(lVar4 + 0x28);" (assignment_expression "*param_5 = *(undefined8 *)(lVar4 + 0x28)" (pointer_expression "*param_5" * identifier) = (pointer_expression "*(undefined8 *)(lVar4 + 0x28)" * (cast_expression "(undefined8 *)(lVar4 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x28)" ( (binary_expression "lVar4 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*param_6 = *(undefined8 *)(lVar4 + 0x30);" (assignment_expression "*param_6 = *(undefined8 *)(lVar4 + 0x30)" (pointer_expression "*param_6" * identifier) = (pointer_expression "*(undefined8 *)(lVar4 + 0x30)" * (cast_expression "(undefined8 *)(lVar4 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x30)" ( (binary_expression "lVar4 + 0x30" identifier + number_literal) ))))) ;) (return_statement "return 1;" return number_literal ;) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n/* DWARF original prototype: bool get_kept_comdat_section(Sized_relobj_file<32,_true> * this, uint\n   shndx, bool * is_comdat, uint * symndx, uint64_t * sh_size, Kept_section * * kept_section) */\n\nbool __thiscall\ngold::Sized_relobj_file<32,_true>::get_kept_comdat_section\n          (Sized_relobj_file<32,_true> *this,uint shndx,bool *is_comdat,uint *symndx,\n          uint64_t *sh_size,Kept_section **kept_section)\n\n{\n  _Base_ptr *pp_Var1;\n  _Rb_tree_header *p_Var2;\n  _Base_ptr p_Var3;\n  _Base_ptr p_Var4;\n  _Base_ptr p_Var5;\n  \n  p_Var3 = (this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;\n  p_Var2 = &(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header;\n  p_Var4 = &p_Var2->_M_header;\n  if (p_Var3 == (_Base_ptr)0x0) {\n    return false;\n  }\n  do {\n    while (p_Var5 = p_Var3, shndx <= p_Var5[1]._M_color) {\n      p_Var3 = p_Var5->_M_left;\n      p_Var4 = p_Var5;\n      if (p_Var5->_M_left == (_Base_ptr)0x0) goto LAB_001d56ba;\n    }\n    pp_Var1 = &p_Var5->_M_right;\n    p_Var3 = *pp_Var1;\n    p_Var5 = p_Var4;\n  } while (*pp_Var1 != (_Base_ptr)0x0);\nLAB_001d56ba:\n  if ((p_Var2 != (_Rb_tree_header *)p_Var5) && (p_Var5[1]._M_color <= shndx)) {\n    *is_comdat = *(bool *)((long)&p_Var5[1]._M_right + 4);\n    *symndx = *(uint *)&p_Var5[1]._M_right;\n    *sh_size = (uint64_t)p_Var5[1]._M_parent;\n    *kept_section = (Kept_section *)p_Var5[1]._M_left;\n    return true;\n  }\n  return false;\n}\n\n" comment comment (declaration "bool __thiscall\ngold::Sized_relobj_file<32,_true>::get_kept_comdat_section\n          (Sized_relobj_file<32,_true> *this,uint shndx,bool *is_comdat,uint *symndx,\n          uint64_t *sh_size,Kept_section **kept_section)\n\n{\n  _Base_ptr *pp_Var1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<32" < number_literal) , (ERROR "_true>::get_kept_comdat_section\n          (Sized_relobj_file<32,_true> *this,uint shndx,bool *is_comdat,uint *symndx,\n          uint64_t *sh_size,Kept_section **kept_section)\n\n{\n  _Base_ptr" identifier > : : (function_declarator "get_kept_comdat_section\n          (Sized_relobj_file<32,_true> *this,uint shndx,bool *is_comdat,uint *symndx,\n          uint64_t *sh_size,Kept_section **kept_section)" identifier (parameter_list "(Sized_relobj_file<32,_true> *this,uint shndx,bool *is_comdat,uint *symndx,\n          uint64_t *sh_size,Kept_section **kept_section)" ( (parameter_declaration "Sized_relobj_file" type_identifier) (ERROR "<32" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint shndx" type_identifier identifier) , (parameter_declaration "bool *is_comdat" primitive_type (pointer_declarator "*is_comdat" * identifier)) , (parameter_declaration "uint *symndx" type_identifier (pointer_declarator "*symndx" * identifier)) , (parameter_declaration "uint64_t *sh_size" primitive_type (pointer_declarator "*sh_size" * identifier)) , (parameter_declaration "Kept_section **kept_section" type_identifier (pointer_declarator "**kept_section" * (pointer_declarator "*kept_section" * identifier))) ))) { identifier) (pointer_declarator "*pp_Var1" * identifier) ;) (declaration "_Rb_tree_header *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "_Base_ptr p_Var3;" type_identifier identifier ;) (declaration "_Base_ptr p_Var4;" type_identifier identifier ;) (declaration "_Base_ptr p_Var5;" type_identifier identifier ;) (expression_statement "p_Var3 = (this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;" (assignment_expression "p_Var3 = (this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent" identifier = (field_expression "(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent" (field_expression "(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header._M_header" (field_expression "(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header" (field_expression "(this->kept_comdat_sections_)._M_t._M_impl" (field_expression "(this->kept_comdat_sections_)._M_t" (parenthesized_expression "(this->kept_comdat_sections_)" ( (field_expression "this->kept_comdat_sections_" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) . field_identifier) . field_identifier)) ;) (expression_statement "p_Var2 = &(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header;" (assignment_expression "p_Var2 = &(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header" identifier = (pointer_expression "&(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header" & (field_expression "(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header" (field_expression "(this->kept_comdat_sections_)._M_t._M_impl" (field_expression "(this->kept_comdat_sections_)._M_t" (parenthesized_expression "(this->kept_comdat_sections_)" ( (field_expression "this->kept_comdat_sections_" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier))) ;) (expression_statement "p_Var4 = &p_Var2->_M_header;" (assignment_expression "p_Var4 = &p_Var2->_M_header" identifier = (pointer_expression "&p_Var2->_M_header" & (field_expression "p_Var2->_M_header" identifier -> field_identifier))) ;) (if_statement "if (p_Var3 == (_Base_ptr)0x0) {\n    return false;\n  }" if (parenthesized_expression "(p_Var3 == (_Base_ptr)0x0)" ( (binary_expression "p_Var3 == (_Base_ptr)0x0" identifier == (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) )) (compound_statement "{\n    return false;\n  }" { (return_statement "return false;" return false ;) })) (do_statement "do {\n    while (p_Var5 = p_Var3, shndx <= p_Var5[1]._M_color) {\n      p_Var3 = p_Var5->_M_left;\n      p_Var4 = p_Var5;\n      if (p_Var5->_M_left == (_Base_ptr)0x0) goto LAB_001d56ba;\n    }\n    pp_Var1 = &p_Var5->_M_right;\n    p_Var3 = *pp_Var1;\n    p_Var5 = p_Var4;\n  } while (*pp_Var1 != (_Base_ptr)0x0);" do (compound_statement "{\n    while (p_Var5 = p_Var3, shndx <= p_Var5[1]._M_color) {\n      p_Var3 = p_Var5->_M_left;\n      p_Var4 = p_Var5;\n      if (p_Var5->_M_left == (_Base_ptr)0x0) goto LAB_001d56ba;\n    }\n    pp_Var1 = &p_Var5->_M_right;\n    p_Var3 = *pp_Var1;\n    p_Var5 = p_Var4;\n  }" { (while_statement "while (p_Var5 = p_Var3, shndx <= p_Var5[1]._M_color) {\n      p_Var3 = p_Var5->_M_left;\n      p_Var4 = p_Var5;\n      if (p_Var5->_M_left == (_Base_ptr)0x0) goto LAB_001d56ba;\n    }" while (parenthesized_expression "(p_Var5 = p_Var3, shndx <= p_Var5[1]._M_color)" ( (comma_expression "p_Var5 = p_Var3, shndx <= p_Var5[1]._M_color" (assignment_expression "p_Var5 = p_Var3" identifier = identifier) , (binary_expression "shndx <= p_Var5[1]._M_color" identifier <= (field_expression "p_Var5[1]._M_color" (subscript_expression "p_Var5[1]" identifier [ number_literal ]) . field_identifier))) )) (compound_statement "{\n      p_Var3 = p_Var5->_M_left;\n      p_Var4 = p_Var5;\n      if (p_Var5->_M_left == (_Base_ptr)0x0) goto LAB_001d56ba;\n    }" { (expression_statement "p_Var3 = p_Var5->_M_left;" (assignment_expression "p_Var3 = p_Var5->_M_left" identifier = (field_expression "p_Var5->_M_left" identifier -> field_identifier)) ;) (expression_statement "p_Var4 = p_Var5;" (assignment_expression "p_Var4 = p_Var5" identifier = identifier) ;) (if_statement "if (p_Var5->_M_left == (_Base_ptr)0x0) goto LAB_001d56ba;" if (parenthesized_expression "(p_Var5->_M_left == (_Base_ptr)0x0)" ( (binary_expression "p_Var5->_M_left == (_Base_ptr)0x0" (field_expression "p_Var5->_M_left" identifier -> field_identifier) == (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_001d56ba;" goto statement_identifier ;)) })) (expression_statement "pp_Var1 = &p_Var5->_M_right;" (assignment_expression "pp_Var1 = &p_Var5->_M_right" identifier = (pointer_expression "&p_Var5->_M_right" & (field_expression "p_Var5->_M_right" identifier -> field_identifier))) ;) (expression_statement "p_Var3 = *pp_Var1;" (assignment_expression "p_Var3 = *pp_Var1" identifier = (pointer_expression "*pp_Var1" * identifier)) ;) (expression_statement "p_Var5 = p_Var4;" (assignment_expression "p_Var5 = p_Var4" identifier = identifier) ;) }) while (parenthesized_expression "(*pp_Var1 != (_Base_ptr)0x0)" ( (binary_expression "*pp_Var1 != (_Base_ptr)0x0" (pointer_expression "*pp_Var1" * identifier) != (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) )) ;) (labeled_statement "LAB_001d56ba:\n  if ((p_Var2 != (_Rb_tree_header *)p_Var5) && (p_Var5[1]._M_color <= shndx)) {\n    *is_comdat = *(bool *)((long)&p_Var5[1]._M_right + 4);\n    *symndx = *(uint *)&p_Var5[1]._M_right;\n    *sh_size = (uint64_t)p_Var5[1]._M_parent;\n    *kept_section = (Kept_section *)p_Var5[1]._M_left;\n    return true;\n  }" statement_identifier : (if_statement "if ((p_Var2 != (_Rb_tree_header *)p_Var5) && (p_Var5[1]._M_color <= shndx)) {\n    *is_comdat = *(bool *)((long)&p_Var5[1]._M_right + 4);\n    *symndx = *(uint *)&p_Var5[1]._M_right;\n    *sh_size = (uint64_t)p_Var5[1]._M_parent;\n    *kept_section = (Kept_section *)p_Var5[1]._M_left;\n    return true;\n  }" if (parenthesized_expression "((p_Var2 != (_Rb_tree_header *)p_Var5) && (p_Var5[1]._M_color <= shndx))" ( (binary_expression "(p_Var2 != (_Rb_tree_header *)p_Var5) && (p_Var5[1]._M_color <= shndx)" (parenthesized_expression "(p_Var2 != (_Rb_tree_header *)p_Var5)" ( (binary_expression "p_Var2 != (_Rb_tree_header *)p_Var5" identifier != (cast_expression "(_Rb_tree_header *)p_Var5" ( (type_descriptor "_Rb_tree_header *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) && (parenthesized_expression "(p_Var5[1]._M_color <= shndx)" ( (binary_expression "p_Var5[1]._M_color <= shndx" (field_expression "p_Var5[1]._M_color" (subscript_expression "p_Var5[1]" identifier [ number_literal ]) . field_identifier) <= identifier) ))) )) (compound_statement "{\n    *is_comdat = *(bool *)((long)&p_Var5[1]._M_right + 4);\n    *symndx = *(uint *)&p_Var5[1]._M_right;\n    *sh_size = (uint64_t)p_Var5[1]._M_parent;\n    *kept_section = (Kept_section *)p_Var5[1]._M_left;\n    return true;\n  }" { (expression_statement "*is_comdat = *(bool *)((long)&p_Var5[1]._M_right + 4);" (assignment_expression "*is_comdat = *(bool *)((long)&p_Var5[1]._M_right + 4)" (pointer_expression "*is_comdat" * identifier) = (pointer_expression "*(bool *)((long)&p_Var5[1]._M_right + 4)" * (cast_expression "(bool *)((long)&p_Var5[1]._M_right + 4)" ( (type_descriptor "bool *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&p_Var5[1]._M_right + 4)" ( (binary_expression "(long)&p_Var5[1]._M_right + 4" (cast_expression "(long)&p_Var5[1]._M_right" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p_Var5[1]._M_right" & (field_expression "p_Var5[1]._M_right" (subscript_expression "p_Var5[1]" identifier [ number_literal ]) . field_identifier))) + number_literal) ))))) ;) (expression_statement "*symndx = *(uint *)&p_Var5[1]._M_right;" (assignment_expression "*symndx = *(uint *)&p_Var5[1]._M_right" (pointer_expression "*symndx" * identifier) = (pointer_expression "*(uint *)&p_Var5[1]._M_right" * (cast_expression "(uint *)&p_Var5[1]._M_right" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p_Var5[1]._M_right" & (field_expression "p_Var5[1]._M_right" (subscript_expression "p_Var5[1]" identifier [ number_literal ]) . field_identifier))))) ;) (expression_statement "*sh_size = (uint64_t)p_Var5[1]._M_parent;" (assignment_expression "*sh_size = (uint64_t)p_Var5[1]._M_parent" (pointer_expression "*sh_size" * identifier) = (cast_expression "(uint64_t)p_Var5[1]._M_parent" ( (type_descriptor "uint64_t" primitive_type) ) (field_expression "p_Var5[1]._M_parent" (subscript_expression "p_Var5[1]" identifier [ number_literal ]) . field_identifier))) ;) (expression_statement "*kept_section = (Kept_section *)p_Var5[1]._M_left;" (assignment_expression "*kept_section = (Kept_section *)p_Var5[1]._M_left" (pointer_expression "*kept_section" * identifier) = (cast_expression "(Kept_section *)p_Var5[1]._M_left" ( (type_descriptor "Kept_section *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "p_Var5[1]._M_left" (subscript_expression "p_Var5[1]" identifier [ number_literal ]) . field_identifier))) ;) (return_statement "return true;" return true ;) }))) (return_statement "return false;" return false ;) (ERROR "}" }))
(translation_unit "undefined8\nFUN_001d5680(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,\n            undefined8 *param_6)\n\n{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar2 = *(long *)(param_1 + 0x1c0);\n  lVar3 = param_1 + 0x1b8;\n  if (*(long *)(param_1 + 0x1c0) == 0) {\n    return 0;\n  }\n  do {\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  } while (*plVar1 != 0);\nLAB_001d56ba:\n  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8\nFUN_001d5680(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,\n            undefined8 *param_6)\n\n{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar2 = *(long *)(param_1 + 0x1c0);\n  lVar3 = param_1 + 0x1b8;\n  if (*(long *)(param_1 + 0x1c0) == 0) {\n    return 0;\n  }\n  do {\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  } while (*plVar1 != 0);\nLAB_001d56ba:\n  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_001d5680(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,\n            undefined8 *param_6)" identifier (parameter_list "(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,\n            undefined8 *param_6)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "undefined1 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined8 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined8 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar2 = *(long *)(param_1 + 0x1c0);\n  lVar3 = param_1 + 0x1b8;\n  if (*(long *)(param_1 + 0x1c0) == 0) {\n    return 0;\n  }\n  do {\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  } while (*plVar1 != 0);\nLAB_001d56ba:\n  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }\n  return 0;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = *(long *)(param_1 + 0x1c0);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x1c0)" identifier = (pointer_expression "*(long *)(param_1 + 0x1c0)" * (cast_expression "(long *)(param_1 + 0x1c0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c0)" ( (binary_expression "param_1 + 0x1c0" identifier + number_literal) ))))) ;) (expression_statement "lVar3 = param_1 + 0x1b8;" (assignment_expression "lVar3 = param_1 + 0x1b8" identifier = (binary_expression "param_1 + 0x1b8" identifier + number_literal)) ;) (if_statement "if (*(long *)(param_1 + 0x1c0) == 0) {\n    return 0;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x1c0) == 0)" ( (binary_expression "*(long *)(param_1 + 0x1c0) == 0" (pointer_expression "*(long *)(param_1 + 0x1c0)" * (cast_expression "(long *)(param_1 + 0x1c0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c0)" ( (binary_expression "param_1 + 0x1c0" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  } while (*plVar1 != 0);" do (compound_statement "{\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  }" { (while_statement "while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }" while (parenthesized_expression "(lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20))" ( (comma_expression "lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)" (assignment_expression "lVar4 = lVar2" identifier = identifier) , (binary_expression "param_2 <= *(uint *)(lVar4 + 0x20)" identifier <= (pointer_expression "*(uint *)(lVar4 + 0x20)" * (cast_expression "(uint *)(lVar4 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))))) )) (compound_statement "{\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }" { (expression_statement "lVar2 = *(long *)(lVar4 + 0x10);" (assignment_expression "lVar2 = *(long *)(lVar4 + 0x10)" identifier = (pointer_expression "*(long *)(lVar4 + 0x10)" * (cast_expression "(long *)(lVar4 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x10)" ( (binary_expression "lVar4 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "lVar3 = lVar4;" (assignment_expression "lVar3 = lVar4" identifier = identifier) ;) (if_statement "if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;" if (parenthesized_expression "(*(long *)(lVar4 + 0x10) == 0)" ( (binary_expression "*(long *)(lVar4 + 0x10) == 0" (pointer_expression "*(long *)(lVar4 + 0x10)" * (cast_expression "(long *)(lVar4 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x10)" ( (binary_expression "lVar4 + 0x10" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_001d56ba;" goto statement_identifier ;)) })) (expression_statement "plVar1 = (long *)(lVar4 + 0x18);" (assignment_expression "plVar1 = (long *)(lVar4 + 0x18)" identifier = (cast_expression "(long *)(lVar4 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x18)" ( (binary_expression "lVar4 + 0x18" identifier + number_literal) )))) ;) (expression_statement "lVar2 = *plVar1;" (assignment_expression "lVar2 = *plVar1" identifier = (pointer_expression "*plVar1" * identifier)) ;) (expression_statement "lVar4 = lVar3;" (assignment_expression "lVar4 = lVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*plVar1 != 0)" ( (binary_expression "*plVar1 != 0" (pointer_expression "*plVar1" * identifier) != number_literal) )) ;) (labeled_statement "LAB_001d56ba:\n  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }" statement_identifier : (if_statement "if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }" if (parenthesized_expression "((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2))" ( (binary_expression "(param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)" (parenthesized_expression "(param_1 + 0x1b8 != lVar4)" ( (binary_expression "param_1 + 0x1b8 != lVar4" (binary_expression "param_1 + 0x1b8" identifier + number_literal) != identifier) )) && (parenthesized_expression "(*(uint *)(lVar4 + 0x20) <= param_2)" ( (binary_expression "*(uint *)(lVar4 + 0x20) <= param_2" (pointer_expression "*(uint *)(lVar4 + 0x20)" * (cast_expression "(uint *)(lVar4 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }" { (expression_statement "*param_3 = *(undefined1 *)(lVar4 + 0x3c);" (assignment_expression "*param_3 = *(undefined1 *)(lVar4 + 0x3c)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined1 *)(lVar4 + 0x3c)" * (cast_expression "(undefined1 *)(lVar4 + 0x3c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x3c)" ( (binary_expression "lVar4 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "*param_4 = *(undefined4 *)(lVar4 + 0x38);" (assignment_expression "*param_4 = *(undefined4 *)(lVar4 + 0x38)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)(lVar4 + 0x38)" * (cast_expression "(undefined4 *)(lVar4 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x38)" ( (binary_expression "lVar4 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "*param_5 = *(undefined8 *)(lVar4 + 0x28);" (assignment_expression "*param_5 = *(undefined8 *)(lVar4 + 0x28)" (pointer_expression "*param_5" * identifier) = (pointer_expression "*(undefined8 *)(lVar4 + 0x28)" * (cast_expression "(undefined8 *)(lVar4 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x28)" ( (binary_expression "lVar4 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "*param_6 = *(undefined8 *)(lVar4 + 0x30);" (assignment_expression "*param_6 = *(undefined8 *)(lVar4 + 0x30)" (pointer_expression "*param_6" * identifier) = (pointer_expression "*(undefined8 *)(lVar4 + 0x30)" * (cast_expression "(undefined8 *)(lVar4 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x30)" ( (binary_expression "lVar4 + 0x30" identifier + number_literal) ))))) ;) (return_statement "return 1;" return number_literal ;) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (return_statement return LIT ;) })) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) != IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return LIT ;) }))) (return_statement return LIT ;) })))
(function_definition "undefined8\nFUN_001d5680(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,\n            undefined8 *param_6)\n\n{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar2 = *(long *)(param_1 + 0x1c0);\n  lVar3 = param_1 + 0x1b8;\n  if (*(long *)(param_1 + 0x1c0) == 0) {\n    return 0;\n  }\n  do {\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  } while (*plVar1 != 0);\nLAB_001d56ba:\n  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_001d5680(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,\n            undefined8 *param_6)" (identifier "FUN_001d5680") (parameter_list "(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,\n            undefined8 *param_6)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 *param_3" (type_identifier "undefined1") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined8 *param_5" (type_identifier "undefined8") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "undefined8 *param_6" (type_identifier "undefined8") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  long *plVar1;\n  long lVar2;\n  long lVar3;\n  long lVar4;\n  \n  lVar2 = *(long *)(param_1 + 0x1c0);\n  lVar3 = param_1 + 0x1b8;\n  if (*(long *)(param_1 + 0x1c0) == 0) {\n    return 0;\n  }\n  do {\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  } while (*plVar1 != 0);\nLAB_001d56ba:\n  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }\n  return 0;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (expression_statement "lVar2 = *(long *)(param_1 + 0x1c0);" (assignment_expression "lVar2 = *(long *)(param_1 + 0x1c0)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(param_1 + 0x1c0)" (* "*") (cast_expression "(long *)(param_1 + 0x1c0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c0)" (( "(") (binary_expression "param_1 + 0x1c0" (identifier "param_1") (+ "+") (number_literal "0x1c0")) () ")"))))) (; ";")) (expression_statement "lVar3 = param_1 + 0x1b8;" (assignment_expression "lVar3 = param_1 + 0x1b8" (identifier "lVar3") (= "=") (binary_expression "param_1 + 0x1b8" (identifier "param_1") (+ "+") (number_literal "0x1b8"))) (; ";")) (if_statement "if (*(long *)(param_1 + 0x1c0) == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x1c0) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x1c0) == 0" (pointer_expression "*(long *)(param_1 + 0x1c0)" (* "*") (cast_expression "(long *)(param_1 + 0x1c0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c0)" (( "(") (binary_expression "param_1 + 0x1c0" (identifier "param_1") (+ "+") (number_literal "0x1c0")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (do_statement "do {\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  } while (*plVar1 != 0);" (do "do") (compound_statement "{\n    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }\n    plVar1 = (long *)(lVar4 + 0x18);\n    lVar2 = *plVar1;\n    lVar4 = lVar3;\n  }" ({ "{") (while_statement "while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }" (while "while") (parenthesized_expression "(lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20))" (( "(") (comma_expression "lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)" (assignment_expression "lVar4 = lVar2" (identifier "lVar4") (= "=") (identifier "lVar2")) (, ",") (binary_expression "param_2 <= *(uint *)(lVar4 + 0x20)" (identifier "param_2") (<= "<=") (pointer_expression "*(uint *)(lVar4 + 0x20)" (* "*") (cast_expression "(uint *)(lVar4 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x20)" (( "(") (binary_expression "lVar4 + 0x20" (identifier "lVar4") (+ "+") (number_literal "0x20")) () ")")))))) () ")")) (compound_statement "{\n      lVar2 = *(long *)(lVar4 + 0x10);\n      lVar3 = lVar4;\n      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;\n    }" ({ "{") (expression_statement "lVar2 = *(long *)(lVar4 + 0x10);" (assignment_expression "lVar2 = *(long *)(lVar4 + 0x10)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(lVar4 + 0x10)" (* "*") (cast_expression "(long *)(lVar4 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x10)" (( "(") (binary_expression "lVar4 + 0x10" (identifier "lVar4") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "lVar3 = lVar4;" (assignment_expression "lVar3 = lVar4" (identifier "lVar3") (= "=") (identifier "lVar4")) (; ";")) (if_statement "if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;" (if "if") (parenthesized_expression "(*(long *)(lVar4 + 0x10) == 0)" (( "(") (binary_expression "*(long *)(lVar4 + 0x10) == 0" (pointer_expression "*(long *)(lVar4 + 0x10)" (* "*") (cast_expression "(long *)(lVar4 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x10)" (( "(") (binary_expression "lVar4 + 0x10" (identifier "lVar4") (+ "+") (number_literal "0x10")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001d56ba;" (goto "goto") (statement_identifier "LAB_001d56ba") (; ";"))) (} "}"))) (expression_statement "plVar1 = (long *)(lVar4 + 0x18);" (assignment_expression "plVar1 = (long *)(lVar4 + 0x18)" (identifier "plVar1") (= "=") (cast_expression "(long *)(lVar4 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x18)" (( "(") (binary_expression "lVar4 + 0x18" (identifier "lVar4") (+ "+") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "lVar2 = *plVar1;" (assignment_expression "lVar2 = *plVar1" (identifier "lVar2") (= "=") (pointer_expression "*plVar1" (* "*") (identifier "plVar1"))) (; ";")) (expression_statement "lVar4 = lVar3;" (assignment_expression "lVar4 = lVar3" (identifier "lVar4") (= "=") (identifier "lVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*plVar1 != 0)" (( "(") (binary_expression "*plVar1 != 0" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (labeled_statement "LAB_001d56ba:\n  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }" (statement_identifier "LAB_001d56ba") (: ":") (if_statement "if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }" (if "if") (parenthesized_expression "((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2))" (( "(") (binary_expression "(param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)" (parenthesized_expression "(param_1 + 0x1b8 != lVar4)" (( "(") (binary_expression "param_1 + 0x1b8 != lVar4" (binary_expression "param_1 + 0x1b8" (identifier "param_1") (+ "+") (number_literal "0x1b8")) (!= "!=") (identifier "lVar4")) () ")")) (&& "&&") (parenthesized_expression "(*(uint *)(lVar4 + 0x20) <= param_2)" (( "(") (binary_expression "*(uint *)(lVar4 + 0x20) <= param_2" (pointer_expression "*(uint *)(lVar4 + 0x20)" (* "*") (cast_expression "(uint *)(lVar4 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x20)" (( "(") (binary_expression "lVar4 + 0x20" (identifier "lVar4") (+ "+") (number_literal "0x20")) () ")")))) (<= "<=") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n    *param_3 = *(undefined1 *)(lVar4 + 0x3c);\n    *param_4 = *(undefined4 *)(lVar4 + 0x38);\n    *param_5 = *(undefined8 *)(lVar4 + 0x28);\n    *param_6 = *(undefined8 *)(lVar4 + 0x30);\n    return 1;\n  }" ({ "{") (expression_statement "*param_3 = *(undefined1 *)(lVar4 + 0x3c);" (assignment_expression "*param_3 = *(undefined1 *)(lVar4 + 0x3c)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (pointer_expression "*(undefined1 *)(lVar4 + 0x3c)" (* "*") (cast_expression "(undefined1 *)(lVar4 + 0x3c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x3c)" (( "(") (binary_expression "lVar4 + 0x3c" (identifier "lVar4") (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (expression_statement "*param_4 = *(undefined4 *)(lVar4 + 0x38);" (assignment_expression "*param_4 = *(undefined4 *)(lVar4 + 0x38)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (pointer_expression "*(undefined4 *)(lVar4 + 0x38)" (* "*") (cast_expression "(undefined4 *)(lVar4 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x38)" (( "(") (binary_expression "lVar4 + 0x38" (identifier "lVar4") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "*param_5 = *(undefined8 *)(lVar4 + 0x28);" (assignment_expression "*param_5 = *(undefined8 *)(lVar4 + 0x28)" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (pointer_expression "*(undefined8 *)(lVar4 + 0x28)" (* "*") (cast_expression "(undefined8 *)(lVar4 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x28)" (( "(") (binary_expression "lVar4 + 0x28" (identifier "lVar4") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "*param_6 = *(undefined8 *)(lVar4 + 0x30);" (assignment_expression "*param_6 = *(undefined8 *)(lVar4 + 0x30)" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (pointer_expression "*(undefined8 *)(lVar4 + 0x30)" (* "*") (cast_expression "(undefined8 *)(lVar4 + 0x30)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x30)" (( "(") (binary_expression "lVar4 + 0x30" (identifier "lVar4") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Type propagation algorithm not settling */
/* DWARF original prototype: bool get_kept_comdat_section(Sized_relobj_file<32,_true> * this, uint
   shndx, bool * is_comdat, uint * symndx, uint64_t * sh_size, Kept_section * * kept_section) */

bool __thiscall
gold::Sized_relobj_file<32,_true>::get_kept_comdat_section
          (Sized_relobj_file<32,_true> *this,type_3 var_2,bool *is_comdat,type_3 *symndx,
          uint64_t *sh_size,type_4 **kept_section)

{
  type_2 *pp_Var1;
  type_1 *var_3;
  type_2 var_1;
  type_2 p_Var4;
  type_2 p_Var5;
  
  var_1 = (this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;
  var_3 = &(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header;
  p_Var4 = &var_3->_M_header;
  if (var_1 == (type_2)0x0) {
    return false;
  }
  do {
    while (p_Var5 = var_1, var_2 <= p_Var5[1]._M_color) {
      var_1 = p_Var5->_M_left;
      p_Var4 = p_Var5;
      if (p_Var5->_M_left == (type_2)0x0) goto LAB_001d56ba;
    }
    pp_Var1 = &p_Var5->_M_right;
    var_1 = *pp_Var1;
    p_Var5 = p_Var4;
  } while (*pp_Var1 != (type_2)0x0);
LAB_001d56ba:
  if ((var_3 != (type_1 *)p_Var5) && (p_Var5[1]._M_color <= var_2)) {
    *is_comdat = *(bool *)((long)&p_Var5[1]._M_right + 4);
    *symndx = *(type_3 *)&p_Var5[1]._M_right;
    *sh_size = (uint64_t)p_Var5[1]._M_parent;
    *kept_section = (type_4 *)p_Var5[1]._M_left;
    return true;
  }
  return false;
}


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

undefined8
MASKED(long param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined8 *param_5,
            undefined8 *param_6)

{
  long *plVar1;
  long lVar2;
  long lVar3;
  long lVar4;
  
  lVar2 = *(long *)(param_1 + 0x1c0);
  lVar3 = param_1 + 0x1b8;
  if (*(long *)(param_1 + 0x1c0) == 0) {
    return 0;
  }
  do {
    while (lVar4 = lVar2, param_2 <= *(uint *)(lVar4 + 0x20)) {
      lVar2 = *(long *)(lVar4 + 0x10);
      lVar3 = lVar4;
      if (*(long *)(lVar4 + 0x10) == 0) goto LAB_001d56ba;
    }
    plVar1 = (long *)(lVar4 + 0x18);
    lVar2 = *plVar1;
    lVar4 = lVar3;
  } while (*plVar1 != 0);
LAB_001d56ba:
  if ((param_1 + 0x1b8 != lVar4) && (*(uint *)(lVar4 + 0x20) <= param_2)) {
    *param_3 = *(undefined1 *)(lVar4 + 0x3c);
    *param_4 = *(undefined4 *)(lVar4 + 0x38);
    *param_5 = *(undefined8 *)(lVar4 + 0x28);
    *param_6 = *(undefined8 *)(lVar4 + 0x30);
    return 1;
  }
  return 0;
}

