
/* DWARF original prototype: iterator
   find(_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>
   * this, pair<const_gold::Relobj*,_unsigned_int> * __k) */

iterator __thiscall
std::
_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>
::find(_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>
       *this,pair<const_gold::Relobj*,_unsigned_int> *__k)

{
  _Base_ptr *pp_Var1;
  _Base_ptr p_Var2;
  Relobj *pRVar3;
  iterator iVar4;
  _Base_ptr p_Var5;
  _Base_ptr p_Var6;
  
  p_Var2 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;
  iVar4._M_node = &(this->_M_impl).super__Rb_tree_header._M_header;
  if (p_Var2 != (_Base_ptr)0x0) {
    pRVar3 = __k->first;
    p_Var5 = iVar4._M_node;
    do {
      while ((p_Var6 = p_Var2, *(Relobj **)(p_Var6 + 1) < pRVar3 ||
             ((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))
             )) {
        pp_Var1 = &p_Var6->_M_right;
        p_Var2 = *pp_Var1;
        p_Var6 = p_Var5;
        if (*pp_Var1 == (_Base_ptr)0x0) goto LAB_001b4c6f;
      }
      p_Var2 = p_Var6->_M_left;
      p_Var5 = p_Var6;
    } while (p_Var6->_M_left != (_Base_ptr)0x0);
LAB_001b4c6f:
    if ((p_Var6 != iVar4._M_node) && (*(Relobj **)(p_Var6 + 1) <= pRVar3)) {
      if (pRVar3 == *(Relobj **)(p_Var6 + 1)) {
        if (*(uint *)&p_Var6[1]._M_parent <= __k->second) {
          iVar4._M_node = p_Var6;
        }
        return (iterator)iVar4._M_node;
      }
      return (iterator)p_Var6;
    }
  }
  return (iterator)iVar4._M_node;
}



long FUN_001b4c30(long param_1,ulong *param_2)

{
  long *plVar1;
  ulong uVar2;
  long lVar3;
  long lVar4;
  long lVar5;
  long lVar6;
  
  lVar4 = param_1 + 8;
  if (*(long *)(param_1 + 0x10) != 0) {
    uVar2 = *param_2;
    lVar3 = *(long *)(param_1 + 0x10);
    lVar5 = lVar4;
    do {
      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||
             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))
      {
        plVar1 = (long *)(lVar6 + 0x18);
        lVar3 = *plVar1;
        lVar6 = lVar5;
        if (*plVar1 == 0) goto LAB_001b4c6f;
      }
      lVar3 = *(long *)(lVar6 + 0x10);
      lVar5 = lVar6;
    } while (*(long *)(lVar6 + 0x10) != 0);
LAB_001b4c6f:
    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {
      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {
        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {
          lVar4 = lVar6;
        }
        return lVar4;
      }
      return lVar6;
    }
  }
  return lVar4;
}


MOV RDX,qword ptr [RDI + 0x10]
LEA RAX,[RDI + 0x8]
TEST RDX,RDX
JZ 0x001b4c7a
MOV RCX,qword ptr [RSI]
MOV RDI,RAX
JMP 0x001b4c60
JNZ 0x001b4c54
MOV R8D,dword ptr [RSI + 0x8]
CMP dword ptr [RDX + 0x28],R8D
JC 0x001b4c66
MOV RDI,RDX
MOV RDX,qword ptr [RDX + 0x10]
TEST RDX,RDX
JZ 0x001b4c6f
CMP qword ptr [RDX + 0x20],RCX
JNC 0x001b4c48
MOV RDX,qword ptr [RDX + 0x18]
TEST RDX,RDX
JNZ 0x001b4c60
CMP RDI,RAX
JZ 0x001b4c7a
CMP RCX,qword ptr [RDI + 0x20]
JNC 0x001b4c80
RET
JNZ 0x001b4c90
MOV ECX,dword ptr [RDI + 0x28]
CMP dword ptr [RSI + 0x8],ECX
CMOVNC RAX,RDI
RET
MOV RAX,RDI
RET
(translation_unit "long FUN_001b4c30(long param_1,ulong *param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  long lVar6;\n  \n  lVar4 = param_1 + 8;\n  if (*(long *)(param_1 + 0x10) != 0) {\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }\n  return lVar4;\n}\n\n" (function_definition "long FUN_001b4c30(long param_1,ulong *param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  long lVar6;\n  \n  lVar4 = param_1 + 8;\n  if (*(long *)(param_1 + 0x10) != 0) {\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }\n  return lVar4;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001b4c30(long param_1,ulong *param_2)" identifier (parameter_list "(long param_1,ulong *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  long lVar6;\n  \n  lVar4 = param_1 + 8;\n  if (*(long *)(param_1 + 0x10) != 0) {\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }\n  return lVar4;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar4 = param_1 + 8;" (assignment_expression "lVar4 = param_1 + 8" identifier = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (if_statement "if (*(long *)(param_1 + 0x10) != 0) {\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x10) != 0)" ( (binary_expression "*(long *)(param_1 + 0x10) != 0" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }" { (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "lVar3 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x10)" identifier = (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "lVar5 = lVar4;" (assignment_expression "lVar5 = lVar4" identifier = identifier) ;) (do_statement "do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);" do (compound_statement "{\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    }" { (while_statement "while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }" while (parenthesized_expression "((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))" ( (parenthesized_expression "(lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1]))))" ( (comma_expression "lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))" (assignment_expression "lVar6 = lVar3" identifier = identifier) , (binary_expression "*(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))" (binary_expression "*(ulong *)(lVar6 + 0x20) < uVar2" (pointer_expression "*(ulong *)(lVar6 + 0x20)" * (cast_expression "(ulong *)(lVar6 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) < identifier) || (parenthesized_expression "((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))" ( (parenthesized_expression "(*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1]))" ( (binary_expression "*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])" (binary_expression "*(ulong *)(lVar6 + 0x20) == uVar2" (pointer_expression "*(ulong *)(lVar6 + 0x20)" * (cast_expression "(ulong *)(lVar6 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) == identifier) && (parenthesized_expression "(*(uint *)(lVar6 + 0x28) < (uint)param_2[1])" ( (binary_expression "*(uint *)(lVar6 + 0x28) < (uint)param_2[1]" (pointer_expression "*(uint *)(lVar6 + 0x28)" * (cast_expression "(uint *)(lVar6 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x28)" ( (binary_expression "lVar6 + 0x28" identifier + number_literal) )))) < (cast_expression "(uint)param_2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ))) )) )))) )) )) (compound_statement "{\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }" { (expression_statement "plVar1 = (long *)(lVar6 + 0x18);" (assignment_expression "plVar1 = (long *)(lVar6 + 0x18)" identifier = (cast_expression "(long *)(lVar6 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x18)" ( (binary_expression "lVar6 + 0x18" identifier + number_literal) )))) ;) (expression_statement "lVar3 = *plVar1;" (assignment_expression "lVar3 = *plVar1" identifier = (pointer_expression "*plVar1" * identifier)) ;) (expression_statement "lVar6 = lVar5;" (assignment_expression "lVar6 = lVar5" identifier = identifier) ;) (if_statement "if (*plVar1 == 0) goto LAB_001b4c6f;" if (parenthesized_expression "(*plVar1 == 0)" ( (binary_expression "*plVar1 == 0" (pointer_expression "*plVar1" * identifier) == number_literal) )) (goto_statement "goto LAB_001b4c6f;" goto statement_identifier ;)) })) (expression_statement "lVar3 = *(long *)(lVar6 + 0x10);" (assignment_expression "lVar3 = *(long *)(lVar6 + 0x10)" identifier = (pointer_expression "*(long *)(lVar6 + 0x10)" * (cast_expression "(long *)(lVar6 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x10)" ( (binary_expression "lVar6 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "lVar5 = lVar6;" (assignment_expression "lVar5 = lVar6" identifier = identifier) ;) }) while (parenthesized_expression "(*(long *)(lVar6 + 0x10) != 0)" ( (binary_expression "*(long *)(lVar6 + 0x10) != 0" (pointer_expression "*(long *)(lVar6 + 0x10)" * (cast_expression "(long *)(lVar6 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x10)" ( (binary_expression "lVar6 + 0x10" identifier + number_literal) )))) != number_literal) )) ;) (labeled_statement "LAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }" statement_identifier : (if_statement "if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }" if (parenthesized_expression "((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2))" ( (binary_expression "(lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)" (parenthesized_expression "(lVar6 != lVar4)" ( (binary_expression "lVar6 != lVar4" identifier != identifier) )) && (parenthesized_expression "(*(ulong *)(lVar6 + 0x20) <= uVar2)" ( (binary_expression "*(ulong *)(lVar6 + 0x20) <= uVar2" (pointer_expression "*(ulong *)(lVar6 + 0x20)" * (cast_expression "(ulong *)(lVar6 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }" { (if_statement "if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }" if (parenthesized_expression "(uVar2 == *(ulong *)(lVar6 + 0x20))" ( (binary_expression "uVar2 == *(ulong *)(lVar6 + 0x20)" identifier == (pointer_expression "*(ulong *)(lVar6 + 0x20)" * (cast_expression "(ulong *)(lVar6 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }" { (if_statement "if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }" if (parenthesized_expression "(*(uint *)(lVar6 + 0x28) <= (uint)param_2[1])" ( (binary_expression "*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]" (pointer_expression "*(uint *)(lVar6 + 0x28)" * (cast_expression "(uint *)(lVar6 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x28)" ( (binary_expression "lVar6 + 0x28" identifier + number_literal) )))) <= (cast_expression "(uint)param_2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n          lVar4 = lVar6;\n        }" { (expression_statement "lVar4 = lVar6;" (assignment_expression "lVar4 = lVar6" identifier = identifier) ;) })) (return_statement "return lVar4;" return identifier ;) })) (return_statement "return lVar6;" return identifier ;) }))) })) (return_statement "return lVar4;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: iterator\n   find(_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>\n   * this, pair<const_gold::Relobj*,_unsigned_int> * __k) */\n\niterator __thiscall\nstd::\n_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>\n::find(_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>\n       *this,pair<const_gold::Relobj*,_unsigned_int> *__k)\n\n{\n  _Base_ptr *pp_Var1;\n  _Base_ptr p_Var2;\n  Relobj *pRVar3;\n  iterator iVar4;\n  _Base_ptr p_Var5;\n  _Base_ptr p_Var6;\n  \n  p_Var2 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;\n  iVar4._M_node = &(this->_M_impl).super__Rb_tree_header._M_header;\n  if (p_Var2 != (_Base_ptr)0x0) {\n    pRVar3 = __k->first;\n    p_Var5 = iVar4._M_node;\n    do {\n      while ((p_Var6 = p_Var2, *(Relobj **)(p_Var6 + 1) < pRVar3 ||\n             ((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))\n             )) {\n        pp_Var1 = &p_Var6->_M_right;\n        p_Var2 = *pp_Var1;\n        p_Var6 = p_Var5;\n        if (*pp_Var1 == (_Base_ptr)0x0) goto LAB_001b4c6f;\n      }\n      p_Var2 = p_Var6->_M_left;\n      p_Var5 = p_Var6;\n    } while (p_Var6->_M_left != (_Base_ptr)0x0);\nLAB_001b4c6f:\n    if ((p_Var6 != iVar4._M_node) && (*(Relobj **)(p_Var6 + 1) <= pRVar3)) {\n      if (pRVar3 == *(Relobj **)(p_Var6 + 1)) {\n        if (*(uint *)&p_Var6[1]._M_parent <= __k->second) {\n          iVar4._M_node = p_Var6;\n        }\n        return (iterator)iVar4._M_node;\n      }\n      return (iterator)p_Var6;\n    }\n  }\n  return (iterator)iVar4._M_node;\n}\n\n" comment (declaration "iterator __thiscall\nstd::\n_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>\n::find(_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>\n       *this,pair<const_gold::Relobj*,_unsigned_int> *__k)\n\n{\n  _Base_ptr *pp_Var1;" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::\n_Rb_tree<std::pair<const_gold::" identifier : : identifier < identifier : : identifier < identifier : :) identifier (ERROR "*" *) , identifier (ERROR ">" >) , (ERROR "_std::pair<const_std::pair<const_gold::" identifier : : identifier < identifier : : identifier < identifier : :) identifier (ERROR "*" *) , identifier (ERROR ">" >) , (ERROR "_gold::Layout::" identifier : : identifier : :) identifier (ERROR "*>" * >) , (ERROR "_std::_Select1st<std::pair<const_std::pair<const_gold::" identifier : : identifier < identifier : : identifier < identifier : : identifier < identifier : :) identifier (ERROR "*" *) , identifier (ERROR ">" >) , (ERROR "_gold::Layout::Unique_segment_info*>" identifier : : identifier : : identifier * >) identifier (ERROR ">" >) , (ERROR "_std::less<std::pair<const_gold::" identifier : : identifier < identifier : : identifier < identifier : :) identifier (ERROR "*" *) , identifier (ERROR ">_>" > identifier >) , (ERROR "_std::allocator<std::pair<const_std::pair<const_gold::" identifier : : identifier < identifier : : identifier < identifier : : identifier < identifier : :) identifier (ERROR "*" *) , identifier (ERROR ">" >) , (ERROR "_gold::Layout::Unique_segment_info*>_>_>\n::find(_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>\n       *this,pair<const_gold::Relobj*,_unsigned_int> *__k)\n\n{\n  _Base_ptr" identifier : : identifier : : identifier * > identifier > identifier > : : (function_declarator "find(_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>\n       *this,pair<const_gold::Relobj*,_unsigned_int> *__k)" identifier (parameter_list "(_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>\n       *this,pair<const_gold::Relobj*,_unsigned_int> *__k)" ( (parameter_declaration "_Rb_tree<std::pair<const_gold::Relobj*" type_identifier (ERROR "<std::pair<const_gold::Relobj" < identifier : : identifier < identifier : : identifier) (abstract_pointer_declarator "*" *)) , (parameter_declaration "_unsigned_int" type_identifier) (ERROR ">" >) , (parameter_declaration "_std::pair<const_std::pair<const_gold::Relobj*" type_identifier (ERROR "::pair<const_std::pair<const_gold::Relobj" : : identifier < identifier : : identifier < identifier : : identifier) (abstract_pointer_declarator "*" *)) , (parameter_declaration "_unsigned_int" type_identifier) (ERROR ">" >) , (parameter_declaration "_gold::Layout::Unique_segment_info" type_identifier (ERROR "::Layout::" : : identifier : :) identifier) (ERROR "*>" * >) , (parameter_declaration "_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*" type_identifier (ERROR "::_Select1st<std::pair<const_std::pair<const_gold::Relobj" : : identifier < identifier : : identifier < identifier : : identifier < identifier : : identifier) (abstract_pointer_declarator "*" *)) , (parameter_declaration "_unsigned_int" type_identifier) (ERROR ">" >) , (parameter_declaration "_gold::Layout::Unique_segment_info*>_" type_identifier (ERROR "::Layout::Unique_segment_info*>" : : identifier : : identifier * >) identifier) (ERROR ">" >) , (parameter_declaration "_std::less<std::pair<const_gold::Relobj*" type_identifier (ERROR "::less<std::pair<const_gold::Relobj" : : identifier < identifier : : identifier < identifier : : identifier) (abstract_pointer_declarator "*" *)) , (parameter_declaration "_unsigned_int>_" type_identifier (ERROR ">" >) identifier) (ERROR ">" >) , (parameter_declaration "_std::allocator<std::pair<const_std::pair<const_gold::Relobj*" type_identifier (ERROR "::allocator<std::pair<const_std::pair<const_gold::Relobj" : : identifier < identifier : : identifier < identifier : : identifier < identifier : : identifier) (abstract_pointer_declarator "*" *)) , (parameter_declaration "_unsigned_int" type_identifier) (ERROR ">" >) , (parameter_declaration "_gold::Layout::Unique_segment_info*>_>_>\n       *this" type_identifier (ERROR "::Layout::Unique_segment_info*>_>_>" : : identifier : : identifier * > identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "pair<const_gold::Relobj*" type_identifier (ERROR "<const_gold::Relobj" < identifier : : identifier) (abstract_pointer_declarator "*" *)) , (parameter_declaration "_unsigned_int> *__k" type_identifier (ERROR ">" >) (pointer_declarator "*__k" * identifier)) ))) { identifier) (pointer_declarator "*pp_Var1" * identifier) ;) (declaration "_Base_ptr p_Var2;" type_identifier identifier ;) (declaration "Relobj *pRVar3;" type_identifier (pointer_declarator "*pRVar3" * identifier) ;) (declaration "iterator iVar4;" type_identifier identifier ;) (declaration "_Base_ptr p_Var5;" type_identifier identifier ;) (declaration "_Base_ptr p_Var6;" type_identifier identifier ;) (expression_statement "p_Var2 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;" (assignment_expression "p_Var2 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent" identifier = (field_expression "(this->_M_impl).super__Rb_tree_header._M_header._M_parent" (field_expression "(this->_M_impl).super__Rb_tree_header._M_header" (field_expression "(this->_M_impl).super__Rb_tree_header" (parenthesized_expression "(this->_M_impl)" ( (field_expression "this->_M_impl" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier)) ;) (expression_statement "iVar4._M_node = &(this->_M_impl).super__Rb_tree_header._M_header;" (assignment_expression "iVar4._M_node = &(this->_M_impl).super__Rb_tree_header._M_header" (field_expression "iVar4._M_node" identifier . field_identifier) = (pointer_expression "&(this->_M_impl).super__Rb_tree_header._M_header" & (field_expression "(this->_M_impl).super__Rb_tree_header._M_header" (field_expression "(this->_M_impl).super__Rb_tree_header" (parenthesized_expression "(this->_M_impl)" ( (field_expression "this->_M_impl" identifier -> field_identifier) )) . field_identifier) . field_identifier))) ;) (if_statement "if (p_Var2 != (_Base_ptr)0x0) {\n    pRVar3 = __k->first;\n    p_Var5 = iVar4._M_node;\n    do {\n      while ((p_Var6 = p_Var2, *(Relobj **)(p_Var6 + 1) < pRVar3 ||\n             ((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))\n             )) {\n        pp_Var1 = &p_Var6->_M_right;\n        p_Var2 = *pp_Var1;\n        p_Var6 = p_Var5;\n        if (*pp_Var1 == (_Base_ptr)0x0) goto LAB_001b4c6f;\n      }\n      p_Var2 = p_Var6->_M_left;\n      p_Var5 = p_Var6;\n    } while (p_Var6->_M_left != (_Base_ptr)0x0);\nLAB_001b4c6f:\n    if ((p_Var6 != iVar4._M_node) && (*(Relobj **)(p_Var6 + 1) <= pRVar3)) {\n      if (pRVar3 == *(Relobj **)(p_Var6 + 1)) {\n        if (*(uint *)&p_Var6[1]._M_parent <= __k->second) {\n          iVar4._M_node = p_Var6;\n        }\n        return (iterator)iVar4._M_node;\n      }\n      return (iterator)p_Var6;\n    }\n  }" if (parenthesized_expression "(p_Var2 != (_Base_ptr)0x0)" ( (binary_expression "p_Var2 != (_Base_ptr)0x0" identifier != (cast_expression "(_Base_ptr)0x0" ( (type_descriptor "_Base_ptr" type_identifier) ) number_literal)) )) (compound_statement "{\n    pRVar3 = __k->first;\n    p_Var5 = iVar4._M_node;\n    do {\n      while ((p_Var6 = p_Var2, *(Relobj **)(p_Var6 + 1) < pRVar3 ||\n             ((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))\n             )) {\n        pp_Var1 = &p_Var6->_M_right;\n        p_Var2 = *pp_Var1;\n        p_Var6 = p_Var5;\n        if (*pp_Var1 == (_Base_ptr)0x0) goto LAB_001b4c6f;\n      }\n      p_Var2 = p_Var6->_M_left;\n      p_Var5 = p_Var6;\n    } while (p_Var6->_M_left != (_Base_ptr)0x0);\nLAB_001b4c6f:\n    if ((p_Var6 != iVar4._M_node) && (*(Relobj **)(p_Var6 + 1) <= pRVar3)) {\n      if (pRVar3 == *(Relobj **)(p_Var6 + 1)) {\n        if (*(uint *)&p_Var6[1]._M_parent <= __k->second) {\n          iVar4._M_node = p_Var6;\n        }\n        return (iterator)iVar4._M_node;\n      }\n      return (iterator)p_Var6;\n    }\n  }" { (expression_statement "pRVar3 = __k->first;" (assignment_expression "pRVar3 = __k->first" identifier = (field_expression "__k->first" identifier -> field_identifier)) ;) (expression_statement "p_Var5 = iVar4._M_node;" (assignment_expression "p_Var5 = iVar4._M_node" identifier = (field_expression "iVar4._M_node" identifier . field_identifier)) ;) (do_statement "do {\n      while ((p_Var6 = p_Var2, *(Relobj **)(p_Var6 + 1) < pRVar3 ||\n             ((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))\n             )) {\n        pp_Var1 = &p_Var6->_M_right;\n        p_Var2 = *pp_Var1;\n        p_Var6 = p_Var5;\n        if (*pp_Var1 == (_Base_ptr)0x0) goto LAB_001b4c6f;\n      }\n      p_Var2 = p_Var6->_M_left;\n      p_Var5 = p_Var6;\n    } while (p_Var6->_M_left != (_Base_ptr)0x0);" do (compound_statement "{\n      while ((p_Var6 = p_Var2, *(Relobj **)(p_Var6 + 1) < pRVar3 ||\n             ((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))\n             )) {\n        pp_Var1 = &p_Var6->_M_right;\n        p_Var2 = *pp_Var1;\n        p_Var6 = p_Var5;\n        if (*pp_Var1 == (_Base_ptr)0x0) goto LAB_001b4c6f;\n      }\n      p_Var2 = p_Var6->_M_left;\n      p_Var5 = p_Var6;\n    }" { (while_statement "while ((p_Var6 = p_Var2, *(Relobj **)(p_Var6 + 1) < pRVar3 ||\n             ((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))\n             )) {\n        pp_Var1 = &p_Var6->_M_right;\n        p_Var2 = *pp_Var1;\n        p_Var6 = p_Var5;\n        if (*pp_Var1 == (_Base_ptr)0x0) goto LAB_001b4c6f;\n      }" while (parenthesized_expression "((p_Var6 = p_Var2, *(Relobj **)(p_Var6 + 1) < pRVar3 ||\n             ((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))\n             ))" ( (parenthesized_expression "(p_Var6 = p_Var2, *(Relobj **)(p_Var6 + 1) < pRVar3 ||\n             ((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))\n             )" ( (comma_expression "p_Var6 = p_Var2, *(Relobj **)(p_Var6 + 1) < pRVar3 ||\n             ((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))" (assignment_expression "p_Var6 = p_Var2" identifier = identifier) , (binary_expression "*(Relobj **)(p_Var6 + 1) < pRVar3 ||\n             ((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))" (binary_expression "*(Relobj **)(p_Var6 + 1) < pRVar3" (pointer_expression "*(Relobj **)(p_Var6 + 1)" * (cast_expression "(Relobj **)(p_Var6 + 1)" ( (type_descriptor "Relobj **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var6 + 1)" ( (binary_expression "p_Var6 + 1" identifier + number_literal) )))) < identifier) || (parenthesized_expression "((*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)))" ( (parenthesized_expression "(*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second))" ( (binary_expression "*(Relobj **)(p_Var6 + 1) == pRVar3 && (*(uint *)&p_Var6[1]._M_parent < __k->second)" (binary_expression "*(Relobj **)(p_Var6 + 1) == pRVar3" (pointer_expression "*(Relobj **)(p_Var6 + 1)" * (cast_expression "(Relobj **)(p_Var6 + 1)" ( (type_descriptor "Relobj **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var6 + 1)" ( (binary_expression "p_Var6 + 1" identifier + number_literal) )))) == identifier) && (parenthesized_expression "(*(uint *)&p_Var6[1]._M_parent < __k->second)" ( (binary_expression "*(uint *)&p_Var6[1]._M_parent < __k->second" (pointer_expression "*(uint *)&p_Var6[1]._M_parent" * (cast_expression "(uint *)&p_Var6[1]._M_parent" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p_Var6[1]._M_parent" & (field_expression "p_Var6[1]._M_parent" (subscript_expression "p_Var6[1]" identifier [ number_literal ]) . field_identifier)))) < (field_expression "__k->second" identifier -> field_identifier)) ))) )) )))) )) )) (compound_statement "{\n        pp_Var1 = &p_Var6->_M_right;\n        p_Var2 = *pp_Var1;\n        p_Var6 = p_Var5;\n        if (*pp_Var1 == (_Base_ptr)0x0) goto LAB_001b4c6f;\n      }" { (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_Var2 = *pp_Var1;" (assignment_expression "p_Var2 = *pp_Var1" identifier = (pointer_expression "*pp_Var1" * identifier)) ;) (expression_statement "p_Var6 = p_Var5;" (assignment_expression "p_Var6 = p_Var5" identifier = identifier) ;) (if_statement "if (*pp_Var1 == (_Base_ptr)0x0) goto LAB_001b4c6f;" if (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)) )) (goto_statement "goto LAB_001b4c6f;" goto statement_identifier ;)) })) (expression_statement "p_Var2 = p_Var6->_M_left;" (assignment_expression "p_Var2 = 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) ;) }) while (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)) )) ;) (labeled_statement "LAB_001b4c6f:\n    if ((p_Var6 != iVar4._M_node) && (*(Relobj **)(p_Var6 + 1) <= pRVar3)) {\n      if (pRVar3 == *(Relobj **)(p_Var6 + 1)) {\n        if (*(uint *)&p_Var6[1]._M_parent <= __k->second) {\n          iVar4._M_node = p_Var6;\n        }\n        return (iterator)iVar4._M_node;\n      }\n      return (iterator)p_Var6;\n    }" statement_identifier : (if_statement "if ((p_Var6 != iVar4._M_node) && (*(Relobj **)(p_Var6 + 1) <= pRVar3)) {\n      if (pRVar3 == *(Relobj **)(p_Var6 + 1)) {\n        if (*(uint *)&p_Var6[1]._M_parent <= __k->second) {\n          iVar4._M_node = p_Var6;\n        }\n        return (iterator)iVar4._M_node;\n      }\n      return (iterator)p_Var6;\n    }" if (parenthesized_expression "((p_Var6 != iVar4._M_node) && (*(Relobj **)(p_Var6 + 1) <= pRVar3))" ( (binary_expression "(p_Var6 != iVar4._M_node) && (*(Relobj **)(p_Var6 + 1) <= pRVar3)" (parenthesized_expression "(p_Var6 != iVar4._M_node)" ( (binary_expression "p_Var6 != iVar4._M_node" identifier != (field_expression "iVar4._M_node" identifier . field_identifier)) )) && (parenthesized_expression "(*(Relobj **)(p_Var6 + 1) <= pRVar3)" ( (binary_expression "*(Relobj **)(p_Var6 + 1) <= pRVar3" (pointer_expression "*(Relobj **)(p_Var6 + 1)" * (cast_expression "(Relobj **)(p_Var6 + 1)" ( (type_descriptor "Relobj **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var6 + 1)" ( (binary_expression "p_Var6 + 1" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n      if (pRVar3 == *(Relobj **)(p_Var6 + 1)) {\n        if (*(uint *)&p_Var6[1]._M_parent <= __k->second) {\n          iVar4._M_node = p_Var6;\n        }\n        return (iterator)iVar4._M_node;\n      }\n      return (iterator)p_Var6;\n    }" { (if_statement "if (pRVar3 == *(Relobj **)(p_Var6 + 1)) {\n        if (*(uint *)&p_Var6[1]._M_parent <= __k->second) {\n          iVar4._M_node = p_Var6;\n        }\n        return (iterator)iVar4._M_node;\n      }" if (parenthesized_expression "(pRVar3 == *(Relobj **)(p_Var6 + 1))" ( (binary_expression "pRVar3 == *(Relobj **)(p_Var6 + 1)" identifier == (pointer_expression "*(Relobj **)(p_Var6 + 1)" * (cast_expression "(Relobj **)(p_Var6 + 1)" ( (type_descriptor "Relobj **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_Var6 + 1)" ( (binary_expression "p_Var6 + 1" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(uint *)&p_Var6[1]._M_parent <= __k->second) {\n          iVar4._M_node = p_Var6;\n        }\n        return (iterator)iVar4._M_node;\n      }" { (if_statement "if (*(uint *)&p_Var6[1]._M_parent <= __k->second) {\n          iVar4._M_node = p_Var6;\n        }" if (parenthesized_expression "(*(uint *)&p_Var6[1]._M_parent <= __k->second)" ( (binary_expression "*(uint *)&p_Var6[1]._M_parent <= __k->second" (pointer_expression "*(uint *)&p_Var6[1]._M_parent" * (cast_expression "(uint *)&p_Var6[1]._M_parent" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p_Var6[1]._M_parent" & (field_expression "p_Var6[1]._M_parent" (subscript_expression "p_Var6[1]" identifier [ number_literal ]) . field_identifier)))) <= (field_expression "__k->second" identifier -> field_identifier)) )) (compound_statement "{\n          iVar4._M_node = p_Var6;\n        }" { (expression_statement "iVar4._M_node = p_Var6;" (assignment_expression "iVar4._M_node = p_Var6" (field_expression "iVar4._M_node" identifier . field_identifier) = identifier) ;) })) (return_statement "return (iterator)iVar4._M_node;" return (cast_expression "(iterator)iVar4._M_node" ( (type_descriptor "iterator" type_identifier) ) (field_expression "iVar4._M_node" identifier . field_identifier)) ;) })) (return_statement "return (iterator)p_Var6;" return (cast_expression "(iterator)p_Var6" ( (type_descriptor "iterator" type_identifier) ) identifier) ;) }))) })) (return_statement "return (iterator)iVar4._M_node;" return (cast_expression "(iterator)iVar4._M_node" ( (type_descriptor "iterator" type_identifier) ) (field_expression "iVar4._M_node" identifier . field_identifier)) ;) (ERROR "}" }))
(translation_unit "long FUN_001b4c30(long param_1,ulong *param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  long lVar6;\n  \n  lVar4 = param_1 + 8;\n  if (*(long *)(param_1 + 0x10) != 0) {\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }\n  return lVar4;\n}\n\n" (function_definition "long FUN_001b4c30(long param_1,ulong *param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  long lVar6;\n  \n  lVar4 = param_1 + 8;\n  if (*(long *)(param_1 + 0x10) != 0) {\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }\n  return lVar4;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001b4c30(long param_1,ulong *param_2)" identifier (parameter_list "(long param_1,ulong *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "ulong *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  long lVar6;\n  \n  lVar4 = param_1 + 8;\n  if (*(long *)(param_1 + 0x10) != 0) {\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }\n  return lVar4;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "ulong uVar2;" type_identifier identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar4 = param_1 + 8;" (assignment_expression "lVar4 = param_1 + 8" identifier = (binary_expression "param_1 + 8" identifier + number_literal)) ;) (if_statement "if (*(long *)(param_1 + 0x10) != 0) {\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x10) != 0)" ( (binary_expression "*(long *)(param_1 + 0x10) != 0" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }" { (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "lVar3 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x10)" identifier = (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "lVar5 = lVar4;" (assignment_expression "lVar5 = lVar4" identifier = identifier) ;) (do_statement "do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);" do (compound_statement "{\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    }" { (while_statement "while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }" while (parenthesized_expression "((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))" ( (parenthesized_expression "(lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1]))))" ( (comma_expression "lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))" (assignment_expression "lVar6 = lVar3" identifier = identifier) , (binary_expression "*(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))" (binary_expression "*(ulong *)(lVar6 + 0x20) < uVar2" (pointer_expression "*(ulong *)(lVar6 + 0x20)" * (cast_expression "(ulong *)(lVar6 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) < identifier) || (parenthesized_expression "((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))" ( (parenthesized_expression "(*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1]))" ( (binary_expression "*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])" (binary_expression "*(ulong *)(lVar6 + 0x20) == uVar2" (pointer_expression "*(ulong *)(lVar6 + 0x20)" * (cast_expression "(ulong *)(lVar6 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) == identifier) && (parenthesized_expression "(*(uint *)(lVar6 + 0x28) < (uint)param_2[1])" ( (binary_expression "*(uint *)(lVar6 + 0x28) < (uint)param_2[1]" (pointer_expression "*(uint *)(lVar6 + 0x28)" * (cast_expression "(uint *)(lVar6 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x28)" ( (binary_expression "lVar6 + 0x28" identifier + number_literal) )))) < (cast_expression "(uint)param_2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) ))) )) )))) )) )) (compound_statement "{\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }" { (expression_statement "plVar1 = (long *)(lVar6 + 0x18);" (assignment_expression "plVar1 = (long *)(lVar6 + 0x18)" identifier = (cast_expression "(long *)(lVar6 + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x18)" ( (binary_expression "lVar6 + 0x18" identifier + number_literal) )))) ;) (expression_statement "lVar3 = *plVar1;" (assignment_expression "lVar3 = *plVar1" identifier = (pointer_expression "*plVar1" * identifier)) ;) (expression_statement "lVar6 = lVar5;" (assignment_expression "lVar6 = lVar5" identifier = identifier) ;) (if_statement "if (*plVar1 == 0) goto LAB_001b4c6f;" if (parenthesized_expression "(*plVar1 == 0)" ( (binary_expression "*plVar1 == 0" (pointer_expression "*plVar1" * identifier) == number_literal) )) (goto_statement "goto LAB_001b4c6f;" goto statement_identifier ;)) })) (expression_statement "lVar3 = *(long *)(lVar6 + 0x10);" (assignment_expression "lVar3 = *(long *)(lVar6 + 0x10)" identifier = (pointer_expression "*(long *)(lVar6 + 0x10)" * (cast_expression "(long *)(lVar6 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x10)" ( (binary_expression "lVar6 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "lVar5 = lVar6;" (assignment_expression "lVar5 = lVar6" identifier = identifier) ;) }) while (parenthesized_expression "(*(long *)(lVar6 + 0x10) != 0)" ( (binary_expression "*(long *)(lVar6 + 0x10) != 0" (pointer_expression "*(long *)(lVar6 + 0x10)" * (cast_expression "(long *)(lVar6 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x10)" ( (binary_expression "lVar6 + 0x10" identifier + number_literal) )))) != number_literal) )) ;) (labeled_statement "LAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }" statement_identifier : (if_statement "if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }" if (parenthesized_expression "((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2))" ( (binary_expression "(lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)" (parenthesized_expression "(lVar6 != lVar4)" ( (binary_expression "lVar6 != lVar4" identifier != identifier) )) && (parenthesized_expression "(*(ulong *)(lVar6 + 0x20) <= uVar2)" ( (binary_expression "*(ulong *)(lVar6 + 0x20) <= uVar2" (pointer_expression "*(ulong *)(lVar6 + 0x20)" * (cast_expression "(ulong *)(lVar6 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) )))) <= identifier) ))) )) (compound_statement "{\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }" { (if_statement "if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }" if (parenthesized_expression "(uVar2 == *(ulong *)(lVar6 + 0x20))" ( (binary_expression "uVar2 == *(ulong *)(lVar6 + 0x20)" identifier == (pointer_expression "*(ulong *)(lVar6 + 0x20)" * (cast_expression "(ulong *)(lVar6 + 0x20)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x20)" ( (binary_expression "lVar6 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }" { (if_statement "if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }" if (parenthesized_expression "(*(uint *)(lVar6 + 0x28) <= (uint)param_2[1])" ( (binary_expression "*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]" (pointer_expression "*(uint *)(lVar6 + 0x28)" * (cast_expression "(uint *)(lVar6 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + 0x28)" ( (binary_expression "lVar6 + 0x28" identifier + number_literal) )))) <= (cast_expression "(uint)param_2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (compound_statement "{\n          lVar4 = lVar6;\n        }" { (expression_statement "lVar4 = lVar6;" (assignment_expression "lVar4 = lVar6" identifier = identifier) ;) })) (return_statement "return lVar4;" return identifier ;) })) (return_statement "return lVar6;" return identifier ;) }))) })) (return_statement "return lVar4;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (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 { (expression_statement (assignment_expression IDENT = (pointer_expression * 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 = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_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) )))) < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))) )) )))) )) )) (compound_statement { (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) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (goto_statement goto statement_identifier ;)) })) (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) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != IDENT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (return_statement return IDENT ;) })) (return_statement return IDENT ;) }))) })) (return_statement return IDENT ;) })))
(function_definition "long FUN_001b4c30(long param_1,ulong *param_2)\n\n{\n  long *plVar1;\n  ulong uVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  long lVar6;\n  \n  lVar4 = param_1 + 8;\n  if (*(long *)(param_1 + 0x10) != 0) {\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }\n  return lVar4;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_001b4c30(long param_1,ulong *param_2)" (identifier "FUN_001b4c30") (parameter_list "(long param_1,ulong *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "ulong *param_2" (type_identifier "ulong") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long *plVar1;\n  ulong uVar2;\n  long lVar3;\n  long lVar4;\n  long lVar5;\n  long lVar6;\n  \n  lVar4 = param_1 + 8;\n  if (*(long *)(param_1 + 0x10) != 0) {\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }\n  return lVar4;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "ulong uVar2;" (type_identifier "ulong") (identifier "uVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (expression_statement "lVar4 = param_1 + 8;" (assignment_expression "lVar4 = param_1 + 8" (identifier "lVar4") (= "=") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8"))) (; ";")) (if_statement "if (*(long *)(param_1 + 0x10) != 0) {\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x10) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x10) != 0" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = *param_2;\n    lVar3 = *(long *)(param_1 + 0x10);\n    lVar5 = lVar4;\n    do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);\nLAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }\n  }" ({ "{") (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" (identifier "uVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "lVar3 = *(long *)(param_1 + 0x10);" (assignment_expression "lVar3 = *(long *)(param_1 + 0x10)" (identifier "lVar3") (= "=") (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "lVar5 = lVar4;" (assignment_expression "lVar5 = lVar4" (identifier "lVar5") (= "=") (identifier "lVar4")) (; ";")) (do_statement "do {\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    } while (*(long *)(lVar6 + 0x10) != 0);" (do "do") (compound_statement "{\n      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }\n      lVar3 = *(long *)(lVar6 + 0x10);\n      lVar5 = lVar6;\n    }" ({ "{") (while_statement "while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))\n      {\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }" (while "while") (parenthesized_expression "((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))" (( "(") (parenthesized_expression "(lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1]))))" (( "(") (comma_expression "lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))" (assignment_expression "lVar6 = lVar3" (identifier "lVar6") (= "=") (identifier "lVar3")) (, ",") (binary_expression "*(ulong *)(lVar6 + 0x20) < uVar2 ||\n             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))" (binary_expression "*(ulong *)(lVar6 + 0x20) < uVar2" (pointer_expression "*(ulong *)(lVar6 + 0x20)" (* "*") (cast_expression "(ulong *)(lVar6 + 0x20)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x20)" (( "(") (binary_expression "lVar6 + 0x20" (identifier "lVar6") (+ "+") (number_literal "0x20")) () ")")))) (< "<") (identifier "uVar2")) (|| "||") (parenthesized_expression "((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))" (( "(") (parenthesized_expression "(*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1]))" (( "(") (binary_expression "*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])" (binary_expression "*(ulong *)(lVar6 + 0x20) == uVar2" (pointer_expression "*(ulong *)(lVar6 + 0x20)" (* "*") (cast_expression "(ulong *)(lVar6 + 0x20)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x20)" (( "(") (binary_expression "lVar6 + 0x20" (identifier "lVar6") (+ "+") (number_literal "0x20")) () ")")))) (== "==") (identifier "uVar2")) (&& "&&") (parenthesized_expression "(*(uint *)(lVar6 + 0x28) < (uint)param_2[1])" (( "(") (binary_expression "*(uint *)(lVar6 + 0x28) < (uint)param_2[1]" (pointer_expression "*(uint *)(lVar6 + 0x28)" (* "*") (cast_expression "(uint *)(lVar6 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x28)" (( "(") (binary_expression "lVar6 + 0x28" (identifier "lVar6") (+ "+") (number_literal "0x28")) () ")")))) (< "<") (cast_expression "(uint)param_2[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")"))) () ")")) () ")")))) () ")")) () ")")) (compound_statement "{\n        plVar1 = (long *)(lVar6 + 0x18);\n        lVar3 = *plVar1;\n        lVar6 = lVar5;\n        if (*plVar1 == 0) goto LAB_001b4c6f;\n      }" ({ "{") (expression_statement "plVar1 = (long *)(lVar6 + 0x18);" (assignment_expression "plVar1 = (long *)(lVar6 + 0x18)" (identifier "plVar1") (= "=") (cast_expression "(long *)(lVar6 + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x18)" (( "(") (binary_expression "lVar6 + 0x18" (identifier "lVar6") (+ "+") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "lVar3 = *plVar1;" (assignment_expression "lVar3 = *plVar1" (identifier "lVar3") (= "=") (pointer_expression "*plVar1" (* "*") (identifier "plVar1"))) (; ";")) (expression_statement "lVar6 = lVar5;" (assignment_expression "lVar6 = lVar5" (identifier "lVar6") (= "=") (identifier "lVar5")) (; ";")) (if_statement "if (*plVar1 == 0) goto LAB_001b4c6f;" (if "if") (parenthesized_expression "(*plVar1 == 0)" (( "(") (binary_expression "*plVar1 == 0" (pointer_expression "*plVar1" (* "*") (identifier "plVar1")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_001b4c6f;" (goto "goto") (statement_identifier "LAB_001b4c6f") (; ";"))) (} "}"))) (expression_statement "lVar3 = *(long *)(lVar6 + 0x10);" (assignment_expression "lVar3 = *(long *)(lVar6 + 0x10)" (identifier "lVar3") (= "=") (pointer_expression "*(long *)(lVar6 + 0x10)" (* "*") (cast_expression "(long *)(lVar6 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x10)" (( "(") (binary_expression "lVar6 + 0x10" (identifier "lVar6") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "lVar5 = lVar6;" (assignment_expression "lVar5 = lVar6" (identifier "lVar5") (= "=") (identifier "lVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(long *)(lVar6 + 0x10) != 0)" (( "(") (binary_expression "*(long *)(lVar6 + 0x10) != 0" (pointer_expression "*(long *)(lVar6 + 0x10)" (* "*") (cast_expression "(long *)(lVar6 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x10)" (( "(") (binary_expression "lVar6 + 0x10" (identifier "lVar6") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (; ";")) (labeled_statement "LAB_001b4c6f:\n    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }" (statement_identifier "LAB_001b4c6f") (: ":") (if_statement "if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }" (if "if") (parenthesized_expression "((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2))" (( "(") (binary_expression "(lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)" (parenthesized_expression "(lVar6 != lVar4)" (( "(") (binary_expression "lVar6 != lVar4" (identifier "lVar6") (!= "!=") (identifier "lVar4")) () ")")) (&& "&&") (parenthesized_expression "(*(ulong *)(lVar6 + 0x20) <= uVar2)" (( "(") (binary_expression "*(ulong *)(lVar6 + 0x20) <= uVar2" (pointer_expression "*(ulong *)(lVar6 + 0x20)" (* "*") (cast_expression "(ulong *)(lVar6 + 0x20)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x20)" (( "(") (binary_expression "lVar6 + 0x20" (identifier "lVar6") (+ "+") (number_literal "0x20")) () ")")))) (<= "<=") (identifier "uVar2")) () ")"))) () ")")) (compound_statement "{\n      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }\n      return lVar6;\n    }" ({ "{") (if_statement "if (uVar2 == *(ulong *)(lVar6 + 0x20)) {\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }" (if "if") (parenthesized_expression "(uVar2 == *(ulong *)(lVar6 + 0x20))" (( "(") (binary_expression "uVar2 == *(ulong *)(lVar6 + 0x20)" (identifier "uVar2") (== "==") (pointer_expression "*(ulong *)(lVar6 + 0x20)" (* "*") (cast_expression "(ulong *)(lVar6 + 0x20)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x20)" (( "(") (binary_expression "lVar6 + 0x20" (identifier "lVar6") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (compound_statement "{\n        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }\n        return lVar4;\n      }" ({ "{") (if_statement "if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {\n          lVar4 = lVar6;\n        }" (if "if") (parenthesized_expression "(*(uint *)(lVar6 + 0x28) <= (uint)param_2[1])" (( "(") (binary_expression "*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]" (pointer_expression "*(uint *)(lVar6 + 0x28)" (* "*") (cast_expression "(uint *)(lVar6 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + 0x28)" (( "(") (binary_expression "lVar6 + 0x28" (identifier "lVar6") (+ "+") (number_literal "0x28")) () ")")))) (<= "<=") (cast_expression "(uint)param_2[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")")) (compound_statement "{\n          lVar4 = lVar6;\n        }" ({ "{") (expression_statement "lVar4 = lVar6;" (assignment_expression "lVar4 = lVar6" (identifier "lVar4") (= "=") (identifier "lVar6")) (; ";")) (} "}"))) (return_statement "return lVar4;" (return "return") (identifier "lVar4") (; ";")) (} "}"))) (return_statement "return lVar6;" (return "return") (identifier "lVar6") (; ";")) (} "}")))) (} "}"))) (return_statement "return lVar4;" (return "return") (identifier "lVar4") (; ";")) (} "}")))

/* DWARF original prototype: iterator
   find(_Rb_tree<std::pair<const_gold::Relobj*,_unsigned_int>,_std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::Relobj*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::Relobj*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>
   * this, pair<const_gold::Relobj*,_unsigned_int> * __k) */

type_1 __thiscall
std::
_Rb_tree<std::pair<const_gold::type_3*,_unsigned_int>,_std::pair<const_std::pair<const_gold::type_3*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::type_3*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::type_3*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::type_3*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>
::find(_Rb_tree<std::pair<const_gold::type_3*,_unsigned_int>,_std::pair<const_std::pair<const_gold::type_3*,_unsigned_int>,_gold::Layout::Unique_segment_info*>,_std::_Select1st<std::pair<const_std::pair<const_gold::type_3*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>,_std::less<std::pair<const_gold::type_3*,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<const_gold::type_3*,_unsigned_int>,_gold::Layout::Unique_segment_info*>_>_>
       *this,pair<const_gold::type_3*,_unsigned_int> *__k)

{
  type_2 *pp_Var1;
  type_2 var_1;
  type_3 *var_3;
  type_1 iVar4;
  type_2 p_Var5;
  type_2 var_2;
  
  var_1 = (this->_M_impl).super__Rb_tree_header._M_header._M_parent;
  iVar4._M_node = &(this->_M_impl).super__Rb_tree_header._M_header;
  if (var_1 != (type_2)0x0) {
    var_3 = __k->first;
    p_Var5 = iVar4._M_node;
    do {
      while ((var_2 = var_1, *(type_3 **)(var_2 + 1) < var_3 ||
             ((*(type_3 **)(var_2 + 1) == var_3 && (*(type_4 *)&var_2[1]._M_parent < __k->second)))
             )) {
        pp_Var1 = &var_2->_M_right;
        var_1 = *pp_Var1;
        var_2 = p_Var5;
        if (*pp_Var1 == (type_2)0x0) goto LAB_001b4c6f;
      }
      var_1 = var_2->_M_left;
      p_Var5 = var_2;
    } while (var_2->_M_left != (type_2)0x0);
LAB_001b4c6f:
    if ((var_2 != iVar4._M_node) && (*(type_3 **)(var_2 + 1) <= var_3)) {
      if (var_3 == *(type_3 **)(var_2 + 1)) {
        if (*(type_4 *)&var_2[1]._M_parent <= __k->second) {
          iVar4._M_node = var_2;
        }
        return (type_1)iVar4._M_node;
      }
      return (type_1)var_2;
    }
  }
  return (type_1)iVar4._M_node;
}


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

long MASKED(long param_1,ulong *param_2)

{
  long *plVar1;
  ulong uVar2;
  long lVar3;
  long lVar4;
  long lVar5;
  long lVar6;
  
  lVar4 = param_1 + 8;
  if (*(long *)(param_1 + 0x10) != 0) {
    uVar2 = *param_2;
    lVar3 = *(long *)(param_1 + 0x10);
    lVar5 = lVar4;
    do {
      while ((lVar6 = lVar3, *(ulong *)(lVar6 + 0x20) < uVar2 ||
             ((*(ulong *)(lVar6 + 0x20) == uVar2 && (*(uint *)(lVar6 + 0x28) < (uint)param_2[1])))))
      {
        plVar1 = (long *)(lVar6 + 0x18);
        lVar3 = *plVar1;
        lVar6 = lVar5;
        if (*plVar1 == 0) goto LAB_001b4c6f;
      }
      lVar3 = *(long *)(lVar6 + 0x10);
      lVar5 = lVar6;
    } while (*(long *)(lVar6 + 0x10) != 0);
LAB_001b4c6f:
    if ((lVar6 != lVar4) && (*(ulong *)(lVar6 + 0x20) <= uVar2)) {
      if (uVar2 == *(ulong *)(lVar6 + 0x20)) {
        if (*(uint *)(lVar6 + 0x28) <= (uint)param_2[1]) {
          lVar4 = lVar6;
        }
        return lVar4;
      }
      return lVar6;
    }
  }
  return lVar4;
}

