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

bool __thiscall
gold::Sized_relobj_file<64,_true>::get_kept_comdat_section
          (Sized_relobj_file<64,_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;
  undefined4 uVar4;
  _Base_ptr p_Var5;
  _Base_ptr p_Var6;
  
  p_Var2 = &(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header;
  p_Var3 = (this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;
  p_Var5 = &p_Var2->_M_header;
  if (p_Var3 == (_Base_ptr)0x0) {
    return false;
  }
  do {
    while (p_Var6 = p_Var3, shndx <= p_Var6[1]._M_color) {
      p_Var3 = p_Var6->_M_left;
      p_Var5 = p_Var6;
      if (p_Var6->_M_left == (_Base_ptr)0x0) goto LAB_00293755;
    }
    pp_Var1 = &p_Var6->_M_right;
    p_Var3 = *pp_Var1;
    p_Var6 = p_Var5;
  } while (*pp_Var1 != (_Base_ptr)0x0);
LAB_00293755:
  if ((p_Var2 != (_Rb_tree_header *)p_Var6) && (((_Rb_tree_header *)p_Var6)->_M_node_count <= shndx)
     ) {
    *is_comdat = (bool)((undefined1 *)((int)p_Var6 + 0x14))[0x10];
    *symndx = *(uint *)((undefined1 *)((int)p_Var6 + 0x14) + 0xc);
    uVar4 = *(undefined4 *)((undefined1 *)((int)p_Var6 + 0x14) + 4);
    *(undefined4 *)sh_size = *(undefined4 *)((int)p_Var6 + 0x14);
    *(undefined4 *)((int)sh_size + 4) = uVar4;
    *kept_section = *(Kept_section **)((undefined1 *)((int)p_Var6 + 0x14) + 8);
    return true;
  }
  return false;
}



undefined4
FUN_00293720(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,
            undefined4 *param_6)

{
  int *piVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  iVar3 = *(int *)(param_1 + 0x10c);
  iVar4 = param_1 + 0x108;
  if (*(int *)(param_1 + 0x10c) == 0) {
    return 0;
  }
  do {
    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {
      iVar3 = *(int *)(iVar5 + 8);
      iVar4 = iVar5;
      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;
    }
    piVar1 = (int *)(iVar5 + 0xc);
    iVar3 = *piVar1;
    iVar5 = iVar4;
  } while (*piVar1 != 0);
LAB_00293755:
  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {
    *param_3 = *(undefined1 *)(iVar5 + 0x24);
    *param_4 = *(undefined4 *)(iVar5 + 0x20);
    uVar2 = *(undefined4 *)(iVar5 + 0x18);
    *param_5 = *(undefined4 *)(iVar5 + 0x14);
    param_5[1] = uVar2;
    *param_6 = *(undefined4 *)(iVar5 + 0x1c);
    return 1;
  }
  return 0;
}


PUSH EBX
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
LEA EBX,[EAX + 0x108]
MOV EAX,dword ptr [EAX + 0x10c]
TEST EAX,EAX
JZ 0x002937a0
MOV ECX,EBX
JMP 0x00293749
MOV ECX,EAX
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x00293755
CMP dword ptr [EAX + 0x10],EDX
JNC 0x00293740
MOV EAX,dword ptr [EAX + 0xc]
TEST EAX,EAX
JNZ 0x00293749
XOR EAX,EAX
CMP EBX,ECX
JZ 0x00293760
CMP dword ptr [ECX + 0x10],EDX
JBE 0x00293768
POP EBX
RET
MOVZX EDX,byte ptr [ECX + 0x24]
MOV EAX,dword ptr [ESP + 0x10]
MOV EBX,dword ptr [ESP + 0x18]
MOV byte ptr [EAX],DL
MOV EDX,dword ptr [ECX + 0x20]
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [ECX + 0x14]
MOV EDX,dword ptr [ECX + 0x18]
MOV dword ptr [EBX],EAX
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [EBX + 0x4],EDX
MOV EDX,dword ptr [ECX + 0x1c]
MOV dword ptr [EAX],EDX
MOV EAX,0x1
POP EBX
RET
XOR EAX,EAX
POP EBX
RET
(translation_unit "undefined4\nFUN_00293720(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,\n            undefined4 *param_6)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar3 = *(int *)(param_1 + 0x10c);\n  iVar4 = param_1 + 0x108;\n  if (*(int *)(param_1 + 0x10c) == 0) {\n    return 0;\n  }\n  do {\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  } while (*piVar1 != 0);\nLAB_00293755:\n  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4\nFUN_00293720(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,\n            undefined4 *param_6)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar3 = *(int *)(param_1 + 0x10c);\n  iVar4 = param_1 + 0x108;\n  if (*(int *)(param_1 + 0x10c) == 0) {\n    return 0;\n  }\n  do {\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  } while (*piVar1 != 0);\nLAB_00293755:\n  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00293720(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,\n            undefined4 *param_6)" identifier (parameter_list "(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,\n            undefined4 *param_6)" ( (parameter_declaration "int param_1" primitive_type 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 "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar3 = *(int *)(param_1 + 0x10c);\n  iVar4 = param_1 + 0x108;\n  if (*(int *)(param_1 + 0x10c) == 0) {\n    return 0;\n  }\n  do {\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  } while (*piVar1 != 0);\nLAB_00293755:\n  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x10c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x10c)" identifier = (pointer_expression "*(int *)(param_1 + 0x10c)" * (cast_expression "(int *)(param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = param_1 + 0x108;" (assignment_expression "iVar4 = param_1 + 0x108" identifier = (binary_expression "param_1 + 0x108" identifier + number_literal)) ;) (if_statement "if (*(int *)(param_1 + 0x10c) == 0) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x10c) == 0" (pointer_expression "*(int *)(param_1 + 0x10c)" * (cast_expression "(int *)(param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  } while (*piVar1 != 0);" do (compound_statement "{\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  }" { (while_statement "while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }" while (parenthesized_expression "(iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10))" ( (comma_expression "iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)" (assignment_expression "iVar5 = iVar3" identifier = identifier) , (binary_expression "param_2 <= *(uint *)(iVar5 + 0x10)" identifier <= (pointer_expression "*(uint *)(iVar5 + 0x10)" * (cast_expression "(uint *)(iVar5 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) )) (compound_statement "{\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }" { (expression_statement "iVar3 = *(int *)(iVar5 + 8);" (assignment_expression "iVar3 = *(int *)(iVar5 + 8)" identifier = (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = iVar5;" (assignment_expression "iVar4 = iVar5" identifier = identifier) ;) (if_statement "if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;" if (parenthesized_expression "(*(int *)(iVar5 + 8) == 0)" ( (binary_expression "*(int *)(iVar5 + 8) == 0" (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00293755;" goto statement_identifier ;)) })) (expression_statement "piVar1 = (int *)(iVar5 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar5 + 0xc)" identifier = (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) (labeled_statement "LAB_00293755:\n  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }" statement_identifier : (if_statement "if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }" if (parenthesized_expression "((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2))" ( (binary_expression "(param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)" (parenthesized_expression "(param_1 + 0x108 != iVar5)" ( (binary_expression "param_1 + 0x108 != iVar5" (binary_expression "param_1 + 0x108" identifier + number_literal) != identifier) )) && (parenthesized_expression "(*(uint *)(iVar5 + 0x10) <= param_2)" ( (binary_expression "*(uint *)(iVar5 + 0x10) <= param_2" (pointer_expression "*(uint *)(iVar5 + 0x10)" * (cast_expression "(uint *)(iVar5 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }" { (expression_statement "*param_3 = *(undefined1 *)(iVar5 + 0x24);" (assignment_expression "*param_3 = *(undefined1 *)(iVar5 + 0x24)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined1 *)(iVar5 + 0x24)" * (cast_expression "(undefined1 *)(iVar5 + 0x24)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*param_4 = *(undefined4 *)(iVar5 + 0x20);" (assignment_expression "*param_4 = *(undefined4 *)(iVar5 + 0x20)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)(iVar5 + 0x20)" * (cast_expression "(undefined4 *)(iVar5 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(iVar5 + 0x18);" (assignment_expression "uVar2 = *(undefined4 *)(iVar5 + 0x18)" identifier = (pointer_expression "*(undefined4 *)(iVar5 + 0x18)" * (cast_expression "(undefined4 *)(iVar5 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*param_5 = *(undefined4 *)(iVar5 + 0x14);" (assignment_expression "*param_5 = *(undefined4 *)(iVar5 + 0x14)" (pointer_expression "*param_5" * identifier) = (pointer_expression "*(undefined4 *)(iVar5 + 0x14)" * (cast_expression "(undefined4 *)(iVar5 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "param_5[1] = uVar2;" (assignment_expression "param_5[1] = uVar2" (subscript_expression "param_5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_6 = *(undefined4 *)(iVar5 + 0x1c);" (assignment_expression "*param_6 = *(undefined4 *)(iVar5 + 0x1c)" (pointer_expression "*param_6" * identifier) = (pointer_expression "*(undefined4 *)(iVar5 + 0x1c)" * (cast_expression "(undefined4 *)(iVar5 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" 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<64,_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<64,_true>::get_kept_comdat_section\n          (Sized_relobj_file<64,_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  undefined4 uVar4;\n  _Base_ptr p_Var5;\n  _Base_ptr p_Var6;\n  \n  p_Var2 = &(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header;\n  p_Var3 = (this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;\n  p_Var5 = &p_Var2->_M_header;\n  if (p_Var3 == (_Base_ptr)0x0) {\n    return false;\n  }\n  do {\n    while (p_Var6 = p_Var3, shndx <= p_Var6[1]._M_color) {\n      p_Var3 = p_Var6->_M_left;\n      p_Var5 = p_Var6;\n      if (p_Var6->_M_left == (_Base_ptr)0x0) goto LAB_00293755;\n    }\n    pp_Var1 = &p_Var6->_M_right;\n    p_Var3 = *pp_Var1;\n    p_Var6 = p_Var5;\n  } while (*pp_Var1 != (_Base_ptr)0x0);\nLAB_00293755:\n  if ((p_Var2 != (_Rb_tree_header *)p_Var6) && (((_Rb_tree_header *)p_Var6)->_M_node_count <= shndx)\n     ) {\n    *is_comdat = (bool)((undefined1 *)((int)p_Var6 + 0x14))[0x10];\n    *symndx = *(uint *)((undefined1 *)((int)p_Var6 + 0x14) + 0xc);\n    uVar4 = *(undefined4 *)((undefined1 *)((int)p_Var6 + 0x14) + 4);\n    *(undefined4 *)sh_size = *(undefined4 *)((int)p_Var6 + 0x14);\n    *(undefined4 *)((int)sh_size + 4) = uVar4;\n    *kept_section = *(Kept_section **)((undefined1 *)((int)p_Var6 + 0x14) + 8);\n    return true;\n  }\n  return false;\n}\n\n" comment comment (declaration "bool __thiscall\ngold::Sized_relobj_file<64,_true>::get_kept_comdat_section\n          (Sized_relobj_file<64,_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 "<64" < number_literal) , (ERROR "_true>::get_kept_comdat_section\n          (Sized_relobj_file<64,_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<64,_true> *this,uint shndx,bool *is_comdat,uint *symndx,\n          uint64_t *sh_size,Kept_section **kept_section)" identifier (parameter_list "(Sized_relobj_file<64,_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 "<64" < 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 "undefined4 uVar4;" type_identifier identifier ;) (declaration "_Base_ptr p_Var5;" type_identifier identifier ;) (declaration "_Base_ptr p_Var6;" type_identifier 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_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_Var5 = &p_Var2->_M_header;" (assignment_expression "p_Var5 = &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_Var6 = p_Var3, shndx <= p_Var6[1]._M_color) {\n      p_Var3 = p_Var6->_M_left;\n      p_Var5 = p_Var6;\n      if (p_Var6->_M_left == (_Base_ptr)0x0) goto LAB_00293755;\n    }\n    pp_Var1 = &p_Var6->_M_right;\n    p_Var3 = *pp_Var1;\n    p_Var6 = p_Var5;\n  } while (*pp_Var1 != (_Base_ptr)0x0);" do (compound_statement "{\n    while (p_Var6 = p_Var3, shndx <= p_Var6[1]._M_color) {\n      p_Var3 = p_Var6->_M_left;\n      p_Var5 = p_Var6;\n      if (p_Var6->_M_left == (_Base_ptr)0x0) goto LAB_00293755;\n    }\n    pp_Var1 = &p_Var6->_M_right;\n    p_Var3 = *pp_Var1;\n    p_Var6 = p_Var5;\n  }" { (while_statement "while (p_Var6 = p_Var3, shndx <= p_Var6[1]._M_color) {\n      p_Var3 = p_Var6->_M_left;\n      p_Var5 = p_Var6;\n      if (p_Var6->_M_left == (_Base_ptr)0x0) goto LAB_00293755;\n    }" while (parenthesized_expression "(p_Var6 = p_Var3, shndx <= p_Var6[1]._M_color)" ( (comma_expression "p_Var6 = p_Var3, shndx <= p_Var6[1]._M_color" (assignment_expression "p_Var6 = p_Var3" identifier = identifier) , (binary_expression "shndx <= p_Var6[1]._M_color" identifier <= (field_expression "p_Var6[1]._M_color" (subscript_expression "p_Var6[1]" identifier [ number_literal ]) . field_identifier))) )) (compound_statement "{\n      p_Var3 = p_Var6->_M_left;\n      p_Var5 = p_Var6;\n      if (p_Var6->_M_left == (_Base_ptr)0x0) goto LAB_00293755;\n    }" { (expression_statement "p_Var3 = p_Var6->_M_left;" (assignment_expression "p_Var3 = p_Var6->_M_left" identifier = (field_expression "p_Var6->_M_left" identifier -> field_identifier)) ;) (expression_statement "p_Var5 = p_Var6;" (assignment_expression "p_Var5 = p_Var6" identifier = identifier) ;) (if_statement "if (p_Var6->_M_left == (_Base_ptr)0x0) goto LAB_00293755;" if (parenthesized_expression "(p_Var6->_M_left == (_Base_ptr)0x0)" ( (binary_expression "p_Var6->_M_left == (_Base_ptr)0x0" (field_expression "p_Var6->_M_left" identifier -> field_identifier) == (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_00293755;" goto statement_identifier ;)) })) (expression_statement "pp_Var1 = &p_Var6->_M_right;" (assignment_expression "pp_Var1 = &p_Var6->_M_right" identifier = (pointer_expression "&p_Var6->_M_right" & (field_expression "p_Var6->_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_Var6 = p_Var5;" (assignment_expression "p_Var6 = p_Var5" 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_00293755:\n  if ((p_Var2 != (_Rb_tree_header *)p_Var6) && (((_Rb_tree_header *)p_Var6)->_M_node_count <= shndx)\n     ) {\n    *is_comdat = (bool)((undefined1 *)((int)p_Var6 + 0x14))[0x10];\n    *symndx = *(uint *)((undefined1 *)((int)p_Var6 + 0x14) + 0xc);\n    uVar4 = *(undefined4 *)((undefined1 *)((int)p_Var6 + 0x14) + 4);\n    *(undefined4 *)sh_size = *(undefined4 *)((int)p_Var6 + 0x14);\n    *(undefined4 *)((int)sh_size + 4) = uVar4;\n    *kept_section = *(Kept_section **)((undefined1 *)((int)p_Var6 + 0x14) + 8);\n    return true;\n  }" statement_identifier : (if_statement "if ((p_Var2 != (_Rb_tree_header *)p_Var6) && (((_Rb_tree_header *)p_Var6)->_M_node_count <= shndx)\n     ) {\n    *is_comdat = (bool)((undefined1 *)((int)p_Var6 + 0x14))[0x10];\n    *symndx = *(uint *)((undefined1 *)((int)p_Var6 + 0x14) + 0xc);\n    uVar4 = *(undefined4 *)((undefined1 *)((int)p_Var6 + 0x14) + 4);\n    *(undefined4 *)sh_size = *(undefined4 *)((int)p_Var6 + 0x14);\n    *(undefined4 *)((int)sh_size + 4) = uVar4;\n    *kept_section = *(Kept_section **)((undefined1 *)((int)p_Var6 + 0x14) + 8);\n    return true;\n  }" if (parenthesized_expression "((p_Var2 != (_Rb_tree_header *)p_Var6) && (((_Rb_tree_header *)p_Var6)->_M_node_count <= shndx)\n     )" ( (binary_expression "(p_Var2 != (_Rb_tree_header *)p_Var6) && (((_Rb_tree_header *)p_Var6)->_M_node_count <= shndx)" (parenthesized_expression "(p_Var2 != (_Rb_tree_header *)p_Var6)" ( (binary_expression "p_Var2 != (_Rb_tree_header *)p_Var6" identifier != (cast_expression "(_Rb_tree_header *)p_Var6" ( (type_descriptor "_Rb_tree_header *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) && (parenthesized_expression "(((_Rb_tree_header *)p_Var6)->_M_node_count <= shndx)" ( (binary_expression "((_Rb_tree_header *)p_Var6)->_M_node_count <= shndx" (field_expression "((_Rb_tree_header *)p_Var6)->_M_node_count" (parenthesized_expression "((_Rb_tree_header *)p_Var6)" ( (cast_expression "(_Rb_tree_header *)p_Var6" ( (type_descriptor "_Rb_tree_header *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )) -> field_identifier) <= identifier) ))) )) (compound_statement "{\n    *is_comdat = (bool)((undefined1 *)((int)p_Var6 + 0x14))[0x10];\n    *symndx = *(uint *)((undefined1 *)((int)p_Var6 + 0x14) + 0xc);\n    uVar4 = *(undefined4 *)((undefined1 *)((int)p_Var6 + 0x14) + 4);\n    *(undefined4 *)sh_size = *(undefined4 *)((int)p_Var6 + 0x14);\n    *(undefined4 *)((int)sh_size + 4) = uVar4;\n    *kept_section = *(Kept_section **)((undefined1 *)((int)p_Var6 + 0x14) + 8);\n    return true;\n  }" { (expression_statement "*is_comdat = (bool)((undefined1 *)((int)p_Var6 + 0x14))[0x10];" (assignment_expression "*is_comdat = (bool)((undefined1 *)((int)p_Var6 + 0x14))[0x10]" (pointer_expression "*is_comdat" * identifier) = (cast_expression "(bool)((undefined1 *)((int)p_Var6 + 0x14))[0x10]" ( (type_descriptor "bool" primitive_type) ) (subscript_expression "((undefined1 *)((int)p_Var6 + 0x14))[0x10]" (parenthesized_expression "((undefined1 *)((int)p_Var6 + 0x14))" ( (cast_expression "(undefined1 *)((int)p_Var6 + 0x14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p_Var6 + 0x14)" ( (binary_expression "(int)p_Var6 + 0x14" (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) )) [ number_literal ]))) ;) (expression_statement "*symndx = *(uint *)((undefined1 *)((int)p_Var6 + 0x14) + 0xc);" (assignment_expression "*symndx = *(uint *)((undefined1 *)((int)p_Var6 + 0x14) + 0xc)" (pointer_expression "*symndx" * identifier) = (pointer_expression "*(uint *)((undefined1 *)((int)p_Var6 + 0x14) + 0xc)" * (cast_expression "(uint *)((undefined1 *)((int)p_Var6 + 0x14) + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((undefined1 *)((int)p_Var6 + 0x14) + 0xc)" ( (binary_expression "(undefined1 *)((int)p_Var6 + 0x14) + 0xc" (cast_expression "(undefined1 *)((int)p_Var6 + 0x14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p_Var6 + 0x14)" ( (binary_expression "(int)p_Var6 + 0x14" (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) + number_literal) ))))) ;) (expression_statement "uVar4 = *(undefined4 *)((undefined1 *)((int)p_Var6 + 0x14) + 4);" (assignment_expression "uVar4 = *(undefined4 *)((undefined1 *)((int)p_Var6 + 0x14) + 4)" identifier = (pointer_expression "*(undefined4 *)((undefined1 *)((int)p_Var6 + 0x14) + 4)" * (cast_expression "(undefined4 *)((undefined1 *)((int)p_Var6 + 0x14) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((undefined1 *)((int)p_Var6 + 0x14) + 4)" ( (binary_expression "(undefined1 *)((int)p_Var6 + 0x14) + 4" (cast_expression "(undefined1 *)((int)p_Var6 + 0x14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p_Var6 + 0x14)" ( (binary_expression "(int)p_Var6 + 0x14" (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)sh_size = *(undefined4 *)((int)p_Var6 + 0x14);" (assignment_expression "*(undefined4 *)sh_size = *(undefined4 *)((int)p_Var6 + 0x14)" (pointer_expression "*(undefined4 *)sh_size" * (cast_expression "(undefined4 *)sh_size" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)((int)p_Var6 + 0x14)" * (cast_expression "(undefined4 *)((int)p_Var6 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p_Var6 + 0x14)" ( (binary_expression "(int)p_Var6 + 0x14" (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)((int)sh_size + 4) = uVar4;" (assignment_expression "*(undefined4 *)((int)sh_size + 4) = uVar4" (pointer_expression "*(undefined4 *)((int)sh_size + 4)" * (cast_expression "(undefined4 *)((int)sh_size + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)sh_size + 4)" ( (binary_expression "(int)sh_size + 4" (cast_expression "(int)sh_size" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*kept_section = *(Kept_section **)((undefined1 *)((int)p_Var6 + 0x14) + 8);" (assignment_expression "*kept_section = *(Kept_section **)((undefined1 *)((int)p_Var6 + 0x14) + 8)" (pointer_expression "*kept_section" * identifier) = (pointer_expression "*(Kept_section **)((undefined1 *)((int)p_Var6 + 0x14) + 8)" * (cast_expression "(Kept_section **)((undefined1 *)((int)p_Var6 + 0x14) + 8)" ( (type_descriptor "Kept_section **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((undefined1 *)((int)p_Var6 + 0x14) + 8)" ( (binary_expression "(undefined1 *)((int)p_Var6 + 0x14) + 8" (cast_expression "(undefined1 *)((int)p_Var6 + 0x14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p_Var6 + 0x14)" ( (binary_expression "(int)p_Var6 + 0x14" (cast_expression "(int)p_Var6" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) + number_literal) ))))) ;) (return_statement "return true;" return true ;) }))) (return_statement "return false;" return false ;) (ERROR "}" }))
(translation_unit "undefined4\nFUN_00293720(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,\n            undefined4 *param_6)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar3 = *(int *)(param_1 + 0x10c);\n  iVar4 = param_1 + 0x108;\n  if (*(int *)(param_1 + 0x10c) == 0) {\n    return 0;\n  }\n  do {\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  } while (*piVar1 != 0);\nLAB_00293755:\n  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4\nFUN_00293720(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,\n            undefined4 *param_6)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar3 = *(int *)(param_1 + 0x10c);\n  iVar4 = param_1 + 0x108;\n  if (*(int *)(param_1 + 0x10c) == 0) {\n    return 0;\n  }\n  do {\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  } while (*piVar1 != 0);\nLAB_00293755:\n  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00293720(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,\n            undefined4 *param_6)" identifier (parameter_list "(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,\n            undefined4 *param_6)" ( (parameter_declaration "int param_1" primitive_type 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 "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar3 = *(int *)(param_1 + 0x10c);\n  iVar4 = param_1 + 0x108;\n  if (*(int *)(param_1 + 0x10c) == 0) {\n    return 0;\n  }\n  do {\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  } while (*piVar1 != 0);\nLAB_00293755:\n  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x10c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x10c)" identifier = (pointer_expression "*(int *)(param_1 + 0x10c)" * (cast_expression "(int *)(param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = param_1 + 0x108;" (assignment_expression "iVar4 = param_1 + 0x108" identifier = (binary_expression "param_1 + 0x108" identifier + number_literal)) ;) (if_statement "if (*(int *)(param_1 + 0x10c) == 0) {\n    return 0;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x10c) == 0" (pointer_expression "*(int *)(param_1 + 0x10c)" * (cast_expression "(int *)(param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (do_statement "do {\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  } while (*piVar1 != 0);" do (compound_statement "{\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  }" { (while_statement "while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }" while (parenthesized_expression "(iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10))" ( (comma_expression "iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)" (assignment_expression "iVar5 = iVar3" identifier = identifier) , (binary_expression "param_2 <= *(uint *)(iVar5 + 0x10)" identifier <= (pointer_expression "*(uint *)(iVar5 + 0x10)" * (cast_expression "(uint *)(iVar5 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))))) )) (compound_statement "{\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }" { (expression_statement "iVar3 = *(int *)(iVar5 + 8);" (assignment_expression "iVar3 = *(int *)(iVar5 + 8)" identifier = (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = iVar5;" (assignment_expression "iVar4 = iVar5" identifier = identifier) ;) (if_statement "if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;" if (parenthesized_expression "(*(int *)(iVar5 + 8) == 0)" ( (binary_expression "*(int *)(iVar5 + 8) == 0" (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00293755;" goto statement_identifier ;)) })) (expression_statement "piVar1 = (int *)(iVar5 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar5 + 0xc)" identifier = (cast_expression "(int *)(iVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0xc)" ( (binary_expression "iVar5 + 0xc" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) ;) (labeled_statement "LAB_00293755:\n  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }" statement_identifier : (if_statement "if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }" if (parenthesized_expression "((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2))" ( (binary_expression "(param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)" (parenthesized_expression "(param_1 + 0x108 != iVar5)" ( (binary_expression "param_1 + 0x108 != iVar5" (binary_expression "param_1 + 0x108" identifier + number_literal) != identifier) )) && (parenthesized_expression "(*(uint *)(iVar5 + 0x10) <= param_2)" ( (binary_expression "*(uint *)(iVar5 + 0x10) <= param_2" (pointer_expression "*(uint *)(iVar5 + 0x10)" * (cast_expression "(uint *)(iVar5 + 0x10)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x10)" ( (binary_expression "iVar5 + 0x10" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }" { (expression_statement "*param_3 = *(undefined1 *)(iVar5 + 0x24);" (assignment_expression "*param_3 = *(undefined1 *)(iVar5 + 0x24)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined1 *)(iVar5 + 0x24)" * (cast_expression "(undefined1 *)(iVar5 + 0x24)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*param_4 = *(undefined4 *)(iVar5 + 0x20);" (assignment_expression "*param_4 = *(undefined4 *)(iVar5 + 0x20)" (pointer_expression "*param_4" * identifier) = (pointer_expression "*(undefined4 *)(iVar5 + 0x20)" * (cast_expression "(undefined4 *)(iVar5 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x20)" ( (binary_expression "iVar5 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(iVar5 + 0x18);" (assignment_expression "uVar2 = *(undefined4 *)(iVar5 + 0x18)" identifier = (pointer_expression "*(undefined4 *)(iVar5 + 0x18)" * (cast_expression "(undefined4 *)(iVar5 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x18)" ( (binary_expression "iVar5 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*param_5 = *(undefined4 *)(iVar5 + 0x14);" (assignment_expression "*param_5 = *(undefined4 *)(iVar5 + 0x14)" (pointer_expression "*param_5" * identifier) = (pointer_expression "*(undefined4 *)(iVar5 + 0x14)" * (cast_expression "(undefined4 *)(iVar5 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "param_5[1] = uVar2;" (assignment_expression "param_5[1] = uVar2" (subscript_expression "param_5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_6 = *(undefined4 *)(iVar5 + 0x1c);" (assignment_expression "*param_6 = *(undefined4 *)(iVar5 + 0x1c)" (pointer_expression "*param_6" * identifier) = (pointer_expression "*(undefined4 *)(iVar5 + 0x1c)" * (cast_expression "(undefined4 *)(iVar5 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x1c)" ( (binary_expression "iVar5 + 0x1c" 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 TYPE 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 TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 TYPE (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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (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 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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 "undefined4\nFUN_00293720(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,\n            undefined4 *param_6)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar3 = *(int *)(param_1 + 0x10c);\n  iVar4 = param_1 + 0x108;\n  if (*(int *)(param_1 + 0x10c) == 0) {\n    return 0;\n  }\n  do {\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  } while (*piVar1 != 0);\nLAB_00293755:\n  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00293720(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,\n            undefined4 *param_6)" (identifier "FUN_00293720") (parameter_list "(int param_1,uint param_2,undefined1 *param_3,undefined4 *param_4,undefined4 *param_5,\n            undefined4 *param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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 "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "undefined4 *param_6" (type_identifier "undefined4") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  \n  iVar3 = *(int *)(param_1 + 0x10c);\n  iVar4 = param_1 + 0x108;\n  if (*(int *)(param_1 + 0x10c) == 0) {\n    return 0;\n  }\n  do {\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  } while (*piVar1 != 0);\nLAB_00293755:\n  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x10c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x10c)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x10c)" (* "*") (cast_expression "(int *)(param_1 + 0x10c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")"))))) (; ";")) (expression_statement "iVar4 = param_1 + 0x108;" (assignment_expression "iVar4 = param_1 + 0x108" (identifier "iVar4") (= "=") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x10c) == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x10c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10c) == 0" (pointer_expression "*(int *)(param_1 + 0x10c)" (* "*") (cast_expression "(int *)(param_1 + 0x10c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (do_statement "do {\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  } while (*piVar1 != 0);" (do "do") (compound_statement "{\n    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }\n    piVar1 = (int *)(iVar5 + 0xc);\n    iVar3 = *piVar1;\n    iVar5 = iVar4;\n  }" ({ "{") (while_statement "while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }" (while "while") (parenthesized_expression "(iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10))" (( "(") (comma_expression "iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)" (assignment_expression "iVar5 = iVar3" (identifier "iVar5") (= "=") (identifier "iVar3")) (, ",") (binary_expression "param_2 <= *(uint *)(iVar5 + 0x10)" (identifier "param_2") (<= "<=") (pointer_expression "*(uint *)(iVar5 + 0x10)" (* "*") (cast_expression "(uint *)(iVar5 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))))) () ")")) (compound_statement "{\n      iVar3 = *(int *)(iVar5 + 8);\n      iVar4 = iVar5;\n      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;\n    }" ({ "{") (expression_statement "iVar3 = *(int *)(iVar5 + 8);" (assignment_expression "iVar3 = *(int *)(iVar5 + 8)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar5 + 8)" (* "*") (cast_expression "(int *)(iVar5 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar4 = iVar5;" (assignment_expression "iVar4 = iVar5" (identifier "iVar4") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;" (if "if") (parenthesized_expression "(*(int *)(iVar5 + 8) == 0)" (( "(") (binary_expression "*(int *)(iVar5 + 8) == 0" (pointer_expression "*(int *)(iVar5 + 8)" (* "*") (cast_expression "(int *)(iVar5 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00293755;" (goto "goto") (statement_identifier "LAB_00293755") (; ";"))) (} "}"))) (expression_statement "piVar1 = (int *)(iVar5 + 0xc);" (assignment_expression "piVar1 = (int *)(iVar5 + 0xc)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0xc)" (( "(") (binary_expression "iVar5 + 0xc" (identifier "iVar5") (+ "+") (number_literal "0xc")) () ")")))) (; ";")) (expression_statement "iVar3 = *piVar1;" (assignment_expression "iVar3 = *piVar1" (identifier "iVar3") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (labeled_statement "LAB_00293755:\n  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }" (statement_identifier "LAB_00293755") (: ":") (if_statement "if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }" (if "if") (parenthesized_expression "((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2))" (( "(") (binary_expression "(param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)" (parenthesized_expression "(param_1 + 0x108 != iVar5)" (( "(") (binary_expression "param_1 + 0x108 != iVar5" (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) (!= "!=") (identifier "iVar5")) () ")")) (&& "&&") (parenthesized_expression "(*(uint *)(iVar5 + 0x10) <= param_2)" (( "(") (binary_expression "*(uint *)(iVar5 + 0x10) <= param_2" (pointer_expression "*(uint *)(iVar5 + 0x10)" (* "*") (cast_expression "(uint *)(iVar5 + 0x10)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x10)" (( "(") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10")) () ")")))) (<= "<=") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n    *param_3 = *(undefined1 *)(iVar5 + 0x24);\n    *param_4 = *(undefined4 *)(iVar5 + 0x20);\n    uVar2 = *(undefined4 *)(iVar5 + 0x18);\n    *param_5 = *(undefined4 *)(iVar5 + 0x14);\n    param_5[1] = uVar2;\n    *param_6 = *(undefined4 *)(iVar5 + 0x1c);\n    return 1;\n  }" ({ "{") (expression_statement "*param_3 = *(undefined1 *)(iVar5 + 0x24);" (assignment_expression "*param_3 = *(undefined1 *)(iVar5 + 0x24)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (pointer_expression "*(undefined1 *)(iVar5 + 0x24)" (* "*") (cast_expression "(undefined1 *)(iVar5 + 0x24)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x24)" (( "(") (binary_expression "iVar5 + 0x24" (identifier "iVar5") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "*param_4 = *(undefined4 *)(iVar5 + 0x20);" (assignment_expression "*param_4 = *(undefined4 *)(iVar5 + 0x20)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (pointer_expression "*(undefined4 *)(iVar5 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x20)" (( "(") (binary_expression "iVar5 + 0x20" (identifier "iVar5") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(iVar5 + 0x18);" (assignment_expression "uVar2 = *(undefined4 *)(iVar5 + 0x18)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(iVar5 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x18)" (( "(") (binary_expression "iVar5 + 0x18" (identifier "iVar5") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "*param_5 = *(undefined4 *)(iVar5 + 0x14);" (assignment_expression "*param_5 = *(undefined4 *)(iVar5 + 0x14)" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (pointer_expression "*(undefined4 *)(iVar5 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x14)" (( "(") (binary_expression "iVar5 + 0x14" (identifier "iVar5") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "param_5[1] = uVar2;" (assignment_expression "param_5[1] = uVar2" (subscript_expression "param_5[1]" (identifier "param_5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*param_6 = *(undefined4 *)(iVar5 + 0x1c);" (assignment_expression "*param_6 = *(undefined4 *)(iVar5 + 0x1c)" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (pointer_expression "*(undefined4 *)(iVar5 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar5 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x1c)" (( "(") (binary_expression "iVar5 + 0x1c" (identifier "iVar5") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (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<64,_true> * this, uint
   shndx, bool * is_comdat, uint * symndx, uint64_t * sh_size, Kept_section * * kept_section) */

bool __thiscall
gold::Sized_relobj_file<64,_true>::get_kept_comdat_section
          (Sized_relobj_file<64,_true> *this,type_5 var_2,bool *is_comdat,type_5 *symndx,
          uint64_t *sh_size,type_6 **kept_section)

{
  type_2 *pp_Var1;
  type_1 *var_3;
  type_2 var_1;
  type_3 uVar4;
  type_2 p_Var5;
  type_2 p_Var6;
  
  var_3 = &(this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header;
  var_1 = (this->kept_comdat_sections_)._M_t._M_impl.super__Rb_tree_header._M_header._M_parent;
  p_Var5 = &var_3->_M_header;
  if (var_1 == (type_2)0x0) {
    return false;
  }
  do {
    while (p_Var6 = var_1, var_2 <= p_Var6[1]._M_color) {
      var_1 = p_Var6->_M_left;
      p_Var5 = p_Var6;
      if (p_Var6->_M_left == (type_2)0x0) goto LAB_00293755;
    }
    pp_Var1 = &p_Var6->_M_right;
    var_1 = *pp_Var1;
    p_Var6 = p_Var5;
  } while (*pp_Var1 != (type_2)0x0);
LAB_00293755:
  if ((var_3 != (type_1 *)p_Var6) && (((type_1 *)p_Var6)->_M_node_count <= var_2)
     ) {
    *is_comdat = (bool)((type_4 *)((int)p_Var6 + 0x14))[0x10];
    *symndx = *(type_5 *)((type_4 *)((int)p_Var6 + 0x14) + 0xc);
    uVar4 = *(type_3 *)((type_4 *)((int)p_Var6 + 0x14) + 4);
    *(type_3 *)sh_size = *(type_3 *)((int)p_Var6 + 0x14);
    *(type_3 *)((int)sh_size + 4) = uVar4;
    *kept_section = *(type_6 **)((type_4 *)((int)p_Var6 + 0x14) + 8);
    return true;
  }
  return false;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (primitive_type) 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: (primitive_type) 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: (primitive_type) 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: (primitive_type) 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: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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)))))

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

{
  int *piVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  
  iVar3 = *(int *)(param_1 + 0x10c);
  iVar4 = param_1 + 0x108;
  if (*(int *)(param_1 + 0x10c) == 0) {
    return 0;
  }
  do {
    while (iVar5 = iVar3, param_2 <= *(uint *)(iVar5 + 0x10)) {
      iVar3 = *(int *)(iVar5 + 8);
      iVar4 = iVar5;
      if (*(int *)(iVar5 + 8) == 0) goto LAB_00293755;
    }
    piVar1 = (int *)(iVar5 + 0xc);
    iVar3 = *piVar1;
    iVar5 = iVar4;
  } while (*piVar1 != 0);
LAB_00293755:
  if ((param_1 + 0x108 != iVar5) && (*(uint *)(iVar5 + 0x10) <= param_2)) {
    *param_3 = *(undefined1 *)(iVar5 + 0x24);
    *param_4 = *(undefined4 *)(iVar5 + 0x20);
    uVar2 = *(undefined4 *)(iVar5 + 0x18);
    *param_5 = *(undefined4 *)(iVar5 + 0x14);
    param_5[1] = uVar2;
    *param_6 = *(undefined4 *)(iVar5 + 0x1c);
    return 1;
  }
  return 0;
}

