
/* DWARF original prototype: void add_view(File_read * this, View * v) */

void __thiscall gold::File_read::add_view(File_read *this,View *v)

{
  size_t *psVar1;
  _Base_ptr p_Var2;
  _List_node_base *this_00;
  pair<std::_Rb_tree_iterator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>,_bool>
  pVar3;
  pair<std::pair<long_int,_unsigned_int>,_gold::File_read::View*> local_48;
  
  local_48.first.second = v->byteshift_;
  local_48.first.first = v->start_;
  local_48.second = v;
  pVar3 = std::
          _Rb_tree<std::pair<long_int,_unsigned_int>,_std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>,_std::_Select1st<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>,_std::less<std::pair<long_int,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>_>
          ::_M_emplace_unique<std::pair<std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>
                    (&(this->views_)._M_t,&local_48);
  if (pVar3.second == false) {
    p_Var2 = pVar3.first._M_node[1]._M_left;
    if ((_Base_ptr)v->size_ <= p_Var2->_M_parent) {
                    /* WARNING: Subroutine does not return */
      do_gold_unreachable("../../gold/fileread.cc",0x1c8,"add_view");
    }
    if (*(char *)&p_Var2[1]._M_color != '\0') {
      v->cache_ = true;
      *(undefined1 *)&p_Var2[1]._M_color = 0;
    }
    this_00 = (_List_node_base *)operator_new(0x18);
    this_00[1]._M_next = (_List_node_base *)p_Var2;
    std::__detail::_List_node_base::_M_hook(this_00,(_List_node_base *)&this->saved_views_);
    psVar1 = &(this->saved_views_).
              super__List_base<gold::File_read::View*,_std::allocator<gold::File_read::View*>_>.
              _M_impl._M_node._M_size;
    *psVar1 = *psVar1 + 1;
    pVar3.first._M_node[1]._M_left = (_Base_ptr)v;
  }
  return;
}



void FUN_0017aa60(long param_1,undefined8 *param_2)

{
  long lVar1;
  long lVar2;
  long lVar3;
  char extraout_DL;
  undefined8 local_48;
  undefined4 local_40;
  undefined8 *local_38;
  
  local_40 = *(undefined4 *)((long)param_2 + 0x1c);
  local_48 = *param_2;
  local_38 = param_2;
  lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);
  if (extraout_DL == '\0') {
    lVar1 = *(long *)(lVar2 + 0x30);
    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {
                    /* WARNING: Subroutine does not return */
      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");
    }
    if (*(char *)(lVar1 + 0x20) != '\0') {
      *(undefined1 *)(param_2 + 4) = 1;
      *(undefined1 *)(lVar1 + 0x20) = 0;
    }
    lVar3 = FUN_002d94a0(0x18);
    *(long *)(lVar3 + 0x10) = lVar1;
    FUN_002ddb10(lVar3,param_1 + 0x88);
    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;
    *(undefined8 **)(lVar2 + 0x30) = param_2;
  }
  return;
}


PUSH R13
PUSH R12
PUSH RBP
MOV RBP,RDI
ADD RDI,0x58
PUSH RBX
MOV RBX,RSI
SUB RSP,0x28
MOV EAX,dword ptr [RSI + 0x1c]
MOV RDX,qword ptr [RSI]
MOV qword ptr [RSP + 0x10],RSI
MOV RSI,RSP
MOV qword ptr [RSP],RDX
MOV dword ptr [RSP + 0x8],EAX
CALL 0x0017c430
TEST DL,DL
JNZ 0x0017aad6
MOV R12,qword ptr [RAX + 0x30]
MOV R13,RAX
MOV RAX,qword ptr [RBX + 0x8]
CMP qword ptr [R12 + 0x8],RAX
JNC 0x0017aaf4
CMP byte ptr [R12 + 0x20],0x0
JNZ 0x0017aae8
MOV EDI,0x18
CALL 0x002d94a0
LEA RSI,[RBP + 0x88]
MOV qword ptr [RAX + 0x10],R12
MOV RDI,RAX
CALL 0x002ddb10
ADD qword ptr [RBP + 0x98],0x1
MOV qword ptr [R13 + 0x30],RBX
ADD RSP,0x28
POP RBX
POP RBP
POP R12
POP R13
RET
MOV byte ptr [RBX + 0x20],0x1
MOV byte ptr [R12 + 0x20],0x0
JMP 0x0017aaad
LEA RDX,[0x372b18]
MOV ESI,0x1c8
LEA RDI,[0x372828]
CALL 0x0017c650
(translation_unit "void FUN_0017aa60(long param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  char extraout_DL;\n  undefined8 local_48;\n  undefined4 local_40;\n  undefined8 *local_38;\n  \n  local_40 = *(undefined4 *)((long)param_2 + 0x1c);\n  local_48 = *param_2;\n  local_38 = param_2;\n  lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);\n  if (extraout_DL == '\0') {\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0017aa60(long param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  char extraout_DL;\n  undefined8 local_48;\n  undefined4 local_40;\n  undefined8 *local_38;\n  \n  local_40 = *(undefined4 *)((long)param_2 + 0x1c);\n  local_48 = *param_2;\n  local_38 = param_2;\n  lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);\n  if (extraout_DL == '\0') {\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0017aa60(long param_1,undefined8 *param_2)" identifier (parameter_list "(long param_1,undefined8 *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  char extraout_DL;\n  undefined8 local_48;\n  undefined4 local_40;\n  undefined8 *local_38;\n  \n  local_40 = *(undefined4 *)((long)param_2 + 0x1c);\n  local_48 = *param_2;\n  local_38 = param_2;\n  lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);\n  if (extraout_DL == '\0') {\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "char extraout_DL;" primitive_type identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined8 *local_38;" type_identifier (pointer_declarator "*local_38" * identifier) ;) (expression_statement "local_40 = *(undefined4 *)((long)param_2 + 0x1c);" (assignment_expression "local_40 = *(undefined4 *)((long)param_2 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)((long)param_2 + 0x1c)" * (cast_expression "(undefined4 *)((long)param_2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x1c)" ( (binary_expression "(long)param_2 + 0x1c" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "local_48 = *param_2;" (assignment_expression "local_48 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_38 = param_2;" (assignment_expression "local_38 = param_2" identifier = identifier) ;) (expression_statement "lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);" (assignment_expression "lVar2 = FUN_0017c430(param_1 + 0x58,&local_48)" identifier = (call_expression "FUN_0017c430(param_1 + 0x58,&local_48)" identifier (argument_list "(param_1 + 0x58,&local_48)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) , (pointer_expression "&local_48" & identifier) )))) ;) (if_statement "if (extraout_DL == '\0') {\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }" if (parenthesized_expression "(extraout_DL == '\0')" ( (binary_expression "extraout_DL == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }" { (expression_statement "lVar1 = *(long *)(lVar2 + 0x30);" (assignment_expression "lVar1 = *(long *)(lVar2 + 0x30)" identifier = (pointer_expression "*(long *)(lVar2 + 0x30)" * (cast_expression "(long *)(lVar2 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }" if (parenthesized_expression "((ulong)param_2[1] <= *(ulong *)(lVar1 + 8))" ( (binary_expression "(ulong)param_2[1] <= *(ulong *)(lVar1 + 8)" (cast_expression "(ulong)param_2[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) <= (pointer_expression "*(ulong *)(lVar1 + 8)" * (cast_expression "(ulong *)(lVar1 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }" { comment (expression_statement "FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");" (call_expression "FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view")" identifier (argument_list "("../../gold/fileread.cc",0x1c8,"add_view")" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (string_literal ""add_view"" " string_content ") ))) ;) })) (if_statement "if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }" if (parenthesized_expression "(*(char *)(lVar1 + 0x20) != '\0')" ( (binary_expression "*(char *)(lVar1 + 0x20) != '\0'" (pointer_expression "*(char *)(lVar1 + 0x20)" * (cast_expression "(char *)(lVar1 + 0x20)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }" { (expression_statement "*(undefined1 *)(param_2 + 4) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 4) = 1" (pointer_expression "*(undefined1 *)(param_2 + 4)" * (cast_expression "(undefined1 *)(param_2 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(lVar1 + 0x20) = 0;" (assignment_expression "*(undefined1 *)(lVar1 + 0x20) = 0" (pointer_expression "*(undefined1 *)(lVar1 + 0x20)" * (cast_expression "(undefined1 *)(lVar1 + 0x20)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "lVar3 = FUN_002d94a0(0x18);" (assignment_expression "lVar3 = FUN_002d94a0(0x18)" identifier = (call_expression "FUN_002d94a0(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "*(long *)(lVar3 + 0x10) = lVar1;" (assignment_expression "*(long *)(lVar3 + 0x10) = lVar1" (pointer_expression "*(long *)(lVar3 + 0x10)" * (cast_expression "(long *)(lVar3 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_002ddb10(lVar3,param_1 + 0x88);" (call_expression "FUN_002ddb10(lVar3,param_1 + 0x88)" identifier (argument_list "(lVar3,param_1 + 0x88)" ( identifier , (binary_expression "param_1 + 0x88" identifier + number_literal) ))) ;) (expression_statement "*(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;" (assignment_expression "*(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1" (pointer_expression "*(long *)(param_1 + 0x98)" * (cast_expression "(long *)(param_1 + 0x98)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x98) + 1" (pointer_expression "*(long *)(param_1 + 0x98)" * (cast_expression "(long *)(param_1 + 0x98)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(undefined8 **)(lVar2 + 0x30) = param_2;" (assignment_expression "*(undefined8 **)(lVar2 + 0x30) = param_2" (pointer_expression "*(undefined8 **)(lVar2 + 0x30)" * (cast_expression "(undefined8 **)(lVar2 + 0x30)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void add_view(File_read * this, View * v) */\n\nvoid __thiscall gold::File_read::add_view(File_read *this,View *v)\n\n{\n  size_t *psVar1;\n  _Base_ptr p_Var2;\n  _List_node_base *this_00;\n  pair<std::_Rb_tree_iterator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>,_bool>\n  pVar3;\n  pair<std::pair<long_int,_unsigned_int>,_gold::File_read::View*> local_48;\n  \n  local_48.first.second = v->byteshift_;\n  local_48.first.first = v->start_;\n  local_48.second = v;\n  pVar3 = std::\n          _Rb_tree<std::pair<long_int,_unsigned_int>,_std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>,_std::_Select1st<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>,_std::less<std::pair<long_int,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>_>\n          ::_M_emplace_unique<std::pair<std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>\n                    (&(this->views_)._M_t,&local_48);\n  if (pVar3.second == false) {\n    p_Var2 = pVar3.first._M_node[1]._M_left;\n    if ((_Base_ptr)v->size_ <= p_Var2->_M_parent) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)&p_Var2[1]._M_color != '\0') {\n      v->cache_ = true;\n      *(undefined1 *)&p_Var2[1]._M_color = 0;\n    }\n    this_00 = (_List_node_base *)operator_new(0x18);\n    this_00[1]._M_next = (_List_node_base *)p_Var2;\n    std::__detail::_List_node_base::_M_hook(this_00,(_List_node_base *)&this->saved_views_);\n    psVar1 = &(this->saved_views_).\n              super__List_base<gold::File_read::View*,_std::allocator<gold::File_read::View*>_>.\n              _M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n    pVar3.first._M_node[1]._M_left = (_Base_ptr)v;\n  }\n  return;\n}\n\n" comment (function_definition "void __thiscall gold::File_read::add_view(File_read *this,View *v)\n\n{\n  size_t *psVar1;\n  _Base_ptr p_Var2;\n  _List_node_base *this_00;\n  pair<std::_Rb_tree_iterator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>,_bool>\n  pVar3;\n  pair<std::pair<long_int,_unsigned_int>,_gold::File_read::View*> local_48;\n  \n  local_48.first.second = v->byteshift_;\n  local_48.first.first = v->start_;\n  local_48.second = v;\n  pVar3 = std::\n          _Rb_tree<std::pair<long_int,_unsigned_int>,_std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>,_std::_Select1st<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>,_std::less<std::pair<long_int,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>_>\n          ::_M_emplace_unique<std::pair<std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>\n                    (&(this->views_)._M_t,&local_48);\n  if (pVar3.second == false) {\n    p_Var2 = pVar3.first._M_node[1]._M_left;\n    if ((_Base_ptr)v->size_ <= p_Var2->_M_parent) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)&p_Var2[1]._M_color != '\0') {\n      v->cache_ = true;\n      *(undefined1 *)&p_Var2[1]._M_color = 0;\n    }\n    this_00 = (_List_node_base *)operator_new(0x18);\n    this_00[1]._M_next = (_List_node_base *)p_Var2;\n    std::__detail::_List_node_base::_M_hook(this_00,(_List_node_base *)&this->saved_views_);\n    psVar1 = &(this->saved_views_).\n              super__List_base<gold::File_read::View*,_std::allocator<gold::File_read::View*>_>.\n              _M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n    pVar3.first._M_node[1]._M_left = (_Base_ptr)v;\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::File_read::" identifier : : identifier : :) (function_declarator "add_view(File_read *this,View *v)" identifier (parameter_list "(File_read *this,View *v)" ( (parameter_declaration "File_read *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "View *v" type_identifier (pointer_declarator "*v" * identifier)) ))) (compound_statement "{\n  size_t *psVar1;\n  _Base_ptr p_Var2;\n  _List_node_base *this_00;\n  pair<std::_Rb_tree_iterator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>,_bool>\n  pVar3;\n  pair<std::pair<long_int,_unsigned_int>,_gold::File_read::View*> local_48;\n  \n  local_48.first.second = v->byteshift_;\n  local_48.first.first = v->start_;\n  local_48.second = v;\n  pVar3 = std::\n          _Rb_tree<std::pair<long_int,_unsigned_int>,_std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>,_std::_Select1st<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>,_std::less<std::pair<long_int,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>_>\n          ::_M_emplace_unique<std::pair<std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>\n                    (&(this->views_)._M_t,&local_48);\n  if (pVar3.second == false) {\n    p_Var2 = pVar3.first._M_node[1]._M_left;\n    if ((_Base_ptr)v->size_ <= p_Var2->_M_parent) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)&p_Var2[1]._M_color != '\0') {\n      v->cache_ = true;\n      *(undefined1 *)&p_Var2[1]._M_color = 0;\n    }\n    this_00 = (_List_node_base *)operator_new(0x18);\n    this_00[1]._M_next = (_List_node_base *)p_Var2;\n    std::__detail::_List_node_base::_M_hook(this_00,(_List_node_base *)&this->saved_views_);\n    psVar1 = &(this->saved_views_).\n              super__List_base<gold::File_read::View*,_std::allocator<gold::File_read::View*>_>.\n              _M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n    pVar3.first._M_node[1]._M_left = (_Base_ptr)v;\n  }\n  return;\n}" { (declaration "size_t *psVar1;" primitive_type (pointer_declarator "*psVar1" * identifier) ;) (declaration "_Base_ptr p_Var2;" type_identifier identifier ;) (declaration "_List_node_base *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (ERROR "pair<std::_Rb_tree_iterator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::" (binary_expression "pair<std" identifier < identifier) : : (binary_expression "_Rb_tree_iterator<std" identifier < identifier) : : (binary_expression "pair<const_std" identifier < identifier) : : (comma_expression "pair<long_int,_unsigned_int>,_gold" (binary_expression "pair<long_int" identifier < identifier) , (binary_expression "_unsigned_int>,_gold" identifier > (ERROR "," ,) identifier)) : :) (expression_statement "File_read::View*>_>,_bool>\n  pVar3;" (binary_expression "File_read::View*>_>,_bool>\n  pVar3" (binary_expression "File_read::View*>_>,_bool" (binary_expression "File_read::View*>_" identifier (ERROR "::View*" : : identifier *) > identifier) > (ERROR "," ,) identifier) > identifier) ;) (ERROR "pair<std::pair<long_int,_unsigned_int>,_gold::" (comma_expression "pair<std::pair<long_int,_unsigned_int>,_gold" (binary_expression "pair<std::pair<long_int" (binary_expression "pair<std" identifier < identifier) (ERROR "::pair" : : identifier) < identifier) , (binary_expression "_unsigned_int>,_gold" identifier > (ERROR "," ,) identifier)) : :) (expression_statement "File_read::View*> local_48;" (binary_expression "File_read::View*> local_48" identifier (ERROR "::View*" : : identifier *) > identifier) ;) (expression_statement "local_48.first.second = v->byteshift_;" (assignment_expression "local_48.first.second = v->byteshift_" (field_expression "local_48.first.second" (field_expression "local_48.first" identifier . field_identifier) . field_identifier) = (field_expression "v->byteshift_" identifier -> field_identifier)) ;) (expression_statement "local_48.first.first = v->start_;" (assignment_expression "local_48.first.first = v->start_" (field_expression "local_48.first.first" (field_expression "local_48.first" identifier . field_identifier) . field_identifier) = (field_expression "v->start_" identifier -> field_identifier)) ;) (expression_statement "local_48.second = v;" (assignment_expression "local_48.second = v" (field_expression "local_48.second" identifier . field_identifier) = identifier) ;) (ERROR "pVar3 = std::\n          _Rb_tree<std::pair<long_int,_unsigned_int>,_std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>,_std::_Select1st<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>,_std::less<std::pair<long_int,_unsigned_int>_>,_std::allocator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>_>\n          ::_M_emplace_unique<std::pair<std::pair<long_int,_unsigned_int>,_gold::" (assignment_expression "pVar3 = std" identifier = identifier) : : (binary_expression "_Rb_tree<std" identifier < identifier) : : (comma_expression "pair<long_int,_unsigned_int>,_std" (binary_expression "pair<long_int" identifier < identifier) , (binary_expression "_unsigned_int>,_std" identifier > (ERROR "," ,) identifier)) : : (binary_expression "pair<const_std" identifier < identifier) : : (comma_expression "pair<long_int,_unsigned_int>,_gold" (binary_expression "pair<long_int" identifier < identifier) , (binary_expression "_unsigned_int>,_gold" identifier > (ERROR "," ,) identifier)) : : (comma_expression "File_read::View*>,_std::_Select1st<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>,_std" identifier (ERROR "::View*>,_std::_Select1st<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::File_read::View*>_>" : : (comma_expression "View*>,_std" identifier (ERROR "*>" * >) , identifier) : : (binary_expression "_Select1st<std" identifier < identifier) : : (binary_expression "pair<const_std" identifier < identifier) : : (comma_expression "pair<long_int,_unsigned_int>,_gold" (binary_expression "pair<long_int" identifier < identifier) , (binary_expression "_unsigned_int>,_gold" identifier > (ERROR "," ,) identifier)) : : (binary_expression "File_read::View*>_" identifier (ERROR "::View*" : : identifier *) > identifier) >) , identifier) : : (binary_expression "less<std" identifier < identifier) : : (comma_expression "pair<long_int,_unsigned_int>_>,_std" (binary_expression "pair<long_int" identifier < identifier) , (binary_expression "_unsigned_int>_>,_std" (binary_expression "_unsigned_int>_" identifier > identifier) > (ERROR "," ,) identifier)) : : (binary_expression "allocator<std" identifier < identifier) : : (binary_expression "pair<const_std" identifier < identifier) : : (comma_expression "pair<long_int,_unsigned_int>,_gold" (binary_expression "pair<long_int" identifier < identifier) , (binary_expression "_unsigned_int>,_gold" identifier > (ERROR "," ,) identifier)) : : (binary_expression "File_read::View*>_>_>\n          ::_M_emplace_unique<std" (binary_expression "File_read::View*>_>_>\n          ::_M_emplace_unique" (binary_expression "File_read::View*>_>_" (binary_expression "File_read::View*>_" identifier (ERROR "::View*" : : identifier *) > identifier) > identifier) > (ERROR "::" : :) identifier) < identifier) : : (binary_expression "pair<std" identifier < identifier) : : (comma_expression "pair<long_int,_unsigned_int>,_gold" (binary_expression "pair<long_int" identifier < identifier) , (binary_expression "_unsigned_int>,_gold" identifier > (ERROR "," ,) identifier)) : :) (expression_statement "File_read::View*>_>\n                    (&(this->views_)._M_t,&local_48);" (binary_expression "File_read::View*>_>\n                    (&(this->views_)._M_t,&local_48)" (binary_expression "File_read::View*>_" identifier (ERROR "::View*" : : identifier *) > identifier) > (parenthesized_expression "(&(this->views_)._M_t,&local_48)" ( (comma_expression "&(this->views_)._M_t,&local_48" (pointer_expression "&(this->views_)._M_t" & (field_expression "(this->views_)._M_t" (parenthesized_expression "(this->views_)" ( (field_expression "this->views_" identifier -> field_identifier) )) . field_identifier)) , (pointer_expression "&local_48" & identifier)) ))) ;) (if_statement "if (pVar3.second == false) {\n    p_Var2 = pVar3.first._M_node[1]._M_left;\n    if ((_Base_ptr)v->size_ <= p_Var2->_M_parent) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)&p_Var2[1]._M_color != '\0') {\n      v->cache_ = true;\n      *(undefined1 *)&p_Var2[1]._M_color = 0;\n    }\n    this_00 = (_List_node_base *)operator_new(0x18);\n    this_00[1]._M_next = (_List_node_base *)p_Var2;\n    std::__detail::_List_node_base::_M_hook(this_00,(_List_node_base *)&this->saved_views_);\n    psVar1 = &(this->saved_views_).\n              super__List_base<gold::File_read::View*,_std::allocator<gold::File_read::View*>_>.\n              _M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n    pVar3.first._M_node[1]._M_left = (_Base_ptr)v;\n  }" if (parenthesized_expression "(pVar3.second == false)" ( (binary_expression "pVar3.second == false" (field_expression "pVar3.second" identifier . field_identifier) == false) )) (compound_statement "{\n    p_Var2 = pVar3.first._M_node[1]._M_left;\n    if ((_Base_ptr)v->size_ <= p_Var2->_M_parent) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)&p_Var2[1]._M_color != '\0') {\n      v->cache_ = true;\n      *(undefined1 *)&p_Var2[1]._M_color = 0;\n    }\n    this_00 = (_List_node_base *)operator_new(0x18);\n    this_00[1]._M_next = (_List_node_base *)p_Var2;\n    std::__detail::_List_node_base::_M_hook(this_00,(_List_node_base *)&this->saved_views_);\n    psVar1 = &(this->saved_views_).\n              super__List_base<gold::File_read::View*,_std::allocator<gold::File_read::View*>_>.\n              _M_impl._M_node._M_size;\n    *psVar1 = *psVar1 + 1;\n    pVar3.first._M_node[1]._M_left = (_Base_ptr)v;\n  }" { (expression_statement "p_Var2 = pVar3.first._M_node[1]._M_left;" (assignment_expression "p_Var2 = pVar3.first._M_node[1]._M_left" identifier = (field_expression "pVar3.first._M_node[1]._M_left" (subscript_expression "pVar3.first._M_node[1]" (field_expression "pVar3.first._M_node" (field_expression "pVar3.first" identifier . field_identifier) . field_identifier) [ number_literal ]) . field_identifier)) ;) (if_statement "if ((_Base_ptr)v->size_ <= p_Var2->_M_parent) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/fileread.cc",0x1c8,"add_view");\n    }" if (parenthesized_expression "((_Base_ptr)v->size_ <= p_Var2->_M_parent)" ( (binary_expression "(_Base_ptr)v->size_ <= p_Var2->_M_parent" (cast_expression "(_Base_ptr)v->size_" ( (type_descriptor "_Base_ptr" type_identifier) ) (field_expression "v->size_" identifier -> field_identifier)) <= (field_expression "p_Var2->_M_parent" identifier -> field_identifier)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/fileread.cc",0x1c8,"add_view");\n    }" { comment (expression_statement "do_gold_unreachable("../../gold/fileread.cc",0x1c8,"add_view");" (call_expression "do_gold_unreachable("../../gold/fileread.cc",0x1c8,"add_view")" identifier (argument_list "("../../gold/fileread.cc",0x1c8,"add_view")" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (string_literal ""add_view"" " string_content ") ))) ;) })) (if_statement "if (*(char *)&p_Var2[1]._M_color != '\0') {\n      v->cache_ = true;\n      *(undefined1 *)&p_Var2[1]._M_color = 0;\n    }" if (parenthesized_expression "(*(char *)&p_Var2[1]._M_color != '\0')" ( (binary_expression "*(char *)&p_Var2[1]._M_color != '\0'" (pointer_expression "*(char *)&p_Var2[1]._M_color" * (cast_expression "(char *)&p_Var2[1]._M_color" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p_Var2[1]._M_color" & (field_expression "p_Var2[1]._M_color" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier)))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      v->cache_ = true;\n      *(undefined1 *)&p_Var2[1]._M_color = 0;\n    }" { (expression_statement "v->cache_ = true;" (assignment_expression "v->cache_ = true" (field_expression "v->cache_" identifier -> field_identifier) = true) ;) (expression_statement "*(undefined1 *)&p_Var2[1]._M_color = 0;" (assignment_expression "*(undefined1 *)&p_Var2[1]._M_color = 0" (pointer_expression "*(undefined1 *)&p_Var2[1]._M_color" * (cast_expression "(undefined1 *)&p_Var2[1]._M_color" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p_Var2[1]._M_color" & (field_expression "p_Var2[1]._M_color" (subscript_expression "p_Var2[1]" identifier [ number_literal ]) . field_identifier)))) = number_literal) ;) })) (expression_statement "this_00 = (_List_node_base *)operator_new(0x18);" (assignment_expression "this_00 = (_List_node_base *)operator_new(0x18)" identifier = (cast_expression "(_List_node_base *)operator_new(0x18)" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "this_00[1]._M_next = (_List_node_base *)p_Var2;" (assignment_expression "this_00[1]._M_next = (_List_node_base *)p_Var2" (field_expression "this_00[1]._M_next" (subscript_expression "this_00[1]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(_List_node_base *)p_Var2" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (labeled_statement "std::__detail::_List_node_base::_M_hook(this_00,(_List_node_base *)&this->saved_views_);" statement_identifier : (ERROR ":" :) (labeled_statement "__detail::_List_node_base::_M_hook(this_00,(_List_node_base *)&this->saved_views_);" statement_identifier : (ERROR ":" :) (labeled_statement "_List_node_base::_M_hook(this_00,(_List_node_base *)&this->saved_views_);" statement_identifier : (ERROR ":" :) (expression_statement "_M_hook(this_00,(_List_node_base *)&this->saved_views_);" (call_expression "_M_hook(this_00,(_List_node_base *)&this->saved_views_)" identifier (argument_list "(this_00,(_List_node_base *)&this->saved_views_)" ( identifier , (cast_expression "(_List_node_base *)&this->saved_views_" ( (type_descriptor "_List_node_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->saved_views_" & (field_expression "this->saved_views_" identifier -> field_identifier))) ))) ;)))) (ERROR "psVar1 = &(this->saved_views_).\n              super__List_base<gold::File_read::View*,_std::allocator<gold::" (assignment_expression "psVar1 = &(this->saved_views_).\n              super__List_base<gold" identifier = (binary_expression "&(this->saved_views_).\n              super__List_base<gold" (pointer_expression "&(this->saved_views_).\n              super__List_base" & (field_expression "(this->saved_views_).\n              super__List_base" (parenthesized_expression "(this->saved_views_)" ( (field_expression "this->saved_views_" identifier -> field_identifier) )) . field_identifier)) < identifier)) : : (comma_expression "File_read::View*,_std" identifier (ERROR "::View*" : : identifier *) , identifier) : : (binary_expression "allocator<gold" identifier < identifier) : :) (expression_statement "File_read::View*>_>.\n              _M_impl._M_node._M_size;" (field_expression "File_read::View*>_>.\n              _M_impl._M_node._M_size" (field_expression "File_read::View*>_>.\n              _M_impl._M_node" (field_expression "File_read::View*>_>.\n              _M_impl" (binary_expression "File_read::View*>_" identifier (ERROR "::View*" : : identifier *) > identifier) (ERROR ">" >) . field_identifier) . field_identifier) . field_identifier) ;) (expression_statement "*psVar1 = *psVar1 + 1;" (assignment_expression "*psVar1 = *psVar1 + 1" (pointer_expression "*psVar1" * identifier) = (binary_expression "*psVar1 + 1" (pointer_expression "*psVar1" * identifier) + number_literal)) ;) (expression_statement "pVar3.first._M_node[1]._M_left = (_Base_ptr)v;" (assignment_expression "pVar3.first._M_node[1]._M_left = (_Base_ptr)v" (field_expression "pVar3.first._M_node[1]._M_left" (subscript_expression "pVar3.first._M_node[1]" (field_expression "pVar3.first._M_node" (field_expression "pVar3.first" identifier . field_identifier) . field_identifier) [ number_literal ]) . field_identifier) = (cast_expression "(_Base_ptr)v" ( (type_descriptor "_Base_ptr" type_identifier) ) identifier)) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0017aa60(long param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  char extraout_DL;\n  undefined8 local_48;\n  undefined4 local_40;\n  undefined8 *local_38;\n  \n  local_40 = *(undefined4 *)((long)param_2 + 0x1c);\n  local_48 = *param_2;\n  local_38 = param_2;\n  lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);\n  if (extraout_DL == '\0') {\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0017aa60(long param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  char extraout_DL;\n  undefined8 local_48;\n  undefined4 local_40;\n  undefined8 *local_38;\n  \n  local_40 = *(undefined4 *)((long)param_2 + 0x1c);\n  local_48 = *param_2;\n  local_38 = param_2;\n  lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);\n  if (extraout_DL == '\0') {\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0017aa60(long param_1,undefined8 *param_2)" identifier (parameter_list "(long param_1,undefined8 *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  char extraout_DL;\n  undefined8 local_48;\n  undefined4 local_40;\n  undefined8 *local_38;\n  \n  local_40 = *(undefined4 *)((long)param_2 + 0x1c);\n  local_48 = *param_2;\n  local_38 = param_2;\n  lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);\n  if (extraout_DL == '\0') {\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "char extraout_DL;" primitive_type identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined8 *local_38;" type_identifier (pointer_declarator "*local_38" * identifier) ;) (expression_statement "local_40 = *(undefined4 *)((long)param_2 + 0x1c);" (assignment_expression "local_40 = *(undefined4 *)((long)param_2 + 0x1c)" identifier = (pointer_expression "*(undefined4 *)((long)param_2 + 0x1c)" * (cast_expression "(undefined4 *)((long)param_2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_2 + 0x1c)" ( (binary_expression "(long)param_2 + 0x1c" (cast_expression "(long)param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "local_48 = *param_2;" (assignment_expression "local_48 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "local_38 = param_2;" (assignment_expression "local_38 = param_2" identifier = identifier) ;) (expression_statement "lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);" (assignment_expression "lVar2 = FUN_0017c430(param_1 + 0x58,&local_48)" identifier = (call_expression "FUN_0017c430(param_1 + 0x58,&local_48)" identifier (argument_list "(param_1 + 0x58,&local_48)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) , (pointer_expression "&local_48" & identifier) )))) ;) (if_statement "if (extraout_DL == '\0') {\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }" if (parenthesized_expression "(extraout_DL == '\0')" ( (binary_expression "extraout_DL == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }" { (expression_statement "lVar1 = *(long *)(lVar2 + 0x30);" (assignment_expression "lVar1 = *(long *)(lVar2 + 0x30)" identifier = (pointer_expression "*(long *)(lVar2 + 0x30)" * (cast_expression "(long *)(lVar2 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }" if (parenthesized_expression "((ulong)param_2[1] <= *(ulong *)(lVar1 + 8))" ( (binary_expression "(ulong)param_2[1] <= *(ulong *)(lVar1 + 8)" (cast_expression "(ulong)param_2[1]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "param_2[1]" identifier [ number_literal ])) <= (pointer_expression "*(ulong *)(lVar1 + 8)" * (cast_expression "(ulong *)(lVar1 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }" { (expression_statement "FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");" (call_expression "FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view")" identifier (argument_list "("../../gold/fileread.cc",0x1c8,"add_view")" ( (string_literal ""../../gold/fileread.cc"" " string_content ") , number_literal , (string_literal ""add_view"" " string_content ") ))) ;) })) (if_statement "if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }" if (parenthesized_expression "(*(char *)(lVar1 + 0x20) != '\0')" ( (binary_expression "*(char *)(lVar1 + 0x20) != '\0'" (pointer_expression "*(char *)(lVar1 + 0x20)" * (cast_expression "(char *)(lVar1 + 0x20)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }" { (expression_statement "*(undefined1 *)(param_2 + 4) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 4) = 1" (pointer_expression "*(undefined1 *)(param_2 + 4)" * (cast_expression "(undefined1 *)(param_2 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(lVar1 + 0x20) = 0;" (assignment_expression "*(undefined1 *)(lVar1 + 0x20) = 0" (pointer_expression "*(undefined1 *)(lVar1 + 0x20)" * (cast_expression "(undefined1 *)(lVar1 + 0x20)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "lVar3 = FUN_002d94a0(0x18);" (assignment_expression "lVar3 = FUN_002d94a0(0x18)" identifier = (call_expression "FUN_002d94a0(0x18)" identifier (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "*(long *)(lVar3 + 0x10) = lVar1;" (assignment_expression "*(long *)(lVar3 + 0x10) = lVar1" (pointer_expression "*(long *)(lVar3 + 0x10)" * (cast_expression "(long *)(lVar3 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar3 + 0x10)" ( (binary_expression "lVar3 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_002ddb10(lVar3,param_1 + 0x88);" (call_expression "FUN_002ddb10(lVar3,param_1 + 0x88)" identifier (argument_list "(lVar3,param_1 + 0x88)" ( identifier , (binary_expression "param_1 + 0x88" identifier + number_literal) ))) ;) (expression_statement "*(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;" (assignment_expression "*(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1" (pointer_expression "*(long *)(param_1 + 0x98)" * (cast_expression "(long *)(param_1 + 0x98)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) = (binary_expression "*(long *)(param_1 + 0x98) + 1" (pointer_expression "*(long *)(param_1 + 0x98)" * (cast_expression "(long *)(param_1 + 0x98)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(undefined8 **)(lVar2 + 0x30) = param_2;" (assignment_expression "*(undefined8 **)(lVar2 + 0x30) = param_2" (pointer_expression "*(undefined8 **)(lVar2 + 0x30)" * (cast_expression "(undefined8 **)(lVar2 + 0x30)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar2 + 0x30)" ( (binary_expression "lVar2 + 0x30" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0017aa60(long param_1,undefined8 *param_2)\n\n{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  char extraout_DL;\n  undefined8 local_48;\n  undefined4 local_40;\n  undefined8 *local_38;\n  \n  local_40 = *(undefined4 *)((long)param_2 + 0x1c);\n  local_48 = *param_2;\n  local_38 = param_2;\n  lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);\n  if (extraout_DL == '\0') {\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0017aa60(long param_1,undefined8 *param_2)" (identifier "FUN_0017aa60") (parameter_list "(long param_1,undefined8 *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long lVar3;\n  char extraout_DL;\n  undefined8 local_48;\n  undefined4 local_40;\n  undefined8 *local_38;\n  \n  local_40 = *(undefined4 *)((long)param_2 + 0x1c);\n  local_48 = *param_2;\n  local_38 = param_2;\n  lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);\n  if (extraout_DL == '\0') {\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "char extraout_DL;" (primitive_type "char") (identifier "extraout_DL") (; ";")) (declaration "undefined8 local_48;" (type_identifier "undefined8") (identifier "local_48") (; ";")) (declaration "undefined4 local_40;" (type_identifier "undefined4") (identifier "local_40") (; ";")) (declaration "undefined8 *local_38;" (type_identifier "undefined8") (pointer_declarator "*local_38" (* "*") (identifier "local_38")) (; ";")) (expression_statement "local_40 = *(undefined4 *)((long)param_2 + 0x1c);" (assignment_expression "local_40 = *(undefined4 *)((long)param_2 + 0x1c)" (identifier "local_40") (= "=") (pointer_expression "*(undefined4 *)((long)param_2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)((long)param_2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_2 + 0x1c)" (( "(") (binary_expression "(long)param_2 + 0x1c" (cast_expression "(long)param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_2")) (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "local_48 = *param_2;" (assignment_expression "local_48 = *param_2" (identifier "local_48") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "local_38 = param_2;" (assignment_expression "local_38 = param_2" (identifier "local_38") (= "=") (identifier "param_2")) (; ";")) (expression_statement "lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);" (assignment_expression "lVar2 = FUN_0017c430(param_1 + 0x58,&local_48)" (identifier "lVar2") (= "=") (call_expression "FUN_0017c430(param_1 + 0x58,&local_48)" (identifier "FUN_0017c430") (argument_list "(param_1 + 0x58,&local_48)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) (, ",") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")")))) (; ";")) (if_statement "if (extraout_DL == '\0') {\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }" (if "if") (parenthesized_expression "(extraout_DL == '\0')" (( "(") (binary_expression "extraout_DL == '\0'" (identifier "extraout_DL") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    lVar1 = *(long *)(lVar2 + 0x30);\n    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }\n    if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }\n    lVar3 = FUN_002d94a0(0x18);\n    *(long *)(lVar3 + 0x10) = lVar1;\n    FUN_002ddb10(lVar3,param_1 + 0x88);\n    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;\n    *(undefined8 **)(lVar2 + 0x30) = param_2;\n  }" ({ "{") (expression_statement "lVar1 = *(long *)(lVar2 + 0x30);" (assignment_expression "lVar1 = *(long *)(lVar2 + 0x30)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(lVar2 + 0x30)" (* "*") (cast_expression "(long *)(lVar2 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + 0x30)" (( "(") (binary_expression "lVar2 + 0x30" (identifier "lVar2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (if_statement "if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }" (if "if") (parenthesized_expression "((ulong)param_2[1] <= *(ulong *)(lVar1 + 8))" (( "(") (binary_expression "(ulong)param_2[1] <= *(ulong *)(lVar1 + 8)" (cast_expression "(ulong)param_2[1]" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (<= "<=") (pointer_expression "*(ulong *)(lVar1 + 8)" (* "*") (cast_expression "(ulong *)(lVar1 + 8)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")"))))) () ")")) (compound_statement "{\n                    \n      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");\n    }" ({ "{") (expression_statement "FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");" (call_expression "FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view")" (identifier "FUN_0017c650") (argument_list "("../../gold/fileread.cc",0x1c8,"add_view")" (( "(") (string_literal ""../../gold/fileread.cc"" (" """) (string_content "../../gold/fileread.cc") (" """)) (, ",") (number_literal "0x1c8") (, ",") (string_literal ""add_view"" (" """) (string_content "add_view") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(lVar1 + 0x20) != '\0') {\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }" (if "if") (parenthesized_expression "(*(char *)(lVar1 + 0x20) != '\0')" (( "(") (binary_expression "*(char *)(lVar1 + 0x20) != '\0'" (pointer_expression "*(char *)(lVar1 + 0x20)" (* "*") (cast_expression "(char *)(lVar1 + 0x20)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *(undefined1 *)(param_2 + 4) = 1;\n      *(undefined1 *)(lVar1 + 0x20) = 0;\n    }" ({ "{") (expression_statement "*(undefined1 *)(param_2 + 4) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 4) = 1" (pointer_expression "*(undefined1 *)(param_2 + 4)" (* "*") (cast_expression "(undefined1 *)(param_2 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined1 *)(lVar1 + 0x20) = 0;" (assignment_expression "*(undefined1 *)(lVar1 + 0x20) = 0" (pointer_expression "*(undefined1 *)(lVar1 + 0x20)" (* "*") (cast_expression "(undefined1 *)(lVar1 + 0x20)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "lVar3 = FUN_002d94a0(0x18);" (assignment_expression "lVar3 = FUN_002d94a0(0x18)" (identifier "lVar3") (= "=") (call_expression "FUN_002d94a0(0x18)" (identifier "FUN_002d94a0") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")")))) (; ";")) (expression_statement "*(long *)(lVar3 + 0x10) = lVar1;" (assignment_expression "*(long *)(lVar3 + 0x10) = lVar1" (pointer_expression "*(long *)(lVar3 + 0x10)" (* "*") (cast_expression "(long *)(lVar3 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar3 + 0x10)" (( "(") (binary_expression "lVar3 + 0x10" (identifier "lVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "FUN_002ddb10(lVar3,param_1 + 0x88);" (call_expression "FUN_002ddb10(lVar3,param_1 + 0x88)" (identifier "FUN_002ddb10") (argument_list "(lVar3,param_1 + 0x88)" (( "(") (identifier "lVar3") (, ",") (binary_expression "param_1 + 0x88" (identifier "param_1") (+ "+") (number_literal "0x88")) () ")"))) (; ";")) (expression_statement "*(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;" (assignment_expression "*(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1" (pointer_expression "*(long *)(param_1 + 0x98)" (* "*") (cast_expression "(long *)(param_1 + 0x98)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x98)" (( "(") (binary_expression "param_1 + 0x98" (identifier "param_1") (+ "+") (number_literal "0x98")) () ")")))) (= "=") (binary_expression "*(long *)(param_1 + 0x98) + 1" (pointer_expression "*(long *)(param_1 + 0x98)" (* "*") (cast_expression "(long *)(param_1 + 0x98)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x98)" (( "(") (binary_expression "param_1 + 0x98" (identifier "param_1") (+ "+") (number_literal "0x98")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(undefined8 **)(lVar2 + 0x30) = param_2;" (assignment_expression "*(undefined8 **)(lVar2 + 0x30) = param_2" (pointer_expression "*(undefined8 **)(lVar2 + 0x30)" (* "*") (cast_expression "(undefined8 **)(lVar2 + 0x30)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar2 + 0x30)" (( "(") (binary_expression "lVar2 + 0x30" (identifier "lVar2") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void add_view(File_read * this, View * v) */

void __thiscall gold::type_1::function_1(type_1 *this,type_2 *v)

{
  size_t *psVar1;
  type_3 p_Var2;
  type_4 *this_00;
  pair<std::_Rb_tree_iterator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::type_1::type_2*>var_1>,var_2>
  var_3;
  pair<std::pair<long_int,_unsigned_int>,_gold::type_1::type_2*> var_4;
  
  var_4.first.second = v->byteshift_;
  var_4.first.first = v->start_;
  var_4.second = v;
  var_3 = std::
          _Rb_tree<std::pair<long_int,_unsigned_int>,_std::pair<const_std::pair<long_int,_unsigned_int>,_gold::type_1::type_2*>,_std::_Select1st<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::type_1::type_2*>var_1>,_std::less<std::pair<long_int,_unsigned_int>var_1>,_std::allocator<std::pair<const_std::pair<long_int,_unsigned_int>,_gold::type_1::type_2*>var_1>var_1>
          ::_M_emplace_unique<std::pair<std::pair<long_int,_unsigned_int>,_gold::type_1::type_2*>var_1>
                    (&(this->views_)._M_t,&var_4);
  if (var_3.second == false) {
    p_Var2 = var_3.first._M_node[1]._M_left;
    if ((type_3)v->size_ <= p_Var2->_M_parent) {
                    /* WARNING: Subroutine does not return */
      var_5("../../gold/fileread.cc",0x1c8,"add_view");
    }
    if (*(char *)&p_Var2[1]._M_color != '\0') {
      v->cache_ = true;
      *(type_5 *)&p_Var2[1]._M_color = 0;
    }
    this_00 = (type_4 *)var_6(0x18);
    this_00[1]._M_next = (type_4 *)p_Var2;
    std::__detail::_List_node_base::var_7(this_00,(type_4 *)&this->saved_views_);
    psVar1 = &(this->saved_views_).
              super__List_base<gold::type_1::type_2*,_std::allocator<gold::type_1::type_2*>var_1>.
              _M_impl._M_node._M_size;
    *psVar1 = *psVar1 + 1;
    var_3.first._M_node[1]._M_left = (type_3)v;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) 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 (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_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: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_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: (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)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (return_statement))))

void MASKED(long param_1,undefined8 *param_2)

{
  long lVar1;
  long lVar2;
  long lVar3;
  char extraout_DL;
  undefined8 local_48;
  undefined4 local_40;
  undefined8 *local_38;
  
  local_40 = *(undefined4 *)((long)param_2 + 0x1c);
  local_48 = *param_2;
  local_38 = param_2;
  lVar2 = FUN_0017c430(param_1 + 0x58,&local_48);
  if (extraout_DL == '\0') {
    lVar1 = *(long *)(lVar2 + 0x30);
    if ((ulong)param_2[1] <= *(ulong *)(lVar1 + 8)) {
                    /* WARNING: Subroutine does not return */
      FUN_0017c650("../../gold/fileread.cc",0x1c8,"add_view");
    }
    if (*(char *)(lVar1 + 0x20) != '\0') {
      *(undefined1 *)(param_2 + 4) = 1;
      *(undefined1 *)(lVar1 + 0x20) = 0;
    }
    lVar3 = FUN_002d94a0(0x18);
    *(long *)(lVar3 + 0x10) = lVar1;
    FUN_002ddb10(lVar3,param_1 + 0x88);
    *(long *)(param_1 + 0x98) = *(long *)(param_1 + 0x98) + 1;
    *(undefined8 **)(lVar2 + 0x30) = param_2;
  }
  return;
}

