
/* DWARF original name: _M_construct<char const*>
   DWARF original prototype: void
   _M_construct<char_const*>(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *
   this, char * __beg, char * __end, forward_iterator_tag param_4) */

void __thiscall
std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
_M_construct<char_const*>
          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__beg,
          int *__end,uint param_4)

{
  pointer pcVar1;
  int *piVar2;
  int *piVar3;
  undefined4 *puVar4;
  uint uVar5;
  size_type __dnew;
  
  if (__beg == (char *)0x0) {
    if (__end == (int *)0x0) {
      pcVar1 = (this->_M_dataplus)._M_p;
      this->_M_string_length = 0;
      *pcVar1 = '\0';
      return;
    }
    piVar2 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);
    (*(code *)PTR___throw_logic_error_004c12d8)();
    puVar4 = *(undefined4 **)(*piVar2 + (int)__beg * 4);
    if (puVar4 != (undefined4 *)0x0) {
      piVar3 = (int *)*puVar4;
      uVar5 = piVar3[3];
      do {
        if ((((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])) ||
           (piVar3 = (int *)*piVar3, piVar3 == (int *)0x0)) {
          return;
        }
        uVar5 = piVar3[3];
        if (piVar2[1] == 0) {
          trap(7);
        }
      } while (__beg == (char *)(uVar5 % (uint)piVar2[1]));
    }
    return;
  }
  uVar5 = (int)__end - (int)__beg;
  __dnew = uVar5;
  if (uVar5 < 0x10) {
    pcVar1 = (this->_M_dataplus)._M_p;
    if (uVar5 == 1) {
      *pcVar1 = *__beg;
      pcVar1 = (this->_M_dataplus)._M_p + 1;
    }
    else {
      pcVar1 = pcVar1 + uVar5;
      if (uVar5 != 0) {
        pcVar1 = pcVar1 + -uVar5;
        goto LAB_0013b7f0;
      }
    }
    this->_M_string_length = uVar5;
    *pcVar1 = '\0';
    return;
  }
  pcVar1 = (pointer)(*(code *)PTR__M_create_004c141c)(this,&__dnew,0);
  (this->_M_dataplus)._M_p = pcVar1;
  (this->field_2)._M_allocated_capacity = __dnew;
LAB_0013b7f0:
  (*(code *)PTR_memcpy_004c5ba8)(pcVar1,__beg,uVar5);
  pcVar1 = (this->_M_dataplus)._M_p;
  this->_M_string_length = __dnew;
  pcVar1[__dnew] = '\0';
  return;
}



/* void std::string::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)
    */

void __thiscall
std::string::_M_construct<char_const*>(string *this,undefined1 *param_1,int *param_2,uint param_4)

{
  undefined1 *puVar1;
  int iVar2;
  int *piVar3;
  int *piVar4;
  undefined4 *puVar5;
  uint uVar6;
  uint local_18 [2];
  
  if (param_1 == (undefined1 *)0x0) {
    if (param_2 == (int *)0x0) {
      *(undefined4 *)(this + 4) = 0;
      **(undefined1 **)this = 0;
      return;
    }
    piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);
    (*(code *)PTR___throw_logic_error_004c12d8)();
    puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);
    if (puVar5 != (undefined4 *)0x0) {
      piVar4 = (int *)*puVar5;
      uVar6 = piVar4[3];
      do {
        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||
           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {
          return;
        }
        uVar6 = piVar4[3];
        if (piVar3[1] == 0) {
          trap(7);
        }
      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));
    }
    return;
  }
  uVar6 = (int)param_2 - (int)param_1;
  local_18[0] = uVar6;
  if (uVar6 < 0x10) {
    if (uVar6 == 1) {
      **(undefined1 **)this = *param_1;
      puVar1 = (undefined1 *)(*(int *)this + 1);
    }
    else {
      puVar1 = *(undefined1 **)this + uVar6;
      if (uVar6 != 0) {
        iVar2 = (int)puVar1 - uVar6;
        goto LAB_0013b7f0;
      }
    }
    *(uint *)(this + 4) = uVar6;
    *puVar1 = 0;
    return;
  }
  iVar2 = (*(code *)PTR__M_create_004c141c)(this,local_18,0);
  *(int *)this = iVar2;
  *(uint *)(this + 8) = local_18[0];
LAB_0013b7f0:
  (*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6);
  *(uint *)(this + 4) = local_18[0];
  *(undefined1 *)(*(int *)this + local_18[0]) = 0;
  return;
}


lui gp,0x39
addiu gp,gp,-0x2508
addu gp,gp,t9
addiu sp,sp,-0x30
sw gp,0x10(sp)
sw s1,0x24(sp)
or s1,a0,zero
sw ra,0x2c(sp)
sw s2,0x28(sp)
sw s0,0x20(sp)
beq a1,zero,0x0013b82c
_sw a3,0x3c(sp)
subu s0,a2,a1
or s2,a1,zero
sltiu v0,s0,0x10
beq v0,zero,0x0013b7cc
_sw s0,0x18(sp)
li v1,0x1
bne s0,v1,0x0013b85c
_lw v0,0x0(a0)
lb v1,0x0(a1)
sb v1,0x0(v0)
lw s0,0x18(sp)
lw v0,0x0(a0)
addu v0,v0,s0
sw s0,0x4(s1)
sb zero,0x0(v0)
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7e24(gp)
or a2,zero,zero
jalr t9
_addiu a1,sp,0x18
lw v1,0x18(sp)
lw gp,0x10(sp)
sw v0,0x0(s1)
sw v1,0x8(s1)
lw t9,-0x3698(gp)
or a2,s0,zero
or a1,s2,zero
jalr t9
_or a0,v0,zero
lw s0,0x18(sp)
lw v0,0x0(s1)
sw s0,0x4(s1)
addu v0,v0,s0
sb zero,0x0(v0)
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
bne a2,zero,0x0013b870
_or s0,zero,zero
lw v0,0x0(a0)
sw s0,0x4(s1)
addu v0,v0,s0
sb zero,0x0(v0)
lw ra,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
beq s0,zero,0x0013b7ac
_addu v0,v0,s0
subu v0,v0,s0
b 0x0013b7f0
_lw t9,-0x3698(gp)
lw a0,-0x7fc4(gp)
lw t9,-0x7f68(gp)
jalr t9
_addiu a0,a0,-0xa00
(translation_unit "/* void std::string::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)\n    */\n\nvoid __thiscall\nstd::string::_M_construct<char_const*>(string *this,undefined1 *param_1,int *param_2,uint param_4)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  uint local_18 [2];\n  \n  if (param_1 == (undefined1 *)0x0) {\n    if (param_2 == (int *)0x0) {\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }\n    piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);\n    (*(code *)PTR___throw_logic_error_004c12d8)();\n    puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);\n    if (puVar5 != (undefined4 *)0x0) {\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }\n    return;\n  }\n  uVar6 = (int)param_2 - (int)param_1;\n  local_18[0] = uVar6;\n  if (uVar6 < 0x10) {\n    if (uVar6 == 1) {\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }\n    else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }\n    *(uint *)(this + 4) = uVar6;\n    *puVar1 = 0;\n    return;\n  }\n  iVar2 = (*(code *)PTR__M_create_004c141c)(this,local_18,0);\n  *(int *)this = iVar2;\n  *(uint *)(this + 8) = local_18[0];\nLAB_0013b7f0:\n  (*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6);\n  *(uint *)(this + 4) = local_18[0];\n  *(undefined1 *)(*(int *)this + local_18[0]) = 0;\n  return;\n}\n\n" comment (declaration "void __thiscall\nstd::string::_M_construct<char_const*>(string *this,undefined1 *param_1,int *param_2,uint param_4)\n\n{\n  undefined1 *puVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::_M_construct<char_const*>(string" identifier : : identifier : : identifier < identifier * > ( identifier) (pointer_declarator "*this" * identifier) , (ERROR "undefined1" identifier) (pointer_declarator "*param_1" * identifier) , (ERROR "int" identifier) (pointer_declarator "*param_2" * identifier) , (ERROR "uint param_4)\n\n{\n  undefined1" identifier identifier ) { identifier) (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint local_18 [2];" type_identifier (array_declarator "local_18 [2]" identifier [ number_literal ]) ;) (if_statement "if (param_1 == (undefined1 *)0x0) {\n    if (param_2 == (int *)0x0) {\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }\n    piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);\n    (*(code *)PTR___throw_logic_error_004c12d8)();\n    puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);\n    if (puVar5 != (undefined4 *)0x0) {\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }\n    return;\n  }" if (parenthesized_expression "(param_1 == (undefined1 *)0x0)" ( (binary_expression "param_1 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (param_2 == (int *)0x0) {\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }\n    piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);\n    (*(code *)PTR___throw_logic_error_004c12d8)();\n    puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);\n    if (puVar5 != (undefined4 *)0x0) {\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }\n    return;\n  }" { (if_statement "if (param_2 == (int *)0x0) {\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }" { (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined1 **)this = 0;" (assignment_expression "**(undefined1 **)this = 0" (pointer_expression "**(undefined1 **)this" * (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);" (assignment_expression "piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" identifier = (cast_expression "(int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" ( (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR___throw_logic_error_004c12d8)();" (call_expression "(*(code *)PTR___throw_logic_error_004c12d8)()" (parenthesized_expression "(*(code *)PTR___throw_logic_error_004c12d8)" ( (pointer_expression "*(code *)PTR___throw_logic_error_004c12d8" * (cast_expression "(code *)PTR___throw_logic_error_004c12d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);" (assignment_expression "puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4)" identifier = (pointer_expression "*(undefined4 **)(*piVar3 + (int)param_1 * 4)" * (cast_expression "(undefined4 **)(*piVar3 + (int)param_1 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + (int)param_1 * 4)" ( (binary_expression "*piVar3 + (int)param_1 * 4" (pointer_expression "*piVar3" * identifier) + (binary_expression "(int)param_1 * 4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) ))))) ;) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }" if (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }" { (expression_statement "piVar4 = (int *)*puVar5;" (assignment_expression "piVar4 = (int *)*puVar5" identifier = (cast_expression "(int *)*puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "uVar6 = piVar4[3];" (assignment_expression "uVar6 = piVar4[3]" identifier = (subscript_expression "piVar4[3]" identifier [ number_literal ])) ;) (do_statement "do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));" do (compound_statement "{\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      }" { (if_statement "if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }" if (parenthesized_expression "((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0))" ( (binary_expression "(((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)" (parenthesized_expression "(((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2]))" ( (binary_expression "((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])" (parenthesized_expression "((uVar6 == param_4) && (piVar4[1] == *param_2))" ( (binary_expression "(uVar6 == param_4) && (piVar4[1] == *param_2)" (parenthesized_expression "(uVar6 == param_4)" ( (binary_expression "uVar6 == param_4" identifier == identifier) )) && (parenthesized_expression "(piVar4[1] == *param_2)" ( (binary_expression "piVar4[1] == *param_2" (subscript_expression "piVar4[1]" identifier [ number_literal ]) == (pointer_expression "*param_2" * identifier)) ))) )) && (parenthesized_expression "(param_2[1] == piVar4[2])" ( (binary_expression "param_2[1] == piVar4[2]" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (subscript_expression "piVar4[2]" identifier [ number_literal ])) ))) )) || (parenthesized_expression "(piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)" ( (comma_expression "piVar4 = (int *)*piVar4, piVar4 == (int *)0x0" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) , (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) (expression_statement "uVar6 = piVar4[3];" (assignment_expression "uVar6 = piVar4[3]" identifier = (subscript_expression "piVar4[3]" identifier [ number_literal ])) ;) (if_statement "if (piVar3[1] == 0) {\n          trap(7);\n        }" if (parenthesized_expression "(piVar3[1] == 0)" ( (binary_expression "piVar3[1] == 0" (subscript_expression "piVar3[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          trap(7);\n        }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) }) while (parenthesized_expression "(param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]))" ( (binary_expression "param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1])" identifier == (cast_expression "(undefined1 *)(uVar6 % (uint)piVar3[1])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar6 % (uint)piVar3[1])" ( (binary_expression "uVar6 % (uint)piVar3[1]" identifier % (cast_expression "(uint)piVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) )))) )) ;) })) (return_statement "return;" return ;) })) (expression_statement "uVar6 = (int)param_2 - (int)param_1;" (assignment_expression "uVar6 = (int)param_2 - (int)param_1" identifier = (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_18[0] = uVar6;" (assignment_expression "local_18[0] = uVar6" (subscript_expression "local_18[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar6 < 0x10) {\n    if (uVar6 == 1) {\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }\n    else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }\n    *(uint *)(this + 4) = uVar6;\n    *puVar1 = 0;\n    return;\n  }" if (parenthesized_expression "(uVar6 < 0x10)" ( (binary_expression "uVar6 < 0x10" identifier < number_literal) )) (compound_statement "{\n    if (uVar6 == 1) {\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }\n    else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }\n    *(uint *)(this + 4) = uVar6;\n    *puVar1 = 0;\n    return;\n  }" { (if_statement "if (uVar6 == 1) {\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }\n    else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }" if (parenthesized_expression "(uVar6 == 1)" ( (binary_expression "uVar6 == 1" identifier == number_literal) )) (compound_statement "{\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }" { (expression_statement "**(undefined1 **)this = *param_1;" (assignment_expression "**(undefined1 **)this = *param_1" (pointer_expression "**(undefined1 **)this" * (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar1 = (undefined1 *)(*(int *)this + 1);" (assignment_expression "puVar1 = (undefined1 *)(*(int *)this + 1)" identifier = (cast_expression "(undefined1 *)(*(int *)this + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + 1)" ( (binary_expression "*(int *)this + 1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ;) }) (else_clause "else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }" else (compound_statement "{\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }" { (expression_statement "puVar1 = *(undefined1 **)this + uVar6;" (assignment_expression "puVar1 = *(undefined1 **)this + uVar6" identifier = (binary_expression "*(undefined1 **)this + uVar6" (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) + identifier)) ;) (if_statement "if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }" { (expression_statement "iVar2 = (int)puVar1 - uVar6;" (assignment_expression "iVar2 = (int)puVar1 - uVar6" identifier = (binary_expression "(int)puVar1 - uVar6" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (goto_statement "goto LAB_0013b7f0;" goto statement_identifier ;) })) }))) (expression_statement "*(uint *)(this + 4) = uVar6;" (assignment_expression "*(uint *)(this + 4) = uVar6" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = (*(code *)PTR__M_create_004c141c)(this,local_18,0);" (assignment_expression "iVar2 = (*(code *)PTR__M_create_004c141c)(this,local_18,0)" identifier = (call_expression "(*(code *)PTR__M_create_004c141c)(this,local_18,0)" (parenthesized_expression "(*(code *)PTR__M_create_004c141c)" ( (pointer_expression "*(code *)PTR__M_create_004c141c" * (cast_expression "(code *)PTR__M_create_004c141c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this,local_18,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(uint *)(this + 8) = local_18[0];" (assignment_expression "*(uint *)(this + 8) = local_18[0]" (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (subscript_expression "local_18[0]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0013b7f0:\n  (*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6);" (call_expression "(*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6)" (parenthesized_expression "(*(code *)PTR_memcpy_004c5ba8)" ( (pointer_expression "*(code *)PTR_memcpy_004c5ba8" * (cast_expression "(code *)PTR_memcpy_004c5ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,param_1,uVar6)" ( identifier , identifier , identifier ))) ;)) (expression_statement "*(uint *)(this + 4) = local_18[0];" (assignment_expression "*(uint *)(this + 4) = local_18[0]" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (subscript_expression "local_18[0]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(*(int *)this + local_18[0]) = 0;" (assignment_expression "*(undefined1 *)(*(int *)this + local_18[0]) = 0" (pointer_expression "*(undefined1 *)(*(int *)this + local_18[0])" * (cast_expression "(undefined1 *)(*(int *)this + local_18[0])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + local_18[0])" ( (binary_expression "*(int *)this + local_18[0]" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (subscript_expression "local_18[0]" identifier [ number_literal ])) )))) = number_literal) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "/* DWARF original name: _M_construct<char const*>\n   DWARF original prototype: void\n   _M_construct<char_const*>(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *\n   this, char * __beg, char * __end, forward_iterator_tag param_4) */\n\nvoid __thiscall\nstd::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n_M_construct<char_const*>\n          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__beg,\n          int *__end,uint param_4)\n\n{\n  pointer pcVar1;\n  int *piVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  uint uVar5;\n  size_type __dnew;\n  \n  if (__beg == (char *)0x0) {\n    if (__end == (int *)0x0) {\n      pcVar1 = (this->_M_dataplus)._M_p;\n      this->_M_string_length = 0;\n      *pcVar1 = '\0';\n      return;\n    }\n    piVar2 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);\n    (*(code *)PTR___throw_logic_error_004c12d8)();\n    puVar4 = *(undefined4 **)(*piVar2 + (int)__beg * 4);\n    if (puVar4 != (undefined4 *)0x0) {\n      piVar3 = (int *)*puVar4;\n      uVar5 = piVar3[3];\n      do {\n        if ((((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])) ||\n           (piVar3 = (int *)*piVar3, piVar3 == (int *)0x0)) {\n          return;\n        }\n        uVar5 = piVar3[3];\n        if (piVar2[1] == 0) {\n          trap(7);\n        }\n      } while (__beg == (char *)(uVar5 % (uint)piVar2[1]));\n    }\n    return;\n  }\n  uVar5 = (int)__end - (int)__beg;\n  __dnew = uVar5;\n  if (uVar5 < 0x10) {\n    pcVar1 = (this->_M_dataplus)._M_p;\n    if (uVar5 == 1) {\n      *pcVar1 = *__beg;\n      pcVar1 = (this->_M_dataplus)._M_p + 1;\n    }\n    else {\n      pcVar1 = pcVar1 + uVar5;\n      if (uVar5 != 0) {\n        pcVar1 = pcVar1 + -uVar5;\n        goto LAB_0013b7f0;\n      }\n    }\n    this->_M_string_length = uVar5;\n    *pcVar1 = '\0';\n    return;\n  }\n  pcVar1 = (pointer)(*(code *)PTR__M_create_004c141c)(this,&__dnew,0);\n  (this->_M_dataplus)._M_p = pcVar1;\n  (this->field_2)._M_allocated_capacity = __dnew;\nLAB_0013b7f0:\n  (*(code *)PTR_memcpy_004c5ba8)(pcVar1,__beg,uVar5);\n  pcVar1 = (this->_M_dataplus)._M_p;\n  this->_M_string_length = __dnew;\n  pcVar1[__dnew] = '\0';\n  return;\n}\n\n" comment (declaration "void __thiscall\nstd::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::\n_M_construct<char_const*>\n          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__beg,\n          int *__end,uint param_4)\n\n{\n  pointer pcVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::__cxx11::" identifier : : identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "_std::" identifier : :) identifier (ERROR "<char>" < primitive_type >) , (ERROR "_std::allocator<char>_>::\n_M_construct<char_const*>\n          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__beg,\n          int *__end,uint param_4)\n\n{\n  pointer" identifier : : identifier < primitive_type > identifier > : : identifier < (function_declarator "char_const*>\n          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__beg,\n          int *__end,uint param_4)" identifier (ERROR "*>" * >) (parameter_list "(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *__beg,\n          int *__end,uint param_4)" ( (parameter_declaration "basic_string" type_identifier) (ERROR "<char" < primitive_type) , (parameter_declaration "_std::char_traits" type_identifier (ERROR "::" : :) identifier) (ERROR "<char>" < primitive_type >) , (parameter_declaration "_std::allocator<char>_> *this" type_identifier (ERROR "::allocator<char>_>" : : identifier < primitive_type > identifier >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *__beg" primitive_type (pointer_declarator "*__beg" * identifier)) , (parameter_declaration "int *__end" primitive_type (pointer_declarator "*__end" * identifier)) , (parameter_declaration "uint param_4" type_identifier identifier) ))) { identifier) identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "size_type __dnew;" type_identifier identifier ;) (if_statement "if (__beg == (char *)0x0) {\n    if (__end == (int *)0x0) {\n      pcVar1 = (this->_M_dataplus)._M_p;\n      this->_M_string_length = 0;\n      *pcVar1 = '\0';\n      return;\n    }\n    piVar2 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);\n    (*(code *)PTR___throw_logic_error_004c12d8)();\n    puVar4 = *(undefined4 **)(*piVar2 + (int)__beg * 4);\n    if (puVar4 != (undefined4 *)0x0) {\n      piVar3 = (int *)*puVar4;\n      uVar5 = piVar3[3];\n      do {\n        if ((((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])) ||\n           (piVar3 = (int *)*piVar3, piVar3 == (int *)0x0)) {\n          return;\n        }\n        uVar5 = piVar3[3];\n        if (piVar2[1] == 0) {\n          trap(7);\n        }\n      } while (__beg == (char *)(uVar5 % (uint)piVar2[1]));\n    }\n    return;\n  }" if (parenthesized_expression "(__beg == (char *)0x0)" ( (binary_expression "__beg == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (__end == (int *)0x0) {\n      pcVar1 = (this->_M_dataplus)._M_p;\n      this->_M_string_length = 0;\n      *pcVar1 = '\0';\n      return;\n    }\n    piVar2 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);\n    (*(code *)PTR___throw_logic_error_004c12d8)();\n    puVar4 = *(undefined4 **)(*piVar2 + (int)__beg * 4);\n    if (puVar4 != (undefined4 *)0x0) {\n      piVar3 = (int *)*puVar4;\n      uVar5 = piVar3[3];\n      do {\n        if ((((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])) ||\n           (piVar3 = (int *)*piVar3, piVar3 == (int *)0x0)) {\n          return;\n        }\n        uVar5 = piVar3[3];\n        if (piVar2[1] == 0) {\n          trap(7);\n        }\n      } while (__beg == (char *)(uVar5 % (uint)piVar2[1]));\n    }\n    return;\n  }" { (if_statement "if (__end == (int *)0x0) {\n      pcVar1 = (this->_M_dataplus)._M_p;\n      this->_M_string_length = 0;\n      *pcVar1 = '\0';\n      return;\n    }" if (parenthesized_expression "(__end == (int *)0x0)" ( (binary_expression "__end == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar1 = (this->_M_dataplus)._M_p;\n      this->_M_string_length = 0;\n      *pcVar1 = '\0';\n      return;\n    }" { (expression_statement "pcVar1 = (this->_M_dataplus)._M_p;" (assignment_expression "pcVar1 = (this->_M_dataplus)._M_p" identifier = (field_expression "(this->_M_dataplus)._M_p" (parenthesized_expression "(this->_M_dataplus)" ( (field_expression "this->_M_dataplus" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "this->_M_string_length = 0;" (assignment_expression "this->_M_string_length = 0" (field_expression "this->_M_string_length" identifier -> field_identifier) = number_literal) ;) (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (expression_statement "piVar2 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);" (assignment_expression "piVar2 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" identifier = (cast_expression "(int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" ( (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR___throw_logic_error_004c12d8)();" (call_expression "(*(code *)PTR___throw_logic_error_004c12d8)()" (parenthesized_expression "(*(code *)PTR___throw_logic_error_004c12d8)" ( (pointer_expression "*(code *)PTR___throw_logic_error_004c12d8" * (cast_expression "(code *)PTR___throw_logic_error_004c12d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar4 = *(undefined4 **)(*piVar2 + (int)__beg * 4);" (assignment_expression "puVar4 = *(undefined4 **)(*piVar2 + (int)__beg * 4)" identifier = (pointer_expression "*(undefined4 **)(*piVar2 + (int)__beg * 4)" * (cast_expression "(undefined4 **)(*piVar2 + (int)__beg * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar2 + (int)__beg * 4)" ( (binary_expression "*piVar2 + (int)__beg * 4" (pointer_expression "*piVar2" * identifier) + (binary_expression "(int)__beg * 4" (cast_expression "(int)__beg" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) ))))) ;) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n      piVar3 = (int *)*puVar4;\n      uVar5 = piVar3[3];\n      do {\n        if ((((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])) ||\n           (piVar3 = (int *)*piVar3, piVar3 == (int *)0x0)) {\n          return;\n        }\n        uVar5 = piVar3[3];\n        if (piVar2[1] == 0) {\n          trap(7);\n        }\n      } while (__beg == (char *)(uVar5 % (uint)piVar2[1]));\n    }" if (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" ( (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar3 = (int *)*puVar4;\n      uVar5 = piVar3[3];\n      do {\n        if ((((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])) ||\n           (piVar3 = (int *)*piVar3, piVar3 == (int *)0x0)) {\n          return;\n        }\n        uVar5 = piVar3[3];\n        if (piVar2[1] == 0) {\n          trap(7);\n        }\n      } while (__beg == (char *)(uVar5 % (uint)piVar2[1]));\n    }" { (expression_statement "piVar3 = (int *)*puVar4;" (assignment_expression "piVar3 = (int *)*puVar4" identifier = (cast_expression "(int *)*puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar4" * identifier))) ;) (expression_statement "uVar5 = piVar3[3];" (assignment_expression "uVar5 = piVar3[3]" identifier = (subscript_expression "piVar3[3]" identifier [ number_literal ])) ;) (do_statement "do {\n        if ((((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])) ||\n           (piVar3 = (int *)*piVar3, piVar3 == (int *)0x0)) {\n          return;\n        }\n        uVar5 = piVar3[3];\n        if (piVar2[1] == 0) {\n          trap(7);\n        }\n      } while (__beg == (char *)(uVar5 % (uint)piVar2[1]));" do (compound_statement "{\n        if ((((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])) ||\n           (piVar3 = (int *)*piVar3, piVar3 == (int *)0x0)) {\n          return;\n        }\n        uVar5 = piVar3[3];\n        if (piVar2[1] == 0) {\n          trap(7);\n        }\n      }" { (if_statement "if ((((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])) ||\n           (piVar3 = (int *)*piVar3, piVar3 == (int *)0x0)) {\n          return;\n        }" if (parenthesized_expression "((((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])) ||\n           (piVar3 = (int *)*piVar3, piVar3 == (int *)0x0))" ( (binary_expression "(((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])) ||\n           (piVar3 = (int *)*piVar3, piVar3 == (int *)0x0)" (parenthesized_expression "(((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2]))" ( (binary_expression "((uVar5 == param_4) && (piVar3[1] == *__end)) && (__end[1] == piVar3[2])" (parenthesized_expression "((uVar5 == param_4) && (piVar3[1] == *__end))" ( (binary_expression "(uVar5 == param_4) && (piVar3[1] == *__end)" (parenthesized_expression "(uVar5 == param_4)" ( (binary_expression "uVar5 == param_4" identifier == identifier) )) && (parenthesized_expression "(piVar3[1] == *__end)" ( (binary_expression "piVar3[1] == *__end" (subscript_expression "piVar3[1]" identifier [ number_literal ]) == (pointer_expression "*__end" * identifier)) ))) )) && (parenthesized_expression "(__end[1] == piVar3[2])" ( (binary_expression "__end[1] == piVar3[2]" (subscript_expression "__end[1]" identifier [ number_literal ]) == (subscript_expression "piVar3[2]" identifier [ number_literal ])) ))) )) || (parenthesized_expression "(piVar3 = (int *)*piVar3, piVar3 == (int *)0x0)" ( (comma_expression "piVar3 = (int *)*piVar3, piVar3 == (int *)0x0" (assignment_expression "piVar3 = (int *)*piVar3" identifier = (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) , (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) (expression_statement "uVar5 = piVar3[3];" (assignment_expression "uVar5 = piVar3[3]" identifier = (subscript_expression "piVar3[3]" identifier [ number_literal ])) ;) (if_statement "if (piVar2[1] == 0) {\n          trap(7);\n        }" if (parenthesized_expression "(piVar2[1] == 0)" ( (binary_expression "piVar2[1] == 0" (subscript_expression "piVar2[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          trap(7);\n        }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) }) while (parenthesized_expression "(__beg == (char *)(uVar5 % (uint)piVar2[1]))" ( (binary_expression "__beg == (char *)(uVar5 % (uint)piVar2[1])" identifier == (cast_expression "(char *)(uVar5 % (uint)piVar2[1])" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar5 % (uint)piVar2[1])" ( (binary_expression "uVar5 % (uint)piVar2[1]" identifier % (cast_expression "(uint)piVar2[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar2[1]" identifier [ number_literal ]))) )))) )) ;) })) (return_statement "return;" return ;) })) (expression_statement "uVar5 = (int)__end - (int)__beg;" (assignment_expression "uVar5 = (int)__end - (int)__beg" identifier = (binary_expression "(int)__end - (int)__beg" (cast_expression "(int)__end" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)__beg" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "__dnew = uVar5;" (assignment_expression "__dnew = uVar5" identifier = identifier) ;) (if_statement "if (uVar5 < 0x10) {\n    pcVar1 = (this->_M_dataplus)._M_p;\n    if (uVar5 == 1) {\n      *pcVar1 = *__beg;\n      pcVar1 = (this->_M_dataplus)._M_p + 1;\n    }\n    else {\n      pcVar1 = pcVar1 + uVar5;\n      if (uVar5 != 0) {\n        pcVar1 = pcVar1 + -uVar5;\n        goto LAB_0013b7f0;\n      }\n    }\n    this->_M_string_length = uVar5;\n    *pcVar1 = '\0';\n    return;\n  }" if (parenthesized_expression "(uVar5 < 0x10)" ( (binary_expression "uVar5 < 0x10" identifier < number_literal) )) (compound_statement "{\n    pcVar1 = (this->_M_dataplus)._M_p;\n    if (uVar5 == 1) {\n      *pcVar1 = *__beg;\n      pcVar1 = (this->_M_dataplus)._M_p + 1;\n    }\n    else {\n      pcVar1 = pcVar1 + uVar5;\n      if (uVar5 != 0) {\n        pcVar1 = pcVar1 + -uVar5;\n        goto LAB_0013b7f0;\n      }\n    }\n    this->_M_string_length = uVar5;\n    *pcVar1 = '\0';\n    return;\n  }" { (expression_statement "pcVar1 = (this->_M_dataplus)._M_p;" (assignment_expression "pcVar1 = (this->_M_dataplus)._M_p" identifier = (field_expression "(this->_M_dataplus)._M_p" (parenthesized_expression "(this->_M_dataplus)" ( (field_expression "this->_M_dataplus" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (uVar5 == 1) {\n      *pcVar1 = *__beg;\n      pcVar1 = (this->_M_dataplus)._M_p + 1;\n    }\n    else {\n      pcVar1 = pcVar1 + uVar5;\n      if (uVar5 != 0) {\n        pcVar1 = pcVar1 + -uVar5;\n        goto LAB_0013b7f0;\n      }\n    }" if (parenthesized_expression "(uVar5 == 1)" ( (binary_expression "uVar5 == 1" identifier == number_literal) )) (compound_statement "{\n      *pcVar1 = *__beg;\n      pcVar1 = (this->_M_dataplus)._M_p + 1;\n    }" { (expression_statement "*pcVar1 = *__beg;" (assignment_expression "*pcVar1 = *__beg" (pointer_expression "*pcVar1" * identifier) = (pointer_expression "*__beg" * identifier)) ;) (expression_statement "pcVar1 = (this->_M_dataplus)._M_p + 1;" (assignment_expression "pcVar1 = (this->_M_dataplus)._M_p + 1" identifier = (binary_expression "(this->_M_dataplus)._M_p + 1" (field_expression "(this->_M_dataplus)._M_p" (parenthesized_expression "(this->_M_dataplus)" ( (field_expression "this->_M_dataplus" identifier -> field_identifier) )) . field_identifier) + number_literal)) ;) }) (else_clause "else {\n      pcVar1 = pcVar1 + uVar5;\n      if (uVar5 != 0) {\n        pcVar1 = pcVar1 + -uVar5;\n        goto LAB_0013b7f0;\n      }\n    }" else (compound_statement "{\n      pcVar1 = pcVar1 + uVar5;\n      if (uVar5 != 0) {\n        pcVar1 = pcVar1 + -uVar5;\n        goto LAB_0013b7f0;\n      }\n    }" { (expression_statement "pcVar1 = pcVar1 + uVar5;" (assignment_expression "pcVar1 = pcVar1 + uVar5" identifier = (binary_expression "pcVar1 + uVar5" identifier + identifier)) ;) (if_statement "if (uVar5 != 0) {\n        pcVar1 = pcVar1 + -uVar5;\n        goto LAB_0013b7f0;\n      }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar1 = pcVar1 + -uVar5;\n        goto LAB_0013b7f0;\n      }" { (expression_statement "pcVar1 = pcVar1 + -uVar5;" (assignment_expression "pcVar1 = pcVar1 + -uVar5" identifier = (binary_expression "pcVar1 + -uVar5" identifier + (unary_expression "-uVar5" - identifier))) ;) (goto_statement "goto LAB_0013b7f0;" goto statement_identifier ;) })) }))) (expression_statement "this->_M_string_length = uVar5;" (assignment_expression "this->_M_string_length = uVar5" (field_expression "this->_M_string_length" identifier -> field_identifier) = identifier) ;) (expression_statement "*pcVar1 = '\0';" (assignment_expression "*pcVar1 = '\0'" (pointer_expression "*pcVar1" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })) (expression_statement "pcVar1 = (pointer)(*(code *)PTR__M_create_004c141c)(this,&__dnew,0);" (assignment_expression "pcVar1 = (pointer)(*(code *)PTR__M_create_004c141c)(this,&__dnew,0)" identifier = (call_expression "(pointer)(*(code *)PTR__M_create_004c141c)(this,&__dnew,0)" (call_expression "(pointer)(*(code *)PTR__M_create_004c141c)" (parenthesized_expression "(pointer)" ( identifier )) (argument_list "(*(code *)PTR__M_create_004c141c)" ( (pointer_expression "*(code *)PTR__M_create_004c141c" * (cast_expression "(code *)PTR__M_create_004c141c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(this,&__dnew,0)" ( identifier , (pointer_expression "&__dnew" & identifier) , number_literal )))) ;) (expression_statement "(this->_M_dataplus)._M_p = pcVar1;" (assignment_expression "(this->_M_dataplus)._M_p = pcVar1" (field_expression "(this->_M_dataplus)._M_p" (parenthesized_expression "(this->_M_dataplus)" ( (field_expression "this->_M_dataplus" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(this->field_2)._M_allocated_capacity = __dnew;" (assignment_expression "(this->field_2)._M_allocated_capacity = __dnew" (field_expression "(this->field_2)._M_allocated_capacity" (parenthesized_expression "(this->field_2)" ( (field_expression "this->field_2" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (labeled_statement "LAB_0013b7f0:\n  (*(code *)PTR_memcpy_004c5ba8)(pcVar1,__beg,uVar5);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_004c5ba8)(pcVar1,__beg,uVar5);" (call_expression "(*(code *)PTR_memcpy_004c5ba8)(pcVar1,__beg,uVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_004c5ba8)" ( (pointer_expression "*(code *)PTR_memcpy_004c5ba8" * (cast_expression "(code *)PTR_memcpy_004c5ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar1,__beg,uVar5)" ( identifier , identifier , identifier ))) ;)) (expression_statement "pcVar1 = (this->_M_dataplus)._M_p;" (assignment_expression "pcVar1 = (this->_M_dataplus)._M_p" identifier = (field_expression "(this->_M_dataplus)._M_p" (parenthesized_expression "(this->_M_dataplus)" ( (field_expression "this->_M_dataplus" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "this->_M_string_length = __dnew;" (assignment_expression "this->_M_string_length = __dnew" (field_expression "this->_M_string_length" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar1[__dnew] = '\0';" (assignment_expression "pcVar1[__dnew] = '\0'" (subscript_expression "pcVar1[__dnew]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "void __thiscall\nstd::string::_M_construct<char_const*>(string *this,undefined1 *param_1,int *param_2,uint param_4)\n\n{\n  undefined1 *puVar1;\n  int iVar2;\n  int *piVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  uint uVar6;\n  uint local_18 [2];\n  \n  if (param_1 == (undefined1 *)0x0) {\n    if (param_2 == (int *)0x0) {\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }\n    piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);\n    (*(code *)PTR___throw_logic_error_004c12d8)();\n    puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);\n    if (puVar5 != (undefined4 *)0x0) {\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }\n    return;\n  }\n  uVar6 = (int)param_2 - (int)param_1;\n  local_18[0] = uVar6;\n  if (uVar6 < 0x10) {\n    if (uVar6 == 1) {\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }\n    else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }\n    *(uint *)(this + 4) = uVar6;\n    *puVar1 = 0;\n    return;\n  }\n  iVar2 = (*(code *)PTR__M_create_004c141c)(this,local_18,0);\n  *(int *)this = iVar2;\n  *(uint *)(this + 8) = local_18[0];\nLAB_0013b7f0:\n  (*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6);\n  *(uint *)(this + 4) = local_18[0];\n  *(undefined1 *)(*(int *)this + local_18[0]) = 0;\n  return;\n}\n\n" (declaration "void __thiscall\nstd::string::_M_construct<char_const*>(string *this,undefined1 *param_1,int *param_2,uint param_4)\n\n{\n  undefined1 *puVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::_M_construct<char_const*>(string" identifier : : identifier : : identifier < identifier * > ( identifier) (pointer_declarator "*this" * identifier) , (ERROR "undefined1" identifier) (pointer_declarator "*param_1" * identifier) , (ERROR "int" identifier) (pointer_declarator "*param_2" * identifier) , (ERROR "uint param_4)\n\n{\n  undefined1" identifier identifier ) { identifier) (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint local_18 [2];" type_identifier (array_declarator "local_18 [2]" identifier [ number_literal ]) ;) (if_statement "if (param_1 == (undefined1 *)0x0) {\n    if (param_2 == (int *)0x0) {\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }\n    piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);\n    (*(code *)PTR___throw_logic_error_004c12d8)();\n    puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);\n    if (puVar5 != (undefined4 *)0x0) {\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }\n    return;\n  }" if (parenthesized_expression "(param_1 == (undefined1 *)0x0)" ( (binary_expression "param_1 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (param_2 == (int *)0x0) {\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }\n    piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);\n    (*(code *)PTR___throw_logic_error_004c12d8)();\n    puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);\n    if (puVar5 != (undefined4 *)0x0) {\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }\n    return;\n  }" { (if_statement "if (param_2 == (int *)0x0) {\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }" { (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined1 **)this = 0;" (assignment_expression "**(undefined1 **)this = 0" (pointer_expression "**(undefined1 **)this" * (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);" (assignment_expression "piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" identifier = (cast_expression "(int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" ( (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR___throw_logic_error_004c12d8)();" (call_expression "(*(code *)PTR___throw_logic_error_004c12d8)()" (parenthesized_expression "(*(code *)PTR___throw_logic_error_004c12d8)" ( (pointer_expression "*(code *)PTR___throw_logic_error_004c12d8" * (cast_expression "(code *)PTR___throw_logic_error_004c12d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);" (assignment_expression "puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4)" identifier = (pointer_expression "*(undefined4 **)(*piVar3 + (int)param_1 * 4)" * (cast_expression "(undefined4 **)(*piVar3 + (int)param_1 * 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + (int)param_1 * 4)" ( (binary_expression "*piVar3 + (int)param_1 * 4" (pointer_expression "*piVar3" * identifier) + (binary_expression "(int)param_1 * 4" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) ))))) ;) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }" if (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }" { (expression_statement "piVar4 = (int *)*puVar5;" (assignment_expression "piVar4 = (int *)*puVar5" identifier = (cast_expression "(int *)*puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (expression_statement "uVar6 = piVar4[3];" (assignment_expression "uVar6 = piVar4[3]" identifier = (subscript_expression "piVar4[3]" identifier [ number_literal ])) ;) (do_statement "do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));" do (compound_statement "{\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      }" { (if_statement "if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }" if (parenthesized_expression "((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0))" ( (binary_expression "(((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)" (parenthesized_expression "(((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2]))" ( (binary_expression "((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])" (parenthesized_expression "((uVar6 == param_4) && (piVar4[1] == *param_2))" ( (binary_expression "(uVar6 == param_4) && (piVar4[1] == *param_2)" (parenthesized_expression "(uVar6 == param_4)" ( (binary_expression "uVar6 == param_4" identifier == identifier) )) && (parenthesized_expression "(piVar4[1] == *param_2)" ( (binary_expression "piVar4[1] == *param_2" (subscript_expression "piVar4[1]" identifier [ number_literal ]) == (pointer_expression "*param_2" * identifier)) ))) )) && (parenthesized_expression "(param_2[1] == piVar4[2])" ( (binary_expression "param_2[1] == piVar4[2]" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (subscript_expression "piVar4[2]" identifier [ number_literal ])) ))) )) || (parenthesized_expression "(piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)" ( (comma_expression "piVar4 = (int *)*piVar4, piVar4 == (int *)0x0" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) , (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) (expression_statement "uVar6 = piVar4[3];" (assignment_expression "uVar6 = piVar4[3]" identifier = (subscript_expression "piVar4[3]" identifier [ number_literal ])) ;) (if_statement "if (piVar3[1] == 0) {\n          trap(7);\n        }" if (parenthesized_expression "(piVar3[1] == 0)" ( (binary_expression "piVar3[1] == 0" (subscript_expression "piVar3[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          trap(7);\n        }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) }) while (parenthesized_expression "(param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]))" ( (binary_expression "param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1])" identifier == (cast_expression "(undefined1 *)(uVar6 % (uint)piVar3[1])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar6 % (uint)piVar3[1])" ( (binary_expression "uVar6 % (uint)piVar3[1]" identifier % (cast_expression "(uint)piVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar3[1]" identifier [ number_literal ]))) )))) )) ;) })) (return_statement "return;" return ;) })) (expression_statement "uVar6 = (int)param_2 - (int)param_1;" (assignment_expression "uVar6 = (int)param_2 - (int)param_1" identifier = (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (expression_statement "local_18[0] = uVar6;" (assignment_expression "local_18[0] = uVar6" (subscript_expression "local_18[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (uVar6 < 0x10) {\n    if (uVar6 == 1) {\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }\n    else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }\n    *(uint *)(this + 4) = uVar6;\n    *puVar1 = 0;\n    return;\n  }" if (parenthesized_expression "(uVar6 < 0x10)" ( (binary_expression "uVar6 < 0x10" identifier < number_literal) )) (compound_statement "{\n    if (uVar6 == 1) {\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }\n    else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }\n    *(uint *)(this + 4) = uVar6;\n    *puVar1 = 0;\n    return;\n  }" { (if_statement "if (uVar6 == 1) {\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }\n    else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }" if (parenthesized_expression "(uVar6 == 1)" ( (binary_expression "uVar6 == 1" identifier == number_literal) )) (compound_statement "{\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }" { (expression_statement "**(undefined1 **)this = *param_1;" (assignment_expression "**(undefined1 **)this = *param_1" (pointer_expression "**(undefined1 **)this" * (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "puVar1 = (undefined1 *)(*(int *)this + 1);" (assignment_expression "puVar1 = (undefined1 *)(*(int *)this + 1)" identifier = (cast_expression "(undefined1 *)(*(int *)this + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + 1)" ( (binary_expression "*(int *)this + 1" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) ;) }) (else_clause "else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }" else (compound_statement "{\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }" { (expression_statement "puVar1 = *(undefined1 **)this + uVar6;" (assignment_expression "puVar1 = *(undefined1 **)this + uVar6" identifier = (binary_expression "*(undefined1 **)this + uVar6" (pointer_expression "*(undefined1 **)this" * (cast_expression "(undefined1 **)this" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) + identifier)) ;) (if_statement "if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }" if (parenthesized_expression "(uVar6 != 0)" ( (binary_expression "uVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }" { (expression_statement "iVar2 = (int)puVar1 - uVar6;" (assignment_expression "iVar2 = (int)puVar1 - uVar6" identifier = (binary_expression "(int)puVar1 - uVar6" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) - identifier)) ;) (goto_statement "goto LAB_0013b7f0;" goto statement_identifier ;) })) }))) (expression_statement "*(uint *)(this + 4) = uVar6;" (assignment_expression "*(uint *)(this + 4) = uVar6" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (return_statement "return;" return ;) })) (expression_statement "iVar2 = (*(code *)PTR__M_create_004c141c)(this,local_18,0);" (assignment_expression "iVar2 = (*(code *)PTR__M_create_004c141c)(this,local_18,0)" identifier = (call_expression "(*(code *)PTR__M_create_004c141c)(this,local_18,0)" (parenthesized_expression "(*(code *)PTR__M_create_004c141c)" ( (pointer_expression "*(code *)PTR__M_create_004c141c" * (cast_expression "(code *)PTR__M_create_004c141c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(this,local_18,0)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(uint *)(this + 8) = local_18[0];" (assignment_expression "*(uint *)(this + 8) = local_18[0]" (pointer_expression "*(uint *)(this + 8)" * (cast_expression "(uint *)(this + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (subscript_expression "local_18[0]" identifier [ number_literal ])) ;) (labeled_statement "LAB_0013b7f0:\n  (*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6);" (call_expression "(*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6)" (parenthesized_expression "(*(code *)PTR_memcpy_004c5ba8)" ( (pointer_expression "*(code *)PTR_memcpy_004c5ba8" * (cast_expression "(code *)PTR_memcpy_004c5ba8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,param_1,uVar6)" ( identifier , identifier , identifier ))) ;)) (expression_statement "*(uint *)(this + 4) = local_18[0];" (assignment_expression "*(uint *)(this + 4) = local_18[0]" (pointer_expression "*(uint *)(this + 4)" * (cast_expression "(uint *)(this + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (subscript_expression "local_18[0]" identifier [ number_literal ])) ;) (expression_statement "*(undefined1 *)(*(int *)this + local_18[0]) = 0;" (assignment_expression "*(undefined1 *)(*(int *)this + local_18[0]) = 0" (pointer_expression "*(undefined1 *)(*(int *)this + local_18[0])" * (cast_expression "(undefined1 *)(*(int *)this + local_18[0])" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + local_18[0])" ( (binary_expression "*(int *)this + local_18[0]" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + (subscript_expression "local_18[0]" identifier [ number_literal ])) )))) = number_literal) ;) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit (declaration TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : : IDENT < IDENT * > ( IDENT) (pointer_declarator * IDENT) , (ERROR IDENT) (pointer_declarator * IDENT) , (ERROR IDENT) (pointer_declarator * IDENT) , (ERROR IDENT IDENT ) { IDENT) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (pointer_expression * IDENT)) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ])) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) }) while (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT % (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )))) )) ;) })) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - IDENT)) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + (subscript_expression IDENT [ LIT ])) )))) = LIT) ;) (return_statement return ;) (ERROR }))
(declaration "void __thiscall\nstd::string::_M_construct<char_const*>(string *this,undefined1 *param_1,int *param_2,uint param_4)\n\n{\n  undefined1 *puVar1;" (primitive_type "void") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::string::_M_construct<char_const*>(string" (identifier "std") (: ":") (: ":") (identifier "string") (: ":") (: ":") (identifier "_M_construct") (< "<") (identifier "char_const") (* "*") (> ">") (( "(") (identifier "string")) (pointer_declarator "*this" (* "*") (identifier "this")) (, ",") (ERROR "undefined1" (identifier "undefined1")) (pointer_declarator "*param_1" (* "*") (identifier "param_1")) (, ",") (ERROR "int" (identifier "int")) (pointer_declarator "*param_2" (* "*") (identifier "param_2")) (, ",") (ERROR "uint param_4)\n\n{\n  undefined1" (identifier "uint") (identifier "param_4") () ")") ({ "{") (identifier "undefined1")) (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint local_18 [2];" (type_identifier "uint") (array_declarator "local_18 [2]" (identifier "local_18") ([ "[") (number_literal "2") (] "]")) (; ";")) (if_statement "if (param_1 == (undefined1 *)0x0) {\n    if (param_2 == (int *)0x0) {\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }\n    piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);\n    (*(code *)PTR___throw_logic_error_004c12d8)();\n    puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);\n    if (puVar5 != (undefined4 *)0x0) {\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 == (undefined1 *)0x0)" (( "(") (binary_expression "param_1 == (undefined1 *)0x0" (identifier "param_1") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (param_2 == (int *)0x0) {\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }\n    piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);\n    (*(code *)PTR___throw_logic_error_004c12d8)();\n    puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);\n    if (puVar5 != (undefined4 *)0x0) {\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }\n    return;\n  }" ({ "{") (if_statement "if (param_2 == (int *)0x0) {\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }" (if "if") (parenthesized_expression "(param_2 == (int *)0x0)" (( "(") (binary_expression "param_2 == (int *)0x0" (identifier "param_2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *(undefined4 *)(this + 4) = 0;\n      **(undefined1 **)this = 0;\n      return;\n    }" ({ "{") (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" (* "*") (cast_expression "(undefined4 *)(this + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 4)" (( "(") (binary_expression "this + 4" (identifier "this") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "**(undefined1 **)this = 0;" (assignment_expression "**(undefined1 **)this = 0" (pointer_expression "**(undefined1 **)this" (* "*") (pointer_expression "*(undefined1 **)this" (* "*") (cast_expression "(undefined1 **)this" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);" (assignment_expression "piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" (identifier "piVar3") (= "=") (cast_expression "(int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00)" (( "(") (binary_expression "PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00" (identifier "PTR_s_ral_options14Struct_no_crefE_004c127c") (+ "+") (number_literal "-0xa00")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR___throw_logic_error_004c12d8)();" (call_expression "(*(code *)PTR___throw_logic_error_004c12d8)()" (parenthesized_expression "(*(code *)PTR___throw_logic_error_004c12d8)" (( "(") (pointer_expression "*(code *)PTR___throw_logic_error_004c12d8" (* "*") (cast_expression "(code *)PTR___throw_logic_error_004c12d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___throw_logic_error_004c12d8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);" (assignment_expression "puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4)" (identifier "puVar5") (= "=") (pointer_expression "*(undefined4 **)(*piVar3 + (int)param_1 * 4)" (* "*") (cast_expression "(undefined4 **)(*piVar3 + (int)param_1 * 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + (int)param_1 * 4)" (( "(") (binary_expression "*piVar3 + (int)param_1 * 4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (binary_expression "(int)param_1 * 4" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }" (if "if") (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar5 != (undefined4 *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      piVar4 = (int *)*puVar5;\n      uVar6 = piVar4[3];\n      do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));\n    }" ({ "{") (expression_statement "piVar4 = (int *)*puVar5;" (assignment_expression "piVar4 = (int *)*puVar5" (identifier "piVar4") (= "=") (cast_expression "(int *)*puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (expression_statement "uVar6 = piVar4[3];" (assignment_expression "uVar6 = piVar4[3]" (identifier "uVar6") (= "=") (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]"))) (; ";")) (do_statement "do {\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));" (do "do") (compound_statement "{\n        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }\n        uVar6 = piVar4[3];\n        if (piVar3[1] == 0) {\n          trap(7);\n        }\n      }" ({ "{") (if_statement "if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {\n          return;\n        }" (if "if") (parenthesized_expression "((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0))" (( "(") (binary_expression "(((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||\n           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)" (parenthesized_expression "(((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2]))" (( "(") (binary_expression "((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])" (parenthesized_expression "((uVar6 == param_4) && (piVar4[1] == *param_2))" (( "(") (binary_expression "(uVar6 == param_4) && (piVar4[1] == *param_2)" (parenthesized_expression "(uVar6 == param_4)" (( "(") (binary_expression "uVar6 == param_4" (identifier "uVar6") (== "==") (identifier "param_4")) () ")")) (&& "&&") (parenthesized_expression "(piVar4[1] == *param_2)" (( "(") (binary_expression "piVar4[1] == *param_2" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (== "==") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_2[1] == piVar4[2])" (( "(") (binary_expression "param_2[1] == piVar4[2]" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (== "==") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)" (( "(") (comma_expression "piVar4 = (int *)*piVar4, piVar4 == (int *)0x0" (assignment_expression "piVar4 = (int *)*piVar4" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (, ",") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n          return;\n        }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar6 = piVar4[3];" (assignment_expression "uVar6 = piVar4[3]" (identifier "uVar6") (= "=") (subscript_expression "piVar4[3]" (identifier "piVar4") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if (piVar3[1] == 0) {\n          trap(7);\n        }" (if "if") (parenthesized_expression "(piVar3[1] == 0)" (( "(") (binary_expression "piVar3[1] == 0" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          trap(7);\n        }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]))" (( "(") (binary_expression "param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1])" (identifier "param_1") (== "==") (cast_expression "(undefined1 *)(uVar6 % (uint)piVar3[1])" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(uVar6 % (uint)piVar3[1])" (( "(") (binary_expression "uVar6 % (uint)piVar3[1]" (identifier "uVar6") (% "%") (cast_expression "(uint)piVar3[1]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")))) () ")")))) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar6 = (int)param_2 - (int)param_1;" (assignment_expression "uVar6 = (int)param_2 - (int)param_1" (identifier "uVar6") (= "=") (binary_expression "(int)param_2 - (int)param_1" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (expression_statement "local_18[0] = uVar6;" (assignment_expression "local_18[0] = uVar6" (subscript_expression "local_18[0]" (identifier "local_18") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (if_statement "if (uVar6 < 0x10) {\n    if (uVar6 == 1) {\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }\n    else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }\n    *(uint *)(this + 4) = uVar6;\n    *puVar1 = 0;\n    return;\n  }" (if "if") (parenthesized_expression "(uVar6 < 0x10)" (( "(") (binary_expression "uVar6 < 0x10" (identifier "uVar6") (< "<") (number_literal "0x10")) () ")")) (compound_statement "{\n    if (uVar6 == 1) {\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }\n    else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }\n    *(uint *)(this + 4) = uVar6;\n    *puVar1 = 0;\n    return;\n  }" ({ "{") (if_statement "if (uVar6 == 1) {\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }\n    else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }" (if "if") (parenthesized_expression "(uVar6 == 1)" (( "(") (binary_expression "uVar6 == 1" (identifier "uVar6") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      **(undefined1 **)this = *param_1;\n      puVar1 = (undefined1 *)(*(int *)this + 1);\n    }" ({ "{") (expression_statement "**(undefined1 **)this = *param_1;" (assignment_expression "**(undefined1 **)this = *param_1" (pointer_expression "**(undefined1 **)this" (* "*") (pointer_expression "*(undefined1 **)this" (* "*") (cast_expression "(undefined1 **)this" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this")))) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "puVar1 = (undefined1 *)(*(int *)this + 1);" (assignment_expression "puVar1 = (undefined1 *)(*(int *)this + 1)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)(*(int *)this + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + 1)" (( "(") (binary_expression "*(int *)this + 1" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }" (else "else") (compound_statement "{\n      puVar1 = *(undefined1 **)this + uVar6;\n      if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }\n    }" ({ "{") (expression_statement "puVar1 = *(undefined1 **)this + uVar6;" (assignment_expression "puVar1 = *(undefined1 **)this + uVar6" (identifier "puVar1") (= "=") (binary_expression "*(undefined1 **)this + uVar6" (pointer_expression "*(undefined1 **)this" (* "*") (cast_expression "(undefined1 **)this" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "this"))) (+ "+") (identifier "uVar6"))) (; ";")) (if_statement "if (uVar6 != 0) {\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }" (if "if") (parenthesized_expression "(uVar6 != 0)" (( "(") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = (int)puVar1 - uVar6;\n        goto LAB_0013b7f0;\n      }" ({ "{") (expression_statement "iVar2 = (int)puVar1 - uVar6;" (assignment_expression "iVar2 = (int)puVar1 - uVar6" (identifier "iVar2") (= "=") (binary_expression "(int)puVar1 - uVar6" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (- "-") (identifier "uVar6"))) (; ";")) (goto_statement "goto LAB_0013b7f0;" (goto "goto") (statement_identifier "LAB_0013b7f0") (; ";")) (} "}"))) (} "}")))) (expression_statement "*(uint *)(this + 4) = uVar6;" (assignment_expression "*(uint *)(this + 4) = uVar6" (pointer_expression "*(uint *)(this + 4)" (* "*") (cast_expression "(uint *)(this + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 4)" (( "(") (binary_expression "this + 4" (identifier "this") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar2 = (*(code *)PTR__M_create_004c141c)(this,local_18,0);" (assignment_expression "iVar2 = (*(code *)PTR__M_create_004c141c)(this,local_18,0)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR__M_create_004c141c)(this,local_18,0)" (parenthesized_expression "(*(code *)PTR__M_create_004c141c)" (( "(") (pointer_expression "*(code *)PTR__M_create_004c141c" (* "*") (cast_expression "(code *)PTR__M_create_004c141c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__M_create_004c141c"))) () ")")) (argument_list "(this,local_18,0)" (( "(") (identifier "this") (, ",") (identifier "local_18") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(uint *)(this + 8) = local_18[0];" (assignment_expression "*(uint *)(this + 8) = local_18[0]" (pointer_expression "*(uint *)(this + 8)" (* "*") (cast_expression "(uint *)(this + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 8)" (( "(") (binary_expression "this + 8" (identifier "this") (+ "+") (number_literal "8")) () ")")))) (= "=") (subscript_expression "local_18[0]" (identifier "local_18") ([ "[") (number_literal "0") (] "]"))) (; ";")) (labeled_statement "LAB_0013b7f0:\n  (*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6);" (statement_identifier "LAB_0013b7f0") (: ":") (expression_statement "(*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6);" (call_expression "(*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6)" (parenthesized_expression "(*(code *)PTR_memcpy_004c5ba8)" (( "(") (pointer_expression "*(code *)PTR_memcpy_004c5ba8" (* "*") (cast_expression "(code *)PTR_memcpy_004c5ba8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_004c5ba8"))) () ")")) (argument_list "(iVar2,param_1,uVar6)" (( "(") (identifier "iVar2") (, ",") (identifier "param_1") (, ",") (identifier "uVar6") () ")"))) (; ";"))) (expression_statement "*(uint *)(this + 4) = local_18[0];" (assignment_expression "*(uint *)(this + 4) = local_18[0]" (pointer_expression "*(uint *)(this + 4)" (* "*") (cast_expression "(uint *)(this + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 4)" (( "(") (binary_expression "this + 4" (identifier "this") (+ "+") (number_literal "4")) () ")")))) (= "=") (subscript_expression "local_18[0]" (identifier "local_18") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "*(undefined1 *)(*(int *)this + local_18[0]) = 0;" (assignment_expression "*(undefined1 *)(*(int *)this + local_18[0]) = 0" (pointer_expression "*(undefined1 *)(*(int *)this + local_18[0])" (* "*") (cast_expression "(undefined1 *)(*(int *)this + local_18[0])" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)this + local_18[0])" (( "(") (binary_expression "*(int *)this + local_18[0]" (pointer_expression "*(int *)this" (* "*") (cast_expression "(int *)this" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "this"))) (+ "+") (subscript_expression "local_18[0]" (identifier "local_18") ([ "[") (number_literal "0") (] "]"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (ERROR "}" (} "}"))

/* DWARF original name: _M_construct<char const*>
   DWARF original prototype: void
   _M_construct<char_const*>(basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *
   this, char * __beg, char * __end, forward_iterator_tag param_4) */

void __thiscall
std::__cxx11::basic_string<char,_std::char_traits<char>,_std::allocator<char>_>::
_M_construct<char_const*>
          (basic_string<char,_std::char_traits<char>,_std::allocator<char>_> *this,char *var_1,
          int *var_2,type_2 var_6)

{
  pointer var_9;
  int *piVar2;
  int *var_7;
  type_1 *var_4;
  type_2 var_5;
  type_3 __dnew;
  
  if (var_1 == (char *)0x0) {
    if (var_2 == (int *)0x0) {
      var_9 = (this->_M_dataplus)._M_p;
      this->_M_string_length = 0;
      *var_9 = '\0';
      return;
    }
    piVar2 = (int *)(var_3 + -0xa00);
    (*(type_4 *)PTR___throw_logic_error_004c12d8)();
    var_4 = *(type_1 **)(*piVar2 + (int)var_1 * 4);
    if (var_4 != (type_1 *)0x0) {
      var_7 = (int *)*var_4;
      var_5 = var_7[3];
      do {
        if ((((var_5 == var_6) && (var_7[1] == *var_2)) && (var_2[1] == var_7[2])) ||
           (var_7 = (int *)*var_7, var_7 == (int *)0x0)) {
          return;
        }
        var_5 = var_7[3];
        if (piVar2[1] == 0) {
          var_8(7);
        }
      } while (var_1 == (char *)(var_5 % (type_2)piVar2[1]));
    }
    return;
  }
  var_5 = (int)var_2 - (int)var_1;
  __dnew = var_5;
  if (var_5 < 0x10) {
    var_9 = (this->_M_dataplus)._M_p;
    if (var_5 == 1) {
      *var_9 = *var_1;
      var_9 = (this->_M_dataplus)._M_p + 1;
    }
    else {
      var_9 = var_9 + var_5;
      if (var_5 != 0) {
        var_9 = var_9 + -var_5;
        goto LAB_0013b7f0;
      }
    }
    this->_M_string_length = var_5;
    *var_9 = '\0';
    return;
  }
  var_9 = (pointer)(*(type_4 *)PTR__M_create_004c141c)(this,&__dnew,0);
  (this->_M_dataplus)._M_p = var_9;
  (this->field_2)._M_allocated_capacity = __dnew;
LAB_0013b7f0:
  (*(type_4 *)PTR_memcpy_004c5ba8)(var_9,var_1,var_5);
  var_9 = (this->_M_dataplus)._M_p;
  this->_M_string_length = __dnew;
  var_9[__dnew] = '\0';
  return;
}


(translation_unit (declaration type: (primitive_type) declarator: (ms_call_modifier) (ERROR (identifier) (identifier) (identifier) (identifier) (identifier)) declarator: (pointer_declarator declarator: (identifier)) (ERROR (identifier)) declarator: (pointer_declarator declarator: (identifier)) (ERROR (identifier)) declarator: (pointer_declarator declarator: (identifier)) (ERROR (identifier) (identifier) (identifier)) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))) right: (number_literal))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (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: (pointer_expression argument: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))))))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier)))) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier)))) (goto_statement label: (statement_identifier))))))) (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: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier))) (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: (subscript_expression argument: (identifier) index: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier))))) (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: (subscript_expression argument: (identifier) index: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (subscript_expression argument: (identifier) index: (number_literal)))))) right: (number_literal))) (return_statement) (ERROR))

/* void std::string::_M_construct<char const*>(char const*, char const*, std::forward_iterator_tag)
    */

void __thiscall
std::string::MASKED(string *this,undefined1 *param_1,int *param_2,uint param_4)

{
  undefined1 *puVar1;
  int iVar2;
  int *piVar3;
  int *piVar4;
  undefined4 *puVar5;
  uint uVar6;
  uint local_18 [2];
  
  if (param_1 == (undefined1 *)0x0) {
    if (param_2 == (int *)0x0) {
      *(undefined4 *)(this + 4) = 0;
      **(undefined1 **)this = 0;
      return;
    }
    piVar3 = (int *)(PTR_s_ral_options14Struct_no_crefE_004c127c + -0xa00);
    (*(code *)PTR___throw_logic_error_004c12d8)();
    puVar5 = *(undefined4 **)(*piVar3 + (int)param_1 * 4);
    if (puVar5 != (undefined4 *)0x0) {
      piVar4 = (int *)*puVar5;
      uVar6 = piVar4[3];
      do {
        if ((((uVar6 == param_4) && (piVar4[1] == *param_2)) && (param_2[1] == piVar4[2])) ||
           (piVar4 = (int *)*piVar4, piVar4 == (int *)0x0)) {
          return;
        }
        uVar6 = piVar4[3];
        if (piVar3[1] == 0) {
          trap(7);
        }
      } while (param_1 == (undefined1 *)(uVar6 % (uint)piVar3[1]));
    }
    return;
  }
  uVar6 = (int)param_2 - (int)param_1;
  local_18[0] = uVar6;
  if (uVar6 < 0x10) {
    if (uVar6 == 1) {
      **(undefined1 **)this = *param_1;
      puVar1 = (undefined1 *)(*(int *)this + 1);
    }
    else {
      puVar1 = *(undefined1 **)this + uVar6;
      if (uVar6 != 0) {
        iVar2 = (int)puVar1 - uVar6;
        goto LAB_0013b7f0;
      }
    }
    *(uint *)(this + 4) = uVar6;
    *puVar1 = 0;
    return;
  }
  iVar2 = (*(code *)PTR__M_create_004c141c)(this,local_18,0);
  *(int *)this = iVar2;
  *(uint *)(this + 8) = local_18[0];
LAB_0013b7f0:
  (*(code *)PTR_memcpy_004c5ba8)(iVar2,param_1,uVar6);
  *(uint *)(this + 4) = local_18[0];
  *(undefined1 *)(*(int *)this + local_18[0]) = 0;
  return;
}

