
/* DWARF original prototype: void
   _M_erase(_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>
   * this, _Link_type __x) */

void __thiscall
std::
_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>
::_M_erase(_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>
           *this,_Link_type __x)

{
  _Link_type p_Var1;
  
  if (__x == (_Link_type)0x0) {
    return;
  }
  do {
    _M_erase(this,(_Link_type)(__x->super__Rb_tree_node_base)._M_right);
    p_Var1 = (_Link_type)(__x->super__Rb_tree_node_base)._M_left;
    operator_delete(__x);
    __x = p_Var1;
  } while (p_Var1 != (_Link_type)0x0);
  return;
}



void FUN_001de8a0(undefined8 param_1,long param_2)

{
  long lVar1;
  
  if (param_2 == 0) {
    return;
  }
  do {
    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));
    lVar1 = *(long *)(param_2 + 0x10);
    FUN_002eff50(param_2);
    param_2 = lVar1;
  } while (lVar1 != 0);
  return;
}


TEST RSI,RSI
JZ 0x001de8d8
PUSH R12
MOV R12,RDI
PUSH RBP
PUSH RBX
MOV RBX,RSI
MOV RSI,qword ptr [RBX + 0x18]
MOV RDI,R12
CALL 0x001de8a0
MOV RBP,qword ptr [RBX + 0x10]
MOV RDI,RBX
CALL 0x002eff50
MOV RBX,RBP
TEST RBP,RBP
JNZ 0x001de8af
POP RBX
POP RBP
POP R12
RET
RET
(translation_unit "void FUN_001de8a0(undefined8 param_1,long param_2)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  do {\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  } while (lVar1 != 0);\n  return;\n}\n\n" (function_definition "void FUN_001de8a0(undefined8 param_1,long param_2)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  do {\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  } while (lVar1 != 0);\n  return;\n}" primitive_type (function_declarator "FUN_001de8a0(undefined8 param_1,long param_2)" identifier (parameter_list "(undefined8 param_1,long param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  do {\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  } while (lVar1 != 0);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (do_statement "do {\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  } while (lVar1 != 0);" do (compound_statement "{\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  }" { (expression_statement "FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));" (call_expression "FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0x18))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "lVar1 = *(long *)(param_2 + 0x10);" (assignment_expression "lVar1 = *(long *)(param_2 + 0x10)" identifier = (pointer_expression "*(long *)(param_2 + 0x10)" * (cast_expression "(long *)(param_2 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "FUN_002eff50(param_2);" (call_expression "FUN_002eff50(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "param_2 = lVar1;" (assignment_expression "param_2 = lVar1" identifier = identifier) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void\n   _M_erase(_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>\n   * this, _Link_type __x) */\n\nvoid __thiscall\nstd::\n_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>\n::_M_erase(_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>\n           *this,_Link_type __x)\n\n{\n  _Link_type p_Var1;\n  \n  if (__x == (_Link_type)0x0) {\n    return;\n  }\n  do {\n    _M_erase(this,(_Link_type)(__x->super__Rb_tree_node_base)._M_right);\n    p_Var1 = (_Link_type)(__x->super__Rb_tree_node_base)._M_left;\n    operator_delete(__x);\n    __x = p_Var1;\n  } while (p_Var1 != (_Link_type)0x0);\n  return;\n}\n\n" comment (declaration "void __thiscall\nstd::\n_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>\n::_M_erase(_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>\n           *this,_Link_type __x)\n\n{\n  _Link_type p_Var1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::\n_Rb_tree<" identifier : : identifier <) identifier , (ERROR "_std::pair<" identifier : : identifier <) identifier , (ERROR "_gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_true>::" identifier > : :) identifier (ERROR ">" >) , (ERROR "_std::_Select1st<std::pair<" identifier : : identifier < identifier : : identifier <) identifier , (ERROR "_gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_true>::Kept_comdat_section>" identifier > : : identifier >) identifier (ERROR ">" >) , (ERROR "_std::less<" identifier : : identifier <) identifier (ERROR ">" >) , (ERROR "_std::allocator<std::pair<" identifier : : identifier < identifier : : identifier <) identifier , (ERROR "_gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_true>::Kept_comdat_section>_>_>\n::_M_erase(_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>\n           *this,_Link_type __x)\n\n{\n  _Link_type" identifier > : : identifier > identifier > identifier > : : (function_declarator "_M_erase(_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>\n           *this,_Link_type __x)" identifier (parameter_list "(_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>\n           *this,_Link_type __x)" ( (parameter_declaration "_Rb_tree<unsigned_int" type_identifier (ERROR "<" <) identifier) , (parameter_declaration "_std::pair<unsigned_int_const" type_identifier (ERROR "::pair<" : : identifier <) identifier) , (parameter_declaration "_gold::Sized_relobj_file" type_identifier (ERROR "::" : :) identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_true>::Kept_comdat_section" type_identifier (ERROR ">::" > : :) identifier) (ERROR ">" >) , (parameter_declaration "_std::_Select1st<std::pair<unsigned_int_const" type_identifier (ERROR "::_Select1st<std::pair<" : : identifier < identifier : : identifier <) identifier) , (parameter_declaration "_gold::Sized_relobj_file" type_identifier (ERROR "::" : :) identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_true>::Kept_comdat_section>_" type_identifier (ERROR ">::Kept_comdat_section>" > : : identifier >) identifier) (ERROR ">" >) , (parameter_declaration "_std::less<unsigned_int" type_identifier (ERROR "::less<" : : identifier <) identifier) (ERROR ">" >) , (parameter_declaration "_std::allocator<std::pair<unsigned_int_const" type_identifier (ERROR "::allocator<std::pair<" : : identifier < identifier : : identifier <) identifier) , (parameter_declaration "_gold::Sized_relobj_file" type_identifier (ERROR "::" : :) identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_true>::Kept_comdat_section>_>_>\n           *this" type_identifier (ERROR ">::Kept_comdat_section>_>_>" > : : identifier > identifier > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "_Link_type __x" type_identifier identifier) ))) { identifier) identifier ;) (if_statement "if (__x == (_Link_type)0x0) {\n    return;\n  }" if (parenthesized_expression "(__x == (_Link_type)0x0)" ( (binary_expression "__x == (_Link_type)0x0" identifier == (cast_expression "(_Link_type)0x0" ( (type_descriptor "_Link_type" type_identifier) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (do_statement "do {\n    _M_erase(this,(_Link_type)(__x->super__Rb_tree_node_base)._M_right);\n    p_Var1 = (_Link_type)(__x->super__Rb_tree_node_base)._M_left;\n    operator_delete(__x);\n    __x = p_Var1;\n  } while (p_Var1 != (_Link_type)0x0);" do (compound_statement "{\n    _M_erase(this,(_Link_type)(__x->super__Rb_tree_node_base)._M_right);\n    p_Var1 = (_Link_type)(__x->super__Rb_tree_node_base)._M_left;\n    operator_delete(__x);\n    __x = p_Var1;\n  }" { (expression_statement "_M_erase(this,(_Link_type)(__x->super__Rb_tree_node_base)._M_right);" (call_expression "_M_erase(this,(_Link_type)(__x->super__Rb_tree_node_base)._M_right)" identifier (argument_list "(this,(_Link_type)(__x->super__Rb_tree_node_base)._M_right)" ( identifier , (field_expression "(_Link_type)(__x->super__Rb_tree_node_base)._M_right" (call_expression "(_Link_type)(__x->super__Rb_tree_node_base)" (parenthesized_expression "(_Link_type)" ( identifier )) (argument_list "(__x->super__Rb_tree_node_base)" ( (field_expression "__x->super__Rb_tree_node_base" identifier -> field_identifier) ))) . field_identifier) ))) ;) (expression_statement "p_Var1 = (_Link_type)(__x->super__Rb_tree_node_base)._M_left;" (assignment_expression "p_Var1 = (_Link_type)(__x->super__Rb_tree_node_base)._M_left" identifier = (field_expression "(_Link_type)(__x->super__Rb_tree_node_base)._M_left" (call_expression "(_Link_type)(__x->super__Rb_tree_node_base)" (parenthesized_expression "(_Link_type)" ( identifier )) (argument_list "(__x->super__Rb_tree_node_base)" ( (field_expression "__x->super__Rb_tree_node_base" identifier -> field_identifier) ))) . field_identifier)) ;) (expression_statement "operator_delete(__x);" (call_expression "operator_delete(__x)" identifier (argument_list "(__x)" ( identifier ))) ;) (expression_statement "__x = p_Var1;" (assignment_expression "__x = p_Var1" identifier = identifier) ;) }) while (parenthesized_expression "(p_Var1 != (_Link_type)0x0)" ( (binary_expression "p_Var1 != (_Link_type)0x0" identifier != (cast_expression "(_Link_type)0x0" ( (type_descriptor "_Link_type" type_identifier) ) number_literal)) )) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_001de8a0(undefined8 param_1,long param_2)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  do {\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  } while (lVar1 != 0);\n  return;\n}\n\n" (function_definition "void FUN_001de8a0(undefined8 param_1,long param_2)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  do {\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  } while (lVar1 != 0);\n  return;\n}" primitive_type (function_declarator "FUN_001de8a0(undefined8 param_1,long param_2)" identifier (parameter_list "(undefined8 param_1,long param_2)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  do {\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  } while (lVar1 != 0);\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_2 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (do_statement "do {\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  } while (lVar1 != 0);" do (compound_statement "{\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  }" { (expression_statement "FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));" (call_expression "FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0x18))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "lVar1 = *(long *)(param_2 + 0x10);" (assignment_expression "lVar1 = *(long *)(param_2 + 0x10)" identifier = (pointer_expression "*(long *)(param_2 + 0x10)" * (cast_expression "(long *)(param_2 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "FUN_002eff50(param_2);" (call_expression "FUN_002eff50(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "param_2 = lVar1;" (assignment_expression "param_2 = lVar1" identifier = identifier) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( 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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return ;) })))
(function_definition "void FUN_001de8a0(undefined8 param_1,long param_2)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  do {\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  } while (lVar1 != 0);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001de8a0(undefined8 param_1,long param_2)" (identifier "FUN_001de8a0") (parameter_list "(undefined8 param_1,long param_2)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return;\n  }\n  do {\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  } while (lVar1 != 0);\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (if_statement "if (param_2 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (do_statement "do {\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  } while (lVar1 != 0);" (do "do") (compound_statement "{\n    FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));\n    lVar1 = *(long *)(param_2 + 0x10);\n    FUN_002eff50(param_2);\n    param_2 = lVar1;\n  }" ({ "{") (expression_statement "FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18));" (call_expression "FUN_001de8a0(param_1,*(undefined8 *)(param_2 + 0x18))" (identifier "FUN_001de8a0") (argument_list "(param_1,*(undefined8 *)(param_2 + 0x18))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) () ")"))) (; ";")) (expression_statement "lVar1 = *(long *)(param_2 + 0x10);" (assignment_expression "lVar1 = *(long *)(param_2 + 0x10)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_2 + 0x10)" (* "*") (cast_expression "(long *)(param_2 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "FUN_002eff50(param_2);" (call_expression "FUN_002eff50(param_2)" (identifier "FUN_002eff50") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (expression_statement "param_2 = lVar1;" (assignment_expression "param_2 = lVar1" (identifier "param_2") (= "=") (identifier "lVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void
   _M_erase(_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>
   * this, _Link_type __x) */

void __thiscall
std::
_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>
::var_2(_Rb_tree<unsigned_int,_std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>,_std::_Select1st<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>,_std::less<unsigned_int>,_std::allocator<std::pair<unsigned_int_const,_gold::Sized_relobj_file<64,_true>::Kept_comdat_section>_>_>
           *this,type_1 var_1)

{
  type_1 var_4;
  
  if (var_1 == (type_1)0x0) {
    return;
  }
  do {
    var_2(this,(type_1)(var_1->super__Rb_tree_node_base)._M_right);
    var_4 = (type_1)(var_1->super__Rb_tree_node_base)._M_left;
    var_3(var_1);
    var_1 = var_4;
  } while (var_4 != (type_1)0x0);
  return;
}


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

void MASKED(undefined8 param_1,long param_2)

{
  long lVar1;
  
  if (param_2 == 0) {
    return;
  }
  do {
    MASKED(param_1,*(undefined8 *)(param_2 + 0x18));
    lVar1 = *(long *)(param_2 + 0x10);
    FUN_002eff50(param_2);
    param_2 = lVar1;
  } while (lVar1 != 0);
  return;
}

