
/* std::string::_M_erase(unsigned long, unsigned long) */

void __thiscall std::string::_M_erase(string *this,ulong param_1,ulong param_2)

{
  long lVar1;
  undefined1 *__src;
  size_t __n;
  long lVar2;
  
  lVar1 = *(long *)(this + 8);
  lVar2 = *(long *)this;
  __n = lVar1 - (param_1 + param_2);
  if ((__n != 0) && (param_2 != 0)) {
    __src = (undefined1 *)(param_1 + param_2 + lVar2);
    if (__n == 1) {
      *(undefined1 *)(lVar2 + param_1) = *__src;
      lVar2 = *(long *)this;
      lVar1 = *(long *)(this + 8);
    }
    else {
      memmove((undefined1 *)(lVar2 + param_1),__src,__n);
      lVar2 = *(long *)this;
      lVar1 = *(long *)(this + 8);
    }
  }
  *(ulong *)(this + 8) = lVar1 - param_2;
  *(undefined1 *)(lVar2 + (lVar1 - param_2)) = 0;
  return;
}



void FUN_002e1aa0(long *param_1,long param_2,long param_3)

{
  long lVar1;
  undefined1 *__src;
  size_t __n;
  long lVar2;
  
  lVar1 = param_1[1];
  lVar2 = *param_1;
  __n = lVar1 - (param_2 + param_3);
  if ((__n != 0) && (param_3 != 0)) {
    __src = (undefined1 *)(param_2 + param_3 + lVar2);
    if (__n == 1) {
      *(undefined1 *)(lVar2 + param_2) = *__src;
      lVar2 = *param_1;
      lVar1 = param_1[1];
    }
    else {
      memmove((undefined1 *)(lVar2 + param_2),__src,__n);
      lVar2 = *param_1;
      lVar1 = param_1[1];
    }
  }
  param_1[1] = lVar1 - param_3;
  *(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;
  return;
}


PUSH RBP
LEA RCX,[RSI + RDX*0x1]
MOV RBP,RDX
PUSH RBX
MOV RBX,RDI
SUB RSP,0x8
MOV RAX,qword ptr [RDI + 0x8]
MOV RDI,qword ptr [RDI]
MOV RDX,RAX
SUB RDX,RCX
JZ 0x002e1adf
TEST RBP,RBP
JZ 0x002e1adf
ADD RCX,RDI
ADD RDI,RSI
CMP RDX,0x1
JZ 0x002e1af8
MOV RSI,RCX
CALL 0x001476d0
MOV RDI,qword ptr [RBX]
MOV RAX,qword ptr [RBX + 0x8]
SUB RAX,RBP
MOV qword ptr [RBX + 0x8],RAX
MOV byte ptr [RDI + RAX*0x1],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
MOVZX EAX,byte ptr [RCX]
MOV byte ptr [RDI],AL
MOV RDI,qword ptr [RBX]
MOV RAX,qword ptr [RBX + 0x8]
JMP 0x002e1adf
(translation_unit "void FUN_002e1aa0(long *param_1,long param_2,long param_3)\n\n{\n  long lVar1;\n  undefined1 *__src;\n  size_t __n;\n  long lVar2;\n  \n  lVar1 = param_1[1];\n  lVar2 = *param_1;\n  __n = lVar1 - (param_2 + param_3);\n  if ((__n != 0) && (param_3 != 0)) {\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }\n  param_1[1] = lVar1 - param_3;\n  *(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;\n  return;\n}\n\n" (function_definition "void FUN_002e1aa0(long *param_1,long param_2,long param_3)\n\n{\n  long lVar1;\n  undefined1 *__src;\n  size_t __n;\n  long lVar2;\n  \n  lVar1 = param_1[1];\n  lVar2 = *param_1;\n  __n = lVar1 - (param_2 + param_3);\n  if ((__n != 0) && (param_3 != 0)) {\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }\n  param_1[1] = lVar1 - param_3;\n  *(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_002e1aa0(long *param_1,long param_2,long param_3)" identifier (parameter_list "(long *param_1,long param_2,long param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined1 *__src;\n  size_t __n;\n  long lVar2;\n  \n  lVar1 = param_1[1];\n  lVar2 = *param_1;\n  __n = lVar1 - (param_2 + param_3);\n  if ((__n != 0) && (param_3 != 0)) {\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }\n  param_1[1] = lVar1 - param_3;\n  *(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "__n = lVar1 - (param_2 + param_3);" (assignment_expression "__n = lVar1 - (param_2 + param_3)" identifier = (binary_expression "lVar1 - (param_2 + param_3)" identifier - (parenthesized_expression "(param_2 + param_3)" ( (binary_expression "param_2 + param_3" identifier + identifier) )))) ;) (if_statement "if ((__n != 0) && (param_3 != 0)) {\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }" if (parenthesized_expression "((__n != 0) && (param_3 != 0))" ( (binary_expression "(__n != 0) && (param_3 != 0)" (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }" { (expression_statement "__src = (undefined1 *)(param_2 + param_3 + lVar2);" (assignment_expression "__src = (undefined1 *)(param_2 + param_3 + lVar2)" identifier = (cast_expression "(undefined1 *)(param_2 + param_3 + lVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + param_3 + lVar2)" ( (binary_expression "param_2 + param_3 + lVar2" (binary_expression "param_2 + param_3" identifier + identifier) + identifier) )))) ;) (if_statement "if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" { (expression_statement "*(undefined1 *)(lVar2 + param_2) = *__src;" (assignment_expression "*(undefined1 *)(lVar2 + param_2) = *__src" (pointer_expression "*(undefined1 *)(lVar2 + param_2)" * (cast_expression "(undefined1 *)(lVar2 + param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + param_2)" ( (binary_expression "lVar2 + param_2" identifier + identifier) )))) = (pointer_expression "*__src" * identifier)) ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" else (compound_statement "{\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" { (expression_statement "memmove((undefined1 *)(lVar2 + param_2),__src,__n);" (call_expression "memmove((undefined1 *)(lVar2 + param_2),__src,__n)" identifier (argument_list "((undefined1 *)(lVar2 + param_2),__src,__n)" ( (cast_expression "(undefined1 *)(lVar2 + param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + param_2)" ( (binary_expression "lVar2 + param_2" identifier + identifier) ))) , identifier , identifier ))) ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) })) (expression_statement "param_1[1] = lVar1 - param_3;" (assignment_expression "param_1[1] = lVar1 - param_3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "lVar1 - param_3" identifier - identifier)) ;) (expression_statement "*(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;" (assignment_expression "*(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0" (pointer_expression "*(undefined1 *)(lVar2 + (lVar1 - param_3))" * (cast_expression "(undefined1 *)(lVar2 + (lVar1 - param_3))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + (lVar1 - param_3))" ( (binary_expression "lVar2 + (lVar1 - param_3)" identifier + (parenthesized_expression "(lVar1 - param_3)" ( (binary_expression "lVar1 - param_3" identifier - identifier) ))) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::string::_M_erase(unsigned long, unsigned long) */\n\nvoid __thiscall std::string::_M_erase(string *this,ulong param_1,ulong param_2)\n\n{\n  long lVar1;\n  undefined1 *__src;\n  size_t __n;\n  long lVar2;\n  \n  lVar1 = *(long *)(this + 8);\n  lVar2 = *(long *)this;\n  __n = lVar1 - (param_1 + param_2);\n  if ((__n != 0) && (param_2 != 0)) {\n    __src = (undefined1 *)(param_1 + param_2 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_1) = *__src;\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_1),__src,__n);\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }\n  }\n  *(ulong *)(this + 8) = lVar1 - param_2;\n  *(undefined1 *)(lVar2 + (lVar1 - param_2)) = 0;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::string::_M_erase(string *this,ulong param_1,ulong param_2)\n\n{\n  long lVar1;\n  undefined1 *__src;\n  size_t __n;\n  long lVar2;\n  \n  lVar1 = *(long *)(this + 8);\n  lVar2 = *(long *)this;\n  __n = lVar1 - (param_1 + param_2);\n  if ((__n != 0) && (param_2 != 0)) {\n    __src = (undefined1 *)(param_1 + param_2 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_1) = *__src;\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_1),__src,__n);\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }\n  }\n  *(ulong *)(this + 8) = lVar1 - param_2;\n  *(undefined1 *)(lVar2 + (lVar1 - param_2)) = 0;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::string::" identifier : : identifier : :) (function_declarator "_M_erase(string *this,ulong param_1,ulong param_2)" identifier (parameter_list "(string *this,ulong param_1,ulong param_2)" ( (parameter_declaration "string *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "ulong param_1" type_identifier identifier) , (parameter_declaration "ulong param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined1 *__src;\n  size_t __n;\n  long lVar2;\n  \n  lVar1 = *(long *)(this + 8);\n  lVar2 = *(long *)this;\n  __n = lVar1 - (param_1 + param_2);\n  if ((__n != 0) && (param_2 != 0)) {\n    __src = (undefined1 *)(param_1 + param_2 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_1) = *__src;\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_1),__src,__n);\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }\n  }\n  *(ulong *)(this + 8) = lVar1 - param_2;\n  *(undefined1 *)(lVar2 + (lVar1 - param_2)) = 0;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)(this + 8);" (assignment_expression "lVar1 = *(long *)(this + 8)" identifier = (pointer_expression "*(long *)(this + 8)" * (cast_expression "(long *)(this + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (expression_statement "lVar2 = *(long *)this;" (assignment_expression "lVar2 = *(long *)this" identifier = (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "__n = lVar1 - (param_1 + param_2);" (assignment_expression "__n = lVar1 - (param_1 + param_2)" identifier = (binary_expression "lVar1 - (param_1 + param_2)" identifier - (parenthesized_expression "(param_1 + param_2)" ( (binary_expression "param_1 + param_2" identifier + identifier) )))) ;) (if_statement "if ((__n != 0) && (param_2 != 0)) {\n    __src = (undefined1 *)(param_1 + param_2 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_1) = *__src;\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_1),__src,__n);\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }\n  }" if (parenthesized_expression "((__n != 0) && (param_2 != 0))" ( (binary_expression "(__n != 0) && (param_2 != 0)" (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    __src = (undefined1 *)(param_1 + param_2 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_1) = *__src;\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_1),__src,__n);\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }\n  }" { (expression_statement "__src = (undefined1 *)(param_1 + param_2 + lVar2);" (assignment_expression "__src = (undefined1 *)(param_1 + param_2 + lVar2)" identifier = (cast_expression "(undefined1 *)(param_1 + param_2 + lVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + param_2 + lVar2)" ( (binary_expression "param_1 + param_2 + lVar2" (binary_expression "param_1 + param_2" identifier + identifier) + identifier) )))) ;) (if_statement "if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_1) = *__src;\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_1),__src,__n);\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)(lVar2 + param_1) = *__src;\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }" { (expression_statement "*(undefined1 *)(lVar2 + param_1) = *__src;" (assignment_expression "*(undefined1 *)(lVar2 + param_1) = *__src" (pointer_expression "*(undefined1 *)(lVar2 + param_1)" * (cast_expression "(undefined1 *)(lVar2 + param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + param_1)" ( (binary_expression "lVar2 + param_1" identifier + identifier) )))) = (pointer_expression "*__src" * identifier)) ;) (expression_statement "lVar2 = *(long *)this;" (assignment_expression "lVar2 = *(long *)this" identifier = (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "lVar1 = *(long *)(this + 8);" (assignment_expression "lVar1 = *(long *)(this + 8)" identifier = (pointer_expression "*(long *)(this + 8)" * (cast_expression "(long *)(this + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      memmove((undefined1 *)(lVar2 + param_1),__src,__n);\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }" else (compound_statement "{\n      memmove((undefined1 *)(lVar2 + param_1),__src,__n);\n      lVar2 = *(long *)this;\n      lVar1 = *(long *)(this + 8);\n    }" { (expression_statement "memmove((undefined1 *)(lVar2 + param_1),__src,__n);" (call_expression "memmove((undefined1 *)(lVar2 + param_1),__src,__n)" identifier (argument_list "((undefined1 *)(lVar2 + param_1),__src,__n)" ( (cast_expression "(undefined1 *)(lVar2 + param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + param_1)" ( (binary_expression "lVar2 + param_1" identifier + identifier) ))) , identifier , identifier ))) ;) (expression_statement "lVar2 = *(long *)this;" (assignment_expression "lVar2 = *(long *)this" identifier = (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "lVar1 = *(long *)(this + 8);" (assignment_expression "lVar1 = *(long *)(this + 8)" identifier = (pointer_expression "*(long *)(this + 8)" * (cast_expression "(long *)(this + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) }))) })) (expression_statement "*(ulong *)(this + 8) = lVar1 - param_2;" (assignment_expression "*(ulong *)(this + 8) = lVar1 - param_2" (pointer_expression "*(ulong *)(this + 8)" * (cast_expression "(ulong *)(this + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (binary_expression "lVar1 - param_2" identifier - identifier)) ;) (expression_statement "*(undefined1 *)(lVar2 + (lVar1 - param_2)) = 0;" (assignment_expression "*(undefined1 *)(lVar2 + (lVar1 - param_2)) = 0" (pointer_expression "*(undefined1 *)(lVar2 + (lVar1 - param_2))" * (cast_expression "(undefined1 *)(lVar2 + (lVar1 - param_2))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + (lVar1 - param_2))" ( (binary_expression "lVar2 + (lVar1 - param_2)" identifier + (parenthesized_expression "(lVar1 - param_2)" ( (binary_expression "lVar1 - param_2" identifier - identifier) ))) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002e1aa0(long *param_1,long param_2,long param_3)\n\n{\n  long lVar1;\n  undefined1 *__src;\n  size_t __n;\n  long lVar2;\n  \n  lVar1 = param_1[1];\n  lVar2 = *param_1;\n  __n = lVar1 - (param_2 + param_3);\n  if ((__n != 0) && (param_3 != 0)) {\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }\n  param_1[1] = lVar1 - param_3;\n  *(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;\n  return;\n}\n\n" (function_definition "void FUN_002e1aa0(long *param_1,long param_2,long param_3)\n\n{\n  long lVar1;\n  undefined1 *__src;\n  size_t __n;\n  long lVar2;\n  \n  lVar1 = param_1[1];\n  lVar2 = *param_1;\n  __n = lVar1 - (param_2 + param_3);\n  if ((__n != 0) && (param_3 != 0)) {\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }\n  param_1[1] = lVar1 - param_3;\n  *(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_002e1aa0(long *param_1,long param_2,long param_3)" identifier (parameter_list "(long *param_1,long param_2,long param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined1 *__src;\n  size_t __n;\n  long lVar2;\n  \n  lVar1 = param_1[1];\n  lVar2 = *param_1;\n  __n = lVar1 - (param_2 + param_3);\n  if ((__n != 0) && (param_3 != 0)) {\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }\n  param_1[1] = lVar1 - param_3;\n  *(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *__src;" type_identifier (pointer_declarator "*__src" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "__n = lVar1 - (param_2 + param_3);" (assignment_expression "__n = lVar1 - (param_2 + param_3)" identifier = (binary_expression "lVar1 - (param_2 + param_3)" identifier - (parenthesized_expression "(param_2 + param_3)" ( (binary_expression "param_2 + param_3" identifier + identifier) )))) ;) (if_statement "if ((__n != 0) && (param_3 != 0)) {\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }" if (parenthesized_expression "((__n != 0) && (param_3 != 0))" ( (binary_expression "(__n != 0) && (param_3 != 0)" (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }" { (expression_statement "__src = (undefined1 *)(param_2 + param_3 + lVar2);" (assignment_expression "__src = (undefined1 *)(param_2 + param_3 + lVar2)" identifier = (cast_expression "(undefined1 *)(param_2 + param_3 + lVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + param_3 + lVar2)" ( (binary_expression "param_2 + param_3 + lVar2" (binary_expression "param_2 + param_3" identifier + identifier) + identifier) )))) ;) (if_statement "if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" if (parenthesized_expression "(__n == 1)" ( (binary_expression "__n == 1" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" { (expression_statement "*(undefined1 *)(lVar2 + param_2) = *__src;" (assignment_expression "*(undefined1 *)(lVar2 + param_2) = *__src" (pointer_expression "*(undefined1 *)(lVar2 + param_2)" * (cast_expression "(undefined1 *)(lVar2 + param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + param_2)" ( (binary_expression "lVar2 + param_2" identifier + identifier) )))) = (pointer_expression "*__src" * identifier)) ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" else (compound_statement "{\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" { (expression_statement "memmove((undefined1 *)(lVar2 + param_2),__src,__n);" (call_expression "memmove((undefined1 *)(lVar2 + param_2),__src,__n)" identifier (argument_list "((undefined1 *)(lVar2 + param_2),__src,__n)" ( (cast_expression "(undefined1 *)(lVar2 + param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + param_2)" ( (binary_expression "lVar2 + param_2" identifier + identifier) ))) , identifier , identifier ))) ;) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) })) (expression_statement "param_1[1] = lVar1 - param_3;" (assignment_expression "param_1[1] = lVar1 - param_3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "lVar1 - param_3" identifier - identifier)) ;) (expression_statement "*(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;" (assignment_expression "*(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0" (pointer_expression "*(undefined1 *)(lVar2 + (lVar1 - param_3))" * (cast_expression "(undefined1 *)(lVar2 + (lVar1 - param_3))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar2 + (lVar1 - param_3))" ( (binary_expression "lVar2 + (lVar1 - param_3)" identifier + (parenthesized_expression "(lVar1 - param_3)" ( (binary_expression "lVar1 - param_3" identifier - identifier) ))) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_002e1aa0(long *param_1,long param_2,long param_3)\n\n{\n  long lVar1;\n  undefined1 *__src;\n  size_t __n;\n  long lVar2;\n  \n  lVar1 = param_1[1];\n  lVar2 = *param_1;\n  __n = lVar1 - (param_2 + param_3);\n  if ((__n != 0) && (param_3 != 0)) {\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }\n  param_1[1] = lVar1 - param_3;\n  *(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002e1aa0(long *param_1,long param_2,long param_3)" (identifier "FUN_002e1aa0") (parameter_list "(long *param_1,long param_2,long param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) () ")"))) (compound_statement "{\n  long lVar1;\n  undefined1 *__src;\n  size_t __n;\n  long lVar2;\n  \n  lVar1 = param_1[1];\n  lVar2 = *param_1;\n  __n = lVar1 - (param_2 + param_3);\n  if ((__n != 0) && (param_3 != 0)) {\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }\n  param_1[1] = lVar1 - param_3;\n  *(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined1 *__src;" (type_identifier "undefined1") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" (identifier "lVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" (identifier "lVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "__n = lVar1 - (param_2 + param_3);" (assignment_expression "__n = lVar1 - (param_2 + param_3)" (identifier "__n") (= "=") (binary_expression "lVar1 - (param_2 + param_3)" (identifier "lVar1") (- "-") (parenthesized_expression "(param_2 + param_3)" (( "(") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) () ")")))) (; ";")) (if_statement "if ((__n != 0) && (param_3 != 0)) {\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }" (if "if") (parenthesized_expression "((__n != 0) && (param_3 != 0))" (( "(") (binary_expression "(__n != 0) && (param_3 != 0)" (parenthesized_expression "(__n != 0)" (( "(") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    __src = (undefined1 *)(param_2 + param_3 + lVar2);\n    if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n  }" ({ "{") (expression_statement "__src = (undefined1 *)(param_2 + param_3 + lVar2);" (assignment_expression "__src = (undefined1 *)(param_2 + param_3 + lVar2)" (identifier "__src") (= "=") (cast_expression "(undefined1 *)(param_2 + param_3 + lVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + param_3 + lVar2)" (( "(") (binary_expression "param_2 + param_3 + lVar2" (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) (+ "+") (identifier "lVar2")) () ")")))) (; ";")) (if_statement "if (__n == 1) {\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }\n    else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" (if "if") (parenthesized_expression "(__n == 1)" (( "(") (binary_expression "__n == 1" (identifier "__n") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      *(undefined1 *)(lVar2 + param_2) = *__src;\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" ({ "{") (expression_statement "*(undefined1 *)(lVar2 + param_2) = *__src;" (assignment_expression "*(undefined1 *)(lVar2 + param_2) = *__src" (pointer_expression "*(undefined1 *)(lVar2 + param_2)" (* "*") (cast_expression "(undefined1 *)(lVar2 + param_2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + param_2)" (( "(") (binary_expression "lVar2 + param_2" (identifier "lVar2") (+ "+") (identifier "param_2")) () ")")))) (= "=") (pointer_expression "*__src" (* "*") (identifier "__src"))) (; ";")) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" (identifier "lVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" (identifier "lVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" (else "else") (compound_statement "{\n      memmove((undefined1 *)(lVar2 + param_2),__src,__n);\n      lVar2 = *param_1;\n      lVar1 = param_1[1];\n    }" ({ "{") (expression_statement "memmove((undefined1 *)(lVar2 + param_2),__src,__n);" (call_expression "memmove((undefined1 *)(lVar2 + param_2),__src,__n)" (identifier "memmove") (argument_list "((undefined1 *)(lVar2 + param_2),__src,__n)" (( "(") (cast_expression "(undefined1 *)(lVar2 + param_2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + param_2)" (( "(") (binary_expression "lVar2 + param_2" (identifier "lVar2") (+ "+") (identifier "param_2")) () ")"))) (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "lVar2 = *param_1;" (assignment_expression "lVar2 = *param_1" (identifier "lVar2") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "lVar1 = param_1[1];" (assignment_expression "lVar1 = param_1[1]" (identifier "lVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "param_1[1] = lVar1 - param_3;" (assignment_expression "param_1[1] = lVar1 - param_3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "lVar1 - param_3" (identifier "lVar1") (- "-") (identifier "param_3"))) (; ";")) (expression_statement "*(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;" (assignment_expression "*(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0" (pointer_expression "*(undefined1 *)(lVar2 + (lVar1 - param_3))" (* "*") (cast_expression "(undefined1 *)(lVar2 + (lVar1 - param_3))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar2 + (lVar1 - param_3))" (( "(") (binary_expression "lVar2 + (lVar1 - param_3)" (identifier "lVar2") (+ "+") (parenthesized_expression "(lVar1 - param_3)" (( "(") (binary_expression "lVar1 - param_3" (identifier "lVar1") (- "-") (identifier "param_3")) () ")"))) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::string::_M_erase(unsigned long, unsigned long) */

void __thiscall std::type_1::function_1(type_1 *var_1,type_2 var_3,type_2 var_4)

{
  long var_2;
  type_3 *__src;
  size_t var_5;
  long var_6;
  
  var_2 = *(long *)(var_1 + 8);
  var_6 = *(long *)var_1;
  var_5 = var_2 - (var_3 + var_4);
  if ((var_5 != 0) && (var_4 != 0)) {
    __src = (type_3 *)(var_3 + var_4 + var_6);
    if (var_5 == 1) {
      *(type_3 *)(var_6 + var_3) = *__src;
      var_6 = *(long *)var_1;
      var_2 = *(long *)(var_1 + 8);
    }
    else {
      var_7((type_3 *)(var_6 + var_3),__src,var_5);
      var_6 = *(long *)var_1;
      var_2 = *(long *)(var_1 + 8);
    }
  }
  *(type_2 *)(var_1 + 8) = var_2 - var_4;
  *(type_3 *)(var_6 + (var_2 - var_4)) = 0;
  return;
}


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

void MASKED(long *param_1,long param_2,long param_3)

{
  long lVar1;
  undefined1 *__src;
  size_t __n;
  long lVar2;
  
  lVar1 = param_1[1];
  lVar2 = *param_1;
  __n = lVar1 - (param_2 + param_3);
  if ((__n != 0) && (param_3 != 0)) {
    __src = (undefined1 *)(param_2 + param_3 + lVar2);
    if (__n == 1) {
      *(undefined1 *)(lVar2 + param_2) = *__src;
      lVar2 = *param_1;
      lVar1 = param_1[1];
    }
    else {
      memmove((undefined1 *)(lVar2 + param_2),__src,__n);
      lVar2 = *param_1;
      lVar1 = param_1[1];
    }
  }
  param_1[1] = lVar1 - param_3;
  *(undefined1 *)(lVar2 + (lVar1 - param_3)) = 0;
  return;
}

