
/* DWARF original prototype: void set_version_map(Sized_dynobj<64,_true> * this, Version_map *
   version_map, uint ndx, char * name) */

void __thiscall
gold::Sized_dynobj<64,_true>::set_version_map
          (Sized_dynobj<64,_true> *this,Version_map *version_map,uint ndx,char *name)

{
  pointer ppcVar1;
  pointer ppcVar2;
  char *format;
  ulong uVar3;
  ulong uVar4;
  ulong uVar5;
  
  uVar3 = (ulong)ndx;
  ppcVar1 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.
            _M_finish;
  ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.
            _M_start;
  uVar5 = (long)ppcVar1 - (long)ppcVar2 >> 3;
  if (uVar5 <= uVar3) {
    uVar4 = (ulong)(ndx + 1);
    if (uVar5 < uVar4) {
      std::vector<char_const*,_std::allocator<char_const*>_>::_M_default_append
                (version_map,uVar4 - uVar5);
      ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl
                ._M_start;
    }
    else if ((uVar4 < uVar5) && (ppcVar1 != ppcVar2 + uVar4)) {
      (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl._M_finish
           = ppcVar2 + uVar4;
    }
  }
  ppcVar2 = ppcVar2 + uVar3;
  if (*ppcVar2 != (char *)0x0) {
    format = (char *)gettext("duplicate definition for version %u");
    Object::error((Object *)this,format,uVar3);
    ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.
              _M_start + uVar3;
  }
  *ppcVar2 = name;
  return;
}



void FUN_002a16d0(undefined8 param_1,long *param_2,uint param_3,long param_4)

{
  long lVar1;
  long lVar2;
  long *plVar3;
  undefined8 uVar4;
  ulong uVar5;
  ulong uVar6;
  ulong uVar7;
  
  uVar5 = (ulong)param_3;
  lVar2 = *param_2;
  uVar7 = param_2[1] - lVar2 >> 3;
  if (uVar7 <= uVar5) {
    uVar6 = (ulong)(param_3 + 1);
    if (uVar7 < uVar6) {
      FUN_002a0d90(param_2,uVar6 - uVar7);
      lVar2 = *param_2;
    }
    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {
      param_2[1] = lVar1;
    }
  }
  plVar3 = (long *)(lVar2 + uVar5 * 8);
  if (*plVar3 != 0) {
    uVar4 = gettext("duplicate definition for version %u");
    FUN_001bd150(param_1,uVar4,uVar5);
    plVar3 = (long *)(*param_2 + uVar5 * 8);
  }
  *plVar3 = param_4;
  return;
}


PUSH R14
MOV R14,RCX
PUSH R13
MOV R13,RDI
PUSH R12
PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV EBX,EDX
MOV RDX,qword ptr [RSI + 0x8]
MOV RAX,qword ptr [RSI]
MOV R12,RBX
MOV RDI,RDX
SUB RDI,RAX
SAR RDI,0x3
CMP RBX,RDI
JNC 0x002a1740
SHL RBX,0x3
ADD RAX,RBX
CMP qword ptr [RAX],0x0
JZ 0x002a172c
LEA RDI,[0x38b478]
CALL 0x00147320
MOV EDX,R12D
MOV RDI,R13
MOV RSI,RAX
XOR EAX,EAX
CALL 0x001bd150
MOV RAX,qword ptr [RBP]
ADD RAX,RBX
MOV qword ptr [RAX],R14
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
LEA ESI,[RBX + 0x1]
CMP RSI,RDI
JA 0x002a1760
JNC 0x002a16fc
LEA RCX,[RAX + RSI*0x8]
CMP RDX,RCX
JZ 0x002a16fc
MOV qword ptr [RBP + 0x8],RCX
JMP 0x002a16fc
SUB RSI,RDI
MOV RDI,RBP
CALL 0x002a0d90
MOV RAX,qword ptr [RBP]
JMP 0x002a16fc
(translation_unit "void FUN_002a16d0(undefined8 param_1,long *param_2,uint param_3,long param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  long *plVar3;\n  undefined8 uVar4;\n  ulong uVar5;\n  ulong uVar6;\n  ulong uVar7;\n  \n  uVar5 = (ulong)param_3;\n  lVar2 = *param_2;\n  uVar7 = param_2[1] - lVar2 >> 3;\n  if (uVar7 <= uVar5) {\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }\n  plVar3 = (long *)(lVar2 + uVar5 * 8);\n  if (*plVar3 != 0) {\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }\n  *plVar3 = param_4;\n  return;\n}\n\n" (function_definition "void FUN_002a16d0(undefined8 param_1,long *param_2,uint param_3,long param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  long *plVar3;\n  undefined8 uVar4;\n  ulong uVar5;\n  ulong uVar6;\n  ulong uVar7;\n  \n  uVar5 = (ulong)param_3;\n  lVar2 = *param_2;\n  uVar7 = param_2[1] - lVar2 >> 3;\n  if (uVar7 <= uVar5) {\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }\n  plVar3 = (long *)(lVar2 + uVar5 * 8);\n  if (*plVar3 != 0) {\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }\n  *plVar3 = param_4;\n  return;\n}" primitive_type (function_declarator "FUN_002a16d0(undefined8 param_1,long *param_2,uint param_3,long param_4)" identifier (parameter_list "(undefined8 param_1,long *param_2,uint param_3,long param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long *plVar3;\n  undefined8 uVar4;\n  ulong uVar5;\n  ulong uVar6;\n  ulong uVar7;\n  \n  uVar5 = (ulong)param_3;\n  lVar2 = *param_2;\n  uVar7 = param_2[1] - lVar2 >> 3;\n  if (uVar7 <= uVar5) {\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }\n  plVar3 = (long *)(lVar2 + uVar5 * 8);\n  if (*plVar3 != 0) {\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }\n  *plVar3 = param_4;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (expression_statement "uVar5 = (ulong)param_3;" (assignment_expression "uVar5 = (ulong)param_3" identifier = (cast_expression "(ulong)param_3" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar7 = param_2[1] - lVar2 >> 3;" (assignment_expression "uVar7 = param_2[1] - lVar2 >> 3" identifier = (binary_expression "param_2[1] - lVar2 >> 3" (binary_expression "param_2[1] - lVar2" (subscript_expression "param_2[1]" identifier [ number_literal ]) - identifier) >> number_literal)) ;) (if_statement "if (uVar7 <= uVar5) {\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }" if (parenthesized_expression "(uVar7 <= uVar5)" ( (binary_expression "uVar7 <= uVar5" identifier <= identifier) )) (compound_statement "{\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }" { (expression_statement "uVar6 = (ulong)(param_3 + 1);" (assignment_expression "uVar6 = (ulong)(param_3 + 1)" identifier = (call_expression "(ulong)(param_3 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) )))) ;) (if_statement "if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }" if (parenthesized_expression "(uVar7 < uVar6)" ( (binary_expression "uVar7 < uVar6" identifier < identifier) )) (compound_statement "{\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }" { (expression_statement "FUN_002a0d90(param_2,uVar6 - uVar7);" (call_expression "FUN_002a0d90(param_2,uVar6 - uVar7)" identifier (argument_list "(param_2,uVar6 - uVar7)" ( identifier , (binary_expression "uVar6 - uVar7" identifier - identifier) ))) ;) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) }) (else_clause "else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }" else (if_statement "if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }" if (parenthesized_expression "((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1))" ( (binary_expression "(uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)" (parenthesized_expression "(uVar6 < uVar7)" ( (binary_expression "uVar6 < uVar7" identifier < identifier) )) && (parenthesized_expression "(lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)" ( (comma_expression "lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1" (assignment_expression "lVar1 = lVar2 + uVar6 * 8" identifier = (binary_expression "lVar2 + uVar6 * 8" identifier + (binary_expression "uVar6 * 8" identifier * number_literal))) , (binary_expression "param_2[1] != lVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) != identifier)) ))) )) (compound_statement "{\n      param_2[1] = lVar1;\n    }" { (expression_statement "param_2[1] = lVar1;" (assignment_expression "param_2[1] = lVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) })))) })) (expression_statement "plVar3 = (long *)(lVar2 + uVar5 * 8);" (assignment_expression "plVar3 = (long *)(lVar2 + uVar5 * 8)" identifier = (cast_expression "(long *)(lVar2 + uVar5 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + uVar5 * 8)" ( (binary_expression "lVar2 + uVar5 * 8" identifier + (binary_expression "uVar5 * 8" identifier * number_literal)) )))) ;) (if_statement "if (*plVar3 != 0) {\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }" if (parenthesized_expression "(*plVar3 != 0)" ( (binary_expression "*plVar3 != 0" (pointer_expression "*plVar3" * identifier) != number_literal) )) (compound_statement "{\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }" { (expression_statement "uVar4 = gettext("duplicate definition for version %u");" (assignment_expression "uVar4 = gettext("duplicate definition for version %u")" identifier = (call_expression "gettext("duplicate definition for version %u")" identifier (argument_list "("duplicate definition for version %u")" ( (string_literal ""duplicate definition for version %u"" " string_content ") )))) ;) (expression_statement "FUN_001bd150(param_1,uVar4,uVar5);" (call_expression "FUN_001bd150(param_1,uVar4,uVar5)" identifier (argument_list "(param_1,uVar4,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "plVar3 = (long *)(*param_2 + uVar5 * 8);" (assignment_expression "plVar3 = (long *)(*param_2 + uVar5 * 8)" identifier = (cast_expression "(long *)(*param_2 + uVar5 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + uVar5 * 8)" ( (binary_expression "*param_2 + uVar5 * 8" (pointer_expression "*param_2" * identifier) + (binary_expression "uVar5 * 8" identifier * number_literal)) )))) ;) })) (expression_statement "*plVar3 = param_4;" (assignment_expression "*plVar3 = param_4" (pointer_expression "*plVar3" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void set_version_map(Sized_dynobj<64,_true> * this, Version_map *\n   version_map, uint ndx, char * name) */\n\nvoid __thiscall\ngold::Sized_dynobj<64,_true>::set_version_map\n          (Sized_dynobj<64,_true> *this,Version_map *version_map,uint ndx,char *name)\n\n{\n  pointer ppcVar1;\n  pointer ppcVar2;\n  char *format;\n  ulong uVar3;\n  ulong uVar4;\n  ulong uVar5;\n  \n  uVar3 = (ulong)ndx;\n  ppcVar1 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n            _M_finish;\n  ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n            _M_start;\n  uVar5 = (long)ppcVar1 - (long)ppcVar2 >> 3;\n  if (uVar5 <= uVar3) {\n    uVar4 = (ulong)(ndx + 1);\n    if (uVar5 < uVar4) {\n      std::vector<char_const*,_std::allocator<char_const*>_>::_M_default_append\n                (version_map,uVar4 - uVar5);\n      ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl\n                ._M_start;\n    }\n    else if ((uVar4 < uVar5) && (ppcVar1 != ppcVar2 + uVar4)) {\n      (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl._M_finish\n           = ppcVar2 + uVar4;\n    }\n  }\n  ppcVar2 = ppcVar2 + uVar3;\n  if (*ppcVar2 != (char *)0x0) {\n    format = (char *)gettext("duplicate definition for version %u");\n    Object::error((Object *)this,format,uVar3);\n    ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n              _M_start + uVar3;\n  }\n  *ppcVar2 = name;\n  return;\n}\n\n" comment (declaration "void __thiscall\ngold::Sized_dynobj<64,_true>::set_version_map\n          (Sized_dynobj<64,_true> *this,Version_map *version_map,uint ndx,char *name)\n\n{\n  pointer ppcVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_true>::set_version_map\n          (Sized_dynobj<64,_true> *this,Version_map *version_map,uint ndx,char *name)\n\n{\n  pointer" identifier > : : (function_declarator "set_version_map\n          (Sized_dynobj<64,_true> *this,Version_map *version_map,uint ndx,char *name)" identifier (parameter_list "(Sized_dynobj<64,_true> *this,Version_map *version_map,uint ndx,char *name)" ( (parameter_declaration "Sized_dynobj" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Version_map *version_map" type_identifier (pointer_declarator "*version_map" * identifier)) , (parameter_declaration "uint ndx" type_identifier identifier) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) { identifier) identifier ;) (declaration "pointer ppcVar2;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "ulong uVar3;" type_identifier identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (expression_statement "uVar3 = (ulong)ndx;" (assignment_expression "uVar3 = (ulong)ndx" identifier = (cast_expression "(ulong)ndx" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "ppcVar1 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n            _M_finish;" (assignment_expression "ppcVar1 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n            _M_finish" identifier = (field_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n            _M_finish" (field_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl" (parenthesized_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)" ( (ERROR "version_map->super__Vector_base<char_const*,_std::" (comma_expression "version_map->super__Vector_base<char_const*,_std" (binary_expression "version_map->super__Vector_base<char_const" (field_expression "version_map->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "*" *) , identifier) : :) (binary_expression "allocator<char_const*>_>" (binary_expression "allocator<char_const*>_" (binary_expression "allocator<char_const" identifier < identifier) (ERROR "*" *) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n            _M_start;" (assignment_expression "ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n            _M_start" identifier = (field_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n            _M_start" (field_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl" (parenthesized_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)" ( (ERROR "version_map->super__Vector_base<char_const*,_std::" (comma_expression "version_map->super__Vector_base<char_const*,_std" (binary_expression "version_map->super__Vector_base<char_const" (field_expression "version_map->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "*" *) , identifier) : :) (binary_expression "allocator<char_const*>_>" (binary_expression "allocator<char_const*>_" (binary_expression "allocator<char_const" identifier < identifier) (ERROR "*" *) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "uVar5 = (long)ppcVar1 - (long)ppcVar2 >> 3;" (assignment_expression "uVar5 = (long)ppcVar1 - (long)ppcVar2 >> 3" identifier = (binary_expression "(long)ppcVar1 - (long)ppcVar2 >> 3" (binary_expression "(long)ppcVar1 - (long)ppcVar2" (cast_expression "(long)ppcVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)ppcVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) >> number_literal)) ;) (if_statement "if (uVar5 <= uVar3) {\n    uVar4 = (ulong)(ndx + 1);\n    if (uVar5 < uVar4) {\n      std::vector<char_const*,_std::allocator<char_const*>_>::_M_default_append\n                (version_map,uVar4 - uVar5);\n      ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl\n                ._M_start;\n    }\n    else if ((uVar4 < uVar5) && (ppcVar1 != ppcVar2 + uVar4)) {\n      (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl._M_finish\n           = ppcVar2 + uVar4;\n    }\n  }" if (parenthesized_expression "(uVar5 <= uVar3)" ( (binary_expression "uVar5 <= uVar3" identifier <= identifier) )) (compound_statement "{\n    uVar4 = (ulong)(ndx + 1);\n    if (uVar5 < uVar4) {\n      std::vector<char_const*,_std::allocator<char_const*>_>::_M_default_append\n                (version_map,uVar4 - uVar5);\n      ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl\n                ._M_start;\n    }\n    else if ((uVar4 < uVar5) && (ppcVar1 != ppcVar2 + uVar4)) {\n      (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl._M_finish\n           = ppcVar2 + uVar4;\n    }\n  }" { (expression_statement "uVar4 = (ulong)(ndx + 1);" (assignment_expression "uVar4 = (ulong)(ndx + 1)" identifier = (call_expression "(ulong)(ndx + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(ndx + 1)" ( (binary_expression "ndx + 1" identifier + number_literal) )))) ;) (if_statement "if (uVar5 < uVar4) {\n      std::vector<char_const*,_std::allocator<char_const*>_>::_M_default_append\n                (version_map,uVar4 - uVar5);\n      ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl\n                ._M_start;\n    }\n    else if ((uVar4 < uVar5) && (ppcVar1 != ppcVar2 + uVar4)) {\n      (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl._M_finish\n           = ppcVar2 + uVar4;\n    }" if (parenthesized_expression "(uVar5 < uVar4)" ( (binary_expression "uVar5 < uVar4" identifier < identifier) )) (compound_statement "{\n      std::vector<char_const*,_std::allocator<char_const*>_>::_M_default_append\n                (version_map,uVar4 - uVar5);\n      ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl\n                ._M_start;\n    }" { (labeled_statement "std::vector<char_const*,_std::allocator<char_const*>_>::_M_default_append\n                (version_map,uVar4 - uVar5);" statement_identifier (ERROR "::vector<char_const*,_std::allocator<char_const*>_>:" : : (comma_expression "vector<char_const*,_std" (binary_expression "vector<char_const" identifier < identifier) (ERROR "*" *) , identifier) : : (binary_expression "allocator<char_const*>_" (binary_expression "allocator<char_const" identifier < identifier) (ERROR "*" *) > identifier) > :) : (expression_statement "_M_default_append\n                (version_map,uVar4 - uVar5);" (call_expression "_M_default_append\n                (version_map,uVar4 - uVar5)" identifier (argument_list "(version_map,uVar4 - uVar5)" ( identifier , (binary_expression "uVar4 - uVar5" identifier - identifier) ))) ;)) (expression_statement "ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl\n                ._M_start;" (assignment_expression "ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl\n                ._M_start" identifier = (field_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl\n                ._M_start" (field_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl" (parenthesized_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)" ( (ERROR "version_map->super__Vector_base<char_const*,_std::" (comma_expression "version_map->super__Vector_base<char_const*,_std" (binary_expression "version_map->super__Vector_base<char_const" (field_expression "version_map->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "*" *) , identifier) : :) (binary_expression "allocator<char_const*>_>" (binary_expression "allocator<char_const*>_" (binary_expression "allocator<char_const" identifier < identifier) (ERROR "*" *) > identifier) > identifier) )) . field_identifier) . field_identifier)) ;) }) (else_clause "else if ((uVar4 < uVar5) && (ppcVar1 != ppcVar2 + uVar4)) {\n      (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl._M_finish\n           = ppcVar2 + uVar4;\n    }" else (if_statement "if ((uVar4 < uVar5) && (ppcVar1 != ppcVar2 + uVar4)) {\n      (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl._M_finish\n           = ppcVar2 + uVar4;\n    }" if (parenthesized_expression "((uVar4 < uVar5) && (ppcVar1 != ppcVar2 + uVar4))" ( (binary_expression "(uVar4 < uVar5) && (ppcVar1 != ppcVar2 + uVar4)" (parenthesized_expression "(uVar4 < uVar5)" ( (binary_expression "uVar4 < uVar5" identifier < identifier) )) && (parenthesized_expression "(ppcVar1 != ppcVar2 + uVar4)" ( (binary_expression "ppcVar1 != ppcVar2 + uVar4" identifier != (binary_expression "ppcVar2 + uVar4" identifier + identifier)) ))) )) (compound_statement "{\n      (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl._M_finish\n           = ppcVar2 + uVar4;\n    }" { (expression_statement "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl._M_finish\n           = ppcVar2 + uVar4;" (assignment_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl._M_finish\n           = ppcVar2 + uVar4" (field_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl._M_finish" (field_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl" (parenthesized_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)" ( (ERROR "version_map->super__Vector_base<char_const*,_std::" (comma_expression "version_map->super__Vector_base<char_const*,_std" (binary_expression "version_map->super__Vector_base<char_const" (field_expression "version_map->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "*" *) , identifier) : :) (binary_expression "allocator<char_const*>_>" (binary_expression "allocator<char_const*>_" (binary_expression "allocator<char_const" identifier < identifier) (ERROR "*" *) > identifier) > identifier) )) . field_identifier) . field_identifier) = (binary_expression "ppcVar2 + uVar4" identifier + identifier)) ;) })))) })) (expression_statement "ppcVar2 = ppcVar2 + uVar3;" (assignment_expression "ppcVar2 = ppcVar2 + uVar3" identifier = (binary_expression "ppcVar2 + uVar3" identifier + identifier)) ;) (if_statement "if (*ppcVar2 != (char *)0x0) {\n    format = (char *)gettext("duplicate definition for version %u");\n    Object::error((Object *)this,format,uVar3);\n    ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n              _M_start + uVar3;\n  }" if (parenthesized_expression "(*ppcVar2 != (char *)0x0)" ( (binary_expression "*ppcVar2 != (char *)0x0" (pointer_expression "*ppcVar2" * identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    format = (char *)gettext("duplicate definition for version %u");\n    Object::error((Object *)this,format,uVar3);\n    ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n              _M_start + uVar3;\n  }" { (expression_statement "format = (char *)gettext("duplicate definition for version %u");" (assignment_expression "format = (char *)gettext("duplicate definition for version %u")" identifier = (cast_expression "(char *)gettext("duplicate definition for version %u")" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext("duplicate definition for version %u")" identifier (argument_list "("duplicate definition for version %u")" ( (string_literal ""duplicate definition for version %u"" " string_content ") ))))) ;) (labeled_statement "Object::error((Object *)this,format,uVar3);" statement_identifier : (ERROR ":" :) (expression_statement "error((Object *)this,format,uVar3);" (call_expression "error((Object *)this,format,uVar3)" identifier (argument_list "((Object *)this,format,uVar3)" ( (cast_expression "(Object *)this" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;)) (expression_statement "ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n              _M_start + uVar3;" (assignment_expression "ppcVar2 = (version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n              _M_start + uVar3" identifier = (binary_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n              _M_start + uVar3" (field_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl.\n              _M_start" (field_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)._M_impl" (parenthesized_expression "(version_map->super__Vector_base<char_const*,_std::allocator<char_const*>_>)" ( (ERROR "version_map->super__Vector_base<char_const*,_std::" (comma_expression "version_map->super__Vector_base<char_const*,_std" (binary_expression "version_map->super__Vector_base<char_const" (field_expression "version_map->super__Vector_base" identifier -> field_identifier) < identifier) (ERROR "*" *) , identifier) : :) (binary_expression "allocator<char_const*>_>" (binary_expression "allocator<char_const*>_" (binary_expression "allocator<char_const" identifier < identifier) (ERROR "*" *) > identifier) > identifier) )) . field_identifier) . field_identifier) + identifier)) ;) })) (expression_statement "*ppcVar2 = name;" (assignment_expression "*ppcVar2 = name" (pointer_expression "*ppcVar2" * identifier) = identifier) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void FUN_002a16d0(undefined8 param_1,long *param_2,uint param_3,long param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  long *plVar3;\n  undefined8 uVar4;\n  ulong uVar5;\n  ulong uVar6;\n  ulong uVar7;\n  \n  uVar5 = (ulong)param_3;\n  lVar2 = *param_2;\n  uVar7 = param_2[1] - lVar2 >> 3;\n  if (uVar7 <= uVar5) {\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }\n  plVar3 = (long *)(lVar2 + uVar5 * 8);\n  if (*plVar3 != 0) {\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }\n  *plVar3 = param_4;\n  return;\n}\n\n" (function_definition "void FUN_002a16d0(undefined8 param_1,long *param_2,uint param_3,long param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  long *plVar3;\n  undefined8 uVar4;\n  ulong uVar5;\n  ulong uVar6;\n  ulong uVar7;\n  \n  uVar5 = (ulong)param_3;\n  lVar2 = *param_2;\n  uVar7 = param_2[1] - lVar2 >> 3;\n  if (uVar7 <= uVar5) {\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }\n  plVar3 = (long *)(lVar2 + uVar5 * 8);\n  if (*plVar3 != 0) {\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }\n  *plVar3 = param_4;\n  return;\n}" primitive_type (function_declarator "FUN_002a16d0(undefined8 param_1,long *param_2,uint param_3,long param_4)" identifier (parameter_list "(undefined8 param_1,long *param_2,uint param_3,long param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long *param_2" (sized_type_specifier "long" long) (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long *plVar3;\n  undefined8 uVar4;\n  ulong uVar5;\n  ulong uVar6;\n  ulong uVar7;\n  \n  uVar5 = (ulong)param_3;\n  lVar2 = *param_2;\n  uVar7 = param_2[1] - lVar2 >> 3;\n  if (uVar7 <= uVar5) {\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }\n  plVar3 = (long *)(lVar2 + uVar5 * 8);\n  if (*plVar3 != 0) {\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }\n  *plVar3 = param_4;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (expression_statement "uVar5 = (ulong)param_3;" (assignment_expression "uVar5 = (ulong)param_3" identifier = (cast_expression "(ulong)param_3" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "uVar7 = param_2[1] - lVar2 >> 3;" (assignment_expression "uVar7 = param_2[1] - lVar2 >> 3" identifier = (binary_expression "param_2[1] - lVar2 >> 3" (binary_expression "param_2[1] - lVar2" (subscript_expression "param_2[1]" identifier [ number_literal ]) - identifier) >> number_literal)) ;) (if_statement "if (uVar7 <= uVar5) {\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }" if (parenthesized_expression "(uVar7 <= uVar5)" ( (binary_expression "uVar7 <= uVar5" identifier <= identifier) )) (compound_statement "{\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }" { (expression_statement "uVar6 = (ulong)(param_3 + 1);" (assignment_expression "uVar6 = (ulong)(param_3 + 1)" identifier = (call_expression "(ulong)(param_3 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_3 + 1)" ( (binary_expression "param_3 + 1" identifier + number_literal) )))) ;) (if_statement "if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }" if (parenthesized_expression "(uVar7 < uVar6)" ( (binary_expression "uVar7 < uVar6" identifier < identifier) )) (compound_statement "{\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }" { (expression_statement "FUN_002a0d90(param_2,uVar6 - uVar7);" (call_expression "FUN_002a0d90(param_2,uVar6 - uVar7)" identifier (argument_list "(param_2,uVar6 - uVar7)" ( identifier , (binary_expression "uVar6 - uVar7" identifier - identifier) ))) ;) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) }) (else_clause "else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }" else (if_statement "if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }" if (parenthesized_expression "((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1))" ( (binary_expression "(uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)" (parenthesized_expression "(uVar6 < uVar7)" ( (binary_expression "uVar6 < uVar7" identifier < identifier) )) && (parenthesized_expression "(lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)" ( (comma_expression "lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1" (assignment_expression "lVar1 = lVar2 + uVar6 * 8" identifier = (binary_expression "lVar2 + uVar6 * 8" identifier + (binary_expression "uVar6 * 8" identifier * number_literal))) , (binary_expression "param_2[1] != lVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) != identifier)) ))) )) (compound_statement "{\n      param_2[1] = lVar1;\n    }" { (expression_statement "param_2[1] = lVar1;" (assignment_expression "param_2[1] = lVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) })))) })) (expression_statement "plVar3 = (long *)(lVar2 + uVar5 * 8);" (assignment_expression "plVar3 = (long *)(lVar2 + uVar5 * 8)" identifier = (cast_expression "(long *)(lVar2 + uVar5 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + uVar5 * 8)" ( (binary_expression "lVar2 + uVar5 * 8" identifier + (binary_expression "uVar5 * 8" identifier * number_literal)) )))) ;) (if_statement "if (*plVar3 != 0) {\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }" if (parenthesized_expression "(*plVar3 != 0)" ( (binary_expression "*plVar3 != 0" (pointer_expression "*plVar3" * identifier) != number_literal) )) (compound_statement "{\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }" { (expression_statement "uVar4 = gettext("duplicate definition for version %u");" (assignment_expression "uVar4 = gettext("duplicate definition for version %u")" identifier = (call_expression "gettext("duplicate definition for version %u")" identifier (argument_list "("duplicate definition for version %u")" ( (string_literal ""duplicate definition for version %u"" " string_content ") )))) ;) (expression_statement "FUN_001bd150(param_1,uVar4,uVar5);" (call_expression "FUN_001bd150(param_1,uVar4,uVar5)" identifier (argument_list "(param_1,uVar4,uVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "plVar3 = (long *)(*param_2 + uVar5 * 8);" (assignment_expression "plVar3 = (long *)(*param_2 + uVar5 * 8)" identifier = (cast_expression "(long *)(*param_2 + uVar5 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + uVar5 * 8)" ( (binary_expression "*param_2 + uVar5 * 8" (pointer_expression "*param_2" * identifier) + (binary_expression "uVar5 * 8" identifier * number_literal)) )))) ;) })) (expression_statement "*plVar3 = param_4;" (assignment_expression "*plVar3 = param_4" (pointer_expression "*plVar3" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT - IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) , (binary_expression (subscript_expression IDENT [ LIT ]) != IDENT)) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })))) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_002a16d0(undefined8 param_1,long *param_2,uint param_3,long param_4)\n\n{\n  long lVar1;\n  long lVar2;\n  long *plVar3;\n  undefined8 uVar4;\n  ulong uVar5;\n  ulong uVar6;\n  ulong uVar7;\n  \n  uVar5 = (ulong)param_3;\n  lVar2 = *param_2;\n  uVar7 = param_2[1] - lVar2 >> 3;\n  if (uVar7 <= uVar5) {\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }\n  plVar3 = (long *)(lVar2 + uVar5 * 8);\n  if (*plVar3 != 0) {\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }\n  *plVar3 = param_4;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002a16d0(undefined8 param_1,long *param_2,uint param_3,long param_4)" (identifier "FUN_002a16d0") (parameter_list "(undefined8 param_1,long *param_2,uint param_3,long param_4)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long *param_2" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) () ")"))) (compound_statement "{\n  long lVar1;\n  long lVar2;\n  long *plVar3;\n  undefined8 uVar4;\n  ulong uVar5;\n  ulong uVar6;\n  ulong uVar7;\n  \n  uVar5 = (ulong)param_3;\n  lVar2 = *param_2;\n  uVar7 = param_2[1] - lVar2 >> 3;\n  if (uVar7 <= uVar5) {\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }\n  plVar3 = (long *)(lVar2 + uVar5 * 8);\n  if (*plVar3 != 0) {\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }\n  *plVar3 = param_4;\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 *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (declaration "ulong uVar7;" (type_identifier "ulong") (identifier "uVar7") (; ";")) (expression_statement "uVar5 = (ulong)param_3;" (assignment_expression "uVar5 = (ulong)param_3" (identifier "uVar5") (= "=") (cast_expression "(ulong)param_3" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "param_3"))) (; ";")) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" (identifier "lVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "uVar7 = param_2[1] - lVar2 >> 3;" (assignment_expression "uVar7 = param_2[1] - lVar2 >> 3" (identifier "uVar7") (= "=") (binary_expression "param_2[1] - lVar2 >> 3" (binary_expression "param_2[1] - lVar2" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (- "-") (identifier "lVar2")) (>> ">>") (number_literal "3"))) (; ";")) (if_statement "if (uVar7 <= uVar5) {\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }" (if "if") (parenthesized_expression "(uVar7 <= uVar5)" (( "(") (binary_expression "uVar7 <= uVar5" (identifier "uVar7") (<= "<=") (identifier "uVar5")) () ")")) (compound_statement "{\n    uVar6 = (ulong)(param_3 + 1);\n    if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }\n  }" ({ "{") (expression_statement "uVar6 = (ulong)(param_3 + 1);" (assignment_expression "uVar6 = (ulong)(param_3 + 1)" (identifier "uVar6") (= "=") (call_expression "(ulong)(param_3 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_3 + 1)" (( "(") (binary_expression "param_3 + 1" (identifier "param_3") (+ "+") (number_literal "1")) () ")")))) (; ";")) (if_statement "if (uVar7 < uVar6) {\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }\n    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }" (if "if") (parenthesized_expression "(uVar7 < uVar6)" (( "(") (binary_expression "uVar7 < uVar6" (identifier "uVar7") (< "<") (identifier "uVar6")) () ")")) (compound_statement "{\n      FUN_002a0d90(param_2,uVar6 - uVar7);\n      lVar2 = *param_2;\n    }" ({ "{") (expression_statement "FUN_002a0d90(param_2,uVar6 - uVar7);" (call_expression "FUN_002a0d90(param_2,uVar6 - uVar7)" (identifier "FUN_002a0d90") (argument_list "(param_2,uVar6 - uVar7)" (( "(") (identifier "param_2") (, ",") (binary_expression "uVar6 - uVar7" (identifier "uVar6") (- "-") (identifier "uVar7")) () ")"))) (; ";")) (expression_statement "lVar2 = *param_2;" (assignment_expression "lVar2 = *param_2" (identifier "lVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (} "}")) (else_clause "else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }" (else "else") (if_statement "if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {\n      param_2[1] = lVar1;\n    }" (if "if") (parenthesized_expression "((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1))" (( "(") (binary_expression "(uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)" (parenthesized_expression "(uVar6 < uVar7)" (( "(") (binary_expression "uVar6 < uVar7" (identifier "uVar6") (< "<") (identifier "uVar7")) () ")")) (&& "&&") (parenthesized_expression "(lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)" (( "(") (comma_expression "lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1" (assignment_expression "lVar1 = lVar2 + uVar6 * 8" (identifier "lVar1") (= "=") (binary_expression "lVar2 + uVar6 * 8" (identifier "lVar2") (+ "+") (binary_expression "uVar6 * 8" (identifier "uVar6") (* "*") (number_literal "8")))) (, ",") (binary_expression "param_2[1] != lVar1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (!= "!=") (identifier "lVar1"))) () ")"))) () ")")) (compound_statement "{\n      param_2[1] = lVar1;\n    }" ({ "{") (expression_statement "param_2[1] = lVar1;" (assignment_expression "param_2[1] = lVar1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "lVar1")) (; ";")) (} "}"))))) (} "}"))) (expression_statement "plVar3 = (long *)(lVar2 + uVar5 * 8);" (assignment_expression "plVar3 = (long *)(lVar2 + uVar5 * 8)" (identifier "plVar3") (= "=") (cast_expression "(long *)(lVar2 + uVar5 * 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + uVar5 * 8)" (( "(") (binary_expression "lVar2 + uVar5 * 8" (identifier "lVar2") (+ "+") (binary_expression "uVar5 * 8" (identifier "uVar5") (* "*") (number_literal "8"))) () ")")))) (; ";")) (if_statement "if (*plVar3 != 0) {\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }" (if "if") (parenthesized_expression "(*plVar3 != 0)" (( "(") (binary_expression "*plVar3 != 0" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = gettext("duplicate definition for version %u");\n    FUN_001bd150(param_1,uVar4,uVar5);\n    plVar3 = (long *)(*param_2 + uVar5 * 8);\n  }" ({ "{") (expression_statement "uVar4 = gettext("duplicate definition for version %u");" (assignment_expression "uVar4 = gettext("duplicate definition for version %u")" (identifier "uVar4") (= "=") (call_expression "gettext("duplicate definition for version %u")" (identifier "gettext") (argument_list "("duplicate definition for version %u")" (( "(") (string_literal ""duplicate definition for version %u"" (" """) (string_content "duplicate definition for version %u") (" """)) () ")")))) (; ";")) (expression_statement "FUN_001bd150(param_1,uVar4,uVar5);" (call_expression "FUN_001bd150(param_1,uVar4,uVar5)" (identifier "FUN_001bd150") (argument_list "(param_1,uVar4,uVar5)" (( "(") (identifier "param_1") (, ",") (identifier "uVar4") (, ",") (identifier "uVar5") () ")"))) (; ";")) (expression_statement "plVar3 = (long *)(*param_2 + uVar5 * 8);" (assignment_expression "plVar3 = (long *)(*param_2 + uVar5 * 8)" (identifier "plVar3") (= "=") (cast_expression "(long *)(*param_2 + uVar5 * 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + uVar5 * 8)" (( "(") (binary_expression "*param_2 + uVar5 * 8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (binary_expression "uVar5 * 8" (identifier "uVar5") (* "*") (number_literal "8"))) () ")")))) (; ";")) (} "}"))) (expression_statement "*plVar3 = param_4;" (assignment_expression "*plVar3 = param_4" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (= "=") (identifier "param_4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void set_version_map(Sized_dynobj<64,_true> * this, Version_map *
   version_map, uint ndx, char * name) */

void __thiscall
gold::Sized_dynobj<64,_true>::set_version_map
          (Sized_dynobj<64,_true> *this,Version_map *version_map,uint var_7,char *name)

{
  type_1 var_10;
  type_1 var_11;
  char *format;
  type_2 var_6;
  type_2 var_8;
  type_2 var_5;
  
  var_6 = (type_2)var_7;
  var_10 = (version_map->super__Vector_base<var_2*,_std::var_1<var_2*>var_3>var_4)._M_impl.
            _M_finish;
  var_11 = (version_map->super__Vector_base<var_2*,_std::var_1<var_2*>var_3>var_4)._M_impl.
            _M_start;
  var_5 = (long)var_10 - (long)var_11 >> 3;
  if (var_5 <= var_6) {
    var_8 = (type_2)(var_7 + 1);
    if (var_5 < var_8) {
      std::vector<var_2*,_std::var_1<var_2*>var_3>::var_9
                (version_map,var_8 - var_5);
      var_11 = (version_map->super__Vector_base<var_2*,_std::var_1<var_2*>var_3>var_4)._M_impl
                ._M_start;
    }
    else if ((var_8 < var_5) && (var_10 != var_11 + var_8)) {
      (version_map->super__Vector_base<var_2*,_std::var_1<var_2*>var_3>var_4)._M_impl._M_finish
           = var_11 + var_8;
    }
  }
  var_11 = var_11 + var_6;
  if (*var_11 != (char *)0x0) {
    format = (char *)var_12("duplicate definition for version %u");
    Object::var_13((type_3 *)this,format,var_6);
    var_11 = (version_map->super__Vector_base<var_2*,_std::var_1<var_2*>var_3>var_4)._M_impl.
              _M_start + var_6;
  }
  *var_11 = name;
  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: (pointer_declarator declarator: (identifier))) (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)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))

void MASKED(undefined8 param_1,long *param_2,uint param_3,long param_4)

{
  long lVar1;
  long lVar2;
  long *plVar3;
  undefined8 uVar4;
  ulong uVar5;
  ulong uVar6;
  ulong uVar7;
  
  uVar5 = (ulong)param_3;
  lVar2 = *param_2;
  uVar7 = param_2[1] - lVar2 >> 3;
  if (uVar7 <= uVar5) {
    uVar6 = (ulong)(param_3 + 1);
    if (uVar7 < uVar6) {
      FUN_002a0d90(param_2,uVar6 - uVar7);
      lVar2 = *param_2;
    }
    else if ((uVar6 < uVar7) && (lVar1 = lVar2 + uVar6 * 8, param_2[1] != lVar1)) {
      param_2[1] = lVar1;
    }
  }
  plVar3 = (long *)(lVar2 + uVar5 * 8);
  if (*plVar3 != 0) {
    uVar4 = gettext("duplicate definition for version %u");
    FUN_001bd150(param_1,uVar4,uVar5);
    plVar3 = (long *)(*param_2 + uVar5 * 8);
  }
  *plVar3 = param_4;
  return;
}

